Revoke a refresh token
DELETE
/api/users/[user_id]/grants/refresh_tokens/[token_id]
Revokes the specified refresh token for the user.
Path Parameters
user_id
string
Required
The ID of the user whose token should be revoked.
token_id
string
Required
The ID of the token to be revoked.
Authentication
API-Key
header
Required
The API key is essential for accessing MonoCloud's APIs. You can find it in the Tenant Settings section of your MonoCloud dashboard. To authenticate your requests, include this key in the request header using the following format: X-API-Key: <Your_API_Key>.
Headers
accept
string
- application/problem+json
Responses
204
Successfully revoked refresh token.
422
Client Error
404
Not Found
401
Unauthorized
403
Forbidden
Request Example
Request
curl -X DELETE "https://<your-domain>/api/users/{user_id}/grants/refresh_tokens/{token_id}" \
-H "X-API-KEY: <your-api-key>"
Response Example
Response
204 No Content
No Content