ApiKeyService
Delete Assistant Keys
Revoke every Polyester AI assistant key the caller set up. Needs no step-up proof.
Method
DELETE
Path
/v1/auth/assistant-keys
Visibility
Authentication
Session token
MFA Requirement
Not required
DELETE
/v1/auth/assistant-keys Request
Testnet
curl --request DELETE \ \ --url 'https://api.testnet.polyester.com/v1/auth/assistant-keys' \ --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
{
"revokedKeyIds": [
"ak_1a3c6de8153d5a5b04cd2a6529779542"
]
} revokedKeyIds string[]
Opaque identifiers of the keys revoked by this request. Empty when the set was already empty.
Example
["ak_1a3c6de8153d5a5b04cd2a6529779542"]| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |