Revoke an authorization code
DELETE
Revokes an authorization code that has not yet been exchanged for tokens, preventing any further use.
Secure+
Access to grant and token management endpoints requires an active Secure+ subscription.
API-Keyheader
X-API-KEY<token>MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>
user_id*string
The unique identifier of the user.
code_id*string
The unique identifier of the authorization code grant.
Response
204
The authorization code was revoked successfully
Errors
401Unauthorized
403Forbidden
curl -X DELETE "https://your-domain.us.monocloud.com/api/users/WUgDGqaqzqkRmsgd3PFAT/grants/codes/HxI56Ol4FjIyUXZBJ6J24" \ -H "X-API-KEY: <token>"Empty