Skip to content

Revoke An API Token

DELETE
/tokens/{tokenId}
curl --request DELETE \
--url https://markdawn.space/api/v1/tokens/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--cookie better-auth.session_token=<better-auth.session_token>

Revokes an API token owned by the authenticated user. Revocation cannot be undone.

tokenId
required
string format: uuid

The UUID of the token.

The token was revoked.