Revoke API key
DELETE/v2/organizations/:orgId/api-keys/:keyId
Revoke an API key for an organization. The key stops working as soon as the call returns, and the action can't be undone.
Request
Path Parameters
orgId stringrequired
Organization ID
Example: 507f1f77bcf86cd799439011
keyId stringrequired
API Key ID (not the full key, but the keyId)
Example: key_Abc123XyZ789
Responses
- 200
- 401
- 403
- 404
- 429
- 500
API key revoked successfully
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
Whether the deletion was successful
message stringrequired
Status message
{
"success": true,
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Organization or API key not found
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Loading...