Skip to main content
DELETE
/
access-tokens
/
{id}
Revoke an access token.
curl --request DELETE \
  --url https://aws.s2.dev/v1/access-tokens/{id} \
  --header 'Authorization: Bearer <token>'
{
  "code": "<string>",
  "message": "<string>"
}

Access token concepts

Review token scopes, permissions, expiry, and revocation behavior.
Revocation can take up to 10 minutes to propagate, due to caching.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Path Parameters

id
string
required

Access token ID.

Required string length: 1 - 96

Response