Skip to main content
POST
Update API key labels
Update labels for an API key. Labels are key-value pairs that can be used for organization and filtering. Setting an empty object will remove all labels.
Labels are useful for organizing and filtering API keys. Common use cases include tagging by environment (production, staging), team, or project. You can also group usage by a label with group_by=api_key_label.<label_key> on Get Organization Usage.

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

id
string<uuid>
required

Body

application/json
labels
object
required

Key-value pairs of labels. Empty object removes all labels.

Response

Labels updated successfully

Last modified on August 4, 2026