curl --request PUT \
--url https://api.deepl.com/v2/admin/developer-keys/label \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"key_id": "ca7d5694-96eb-4263-a9a4-7f7e4211529e:20c2abcf-4c3c-4cd6-8ae8-8bd2a7d4da38",
"label": "developer key prod"
}
'{
"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
}
}curl --request PUT \
--url https://api.deepl.com/v2/admin/developer-keys/label \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"key_id": "ca7d5694-96eb-4263-a9a4-7f7e4211529e:20c2abcf-4c3c-4cd6-8ae8-8bd2a7d4da38",
"label": "developer key prod"
}
'{
"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
}
}Authentication with Authorization header and DeepL-Auth-Key authentication scheme. Example: DeepL-Auth-Key <api-key>
The set label function returns a JSON representation of the renamed API key.
The API key.
API key ID. Consists of two valid GUIDs separated by a colon.
"ca7d5694-96eb-4263-a9a4-7f7e4211529e:20c2abcf-4c3c-4cd6-8ae8-8bd2a7d4da38"
API key label. The default value is DeepL API Key.
"developer key prod"
Timestamp when the key was created (ISO 8601 format)
"2025-07-08T08:15:29.362Z"
Timestamp when the key was deactivated (ISO 8601 format). The default value is null.
"2025-07-09T08:15:29.362Z"
Flag indicating whether the API key is deactivated. The default value is false.
true
Usage limits for the API key.
Show child attributes