Revoke the calling CLI token
Revokes the CLI token used to make this request — what portal logout
calls. It takes no id and cannot reach any other token, so it can never
sign out a different machine.
Requires a CLI token. A Clerk dashboard session has no "current token"
and is rejected with validation_failed. See DELETE /v1/cli-tokens
to revoke every token on the account instead of just this one.
Responses
- application/json
- application/json
- application/json
Request Example for delete/v1/cli-tokens/current
curl https://api.useportal.co/v1/cli-tokens/current \
--request DELETE \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{}