Skip to navigation

Check API key access

Harmless read of the workspace bound to this credential. Creator identity is audit data only and does not control key validity. A workspace key ignores the workspace headers and cannot switch tenants; an organisation key names the workspace in Rasen-Workspace. Allowlisting governs session-only key management; it does not control key validity. Any valid key can call it; it needs no capability.

Authentication

AuthorizationBearer

An organisation-owned key whose secret starts ra_org_. The Owner or an Admin of an organisation that Rasen has invited makes it in the app; no API operation makes, changes, rotates or revokes a key. On a workspace operation send the workspace ID in the Rasen-Workspace header; without it the answer is 400 invalid_request with details.field Rasen-Workspace. A workspace outside the organisation or outside the key’s workspace list is 404 not_found. An organisation that is not invited gets 403 organisation_api_not_enabled.

Headers

Rasen-WorkspacestringRequired

The ID of the workspace that this operation acts in. It must be a workspace of the key’s organisation and in the key’s workspace list. A missing, empty or malformed value is 400 invalid_request with details.field Rasen-Workspace; a workspace outside the organisation or the key’s workspace list is the hidden 404 not_found.

Response headers

X-Request-IdstringOptional
Safe server request correlation ID.
RateLimit-LimitintegerOptional
Requests allowed in the current window for the tightest applicable limit.
RateLimit-RemainingintegerOptional
Requests left in the current window.
RateLimit-ResetintegerOptional
Seconds until the current window resets.

Response

Check API key access.
workspace_idstring<=128 characters
Opaque ws identifier. Do not parse its contents.
key_idstring<=128 characters
Opaque key identifier. Do not parse its contents.
creator_idstring or null<=128 characters

Audit identity of the member who created the key; null when that user no longer exists. This identity does not control key validity. Opaque usr identifier; do not parse its contents.

capabilitieslist of strings

The capabilities this key has now; they can change when the key permissions change. A request that needs a capability the key lacks returns 403 forbidden. Each operation lists the capabilities it needs in x-capability (an empty list means any valid key) and any extra capability that depends on the request in x-capability-conditional. Clients must accept values they do not know.

api_versionstring
workspace_statestring

Open response vocabulary. Preserve unknown values; never assume they mean success.

caller_regionstring

Where the callers of the workspace are: the region whose call hosts and model servers run its new calls. It is not data residency; recordings and transcripts stay where the workspace stores them. Set when the workspace is created and changed in the workspace settings of the product by a person who can edit the workspace; a change affects new calls only. Open response vocabulary. Preserve unknown values.

key_namestring
expires_atdatetime or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error