Deactivate a developer key as an admin Run in API Explorer
Ask AI
Responses
-
The deactivate function returns a JSON representation of the deactivated API key.
-
Bad request. Please check error message and your parameters.
-
Authorization failed. Please supply a valid
DeepL-Auth-Keyvia theAuthorizationheader. -
The requested resource could not be found.
-
Internal error.
PUT
/v2/admin/developer-keys/deactivate
curl \
--request PUT 'https://api.deepl.com/v2/admin/developer-keys/deactivate' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"key_id":"ca7d5694-96eb-4263-a9a4-7f7e4211529e:20c2abcf-4c3c-4cd6-8ae8-8bd2a7d4da38"}'
Request examples
{
"key_id": "ca7d5694-96eb-4263-a9a4-7f7e4211529e:20c2abcf-4c3c-4cd6-8ae8-8bd2a7d4da38"
}
Response examples (200)
# Headers
# Payload
{
"key_id": "ca7d5694-96eb-4263-a9a4-7f7e4211529e:20c2abcf-4c3c-4cd6-8ae8-8bd2a7d4da38",
"label": "developer key prod",
"creation_time": "2025-07-08T08:15:29.362Z",
"deactivated_time": "2025-07-09T08:15:29.362Z",
"is_deactivated": true,
"usage_limits": {
"characters": 5000,
"speech_to_text_milliseconds": 3600000
}
}