Revoke M2M client
const url = 'https://api.example.com/oauth/clients/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.example.com/oauth/clients/example \ --header 'Authorization: Bearer <token>'Revoke an M2M OAuth client. Admin only. New tokens cannot be generated, and existing access tokens are rejected from the next API request.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique client ID (26 alphanumeric characters).
Responses
Section titled “ Responses ”Client revoked successfully.
object
object
Example generated
{ "message": "example", "clientId": "example", "clientName": "example", "revokedAt": "2026-04-15T12:00:00Z", "revokedBy": { "userId": "example", "userName": "example" }, "note": "example"}Invalid request parameters or body.
object
Machine-readable code. Best-effort — the generic 500 path carries none.
Unique request ID for tracing.
object
Example
{ "error": "INVALID_PARAMETER", "message": "Client name must be at least 3 characters long."}Authentication required or failed.
object
Machine-readable code. Best-effort — the generic 500 path carries none.
Unique request ID for tracing.
object
Example
{ "error": "UNAUTHORIZED", "message": "Valid authentication token required."}Insufficient permissions (missing scope or Admin role).
object
Machine-readable code. Best-effort — the generic 500 path carries none.
Unique request ID for tracing.
object
Example
{ "error": "FORBIDDEN", "message": "Insufficient scope for this operation."}Resource not found.
object
Machine-readable code. Best-effort — the generic 500 path carries none.
Unique request ID for tracing.
object
Example
{ "error": "NOT_FOUND", "message": "Product not found"}Internal server error.
object
Machine-readable code. Best-effort — the generic 500 path carries none.
Unique request ID for tracing.
object
Example
{ "error": "INTERNAL_ERROR", "message": "An unexpected error occurred"}