Skip to navigation

Create a workspace

A new workspace in the organisation. The organisation owner gets the owner row of it; no row is made for the person who made the key. When the organisation has set call-line shares, the new workspace has 0 call lines until its share is set (setOrganisationWorkspaceConcurrency). A key with selected workspaces does not get the new workspace in its list. The plan workspace limit applies: 402 workspace_limit_reached. Only an organisation key (ra_org_…) with organisation operations on; a workspace key gets 403 forbidden, and a key of another organisation gets 404 not_found. The workspace list of the key does not limit it: it covers every workspace of the organisation. Rasen-Workspace is ignored. Requires Idempotency-Key: a replay returns the first status and body with Idempotent-Replayed true, after the key is checked again (a disabled key gets 401). Two keys of the organisation that send the same operation, path, body and Idempotency-Key share one receipt.

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.

Path parameters

organisation_idstringRequired1-128 characters

The organisation of the key. Another organisation answers the hidden not_found.

Headers

Idempotency-KeystringRequired1-255 characters

Stable key per logical intent, 1–255 printable characters. Persist it before sending. Retry the same key/body after an uncertain result for 24 hours. A changed body conflicts. Beyond retention, reconcile the resource before retrying; this is not permanent deduplication. Current authorization is rechecked on replay. Evaluation order: authenticate and check current authorization; look up intent; replay its stored receipt before checking the current revision; only a new intent evaluates If-Match and executes. Fingerprint includes method, path, body and original If-Match. A changed request returns idempotency_key_reused. The server stores only a keyed (HMAC) fingerprint, and no error or response ever returns a fingerprint or hash of a request. In-flight intent returns 409 idempotency_in_progress with Retry-After; retry the same intent after reconciliation. Receipts describe that attempt, not current resource state. A replay returns the original status code and body, with the response header Idempotent-Replayed: true.

Request

This endpoint expects an object.
namestringRequired1-200 characters
website_urlstring or nullOptional<=2000 characters

https://… A bare domain gets https://.

caller_regionenumOptionalDefaults to india

Where the callers of the workspace are. A region that offers no language now is refused with caller_region_unavailable.

Allowed values:

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.
Idempotent-ReplayedstringOptional

true when this response replays a stored Idempotency-Key result. The status and body equal the original, except that a secret is null and any query of a webhook endpoint url is masked as ?… (the stored record keeps no credential).

Response

The new workspace.
idstring
slugstring
namestring
website_urlstring or null
environmentstring

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

statestring

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

data_regionstring
caller_regionstring

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

revisioninteger>=1
created_atdatetime or null
access_statestring or null

null for a workspace with full access. Open response vocabulary. Preserve unknown values; never assume they mean success.

delete_atdatetime or null

When an archived workspace is deleted; null when it is not archived.

agentsinteger or null>=0
concurrency_shareinteger or null>=0

The call lines of this workspace; null until shares are set.

peopleinteger or null>=0

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error