API Keys
Workspace API keys. Keys are stored hashed; the secret is shown once.
Verify the current credential
/auth/verifyReturns the workspace, permission and scopes of the API key or OAuth token used.
Try it with MCPAsk your agent to call verify-credential (toolset api_keys)Set up MCP
Returns object
objectstringcredential
typestringapi_keyoauthsession
workspaceobjectShow 2 child attributes
idstringnamestringpermissionstringfullread
scopesarray of stringapi_key_idstring | nullclient_idstring | nulluser_idstring | nullprofile_idsarray of string | nullResponses
{
"object": "credential",
"type": "api_key",
"workspace": {
"id": "string",
"name": "string"
},
"permission": "full",
"scopes": [
"string"
],
"api_key_id": "string",
"client_id": "string",
"user_id": "string",
"profile_ids": [
"string"
]
}List API keys
/api-keysTry it with MCPAsk your agent to call list-api-keys (toolset api_keys)Set up MCP
Query parameters
pageintegerdefault: 1Page number
≥ 1
limitintegerdefault: 20Items per page (max 100)
1–100
sortstringcreated_atlast_used_atname
orderstringascdesc
matchstringCombine filters with AND (default) or OR
allor
namestringReturns object
objectstringrequiredlist
dataarray of objectrequiredShow 10 item attributes
objectstringapi_key
idstringnamestringpermissionstringfullread
profile_idsarray of string | nullprefixstringNon-secret display prefix, e.g. sk_live_abcd
keystringThe secret. Only returned on create and regenerate; store it safely.
last_used_atstring (date-time) | nullexpires_atstring (date-time) | nullcreated_atstring (date-time) | nullpageintegerrequiredlimitintegerrequiredtotalinteger | nullhas_morebooleanrequirednext_page_urlstring | nullprevious_page_urlstring | nullResponses
{
"object": "list",
"data": [
{
"object": "api_key",
"id": "string",
"name": "string",
"permission": "full",
"profile_ids": [
"string"
],
"prefix": "string",
"key": "string",
"last_used_at": "2026-10-13T09:00:00.000Z",
"expires_at": "2026-10-13T09:00:00.000Z",
"created_at": "2026-10-13T09:00:00.000Z"
}
],
"page": 1,
"limit": 1,
"total": 1,
"has_more": true,
"next_page_url": "https://example.com",
"previous_page_url": "https://example.com"
}Create an API key
/api-keysThe response contains the secret key. It is never shown again.
Try it with MCPAsk your agent to call create-api-key (toolset api_keys)Set up MCP
Headers
Idempotency-KeystringUnique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.
≤ 255 characters
Body object
namestringrequired1–100 characters
permissionstringdefault: "full"fullread
profile_idsarray of string | nullRestrict the key to these profiles (null = all)
≤ 500 items
expires_atstring (date-time) | nullexpires_in_daysintegerAlternative to expires_at
1–3650
Returns object
objectstringapi_key
idstringnamestringpermissionstringfullread
profile_idsarray of string | nullprefixstringNon-secret display prefix, e.g. sk_live_abcd
keystringThe secret. Only returned on create and regenerate; store it safely.
last_used_atstring (date-time) | nullexpires_atstring (date-time) | nullcreated_atstring (date-time) | nullResponses
{
"object": "api_key",
"id": "string",
"name": "string",
"permission": "full",
"profile_ids": [
"string"
],
"prefix": "string",
"key": "string",
"last_used_at": "2026-10-13T09:00:00.000Z",
"expires_at": "2026-10-13T09:00:00.000Z",
"created_at": "2026-10-13T09:00:00.000Z"
}Get an API key
/api-keys/{id}Try it with MCPAsk your agent to call get-api-key (toolset api_keys)Set up MCP
Path parameters
idstringrequiredapiKey id (key_…)
1–80 characters
Returns object
objectstringapi_key
idstringnamestringpermissionstringfullread
profile_idsarray of string | nullprefixstringNon-secret display prefix, e.g. sk_live_abcd
keystringThe secret. Only returned on create and regenerate; store it safely.
last_used_atstring (date-time) | nullexpires_atstring (date-time) | nullcreated_atstring (date-time) | nullResponses
{
"object": "api_key",
"id": "string",
"name": "string",
"permission": "full",
"profile_ids": [
"string"
],
"prefix": "string",
"key": "string",
"last_used_at": "2026-10-13T09:00:00.000Z",
"expires_at": "2026-10-13T09:00:00.000Z",
"created_at": "2026-10-13T09:00:00.000Z"
}Update an API key
/api-keys/{id}Try it with MCPAsk your agent to call update-api-key (toolset api_keys)Set up MCP
Path parameters
idstringrequiredapiKey id (key_…)
1–80 characters
Body object
namestring1–100 characters
permissionstringfullread
profile_idsarray of string | nullRestrict the key to these profiles (null = all)
≤ 500 items
expires_atstring (date-time) | nullReturns object
objectstringapi_key
idstringnamestringpermissionstringfullread
profile_idsarray of string | nullprefixstringNon-secret display prefix, e.g. sk_live_abcd
keystringThe secret. Only returned on create and regenerate; store it safely.
last_used_atstring (date-time) | nullexpires_atstring (date-time) | nullcreated_atstring (date-time) | nullResponses
{
"object": "api_key",
"id": "string",
"name": "string",
"permission": "full",
"profile_ids": [
"string"
],
"prefix": "string",
"key": "string",
"last_used_at": "2026-10-13T09:00:00.000Z",
"expires_at": "2026-10-13T09:00:00.000Z",
"created_at": "2026-10-13T09:00:00.000Z"
}Delete an API key
/api-keys/{id}Revokes the key immediately.
Try it with MCPAsk your agent to call delete-api-key (toolset api_keys)Set up MCP
Path parameters
idstringrequiredapiKey id (key_…)
1–80 characters
Returns object
objectstringrequiredapi_key
idstringrequireddeletedbooleanrequiredResponses
{
"object": "api_key",
"id": "string",
"deleted": true
}Regenerate an API key
/api-keys/{id}/regenerateIssues a new secret for the same key; the old secret stops working.
Try it with MCPAsk your agent to call regenerate-api-key (toolset api_keys)Set up MCP
Path parameters
idstringrequiredapiKey id (key_…)
1–80 characters
Returns object
objectstringapi_key
idstringnamestringpermissionstringfullread
profile_idsarray of string | nullprefixstringNon-secret display prefix, e.g. sk_live_abcd
keystringThe secret. Only returned on create and regenerate; store it safely.
last_used_atstring (date-time) | nullexpires_atstring (date-time) | nullcreated_atstring (date-time) | nullResponses
{
"object": "api_key",
"id": "string",
"name": "string",
"permission": "full",
"profile_ids": [
"string"
],
"prefix": "string",
"key": "string",
"last_used_at": "2026-10-13T09:00:00.000Z",
"expires_at": "2026-10-13T09:00:00.000Z",
"created_at": "2026-10-13T09:00:00.000Z"
}