Skip to content

Revoke an access token

DELETE
/api/v1/me/tokens/{token}
token
required
integer format: int64
Example
42

The ID of the access token to revoke.

Access token revoked.

Missing or invalid bearer token.

Standard RFC 9457 problem details envelope.

object
type
required

RFC 9457 compliant problem details response builder.

string format: uri
Example
about:blank
title
required
string
Example
Unauthorized
status
required
integer
Example
401
detail
string
nullable
Example
Authentication failed
instance
required
string format: uri-reference
Example
/api/v1/me
trace_id

Unique identifier for the API request (if available).

string
nullable
Example
b4f5aa7a-1470-4d92-8d3c-98e7c7de9f5f

The token does not belong to the authenticated user.

Standard RFC 9457 problem details envelope.

object
type
required

RFC 9457 compliant problem details response builder.

string format: uri
Example
about:blank
title
required
string
Example
Unauthorized
status
required
integer
Example
401
detail
string
nullable
Example
Authentication failed
instance
required
string format: uri-reference
Example
/api/v1/me
trace_id

Unique identifier for the API request (if available).

string
nullable
Example
b4f5aa7a-1470-4d92-8d3c-98e7c7de9f5f

Access token not found.

Standard RFC 9457 problem details envelope.

object
type
required

RFC 9457 compliant problem details response builder.

string format: uri
Example
about:blank
title
required
string
Example
Unauthorized
status
required
integer
Example
401
detail
string
nullable
Example
Authentication failed
instance
required
string format: uri-reference
Example
/api/v1/me
trace_id

Unique identifier for the API request (if available).

string
nullable
Example
b4f5aa7a-1470-4d92-8d3c-98e7c7de9f5f

Cannot revoke the token currently being used.

Standard RFC 9457 problem details envelope.

object
type
required

RFC 9457 compliant problem details response builder.

string format: uri
Example
about:blank
title
required
string
Example
Unauthorized
status
required
integer
Example
401
detail
string
nullable
Example
Authentication failed
instance
required
string format: uri-reference
Example
/api/v1/me
trace_id

Unique identifier for the API request (if available).

string
nullable
Example
b4f5aa7a-1470-4d92-8d3c-98e7c7de9f5f