Restore a workspace
Restores an archived workspace before delete_at. Its inbound numbers and its share do not come back. The plan workspace limit applies: 402 workspace_limit_reached. A workspace that is not archived is answered as it is. 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
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
The organisation of the key. Another organisation answers the hidden not_found.
A workspace of the organisation. A workspace of another organisation answers not_found.
Headers
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.
Response headers
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
Open response vocabulary. Preserve unknown values; never assume they mean success.