Organization API Keys
Update Api Key
Update an API key's metadata or permissions.
🔒 The "admin-key" is protected and cannot be modified.
patch/v1/organizations/users/{user_email}/api-keys/{key_name}
Path parameters
user_emailstring required
key_namestring required
Request body
Example request
{
"scopes": [
{
"description": "Full namespace access (data + infrastructure)",
"resource_id": "ns_production",
"resource_type": "namespace"
}
],
"allowed_origins": [
"https://docs.example.com",
"https://*.example.com"
]
}Response
Successful Response
Example response
{
"created_at": "2025-01-01T00:00:00Z",
"created_by": "usr_admin",
"description": "Service account for ingestion",
"internal_id": "int_x1y2z3",
"key_hash": "2c26b46b68ffc68ff99b453c1d304134",
"key_id": "key_a1b2c3d4e5f6g7h",
"key_prefix": "sk_abc123...",
"name": "backend-service",
"organization_id": "org_demo123",
"permissions": [
"read",
"write"
],
"scopes": [],
"status": "active",
"user_id": "usr_a1b2c3d4e5f6g7h"
}Changes
Changed in 2 of the 33 revisions of this API.12
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
documentenum value to the//response property for the response statusresponse-property-enum-value-added
- ○
added the new
documentenum value to the request property///request-property-enum-value-added
- ●