Update API key
API Keys
Update API Key
Update API key settings (name, scopes, rate limits, etc.)
PUT
Update API key
Updates an API key’s settings.
Permissions
User must be owner or admin.What Can Be Updated
- Name and description
- Scopes (permissions)
- Rate limits (per minute/hour)
- Allowed IP addresses
- Expiration date
Example
Security Considerations
- Changing scopes immediately affects API access
- Rate limit changes take effect on next request
- IP restrictions are enforced in real-time
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
API key name
Required string length:
3 - 50Example:
"Production API Key"
API key description
Maximum string length:
200Example:
"Used for production server"
API key scopes (permissions). Defaults to ['read:user'] if not provided
Available options:
read:user, write:user, read:organization, write:organization, read:members, write:members, read:webhooks, write:webhooks, read:api-keys, write:api-keys Example:
["read:user", "write:webhooks"]Rate limit per minute
Required range:
1 <= x <= 10000Example:
60
Rate limit per hour
Required range:
1 <= x <= 100000Example:
1000
Allowed IP addresses (CIDR notation supported)
Example:
["192.168.1.1", "10.0.0.0/24"]Expiration date
Example:
"2025-12-31T23:59:59Z"
Response
API key updated successfully