Rotate the signing secret
Creates a new signing secret and returns it once. The previous secret stays valid for 24 hours (previous_secret_expires_at); in that period every attempt carries two signatures, one for each secret. A rotation during a grace period is allowed: the new secret becomes current, the current secret becomes the previous one with a fresh 24-hour grace period, and the older previous secret stops working at once, so an attempt never carries more than two signatures. Rotation is allowed on a disabled or disabled_failing endpoint. A replay of the same Idempotency-Key returns the original status (200) and body with secret null and any query of url masked as ?… (scheme, host and path kept). In a suspended workspace the answer is workspace_unavailable. Idempotency fingerprint: method, path and the original If-Match.
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
Headers
Strong ETag from the resource being changed. Draft/tool/variable/publication operations use the complete agent draft ETag; number operations use the number ETag; MCP update uses its own ETag. Never retry a stale edit by blindly using a fresh ETag. Agent identity edits use the identity ETag; knowledge-source reingest uses the source ETag. A stale revision returns 409: draft_conflict for agent, draft, variable, tool, MCP server and publication-token checks; conflict with details.reason=stale_revision for phone numbers and knowledge sources. A missing header returns 428 revision_required. Same-intent replay uses the original If-Match and returns its receipt before checking current revision.
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.
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
Strong endpoint revision, equal to the revision field. Send it as If-Match to replace, delete or rotate. It changes with url, description, events, state and the signing secret, not with delivery results.
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 endpoint with its new secret once (null on a replay).
Opaque endpoint identifier (prefix wep_). Do not parse it.
enabled: receives deliveries. disabled: a person disabled it. disabled_failing: Rasen disabled it after at least 72 hours and at least 10 failed call-event attempts with no success. Both disabled states hold pending deliveries. Open response vocabulary; treat an unknown value as not enabled.
End of the rotation grace period while the previous secret is still valid; null otherwise.
First failed call-event attempt after the last success, creation or enable; null when the last attempt succeeded.
The new signing secret, “whsec_” plus base64 of 32 random bytes. Present only in the first successful response; null on an idempotent replay. Rasen does not keep the plaintext in any receipt, log or event, so it cannot show it again.