Skip to content
RelationsAI
Try it uses test keys only. Requests go straight from your browser to https://voice-api.relationsai.com/v1 with a rai_test_ key, which never places a real call. It works once the API is enabled for your workspace (private preview: support@relationsai.com). Your key stays in this tab's memory; live keys are refused.
RelationsAI API

The workspace and API key a request is authenticated as, and what they can do.


Retrieve the workspace

GET
https://voice-api.relationsai.com/v1
/workspace
Bearer (rai_test_... or rai_live_...)

Returns the workspace your API key belongs to, the key itself (name, mode, scopes, expiry), what the workspace can do through the API (capabilities) and the limits that apply (limits).

Call this first: it is the quickest way to check that a key works, which mode it is in and which scopes it has. It needs no scope beyond the workspace:read scope every key has, and it never changes anything.

GET /v1/workspace ยท Operation ID: getWorkspace

Retrieve the workspace โ€บ Responses

The workspace, the current key, capabilities and limits.

The workspace the API key belongs to, the key itself, and what the workspace can do through the API in the key's mode. Call it first to check a key, its scopes and its limits.
id
โ€‹stringย ยทย pattern: ^ws_[A-Za-z0-9_-]{1,โ€ฆย ยทย required

Workspace id (ws_...).

object
โ€‹stringย ยทย constย ยทย required

Always workspace.

Const value: workspace
livemode
โ€‹booleanย ยทย required

true when the key is a live key, false for a test key.

name
โ€‹stringย ยทย required

Workspace name as shown in the console.

timezone
โ€‹stringย ยทย required

IANA timezone of the workspace. Calling hours (if enabled in the console) are evaluated in it.

Example: Asia/Kolkata
currency
โ€‹stringย ยทย pattern: ^[A-Z]{3}$ย ยทย required

Currency calls are charged in (ISO 4217). Open enum; today always INR.

โ€‹WorkspaceApiKeyย ยทย required

The API key this request was authenticated with. The secret itself is never returned.

โ€‹WorkspaceCapabilitiesย ยทย required

What this workspace can do through the API. A false here means the feature is not offered today, so a client can adapt instead of discovering it from errors.

โ€‹WorkspaceLimitsย ยทย required

Limits that apply to this key and workspace in the key's mode.