ApiKeyService
Delete API Key
Revoke an API key owned by the caller account. Revocation is permanent.
Method
DELETE
Path
/v1/auth/api-keys/{key_id}
Visibility
Authentication
Session token
MFA Requirement
DELETE
/v1/auth/api-keys/{key_id} Request
Testnet
curl --request DELETE \ \ --url 'https://api.testnet.polyester.com/v1/auth/api-keys/ak_1a3c6de8153d5a5b04cd2a6529779542' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{} key_id string
Opaque API key identifier (e.g. "ak_<hex>"). This is the stable public handle for a key.
| Key | Status | Error | When |
|---|---|---|---|
| unauthenticated | 401 | Unauthenticated | Authentication required. |
| permission-denied | 403 | Permission Denied | Permission denied. |
| invalid-argument | 400 | Invalid Argument | Invalid argument. |
| not-found | 404 | Not Found | Not found. |
| unavailable | 503 | Unavailable | Service unavailable. |