Revoke an API key
Endpoint
Section titled “Endpoint”PATCH /v1/api-keys/{id}/revoke
Authentication
Section titled “Authentication”No authentication required.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | API Key ID |
cURL Example
Section titled “cURL Example”curl -X PATCH "https://api.sapiom.ai/v1/api-keys/:id/revoke" \ -H "Authorization: Bearer YOUR_API_KEY"Response
Section titled “Response”{}Error Responses
Section titled “Error Responses”| Status | Code | Description |
|---|---|---|
| 400 | - | Invalid request data |
| 401 | - | Unauthorized - invalid or missing JWT token |
| 403 | - | Forbidden - insufficient permissions |
| 404 | - | API key not found |
See Error Codes for full reference.