Skip to main content

Invalidate a user access token

DELETE 

/v1/users/:username/tokens/:token_id

Invalidates an access token for a service account or user account. Use the token ID, not the token secret.

note

Use the exact username for the user account or service account in the path /v1/users/:username/tokens/:token_id. Use the token_id returned by the create token endpoint or the list tokens endpoint. Do not use the token secret as the path parameter.

Request

Responses

Successful response