Skip to main content

Revoke one of a service account's API tokens

DELETE 

/organizations/:organization_id/users/:user_id/tokens/:token_id

Deletes one API token of a client-managed service account, identified by the identifier returned by GET .../tokens. The token stops working immediately. The target must be client-managed (401 otherwise) and the token must belong to it.

Requires user:write, an enterprise organization, and at least the org-admin role.

Request​

Responses​

The revoked token's metadata