Request
This endpoint does not require a Bearer token. After deletion, the key will no longer appear in the active-key list.
Path Parameters
The ID of the API key to deactivate.
Query Parameters
The user ID that owns the key.
Response
Whether the key was deactivated successfully.
Example
from poly_storage_sdk import PolyStorageClient
client = PolyStorageClient()
deleted = client.api_keys.delete(key_id="YOUR_KEY_ID", user_id="YOUR_USER_ID")
print(deleted)
Example response
{
"success": true,
"message": "API key deactivated successfully"
}