Revoke an authorization code

View as Markdown
DELETE
/users/{user_id}/grants/codes/{code_id}

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.

Authorization

API-Key
headerX-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>

Path Parameters

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
© 2026 MonoCloud. All rights reserved.