Workspace account
POST /v1/me/api-keys
Create a new API key for the authenticated tenant.
Family: Workspace account · Operation ID: createTenantApiKey
Access
Workspace API key: Authorization: Bearer <key>. The key is scoped to its workspace; the backend checks operation permissions and quota.
Required scope: admin
Create a key in Developer settings. Set API_BASE_URL to the current app origin.
Request example
curl --fail-with-body -X POST "$API_BASE_URL/v1/me/api-keys" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonRequest body · application/json
{
"$ref": "#/components/schemas/CreateApiKeyRequest",
"definition": {
"properties": {
"expires_at": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"scopes": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
}
}Responses
201
{
"description": "API key created"
}default
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorEnvelope"
}
}
},
"description": "Request error"
}