API reference · Native API (v1)
Revoke an API key
DELETE
https://api.pidgely.com/v1/api-keys/{id}Revokes a key. Returns 204 No Content.
Authorization: Bearer pdg_…. An API key with the full scope.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Resource id UUID. |
Request
curl -X DELETE 'https://api.pidgely.com/v1/api-keys/0199d7f1-3a5c-7b2e-9d4f-6e1a0c8b7d92' \
-H "Authorization: Bearer $PIDGELY_API_KEY"Response
204 No Content with an empty body.
Errors
Native routes return {"error": {"code", "message", "field", "request_id"}}. See Errors.
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key |
No Authorization: Bearer header. |
| 403 | invalid_api_key, insufficient_scope |
The key is invalid or lacks the scope. |
| 404 | not_found |
The resource does not exist in this account. |
| 422 | validation_error |
A field is missing or invalid; field names it. |
| 429 | rate_limited, daily_quota_exceeded |
Too many requests, or the quota is used up. |