Skip to main content

Delete API Key

Delete an API key. Users can only delete their own API keys.
path
integer
required
API key ID
curl -X DELETE "https://api.example.com/api/v1/api_keys/1" \
  -H "X-API-Key: your-api-key-here"

Response

status
object
Response status information
code
integer
HTTP status code (200)
message
string
Status message
{
  "status": {
    "code": 200,
    "message": "API key deleted successfully"
  }
}

Error Responses

401
object
Unauthorized - Invalid or missing authentication
404
object
API key not found