curl -X DELETE "https://okl.ink/api/v1/tokens?id=cmsh98127391823" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"success": true
}
API Tokens
Revoke API Token
Immediately revoke an API token.
DELETE
/
api
/
v1
/
tokens
curl -X DELETE "https://okl.ink/api/v1/tokens?id=cmsh98127391823" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"success": true
}
Revoke API Token
Revokes an API token so that any future requests presenting it will receive a401 Unauthorized response.
Headers
string
required
Bearer token:
Bearer <token>Query Parameters
string
required
The unique ID of the token to revoke.
Response
boolean
Returns
true when revocation succeeds.curl -X DELETE "https://okl.ink/api/v1/tokens?id=cmsh98127391823" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"success": true
}