API Keys
Rename API Key
Update the display name of an existing API key without changing its secret value or capabilities.
PATCH
Rename an API key
Updates the display name of an existing API key. The secret value is not regenerated and the key’s permissions are unchanged, only the human-readable label is updated. Use this when teams, environments, or downstream services are renamed and you want the key list to keep showing the right context at a glance.
When to use this
API keys are typically named for the system or environment that owns them (for exampleProduction Server, Staging Worker, Acme CRM Integration). Rename a key when:
- A consumer service is renamed and the existing label no longer matches.
- Ownership moves between teams and the new owner needs the key list to reflect the handover.
- A key was created with a placeholder name (
temp,test) and should be relabelled before going to production.
Behavior
- The
idand secret value are unchanged. - The
last_used_attimestamp is unaffected. - The key remains active throughout the rename.
Path parameters
| Parameter | Description |
|---|---|
id | The API key ID, for example abcgvvzzlrbnqy. |
Body parameters
| Field | Description |
|---|---|
name | The new display name. Keep it descriptive and unique within the workspace. |
Errors
404 Not Foundis returned when the API key does not exist or has been revoked.400 Bad Requestis returned when thenamefield is missing or empty.
Request
Response
Related endpoints
- List API Keys: confirm the renamed key in your portfolio.
- Create API Key: issue a new key when you need to rotate the secret.
- Revoke API Key: permanently retire a key.
Authorizations
Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Body
application/json
Example:
"Staging Environment"
Rename an API key