API reference
The Sess API. Your agent creates a Session, a person answers on the Sess link, your agent reads the typed answer and keeps the signed receipt. Owner routes need an API key; trial routes take the trial key; health, version, the receipt check routes, the receipt keys and this document are public.
On this page
- Base URL
https://api.sess.si- Contract
- Sess owner API, version
0.1.0, OpenAPI3.1.0 - Contract SHA-256
ea4ec76a894f0dec01e78639f08b05fb25c1603f41b6dc938d84da75f1f93e87
This page and the running API share one OpenAPI document, served at https://api.sess.si/openapi.json. Only implemented operations are listed.
Operations
- POST
/v1/sessions - GET
/v1/sessions/{id} - PATCH
/v1/sessions/{id} - POST
/v1/sessions/{id}/complete - GET
/v1/sessions/{id}/surfaces/{revision} - GET
/v1/sessions/{id}/events - GET
/v1/sessions/{id}/events/{event_id}/bundle - POST
/v1/receipts/verify - POST
/v1/receipts/verify-authenticity - POST
/v1/receipts/verify-archival - POST
/v1/receipts/verify-closing - GET
/v1/evidence - POST
/v1/evidence/export - GET
/v1/evidence/records/{event_id} - GET
/v1/evidence/records/{event_id}/pdf - GET
/.well-known/sess-receipt-keys.json - GET
/.well-known/sess-renderer-identities.json - GET
/.well-known/sess-witness-keys.json - GET
/v1/webhook - PUT
/v1/webhook - POST
/v1/webhook/verify - POST
/v1/webhook/secrets/rotate - GET
/v1/sessions/{id}/deliveries - POST
/v1/sessions/{id}/events/{event_id}/redeliver - POST
/v1/trial/asks - GET
/v1/trial/asks/{id} - POST
/v1/trial/sessions - GET
/v1/trial/sessions/{id} - POST
/v1/asks - GET
/v1/asks/{id} - PATCH
/v1/asks/{id} - POST
/v1/asks/{id}/close - GET
/v1/asks/{id}/deliveries - POST
/v1/asks/{id}/events/{event_id}/redeliver - POST
/s/{token} - POST
/s/{token}/extend - POST
/s/{token}/keep/challenge - POST
/s/{token}/keep - POST
/s/{token}/claim - GET
/s/{token}/status - GET
/v1/account/usage - POST
/v1/account/billing/checkout - POST
/v1/billing/provider-events - GET
/v1/targets - POST
/v1/targets - GET
/v1/targets/{id} - PATCH
/v1/targets/{id} - PATCH
/v1/targets/{id}/sharing - POST
/v1/targets/{id}/verify - POST
/v1/targets/{id}/grants - POST
/v1/targets/{id}/grants/{grant_id}/revoke - POST
/v1/invocations - GET
/v1/invocations/{id} - POST
/v1/invocations/{id}/cancel - POST
/v1/invocations/{id}/result - GET
/ - GET
/openapi.json - GET
/health/live - GET
/health/ready - GET
/version - GET
/.well-known/oauth-protected-resource - GET
/.well-known/oauth-protected-resource/mcp - GET
/.well-known/oauth-authorization-server - GET
/app/oauth/authorize - POST
/app/oauth/authorize - POST
/oauth/token - POST
/oauth/register - POST
/oauth/revoke - GET
/app/hosts - GET
/app/hosts/{id}/revoke - POST
/app/hosts/{id}/revoke - POST
/personal/sign-in - POST
/personal/sign-in/resend - POST
/personal/sign-in/code - POST
/personal/sign-in/link - GET
/personal/session - POST
/personal/sign-out - POST
/personal/sign-out/everywhere - POST
/personal/close - POST
/personal/save/destination - POST
/personal/save/redeem - POST
/personal/save/direct - GET
/personal/copies - POST
/personal/copies/query - POST
/personal/copies/open - POST
/personal/copies/label - POST
/personal/copies/download-many - POST
/personal/copies/remove-many - POST
/personal/copies/download - POST
/personal/copies/remove - POST
/v1/auth/email-link - GET
/app/sign-in - GET
/app/confirm/{token} - POST
/app/confirm/{token} - POST
/app/sign-in/code - POST
/app/devices/{id}/revoke - GET
/app/account/close - POST
/app/account/close - GET
/app/account/closed - POST
/app/sign-in/github - GET
/app/sign-in/github/callback - POST
/app/sign-in/github/callback - POST
/app/github/link - POST
/app/github/unlink - GET
/app/keys - POST
/app/keys - GET
/app/keys/{id}/revoke - POST
/app/keys/{id}/revoke - GET
/app/usage - POST
/app/billing/plan - POST
/app/billing/portal - POST
/app/trials/claim - GET
/app/evidence - GET
/app/sessions - GET
/app/sessions/{id} - POST
/app/evidence/export - GET
/app/evidence/{event_id} - GET
/app/evidence/{event_id}/receipt.json - GET
/app/evidence/{event_id}/verify - POST
/app/evidence/{event_id}/verify - GET
/app/evidence/records/{event_id}/pdf
POST /v1/sessions
Creates a Session and returns the Sess link to send to the person.
Request body (required)
Content type application/json: CreateSessionRequest
no additional properties
-
interactionobject required-
modestring required"display"or"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 4000 when
modeis"display"; max length 200 whenmodeis"interactive" -
sourceobject requiredShow propertiesHide properties
-
kindstring required"data"or"sess_surface" -
dataobject requiredmap of string to string or number or boolean or null or map of string to string or number or boolean or null or array of map of string to string or number or boolean or null
Only when
kindis"data".min properties 1
-
componentsarray of object requiredThe page's content, in order. How your page looks.
Only when
kindis"sess_surface".min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
Only when
modeis"interactive".max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
Only when
modeis"interactive".no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
actionsarray of object requiredOnly when
modeis"interactive".min items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
Only when
modeis"interactive".
-
Responses
201- Session created at revision 1.
- Body CreateSessionResponse
- Headers
ETag,Location,Sess-Workspace-Id 400- The body is not valid: it does not match the schema, uses an unknown component or an unsupported field rule, sets the link lifetime out of range (the message names the allowed range), or sends an idempotency key (
INVALID_SCHEMAorUNKNOWN_COMPONENT). - Body Error
401- The API key is missing, wrong, revoked or expired; with no key at all, the message also points to the no-signup trial (
UNAUTHORIZED). - Body Error
409- The agent run named by
invocation_idhas ended or expired, so nothing is created (INVOCATION_TERMINAL). - Body Error
422- Your workspace has no run with that
invocation_id, so nothing is created (VALIDATION_FAILED, reasonunknown_invocation). - Body Error
429- The plan’s monthly allowance or its limit on active Sessions is reached, so nothing is created; Sessions already created carry on, and the message says which limit, when it resets and where to change plan (
PLAN_LIMIT_REACHED). - Body Error
- Headers
Retry-After
What it does
- A display Session shows the person information.
- An interactive Session asks the person to answer, with the components you send.
- Sess refuses a component it does not know, and a field rule outside the supported subset.
- The person opens the Sess link on any device; your agent reads the typed answer with this Session’s ID.
- Sess deletes the Session’s content and answers after a retention period, and cancels webhook deliveries still waiting; a webhook already delivered is not recalled. The signed receipt stays and keeps verifying: receipts are kept without automatic expiry on every plan.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
-
expires_inintegerAdvanced. How long the Sess link stays open, in seconds from creation: at least 30 and at most the plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000). Absent: the plan’s lifetime. Expiry and revocation.
-
invocation_idstringAdvanced. The invocation_id of the run your registered agent received, when this Session serves that run. Sess then records the agent and its version with every receipt it keeps for this Session. How it works.
inv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$
- Retention. The Sess link stays open 720 hours (30 days) after creation with the deployment owner key, and 168 hours (7 days) with a developer API key on the free plan.
- The Session’s content and accepted results are deleted 720 hours (owner key) or 168 hours (developer API key) after the earlier of its completion and the end of its link; after that every owner route answers that the Session is not found.
- The signed receipts of its accepted answers are kept and keep verifying.
expires_insets a shorter link, in seconds from creation: at least 30, at most the plan’s link lifetime.- Retention then also ends sooner, because it counts from the earlier of completion and the end of the link.
- When the deployment enables link extensions, the person can extend an interactive link of 72,000 seconds (20 hours) or less up to ten times, never past a fixed horizon, which reading the Session returns as
action_expires_horizon; the link then ends at that horizon, or at its deadline once no extension is left. - The response’s
action_expires_atis the stored deadline, the same value reading the Session returns. invocation_idties the Session to the run of your registered agent that it serves; each receipt it issues then names that agent and its version in its signed archival core.- The run must be in your workspace and still open; a run of another workspace is answered as an unknown one.
- An
Idempotency-Keyheader is refused, because the Sess link is stored only as a hash and cannot be sent again. - A display Session is
modedisplaywith adatasource; an interactive Session ismodeinteractivewith asess_surfacesource and its components. - Plan limits apply to developer workspaces.
- The monthly allowance is reached when the period’s resolved Sessions plus the admitted Sessions that can still resolve reach it (reason
monthly_allowance); the active limit when the plan’s active Sessions are all live (reasonactive_sessions). - Sessions already admitted keep their answers, completion and result delivery.
- GET /v1/account/usage has the numbers.
- With no
Authorizationheader, the refusal’s message names the no-signup trial, POST /v1/trial/sessions; a wrong, revoked or expired key keeps the generic message. - Operation ID
createSession
GET /v1/sessions/{id}
Reads a Session: its status, its current revision and every answer it accepted.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
Responses
200- The current revision of the Session.
- Body SessionResponse or InteractiveSessionResponse
- Headers
ETag,Sess-Workspace-Id
What it does
- Each answer names the revision it was given on.
- Reading the same unchanged Session twice gives the same bytes.
- Every Session carries its Sess link’s deadline; reading never extends it.
- A developer API key can also read, and only read, the Sessions of trials its account claimed, each until its result is no longer available.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- An interactive Session returns
status, the current revision, itsresponse_schemaand every accepted response bound to its revision. action_expires_atis the stored deadline.link_stateislive,lapsedorexpiredat the time of the read;action_expires_horizonandextensions_useddescribe extensions.- When the deployment enables link extensions, the person may extend an interactive link of 20 hours or less up to ten times, never past the fixed horizon.
extensionslists every accepted extension in order: the old and new deadline, whether it was lapsed, and when; never an answer value.- The
ETagis the concurrency token for owner changes (the revision and the Event sequence), not a cache validator: it does not change with link timing. - A claimed trial’s Session is readable until its
result_available_until. - Operation ID
getSession
PATCH /v1/sessions/{id}
Asks the person a follow-up question on the same Sess link.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
If-Match | header | string | yes | The ETag from your latest read of the Session, such as "2.3". It is required: without it, or with *, the request is refused. A weak tag (W/"…") never matches, and an out-of-date one is refused as a conflict. |
Idempotency-Key | header | string | no | Makes a retry safe. The key belongs to your credential, the operation and the Session: the same request (body and If-Match) returns the first result (status, ETag and body), and a different request with the same key is refused. Only successful results are kept. |
Request body (required)
Content type application/json: PatchSessionRequest
no additional properties
-
interactionobject requiredno additional properties
-
modestring required"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 200
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredThe page's content, in order. How your page looks.
min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
actionsarray of object requiredmin items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
-
Responses
400- The body is not valid or uses an unknown component (
INVALID_SCHEMAorUNKNOWN_COMPONENT). - Body Error
409- The Session is completed, is a display Session, or the idempotency key was used for a different request (
SESSION_COMPLETED,ACTION_NOT_ALLOWEDorIDEMPOTENCY_CONFLICT). The Session already has 64 accepted rounds, the most one Session can hold (SESSION_ROUND_LIMIT, withlimit); start a new Session. - Body Error
428- The request must say which version of the Session it changes (
PRECONDITION_REQUIRED). - Body Error
What it does
It publishes the next revision of an interactive Session, whether the person answered or not; an unanswered revision is replaced. The Session is open again with the same ID and link, and an answer to an older revision is then refused.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The Session may be
respondedoractive, and returns toactive. - Every revision is immutable.
- A recurring service opens a new Session for each visit or each piece of work.
- Operation ID
publishRevision
POST /v1/sessions/{id}/complete
Completes an interactive Session.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
If-Match | header | string | yes | The ETag from your latest read of the Session, such as "2.3". It is required: without it, or with *, the request is refused. A weak tag (W/"…") never matches, and an out-of-date one is refused as a conflict. |
Idempotency-Key | header | string | no | Makes a retry safe. The key belongs to your credential, the operation and the Session: the same request (body and If-Match) returns the first result (status, ETag and body), and a different request with the same key is refused. Only successful results are kept. |
Responses
409- The Session is already completed (
SESSION_COMPLETED); has already ended (SESSION_ENDED, with its terminal cause inreason:final_expirywhen its link expired for good,revokedwhen the close of its Ask ended it); or is a display Session (ACTION_NOT_ALLOWED). The idempotency key was used for a different request (IDEMPOTENCY_CONFLICT). - Body Error
428- The request must say which version of the Session it changes (
PRECONDITION_REQUIRED). - Body Error
What it does
A completed Session accepts no more answers or revisions, and this cannot be undone. Send no body.
Operation ID completeSession
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
GET /v1/sessions/{id}/surfaces/{revision}
Reads one revision of a Session exactly as it was stored.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
revision | path | string | yes | The revision number, from 1. |
Responses
404- Your workspace has no such Session, or it has no such revision (
SESSION_NOT_FOUNDorNOT_FOUND). - Body Error
What it does
You get what the person saw and, for an interactive Session, the schema their answers to that revision were checked against. A revision never changes.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
getSurfaceRevision
GET /v1/sessions/{id}/events
Lists everything that happened in a Session, in order.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
Responses
What it does
- Each accepted answer, with the revision it was given on, the action chosen and the typed data.
- Each published revision, and the completion.
- Events never change, and every accepted answer stays listed after later revisions and completion.
- Where link extensions are on, every accepted extension of the Sess link is listed beside the events, never with an answer value.
- Once the Session has ended with at least one accepted answer, its closing receipt comes with the events.
- A display Session has no events.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- Answers are
response.acceptedbylink_holder, with the revision,action_idand the data;revision.publishedandsession.completedare byowner. - Event IDs and sequence numbers never change.
- The list is not paginated: a Session has a few Events per round.
link_extensionslists each extension’s old and new deadline, whether it was asked for after the deadline, and when.closingis the closing receipt (typsess-closing-receipt+jwt) with the cause and count it signs: never an Event and never a receipt for one answer, and webhooks do not carry it.- Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
listSessionEvents
GET /v1/sessions/{id}/events/{event_id}/bundle
Exports one accepted answer as a bundle anyone can verify.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
404- Your workspace has no such Session, or it has no such accepted answer with a receipt, or its content was deleted (
SESSION_NOT_FOUNDorNOT_FOUND). - Body Error
409- The receipt is restricted, so nothing is disclosed until it is unrestricted (
EVIDENCE_RESTRICTED). - Body Error
503- Receipts are not set up here, or the service has just started and is not ready yet (
SERVICE_UNAVAILABLE). - Body Error
What it does
- The bundle holds the receipt exactly as issued, everything the person saw on that revision, the answer, and the current public receipt keys.
- It never holds a private key, an owner credential or the Sess link.
- Anyone with the bundle can verify it, with the verify API or offline with trusted keys, so share it only with whom you mean to show the decision.
- Reading changes nothing, apart from recording when the API key was last used.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The format is bundle-v1, with the complete normalized Surface of the revision.
- Online verification is POST /v1/receipts/verify.
- A restricted receipt discloses nothing until it is unrestricted; a deleted one leaves only its tombstone.
- Responses are sent with
Cache-Control: no-store, no-transformandReferrer-Policy: no-referrer. - Operation ID
exportDecisionBundle
POST /v1/receipts/verify
Checks a bundle against this server’s own receipt keys. No credential needed.
Request body (required)
Content type application/json: DecisionBundle
no additional properties
-
typestring required"sess.decision-bundle" -
versionnumber required1or22 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).
-
receiptstring requiredThe receipt compact JWS exactly as issued: receipt v2 in bundle-v2, receipt v1 in bundle-v1.
max length 32768
Three parts of letters, digits, hyphens or underscores, joined by dots; the last may be empty.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*$ -
revision_envelopeobjectbundle-v2 only: the revision envelope the receipt v2 commits to (missing or other:
revision).no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
Show propertiesHide properties
-
noncestring required16 random bytes drawn when the revision was published (base64url).
22 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{22}$ -
grant_titlestring or null required -
target_titlestring or null required -
owner_namestring or null required
-
-
-
contentobject requiredno additional properties
Show propertiesHide properties
-
surfaceobject requiredThe complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).
-
inputobject requiredThe complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).
-
-
keysobject requiredno additional properties
Show propertiesHide properties
-
keysarray of object requiredThe issuer's public verification keys when the bundle was exported. Disclosed for convenience only: verifiers use keys they trust, never these.
max items 16
Show propertiesHide properties
no additional properties
-
ktystring required"OKP" -
crvstring required"Ed25519" -
xstring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
kidstring required1 to 64 letters, digits, dots, hyphens or underscores.
Details
^[A-Za-z0-9._-]{1,64}$ -
algstring"EdDSA" -
usestring"sig"
-
-
Responses
What it does
- It checks the receipt, then that what the person saw and answered matches the receipt.
- It uses only this server’s issuer and published keys, never keys in the bundle, at the current time.
- It looks nothing up and stores nothing.
- The context the bundle declares is checked only against itself, so check the event, Session and workspace you expect in your own application.
- A valid result means the issuer accepted this answer from someone holding the Sess link. It never names a person or proves that anything was done.
- An invalid bundle is still a 200 result, with the reason.
Authentication
None. Anyone can call it.
Advanced
- The receipt is checked by the receipt-v1 rules, and the disclosed Surface and input against the receipt’s hashes;
contextandapplication_purposeare thereforeunchecked, and an invalid bundle hasvalid: false. - The body is JSON, at most 2097152 bytes, and the canonical bundle at most 1 MiB (reason
oversized). - Requests are rate limited per client and in total.
- An absolute 2-second deadline runs from the request’s arrival, receiving the body included; a request not answered by then gets the unavailable answer with
Connection: close, and the connection is closed. - Responses are sent with
Cache-Control: no-store, no-transformandReferrer-Policy: no-referrer, with CORS only for the product site’s origins. - Never send a bundle or a receipt in an address.
- A Sess receipt code keeps its proof after the #.
- Browsers do not include that part in ordinary web requests; Sess Verify reads it on your device and does not send it.
- Operation ID
verifyDecisionBundle
POST /v1/receipts/verify-authenticity
Checks whether a bundle is genuine, judged when its receipt was signed. No credential needed.
Request body (required)
Content type application/json: DecisionBundle
no additional properties
-
typestring required"sess.decision-bundle" -
versionnumber required1or22 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).
-
receiptstring requiredThe receipt compact JWS exactly as issued: receipt v2 in bundle-v2, receipt v1 in bundle-v1.
max length 32768
Three parts of letters, digits, hyphens or underscores, joined by dots; the last may be empty.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*$ -
revision_envelopeobjectbundle-v2 only: the revision envelope the receipt v2 commits to (missing or other:
revision).no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
Show propertiesHide properties
-
noncestring required16 random bytes drawn when the revision was published (base64url).
22 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{22}$ -
grant_titlestring or null required -
target_titlestring or null required -
owner_namestring or null required
-
-
-
contentobject requiredno additional properties
Show propertiesHide properties
-
surfaceobject requiredThe complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).
-
inputobject requiredThe complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).
-
-
keysobject requiredno additional properties
Show propertiesHide properties
-
keysarray of object requiredThe issuer's public verification keys when the bundle was exported. Disclosed for convenience only: verifiers use keys they trust, never these.
max items 16
Show propertiesHide properties
no additional properties
-
ktystring required"OKP" -
crvstring required"Ed25519" -
xstring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
kidstring required1 to 64 letters, digits, dots, hyphens or underscores.
Details
^[A-Za-z0-9._-]{1,64}$ -
algstring"EdDSA" -
usestring"sig"
-
-
Responses
What it does
- To ask whether an app may act on a receipt now, use POST /v1/receipts/verify. To ask whether the record is genuine, before or after its expiry, use POST /v1/receipts/verify-authenticity.
- It makes every check the bundle check makes: the signature, the key, the issuer, the questions and answers, and the context. Each is judged at the moment Sess signed the receipt, so a receipt past its expiry still checks as genuine.
- Whether an app may still act on the receipt is reported beside the result, and never changes it.
- The signing time is Sess’s own record of the time. A bundle carries no public timestamp.
- It looks nothing up and stores nothing. An invalid bundle is still a 200 result, with the reason.
Authentication
None. Anyone can call it.
Advanced
- The result is the bundle check’s, plus
check(authenticity_at_signing),judged_at(the receipt’s signediat),live_eligibility(itsexp, and whether that has passed) andsigning_time(answered_at, withpublic_timestamp_verifiedalways false); the last two are null unless the result is valid. checked_atis when the check ran.- The reason is never
expired. - A receipt whose
iatis more than 60 seconds after the check is refused asnot_yet_valid, after its signature verified. - The body is JSON, at most 2097152 bytes, and the canonical bundle at most 1 MiB (reason
oversized). - It shares the bundle check’s rate limits per client and in total, and its absolute 2-second deadline from arrival, after which the connection is closed with
Connection: close. - Responses are sent with
Cache-Control: no-store, no-transformandReferrer-Policy: no-referrer, with CORS only for the product site’s origins. - Never send a bundle or a receipt in an address.
- Operation ID
verifyReceiptAuthenticity
POST /v1/receipts/verify-archival
Checks a receipt’s archival envelope, or a person’s archival envelope from a kept file, against this server’s own keys and settings. No credential needed.
Request body (required)
Content type application/json: ArchivalEnvelope or ArchivalPersonEnvelope
Type: ArchivalEnvelope or ArchivalPersonEnvelope
Responses
What it does
- Nothing in the request is trusted.
- It reports each part of the check on its own: signature, contents, context, witness, key trust and live expiry, with the same statuses and reasons as the SDK’s archival verifier, and how to present them.
- The envelope carries no content, so contents are reported as unverifiable; to check content, verify a bundle instead.
- It looks nothing up and stores nothing, and a malformed or oversized envelope is still a 200 result.
Authentication
None. Anyone can call it.
Advanced
- A person’s envelope is checked as what its
typesays, with reasonsprojection_signatureandprojection_receipt_mismatch, and the dimensions aresignature,contents,context,witness,key_trustandlive_expiry. - It uses the successor archival verifier with this server’s published receipt keys, its receipt issuer as the expected context issuer, its published witness key set (/.well-known/sess-witness-keys.json) and, when set up, its TUF-verified witness trusted root.
contentsiscontent_unavailable, andcontextis at most incomplete (application_context_unchecked).- Without a witness trusted root, attached evidence is indeterminate (
witness_trust_unavailable). - The SDK verifier is
@sess.si/sdk/archival; the bundle check is POST /v1/receipts/verify and is unchanged. - The body is JSON, at most 2097152 bytes, and the envelope at most 65,536 bytes (reason
oversized). - It shares the bundle check’s rate limits per client and in total, and its absolute 2-second deadline from arrival, after which the connection is closed with
Connection: close. - Responses are sent with
Cache-Control: no-store, no-transformandReferrer-Policy: no-referrer, with CORS only for the product site’s origins. - Never put an envelope or a receipt in an address.
- Operation ID
verifyArchivalEnvelope
POST /v1/receipts/verify-closing
Checks a kept file’s closing receipt and its round receipts with this server’s own receipt keys. No credential needed.
Request body (required)
Content type application/json: ClosingVerifyRequest
no additional properties
-
closing_receiptstring requiredThe kept file’s closing receipt, its exact compact JWS.
min length 1, max length 8192
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
roundsarray of object requiredThe file’s round receipts, in the order the file carries them.
min items 1, max items 64
Show propertiesHide properties
no additional properties
-
receiptstring requiredmin length 1, max length 32768
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
revision_envelopeobject or nullA receipt v2’s revision envelope, as the file carries it.
-
Responses
What it does
- Nothing in the request is trusted.
- It reports the closing receipt’s own check, whether the receipts sent are exactly the set it signs, and what a person’s page shows.
- It looks nothing up and stores nothing, and evidence that fails is still a 200 result.
Authentication
None. Anyone can call it.
Advanced
- Send the round receipts in the order the file carries them, at most 64.
- The body is JSON, at most 2097152 bytes.
- It shares the bundle check’s rate limits per client and in total, and its absolute 2-second deadline from arrival, after which the connection is closed with
Connection: close. - Responses are sent with
Cache-Control: no-store, no-transformandReferrer-Policy: no-referrer, with CORS only for the product site’s origins. - Never put a receipt in an address.
- Operation ID
verifyClosingReceipt
GET /v1/evidence
Lists your workspace’s receipts, newest first, as details only.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
custody | query | string | no | archival (default) or exception. |
target_id | query | string | no | A target ID (tgt_…). |
accepted_from | query | string | no | UTC instant (YYYY-MM-DDTHH:MM:SS[.fff]Z, at most millisecond precision; finer is refused), inclusive. |
accepted_to | query | string | no | UTC instant (at most millisecond precision), exclusive. |
limit | query | string | no | 1–100, default 25. |
cursor | query | string | no | The previous answer’s next_cursor, with the same filters. |
Responses
What it does
- By default, receipts in archival custody, in the workspace’s order; or only the receipts held unverified, by when the answer was accepted.
- A list never carries a receipt, a question or an answer.
- Filter by agent, or by when the answer was accepted.
- Every answer says it covers the records issued in the range you asked for, never a complete history.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The workspace comes from the credential only.
custody=exceptionlists the receipts held unverified.target_idmatches records whose archival core names that agent; records with no agent never match.accepted_fromandaccepted_tobound the acceptance time.- Every answer is labelled "issued records in this defined scope/range" with
complete_historyfalse. - Pages continue with
next_cursor. - Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
listEvidence
POST /v1/evidence/export
Exports one range of your workspace’s receipts as a file, with everything needed to check them.
Request body (required)
Content type application/json: EvidenceExportRequest
no additional properties
-
custodystring"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
from_sequenceintegerminimum 1, maximum 9007199254740991
-
to_sequenceintegerminimum 1, maximum 9007199254740991
-
accepted_fromstringAccepted at or after (inclusive). UTC, at most millisecond precision (finer is refused).
max length 24
A UTC time such as 2026-11-09T02:05:00Z, with up to 3 decimal places of seconds.
Details
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]{1,3})?Z$ -
accepted_tostringAccepted before (exclusive). UTC, at most millisecond precision (finer is refused).
max length 24
A UTC time such as 2026-11-09T02:05:00Z, with up to 3 decimal places of seconds.
Details
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]{1,3})?Z$ -
target_idstringtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
limitintegerAt most this many records (default 100).
minimum 1, maximum 100
-
cursorstringOpaque. Pass the next_cursor of the previous answer, with the same filters.
1 to 400 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{1,400}$
Responses
What it does
- Name one range, by sequence number or by when the answers were accepted.
- Each record carries its exact receipt, its archival envelope and its preservation status.
- What the person saw and answered is included only while it is still kept; after that the record says it was deleted, and it is never rebuilt.
- Receipts held unverified are labelled so.
- The file says what it discloses, and that it covers the range asked for, never a complete history; its content is never logged.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The range is both
from_sequenceandto_sequence(archival), or bothaccepted_fromandaccepted_to. - An export holds at most
limitrecords (at most 100) and 8 MiB; a range beyond either is cut short, andrange.next_cursorcontinues it. - The envelope is the signed core and its preservation evidence.
- Deleted content reads
{status: unavailable, reason: purged}. - The scope label is "issued records in this defined scope/range".
- The file is an attachment named from the workspace, the custody and the range only.
- A workspace can export 6 times per 10 minutes.
- Operation ID
exportEvidence
GET /v1/evidence/records/{event_id}
Tells you whether one of your receipts is available, restricted or deleted, never its content.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
503- The receipts view is not set up here, or the service has just started and is not ready yet (
SERVICE_UNAVAILABLE). - Body Error
What it does
- A restricted receipt shows why and since when; a deleted one shows why and when.
- A restricted or deleted receipt is left out of the list, the export, its bundle and every other receipt fetch; a restricted one can still be verified, so its preservation can be checked.
- Sess decides restriction, holds and deletion through a recorded procedure; holds are not shown here.
- Deleting never recalls copies already exported or kept by people, and the public witness commitment remains.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The workspace comes from the credential only.
- The reason is a code.
- The operator applies the procedure.
- The witness commitment is an aggregate batch root.
- Another workspace’s record, or an unknown event ID, gets the not-found answer.
- Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
getEvidenceRecordStatus
GET /v1/evidence/records/{event_id}/pdf
Downloads the receipt PDF of the Session one of your receipts belongs to.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
200- The receipt PDF as a download, or the record itself when it is too large for the PDF.
- Body object
- Headers
Content-Disposition 503- The receipts view or the receipt keys are not set up here, or the service has just started and is not ready yet (
SERVICE_UNAVAILABLE). - Body Error
What it does
- It is the same document the person keeps from the Sess link, with every answered round of that Session and its signed record attached.
- Fetch it once and store it with your own records.
- After the Session’s retention ended, its receipts still make the PDF, and each round reads "Answers deleted".
- Other rounds that are restricted or deleted are left out.
- A Session too large for a PDF is returned as its record, whole.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The workspace comes from the credential only.
- The record is returned as JSON when the Session falls outside what the PDF can show.
- Another workspace’s record, or an unknown event ID, gets the not-found answer.
- A workspace can download 30 per minute, shared with the console’s download.
- Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
getEvidenceRecordPdf
GET /.well-known/sess-receipt-keys.json
Publishes the public keys that verify Sess receipts. No credential needed.
Responses
What it does
You get the active signing key and every key still kept from a rotation. Verify a receipt with the key its header names, and expect the issuer and audience below.
Authentication
None. Anyone can call it.
Advanced
- The keys are a JWK Set (Ed25519,
algEdDSA). - A receipt is a compact JWS (
typsess-receipt+jwt); its protected header’skidnames its key. - The expected issuer is the deployment’s configured receipt issuer, otherwise the origin of its public address.
- The expected audience is the Session’s actual workspace, from configuration you trust independently or from the
Sess-Workspace-Idheader on an authenticated owner create or read. - A claimed trial keeps its original workspace.
- The service answers unavailable while the receipt keys are not set up.
- Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
receiptKeys
GET /.well-known/sess-renderer-identities.json
Publishes the signed list of renderers that Sess signs receipts under. No credential needed.
Responses
200- The signed list.
- Body object
What it does
- A receipt verifies when its renderer is on a list whose signature verifies.
- Each edition of the list has a higher number than the last; order the lists by it, and use containment as the cross-check. An older list still proves what it contains.
- The list only grows: a renderer is never removed, reordered or reused, so every receipt issued keeps verifying.
Authentication
None. Anyone can call it.
Advanced
- The list is one JWS signed with the receipt keys, in the RFC 7515 flattened JSON serialization
{protected, payload, signature}; joined with dots, the parts are its compact form. - The protected header is
{alg EdDSA, kid, typ sess-renderer-identities+jwt}. - The payload is RFC 8785 canonical JSON:
sess_renderer_identities: 1,iss(the receipt issuer),seq(the edition, an integer),iat(when this copy was signed, a NumericDate) andidentities, each arenderer_versionwithsince, the UTC date it was added. - The signature covers
seqandiat. - A receipt’s renderer is its
surface.renderer_version. - Verify the list with the receipt keys, GET /.well-known/sess-receipt-keys.json (the key its
kidnames) and the expected issuer. sess-html-form-1is always on it.- The service answers unavailable while the receipt keys are not set up.
- Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
rendererIdentities
GET /.well-known/sess-witness-keys.json
Publishes the public keys that sign Sess’s witness checkpoints. No credential needed.
Responses
What it does
- Each key comes with the window when it was valid; the current key’s window has no end.
- A key that was rotated out stays, with its closed window, so the evidence it signed stays verifiable.
- Public keys only. With no witness key set up the set is empty; a set that is set up but unusable is never trimmed or served empty.
Authentication
None. Anyone can call it.
Advanced
- The format is ECDSA P-256 keys, the current one with
valid_tonull. - Read the set with
parseWitnessKeySetand pass it as thewitnessKeysanchor ofverifyWitnessEvidence, beside a trusted root distributed independently. - Responses are sent with
Cache-Control: no-store, no-transform. - Operation ID
witnessKeys
GET /v1/webhook
Reads your webhook: its address, the signing secrets in use and how deliveries are going.
Responses
What it does
Secrets are shown by their key IDs only. You see delivery counts and how long the oldest waiting delivery has waited.
Operation ID getWebhook
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
PUT /v1/webhook
Sets the address where Sess sends your workspace’s answers.
Request body (required)
Content type application/json: WebhookRegisterRequest
no additional properties
-
urlstring requiredAbsolute https:// URL on port 443, without user info or fragment. Registering replaces the current endpoint (which stops receiving new deliveries); the new one receives nothing until verified.
min length 1, max length 2048
Responses
400- The address is not an https address Sess can use, or the body is not valid (
WEBHOOK_INVALID_URL, reasonnot_https,port,credentials,fragment,non_public_address,malformedortoo_long; orINVALID_SCHEMA). - Body Error
What it does
- A workspace has one webhook address; a new one replaces the old.
- Deliveries waiting for the old address are not moved: they fail, and you can redeliver them.
- The address receives nothing until you verify it.
- The first registration also creates the signing secret, which is returned once.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The waiting deliveries fail as
endpoint_unavailable. - The service answers unavailable while its data-encryption keys are not set up.
- Operation ID
registerWebhook
POST /v1/webhook/verify
Proves you control your webhook address, so Sess can send to it.
Responses
422- The address did not answer the challenge correctly (
WEBHOOK_VERIFICATION_FAILED, reasonegress_refused,redirect,rejected,bad_answer,timeout,connectionordns). - Body Error
What it does
- Sess sends a fresh random challenge to the exact address; it is verified when it sends the challenge back.
- Verification lasts 30 days, and verifying again renews it.
- An expired verification counts as waiting: nothing new is sent, and queued deliveries fail.
- Sess looks the host up on every connection and never connects to a non-public address.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The challenge is sent through the delivery egress policy.
- The expiry is
verification_expires_at. - Queued deliveries fail as
endpoint_unavailable. - Operation ID
verifyWebhook
POST /v1/webhook/secrets/rotate
Creates a new signing secret for your webhook, returned once.
Responses
What it does
The previous secret keeps signing for 24 hours, so deliveries carry both signatures until then.
Operation ID rotateWebhookSecret
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
GET /v1/sessions/{id}/deliveries
Lists every webhook delivery of a Session’s answers, with every attempt.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
Responses
What it does
Each attempt shows its outcome and HTTP status, including failures that will not be retried and deliveries that ran out of retries.
Operation ID listDeliveries
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
POST /v1/sessions/{id}/events/{event_id}/redeliver
Sends an accepted answer to your webhook again.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
event_id | path | string | yes | The Event’s ID. |
Responses
What it does
- It goes to your current, verified address, with a fresh set of retries.
- The message is the same bytes as before, with the same event ID and receipt.
- If a delivery of this answer to the current address is already waiting, you get that one instead.
- One waiting for an address you replaced is ended, and a new one is queued.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The ended delivery fails as
endpoint_unavailable. - Operation ID
redeliverEvent
POST /v1/trial/asks
Creates an Ask in a no-signup trial, for at most 2 people.
Request body (required)
Content type application/json: CreateAskRequest
no additional properties
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 200
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredThe page's content, in order. How your page looks.
min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
actionsarray of object requiredmin items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
-
-
respondentsobject requiredno additional properties
Show propertiesHide properties
-
maxinteger requiredHow many people may start. At least 2 and at most the plan’s active-Session limit (Free 25, Starter 50, Pro 100); a trial Ask at most 2. Create the Ask.
-
namebooleanAdvanced. Adds one required “Your name” text field, named
name, before the page’s first field. Typed data for your agent to compare; never verified. Create the Ask.
-
Responses
400- The body is not valid,
respondents.maxis above 2, or an idempotency key was sent (INVALID_SCHEMAorUNKNOWN_COMPONENT). - Body Error
What it does
- Without a key, it starts a trial and returns the trial key once.
- With the trial key, it adds an Ask to that trial.
- Each respondent is a trial Session: it counts toward the trial’s 3 active and 10 Sessions, and its link lasts at most 1 hour.
- Each Start counts as one in the network’s 3 trials a day, together with new trials.
Authentication
No credential is needed to start a trial. To add to a trial you have, send its trial key as Authorization: Bearer <trial key>. The trial key starts with sess_mg_ and is returned once, when the trial starts.
Advanced
-
expires_inintegerAdvanced. The one deadline, in seconds from creation: after it no one new may start, and every respondent’s link has ended. At least 30 and at most the plan’s live-link lifetime. Create the Ask.
-
respondent_expires_inintegerAdvanced. Each respondent’s link life from their Start, in seconds: at least 30, and clamped at Start to the plan’s limit and to what remains of the Ask. Absent: what remains of the Ask.
-
auto_completebooleanAdvanced. True (the default): a respondent’s Session completes when its answer is accepted. False: your agent continues each respondent by PATCH /v1/sessions/{id} and completes it.
- Read it with GET /v1/trial/asks/{id} and the trial key.
- The trial’s limits are on the Limits page.
- An
Idempotency-Keyheader is refused. - Operation ID
createTrialAsk
GET /v1/trial/asks/{id}
Reads a trial Ask with the trial key, as GET /v1/asks/{id} reads an Ask.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Ask’s ID. |
Responses
What it does
Another trial’s Ask, an unknown key and an owner key all get the same not-found answer.
Operation ID getTrialAsk
Authentication
Send the trial key as Authorization: Bearer <trial key>. The trial key starts with sess_mg_ and is returned once, when the trial starts.
POST /v1/trial/sessions
Starts a no-signup trial, or adds a Session to one, and returns the Sess link to share.
Request body (required)
Content type application/json: TrialCreateSessionRequest
no additional properties
-
interactionobject requiredno additional properties
-
modestring required"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 200
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredThe page's content, in order. How your page looks.
min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
actionsarray of object requiredmin items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
-
Responses
400- The body is not valid, uses an unknown component, or sends an idempotency key (
INVALID_SCHEMAorUNKNOWN_COMPONENT). - Body Error
404- The key does not open a trial, or the trial address is unknown or malformed; this is never a 401 (
NOT_FOUND). - Body Error
429- A trial limit is reached, or the trial’s 24 hours for creating Sessions are over; rely on the code and
Retry-After, not the message, which is written for people (RATE_LIMITED). - Body Error
- Headers
Retry-After
What it does
- Without a key, it creates a trial and its first Session, and returns the trial key once, in the body.
- With the trial key, it creates another Session in that trial.
- Trial Sessions ask the person to answer; a trial has no webhook and sends nothing out.
- A trial’s Sess link and answer window last 1 hour, and its result can be read for 24 hours after that.
- A trial has at most 3 active Sessions and 10 Sessions in all, created within its first 24 hours.
Authentication
No credential is needed to start a trial. To add to a trial you have, send its trial key as Authorization: Bearer <trial key>. The trial key starts with sess_mg_ and is returned once, when the trial starts.
Advanced
- Trial Sessions are interactive only:
modeisinteractive. - The trial’s limits are on the Limits page.
- Any other credential, or a trial key that is unknown, expired, revoked or tied to one Session, gets the not-found answer.
- An
Idempotency-Keyheader is refused: the trial key and the Sess link cannot be sent again. - Operation ID
createTrialSession
GET /v1/trial/sessions/{id}
Reads a trial Session and the answers it received, with the trial key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
Responses
404- The key does not open this Session, or the trial address is unknown or malformed; this is never a 401 or 400 (
NOT_FOUND). - Body Error
What it does
It can be read until its result is no longer available. Reading never uses up or changes anything.
Authentication
Send the trial key as Authorization: Bearer <trial key>. The trial key starts with sess_mg_ and is returned once, when the trial starts.
Advanced
- The result is available until the Session’s
result_available_until. - Another trial’s or workspace’s Session gets the not-found answer.
- So do an unknown, expired or revoked key, a Sess link and an owner key.
- Operation ID
getTrialSession
POST /v1/asks
Creates an Ask: one link that many people can answer, each on their own page.
Request body (required)
Content type application/json: CreateAskRequest
no additional properties
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 200
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredThe page's content, in order. How your page looks.
min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
actionsarray of object requiredmin items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
-
-
respondentsobject requiredno additional properties
Show propertiesHide properties
-
maxinteger requiredHow many people may start. At least 2 and at most the plan’s active-Session limit (Free 25, Starter 50, Pro 100); a trial Ask at most 2. Create the Ask.
-
namebooleanAdvanced. Adds one required “Your name” text field, named
name, before the page’s first field. Typed data for your agent to compare; never verified. Create the Ask.
-
Responses
400- The body is not valid,
respondents.maxor a lifetime is out of range, or an idempotency key was sent (INVALID_SCHEMAorUNKNOWN_COMPONENT). - Body Error
What it does
- Share the link with everyone who should answer. Each person gets their own page.
- Each person who starts gets an ordinary Session; read them all with GET /v1/asks/{id}, or each with GET /v1/sessions/{id}.
respondents.maxis exact: it is checked when a person starts, so it cannot be overshot.- A respondent is a browser, not a person.
- Creating an Ask reserves nothing and counts nothing; each Start is admitted against your plan then, like a new Session.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
-
expires_inintegerAdvanced. The one deadline, in seconds from creation: after it no one new may start, and every respondent’s link has ended. At least 30 and at most the plan’s live-link lifetime. Create the Ask.
-
respondent_expires_inintegerAdvanced. Each respondent’s link life from their Start, in seconds: at least 30, and clamped at Start to the plan’s limit and to what remains of the Ask. Absent: what remains of the Ask.
-
auto_completebooleanAdvanced. True (the default): a respondent’s Session completes when its answer is accepted. False: your agent continues each respondent by PATCH /v1/sessions/{id} and completes it.
- The body takes the same interactive
interactionas POST /v1/sessions. expires_inis the one deadline; each respondent’s link ends by it.- A Start is refused after the deadline, with less than a minute left, above 30 Starts a minute on one Ask, and while your plan admits nothing new (the person sees that it is paused; the Ask stays open).
- An Ask is immutable: PATCH is refused.
- An
Idempotency-Keyheader is refused, because the link cannot be sent again: if the outcome is uncertain, create again (an unused Ask costs nothing). - Operation ID
createAsk
GET /v1/asks/{id}
Reads an Ask: whether it is open, how many started, answered and completed, and each respondent with their accepted answers.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Ask’s ID. |
cursor | query | string | no | The next_cursor of the page before, for the next page. |
limit | query | integer | no | How many respondents a page: at most 100. |
Responses
What it does
- Respondents are in the order they started.
- Counts include Starts refused, by reason.
- An Ask is
closedonce its last place was started, you closed it, or its deadline passed;closed_bysays which. - A respondent whose content was deleted after its retention is listed with its times only.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- Returning a respondent’s answer here is its retrieval, exactly as GET /v1/sessions/{id} is: it counts toward your plan once, when the response was sent in full.
- Up to 100 respondents a page; pass
next_cursorascursorfor the next. - Operation ID
getAsk
PATCH /v1/asks/{id}
Always refused: an Ask is immutable.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Ask’s ID. |
Responses
What it does
Every respondent sees the round you created.
To continue one respondent, set auto_complete false at create and use PATCH /v1/sessions/{id} on their Session.
Operation ID updateAsk
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
POST /v1/asks/{id}/close
Closes an Ask now: no one new can start.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Ask’s ID. |
Responses
What it does
- Respondents who have not answered yet have their links ended, and their places on your plan are freed.
- Respondents who answered keep their pages and receipts.
- Closing a closed Ask changes nothing.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The answer carries no respondent answers.
- An
ask.closedwebhook is sent when this closes it. - Operation ID
closeAsk
GET /v1/asks/{id}/deliveries
Lists every webhook delivery of an Ask’s own events (ask.closed), with every attempt.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Ask’s ID. |
Responses
What it does
A respondent’s answers are listed on its Session’s deliveries.
Operation ID listAskDeliveries
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
POST /v1/asks/{id}/events/{event_id}/redeliver
Sends an Ask’s ask.closed to your webhook again, to your current verified address with a fresh set of retries; the same bytes and event ID as before.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Ask’s ID. |
event_id | path | string | yes | The Event’s ID. |
Responses
What it does
Operation ID redeliverAskEvent
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
POST /s/{token}
Records the person’s answer from the Sess link page.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The Sess link’s token: the part after /s/. |
Request body (required)
Content type application/x-www-form-urlencoded: HumanSubmissionForm
other properties, named as below: string, no additional properties
Property names: data. then a lower-case letter and up to 63 lower-case letters, digits or underscores.
Details
^data\.[a-z][a-z0-9_]{0,63}$
-
client_event_idstring required16 to 64 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{16,64}$ -
surface_revisionstring requiredA whole number from 1 to 999999999, without leading zeros.
Details
^[1-9][0-9]{0,8}$ -
action_idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$
Responses
303- Accepted, or the same answer sent again, so the person goes back to the Sess link page.
- Headers
Location 400- The form is not valid or names an action that does not exist (
INVALID_SCHEMAorACTION_NOT_FOUND). 403- The answer was not sent from the page itself (
ACTION_NOT_ALLOWED). 404- The link is unknown, expired, revoked or deleted; an answer is accepted only while the link is live.
405- A display Session takes no answer (
ACTION_NOT_ALLOWED). 409- The question changed, the Session takes no more answers, is completed, or the request was sent before with other values; or, where link extensions are on, the link is past its deadline but can still be extended, so the form returns with the person’s values and Need more time? (
SESSION_REVISION_CONFLICT,RESPONSE_LIMIT_REACHED,SESSION_COMPLETED,IDEMPOTENCY_CONFLICTorLINK_LAPSED). 413- The form is too large (
PAYLOAD_TOO_LARGE). 415- The form is not sent as a web form (
INVALID_SCHEMA). 422- Some fields need fixing; the form shows which (
VALIDATION_FAILED). 503- Receipts are not set up on this deployment, so nothing is accepted (
SERVICE_UNAVAILABLE).
What it does
- Only the page itself can send it; anything sent from another site is refused.
- Sess checks the action and the answer against the exact revision the person answered.
- An accepted answer comes with a signed receipt, and the page then shows the Session as it is: waiting for your agent, its next question, or done.
- A refused answer shows the page again, keeping what the person typed so they can send it again.
- The Sess link is the person’s key to the page; never log it.
Authentication
None. Anyone can call it.
Advanced
- Accepted are requests with
Sec-Fetch-Site: same-originor anOriginequal to the public origin; with onlyOrigin: nullorSec-Fetch-Site: none, as Safari sends under no-referrer, only with the page’s form token, bound to a browser cookie. - A foreign
Origin, a cross-site or same-siteSec-Fetch-Site, or neither header is always refused. - The server resolves
action_idfrom the stored revision and checks the data against itsresponse_schema. - The receipt is stored with its Event and returned by reading the Session and its Event log.
- Sending the same
client_event_idwith the same request answers with the original Event and receipt, never signed again. - A refusal is an HTML page whose stable code is in its
data-error-codeattribute. - Success is a 303 to the same link path, relative, with no query: never an Event ID, a receipt or submitted data.
- Sess links created from 30 October 2026 are /n/{token} with a 22-character token, and every /s/{token} operation is served at /n/{token} the same way; /s/{token} keeps serving the 43-character links created before, and each path answers the generic not-found page for the other length.
- Operation ID
submitHumanAction
POST /s/{token}/extend
Where link extensions are on, gives the person more time to answer, from Need more time? on the Sess link page.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The Sess link’s token: the part after /s/. |
Request body (required)
Content type application/x-www-form-urlencoded: HumanExtensionForm
other properties, named as below: string, no additional properties
Property names: data. then a lower-case letter and up to 63 lower-case letters, digits or underscores.
Details
^data\.[a-z][a-z0-9_]{0,63}$
-
client_event_idstring required16 to 64 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{16,64}$ -
surface_revisionstring requiredA whole number from 1 to 999999999, without leading zeros.
Details
^[1-9][0-9]{0,8}$
Responses
200- Extended, or already extended by the same request; the page shows the form again with the person’s values.
400- The body is not the form’s exact shape, or its values cannot be read (
INVALID_SCHEMA). 403- The request was not sent from the page itself (
ACTION_NOT_ALLOWED). 404- The link is unknown, expired, revoked or deleted, and nothing changed.
405- A display Session has no deadline to extend (
ACTION_NOT_ALLOWED). 409- Nothing changed: the question changed, the Session is completed, or no extension is left, and the link stays live until its deadline (
SESSION_REVISION_CONFLICTorSESSION_COMPLETED). 413- The form is too large (
PAYLOAD_TOO_LARGE). 415- The form is not sent as a web form (
INVALID_SCHEMA).
What it does
- It works on a link of 20 hours or less, when the deployment enables link extensions.
- Each extension adds the link’s original lifetime, at most 1 hour, up to ten times, never past a fixed horizon.
- A link that is past its deadline but not past the horizon can still be extended, from now.
- Sending the same request again is never counted twice.
- It never records an answer, completes the Session or signs a receipt, and never stores or logs what the person typed; it only shows the same form again with their values.
- The Sess link is the person’s key to the page; never log it.
Authentication
None. Anyone can call it.
Advanced
- It is the answer form’s second button, so the body is the form’s own entries without
action_id, and it is accepted from the page itself only, as the answer is. - While the link is live the deadline (
action_expires_at) moves to the earlier of the horizon and the deadline plus one step; while it is lapsed, to the earlier of the horizon and now plus one step; the step is the earlier of the original lifetime and 1 hour. - A repeated
client_event_idis answered as the original. - Operation ID
extendHumanLink
POST /s/{token}/keep/challenge
Starts “Keep your receipt” on the Sess link page, the first of two steps.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The Sess link’s token: the part after /s/. |
Request body (required)
Content type application/json: KeepChallengeRequest
no additional properties
-
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
Responses
404- The link is unknown, expired or revoked, or is a display Session, shown as the not-found page; or none of the permissions covers an answered round of this Session (
NOT_FOUND, reasonno_authorized_rounds, as JSON). - Body Error
503- Receipts or Keep are not set up here, or the service has just started and is not ready yet (
SERVICE_UNAVAILABLE). - Body Error
What it does
- The page’s own script sends it after the person taps Keep.
- Each round is covered only by its own Keep permission; nothing else covers it.
- Sess reads the Session at one moment and, when a covered receipt has no holder yet, records a challenge for exactly those receipts, for 5 minutes.
- The Sess link is the person’s key to the page; never log it.
Authentication
None. Anyone can call it.
Advanced
- The request must be same-origin:
Sec-Fetch-Site: same-originor anOriginequal to the page’s; with onlyOrigin: nullorSec-Fetch-Site: none, the JSON content type alone, since a cross-origin JSON request needs a CORS preflight, which is never granted. - JSON, at most 65536 bytes and 128 grants.
- Each grant is receipt-scoped: the Session, a list of receipts or another round’s grant never authorize a round.
- The snapshot is the Session’s Event sequence cutoff.
- Every /s/ response is no-store, no-referrer and noindex, with no CORS.
- Operation ID
createKeepChallenge
POST /s/{token}/keep
Gives the person their kept conversation: one file with every round they may keep, its receipt and how well it is preserved.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The Sess link’s token: the part after /s/. |
Request body (required)
Content type application/json: KeepRequest
no additional properties
-
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
-
formatstring"json"or"pdf"S-04:
pdfanswers the same kept conversation as a receipt PDF (application/pdf; PDF/A-3b and PDF/UA-1, the exact file embedded unchanged as its one associated file), named "Sess receipt – <title> – <d Mon yyyy>.pdf". A file outside the PDF profile is answered as the JSON instead, whole. How saving works. -
enrollmentobjectno additional properties
Show propertiesHide properties
-
challenge_idstring requiredkch_then 26 capital letters and digits, without I, L, O or U.Details
^kch_[0-9A-HJKMNP-TV-Z]{26}$ -
itemsarray of object requiredExactly the challenge's batch in order, or only its final receipt (the disclosed fallback). One distinct key per receipt.
min items 1, max items 64
Show propertiesHide properties
no additional properties
-
event_idstring requiredevt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
holder_keyobject requiredA fresh public P-256 key (never a private one).
no additional properties
Show propertiesHide properties
-
crvstring required"P-256" -
ktystring required"EC" -
xstring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
ystring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
-
-
proofstring requiredbase64url of the 64-byte ECDSA P-256 SHA-256 signature (IEEE P1363) over the holder proof message.
86 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{86}$
-
-
Responses
404- The link is unknown, expired or revoked, shown as the not-found page; or none of the permissions covers an answered round (
NOT_FOUND, reasonno_authorized_rounds, as JSON). - Body Error
422- The holder keys were refused, so nothing was enrolled, and the same request without them still exports the file (
HOLDER_ENROLLMENT_REFUSED, reasonchallenge_unknown,challenge_expired,batch_mismatch,not_authorized,proof_invalid,key_reusedoralready_enrolled). - Body Error
503- Receipts or Keep are not set up here, or the service has just started and is not ready yet (
SERVICE_UNAVAILABLE). - Body Error
What it does
- Every covered, answered round of the Session up to the snapshot, with its unchanged receipt and bundle, or a note that the content is gone once deleted.
- Each round’s witness status at the snapshot, with the evidence attached by then, and its holder status.
- With the person’s new holder keys, Sess first records them as holders of those receipts; if that is not possible, the file is still exported, marked unenrolled.
- The file never holds a private key, a permission secret or the Sess link.
- The checks are those of the first step, and the Sess link is the person’s key to the page; never log it.
Authentication
None. Anyone can call it.
Advanced
- The format is one bounded, versioned file with an inventory, sent as an attachment.
- With
enrollment, one fresh holder key per receipt of the challenge’s exact batch is enrolled, or only its final receipt, the disclosed fallback. - Every proof is checked, then every enrollment and the use of the challenge commit together.
- The same request again is replayed safely and a different one refused; a receipt keeps its first holder, and a key holds one receipt.
- Without
enrollment(when key generation or storage failed, or there is nothing to enrol) every round is marked unenrolled: exporting never depends on enrolling. - With
format: pdf, the answer is the receipt PDF of the same snapshot, with an ASCIIfilenameand the exactfilename*inContent-Dispositionand the headerSess-Keep-Summary(rounds=<n>; coverage=<every_accepted_round|partial>; unenrolled=<0|1>), or the JSON file when it falls outside what the PDF can show. - Operation ID
keepConversation
POST /s/{token}/claim
Starts Save to Sess from a Sess link page on another site than the personal one.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The Sess link’s token: the part after /s/. |
Request body (required)
Content type application/json: SaveClaimRequest
no additional properties
-
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
-
sourcestring requiredbase64url SHA-256 of UTF-8 "sess.personal-save.source/v1", one 0x00 byte and the source verifier: a 32-byte random value (base64url) this page keeps and hands only to the destination page.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
destinationstringThe destination binding the signed-in destination page obtained from POST /personal/save/destination for its own nonce. Absent: the claim is made at the tap, before the destination page is signed in, and has no binding until the signed-in destination page binds it (POST /personal/save/destination with the secret and the source verifier); it is never redeemed unbound.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
Responses
404- The link is unknown, expired or revoked, shown as the not-found page; or none of the permissions covers an answered round (
NOT_FOUND, reasonno_authorized_rounds, as JSON). - Body Error
What it does
- The page’s own script sends it: at the tap on Save to Sess, or once the Save sheet is signed in.
- It records a claim for the rounds the person’s Keep permissions cover now, exactly as Keep reads them; restricted or deleted rounds are never included.
- The claim lasts 5 minutes, and nothing is saved until the signed-in Save sheet finishes it.
- The Sess link is the person’s key to the page; never log it.
Authentication
None. Anyone can call it.
Advanced
- On a form-2 page the claim is made at the tap, with no destination binding; otherwise once the sheet on the personal origin is signed in and has sent its destination binding.
- A claim without one is bound by the signed-in sheet through POST /personal/save/destination before it can be redeemed.
- The request must be same-origin as for Keep, JSON, at most 65536 bytes, and is rate limited per link.
- The claim holds the rounds and their cutoff, chosen by the server (no client-chosen IDs), a fresh 256-bit transfer secret stored as its hash, the purpose, the personal origin, the source verifier’s challenge and the destination binding when one is given.
- Every /s/ response has the same headers.
- Operation ID
createSaveClaim
GET /s/{token}/status
Tells the Sess link’s waiting page whether something changed.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The Sess link’s token: the part after /s/. |
Responses
200- The state: waiting for your agent after an answer, active when a question waits for one, or completed, which is final.
- Body HumanStatusResponse
404- The link is unknown, expired or revoked, or is a display Session, shown as the not-found page.
429- More than 60 reads of this link in one minute; wait the seconds
Retry-Aftergives (RATE_LIMITED). - Body Error
- Headers
Retry-After
What it does
- It returns only the current revision and the state as the person sees it: no owner data, events, receipts, answers or content.
- Nothing is written or used up.
- The waiting page asks a few seconds apart at first, then less often, about once a minute after ten minutes, never while its tab is hidden, and reloads the link once the revision or the state changes.
- A page with a form asks about every 25 seconds while it is visible, only to keep its connection alive, and ignores the answer.
- The Sess link is the person’s key to the page; never log it.
Authentication
None. Anyone can call it.
Examples
{
"state": "waiting",
"revision": 2
}
Advanced
- Every /s/ response is sent with
Cache-Control: no-store,Referrer-Policy: no-referrerandX-Robots-Tag: noindex, nofollow, with no CORS. - Operation ID
getHumanStatus
GET /v1/account/usage
Reads the workspace’s plan and how much of it is used this month.
Responses
What it does
- The plan, the resolved Sessions used in the current period, the next reset and the active Sessions.
- A warning at 80% and at 100% of the allowance.
- Reading changes nothing, apart from recording when the API key was last used.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- A resolved Session is one you completed after at least one accepted answer, whose final result your webhook endpoint accepted, or you fetched in full with an owner credential (a read or completion response), before its delivery deadline: completion plus the Session’s retention.
- It counts once, in the period it qualifies.
- Periods are monthly from the workspace’s billing anchor, its creation on the free plan.
- Each interactive Session admitted that can still qualify reserves one unit, so admitted work always fits the allowance.
- A workspace without a plan, as with the deployment owner key, gets the not-found answer.
- Operation ID
getAccountUsage
POST /v1/account/billing/checkout
Opens a payment page to move the workspace to a paid plan.
Request body (required)
Content type application/json: BillingCheckoutRequest
no additional properties
-
planstring required"starter"or"pro"The paid plan to upgrade to.
Responses
409- The workspace already pays, or its payment went through, so there is no new payment page (
SUBSCRIPTION_EXISTS, reasonsubscribedorcheckout_completed). - Body Error
503- No payment page now: billing is not set up, another is being created or confirmed, a payment is still being confirmed, or the provider is unavailable or refused; retry after
Retry-After, which returns the same page (SERVICE_UNAVAILABLE, reasonnot_configured,checkout_in_progress,checkout_processing,provider_unavailableorprovider_rejected). - Body Error
- Headers
Retry-After
What it does
- You name only the plan; the price is the one Sess approved for it.
- While a payment page for this plan is open, every request, at once or retried, returns the same one.
- A workspace that already pays changes plan in place and gets no new payment page.
- Coming back from the payment page grants nothing: the plan changes only when the payment provider confirms it is paid, and the usage page says processing until then.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Examples
{
"plan": "starter"
}
{
"plan": "starter",
"checkout_url": "https://checkout.example.test/c/pay/synthetic",
"expires_at": "2026-10-15T13:00:00.000Z"
}
Advanced
- A payment page for the other plan is ended first, so at most one is payable; it is replaced only after the provider confirms its expiry.
- A paid page holds the workspace until its subscription is recorded.
- The confirmation is the provider’s signed subscription state.
- Operation ID
createBillingCheckout
POST /v1/billing/provider-events
Receives the payment provider’s signed events. Only the provider calls it.
Request body (required)
Content type application/json: object
Type: object
Responses
503- The event was not handled; send it again (
SERVICE_UNAVAILABLE, reasonprovider_unavailable). - Body Error
What it does
- The signature is checked over the exact body before anything is read.
- Each event is handled once; a repeat is acknowledged and changes nothing.
- An older subscription state never replaces a newer one, and unknown event types are acknowledged and ignored.
Authentication
None. Anyone can call it.
Advanced
- The body may be at most 256 KiB, and its timestamp within 300 seconds.
- A deployment without a billing provider answers not found.
- Operation ID
receiveBillingProviderEvent
GET /v1/targets
Lists your workspace’s agents, with how many runs each started and completed.
Responses
What it does
Only you see the counts.
Operation ID listTargets
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
POST /v1/targets
Registers your agent, as an HTTP endpoint, so people can start it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | no | Optional. Makes a retry safe. The key belongs to your credential and the operation: the same body returns the first 201 (status, Location and the agent as first registered) and registers nothing more, even if the agent or the plan changed since; a different body with the same key is refused; requests at the same moment with one key register one agent. Only successful registrations are kept. Without the header every request registers. |
Request body (required)
Content type application/json: TargetRegisterRequest
no additional properties
-
typestring required"http"The only supported target protocol type.
-
endpointstring requiredAbsolute https:// URL on port 443 without user info or fragment; an IP literal must be public. Immutable: register a new target to change it.
min length 1, max length 2048
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring requiredA lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.
Details
^[a-z][a-z0-9_.-]{0,63}$ -
versionstring requiredA letter or digit, then up to 31 letters, digits, dots, plus signs or hyphens.
Details
^[0-9A-Za-z][0-9A-Za-z.+-]{0,31}$ -
input_schemaobject requiredJSON Schema 2020-12 for the start input: an object schema using only type, properties, required, additionalProperties, items, enum, const, numeric and length bounds, title and description (no pattern, format, $ref or composition), at most 6 levels deep and 8192 bytes.
-
-
grantobject requiredno additional properties
Show propertiesHide properties
-
audiencesarray of string requiredThe exact browser origins a grant may be issued for. A start must come from its grant’s origin (the Origin header).
min items 1, max items 8
-
lifetime_secondsinteger requiredHow long an issued grant lives.
minimum 60, maximum 86400
-
-
budgetobject requiredno additional properties
Show propertiesHide properties
-
max_concurrentinteger requiredminimum 1, maximum 100
-
max_starts_per_dayinteger requiredminimum 1, maximum 100000
-
-
enabledbooleanDefault true.
Responses
400- The endpoint, the capability or the body is not valid (
TARGET_INVALID_URL,TARGET_INVALID_CAPABILITYorINVALID_SCHEMA; the reason says which part). - Body Error
What it does
- It needs an https endpoint on port 443, a versioned capability with a bounded input schema, who may start it and for how long, and a budget.
- People can start it only after you verify your domain.
- Only an owner credential can register or change an agent; a Sess link, a trial key or a probe credential cannot.
- An optional idempotency key makes a retry safe: the same request returns the agent as first registered.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
-
default_expires_inintegerAdvanced. The Sess link lifetime, in seconds, the target’s agent is asked to give each Session it creates for a run: at least 30 and at most the workspace plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000); out of range → 400 INVALID_SCHEMA, whose message names both bounds. Advisory: Sess does not create the target’s Sessions. How it works.
- The body sets
typehttpexplicitly; the endpoint has no user info or fragment, and an IP address must be public. - The grant policy names the audience origins and the grant lifetime;
enabledis optional. - The workspace comes from the credential only.
- The key is the
Idempotency-Keyheader. - An endpoint is refused with reason
not_https,port,credentials,fragment,non_public_address,malformedortoo_long; a capability withnot_object,unsupported_keyword,too_deep,too_large,does_not_compileornot_a_schema; and a body with an unsupportedtype, an unknown field or a malformedIdempotency-Key. - Operation ID
registerTarget
GET /v1/targets/{id}
Reads one of your agents, with its versions, its verification and its counts.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The agent’s ID. |
Responses
404- Your workspace has no such agent; another workspace’s agent gets the same answer (
NOT_FOUND). - Body Error
What it does
Only you see the counts.
Operation ID getTarget
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
PATCH /v1/targets/{id}
Turns your agent on or off, or changes its capability, who may start it, or its budget.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The agent’s ID. |
Request body (required)
Content type application/json: TargetUpdateRequest
min properties 1, no additional properties
-
enabledboolean -
capabilityobjectno additional properties
Show propertiesHide properties
-
namestring requiredA lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.
Details
^[a-z][a-z0-9_.-]{0,63}$ -
versionstring requiredA letter or digit, then up to 31 letters, digits, dots, plus signs or hyphens.
Details
^[0-9A-Za-z][0-9A-Za-z.+-]{0,31}$ -
input_schemaobject requiredJSON Schema 2020-12 for the start input: an object schema using only type, properties, required, additionalProperties, items, enum, const, numeric and length bounds, title and description (no pattern, format, $ref or composition), at most 6 levels deep and 8192 bytes.
-
-
grantobjectno additional properties
Show propertiesHide properties
-
audiencesarray of string requiredThe exact browser origins a grant may be issued for. A start must come from its grant’s origin (the Origin header).
min items 1, max items 8
-
lifetime_secondsinteger requiredHow long an issued grant lives.
minimum 60, maximum 86400
-
-
budgetobjectno additional properties
Show propertiesHide properties
-
max_concurrentinteger requiredminimum 1, maximum 100
-
max_starts_per_dayinteger requiredminimum 1, maximum 100000
-
-
default_expires_ininteger or null
Responses
400- The capability or the body is not valid (
TARGET_INVALID_CAPABILITYorINVALID_SCHEMA). - Body Error
What it does
- Changing the capability, the grant policy or the budget makes a new version.
- Turning it off refuses new starts at once and fails runs admitted but not yet sent.
- A new version makes older start grants out of date and fails runs admitted but not yet sent.
- Runs already sent are not recalled.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- Runs failed by turning it off end as
target_disabled, and by a new version asstale_binding. - A start with an out-of-date grant is refused as a version conflict.
- Operation ID
updateTarget
PATCH /v1/targets/{id}/sharing
Chooses whether your agent has a public card that anyone can start, and what the card says.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The agent’s ID. |
Request body (required)
Content type application/json: TargetSharingRequest
min properties 1, no additional properties
-
namestring or nullLower-case letters and digits, starting with a letter, with single hyphens between words.
Details
^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$ -
sharedbooleanTurning sharing on needs a name and a title, in this request or already set. Any change while shared needs the title too.
-
titlestring or null -
descriptionstring or null -
attributionstring or null -
ask_againboolean
Responses
400- The name, the title, the description, the attribution or the body is not valid, or the agent would be shared without a title (
VALIDATION_FAILED, reasonname_invalid,name_reserved,title_invalid,title_required,description_invalidorattribution_invalid; the title’s two carry field/title; orINVALID_SCHEMA). - Body Error
404- Your workspace has no such agent; another workspace’s agent gets the same answer (
NOT_FOUND). - Body Error
409- Another agent has that name, or sharing needs a name first (
TARGET_NAME_TAKEN, orACTION_NOT_ALLOWED, reasonname_required). - Body Error
What it does
- Set its name, whether it is shared (off by default), its title, your description, where its data comes from, and whether a finished run offers "Ask this agent again".
- The title is the card’s heading and the run page’s; the name is only the address. Sharing needs both.
- Sharing is not part of the agent’s version: the version does not change, and admitted runs carry on.
- The card exists only while the agent is shared, on and verified, accepts the site among those who may start it, and takes an empty input.
- Unsharing or turning the agent off removes the card at once, and starts from the card are refused while the agent is not shared.
- Start and completion counts stay visible only to you.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The card is at /a/{name} and answers not found when any of the conditions fails.
- The site origin must be in the grant policy’s audiences.
- The counts are
TargetResponse.counts. - Operation ID
updateTargetSharing
POST /v1/targets/{id}/verify
Verifies that you control your agent’s domain.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The agent’s ID. |
Responses
422- The verification document could not be fetched or is not right (
TARGET_VERIFICATION_FAILED, reasonegress_refused,redirect,rejected,bad_answer,timeout,connectionordns). - Body Error
What it does
- Sess fetches a verification document from your endpoint’s site, following no redirect and never connecting to a non-public address.
- The agent is verified for 30 days when the document names this agent and its verification token.
- Your agent’s endpoint itself is never called.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The document is /.well-known/sess-target/{id}.json, a JSON
TargetVerificationDocumentnaming thistarget_idand its token, fetched through the egress safeguards, which also refuse rebound addresses. - Operation ID
verifyTarget
POST /v1/targets/{id}/grants
Issues a start grant: a secret that lets one site start your agent.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The agent’s ID. |
Request body (required)
Content type application/json: GrantIssueRequest
no additional properties
-
audiencestring requiredmax length 300
An https origin in lower case, such as https://agent.example.com, with an optional port and no path.
Details
^https://[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::[0-9]{1,5})?$
Responses
400- That site is not allowed by the grant policy, or the body is not valid (
VALIDATION_FAILED, reasonaudience; orINVALID_SCHEMA). - Body Error
409- The agent is turned off or not verified (
ACTION_NOT_ALLOWED, reasondisabledorunverified). - Body Error
What it does
The grant is tied to your workspace, this agent, its current version and capability, and one of the sites your grant policy allows, and it expires after the policy’s lifetime. The secret is returned once.
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
Advanced
- The grant is 256 bits and stored only as a hash.
- Operation ID
issueTargetGrant
POST /v1/targets/{id}/grants/{grant_id}/revoke
Revokes a start grant at once.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The agent’s ID. |
grant_id | path | string | yes | The grant’s ID. |
Responses
What it does
Revoking twice is the same as once. Runs the grant already started carry on, and stay visible with their participant credential.
Operation ID revokeTargetGrant
Authentication
Send an API key as Authorization: Bearer <API key>. A developer API key starts with sess_sk_, comes from the account pages and works only in its own workspace. The deployment owner key works in the operator workspace. A revoked or expired key is refused, and a Session of another workspace is not found.
POST /v1/invocations
Starts a run of an agent, with a start grant.
Request body (required)
Content type application/json: InvocationStartRequest
no additional properties
-
request_idstring requiredOne logical start. The same request_id and body with the same grant returns the same admitted run; a different body → 409 IDEMPOTENCY_CONFLICT.
16 to 64 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{16,64}$ -
inputobject required
Responses
404- The grant is unknown, expired or revoked, sent from the wrong site, or the agent is off or not verified, with one answer for all (
NOT_FOUND). - Body Error
409- The same request ID came with a different body, or the agent’s version changed since the grant (
IDEMPOTENCY_CONFLICTorTARGET_VERSION_CONFLICT). - Body Error
429- A limit is reached: this grant’s run, the client’s day, the agent’s day or concurrency, the workspace’s or the service’s concurrency, or the workspace’s plan (
RATE_LIMITED, reasongrant_active,client_daily,target_daily,target_concurrency,workspace_concurrency,global_concurrencyorworkspace_paused). - Body Error
503- Starts are switched off or not set up here (
SERVICE_UNAVAILABLE, reasonadmission_disabledornot_configured). - Body Error
What it does
- Sess checks the grant and the agent, validates the input, reserves the limits, records the run and queues it to be sent, all in one step.
- The agent, its endpoint, capability and policy come only from the grant; any other field is refused.
- Sending the same request again returns the same run and the same participant credential.
- Opening an address never starts work.
Authentication
Send a start grant as Authorization: Bearer <start grant>. A start grant starts with sess_gr_ and comes from the agent’s owner. It is taken only to start a run, from the site the grant names.
Advanced
- The grant must be live, unrevoked and sent from its audience
Origin; the agent enabled, verified and at the grant’s version and capability. - A run is recorded with its request identity and an audit event.
- The same
request_idand body returns the same run (200); a different body with the samerequest_idis a conflict. - Initial limits: 10 active runs in total and per workspace, 1 per grant, 10 starts per client per 24 hours, and the agent’s own budget; a run lasts at most 15 minutes, and its input at most 4 KiB.
- An operator switch can refuse every start (reason
admission_disabled). - An agent whose workspace is at its plan limit starts nothing new (reason
workspace_paused); its admitted runs finish. - Operation ID
startInvocation
GET /v1/invocations/{id}
Reads a run’s status and, once it completed, its result.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The run’s ID. |
Responses
What it does
Operation ID getInvocation
Authentication
Send the participant credential as Authorization: Bearer <participant credential>. It starts with sess_pc_, a start returns it, and it reads or cancels that one run only.
POST /v1/invocations/{id}/cancel
Cancels a run that is still going.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The run’s ID. |
Responses
What it does
Cancelling twice is the same as once. A run not yet sent is never sent, and an answer the agent sends later is recorded as late and never used.
Operation ID cancelInvocation
Authentication
Send the participant credential as Authorization: Bearer <participant credential>. It starts with sess_pc_, a start returns it, and it reads or cancels that one run only.
POST /v1/invocations/{id}/result
Records your agent’s result for a run Sess sent it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The run’s ID. |
Request body (required)
Content type application/json: InvocationResultRequest
no additional properties
-
invocation_idstring requiredinv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$ -
target_versioninteger requiredminimum 1
-
statusstring required"completed"or"failed" -
resultobject
Responses
What it does
Send it with the callback credential of that run, naming the same run and agent version. A finished run never reopens: a late result is refused.
Authentication
Send the callback credential as Authorization: Bearer <callback credential>. It starts with sess_cb_, belongs to one run and is sent only to the verified agent.
Advanced
- The body names the same
invocation_idandtarget_version. - Operation ID
reportInvocationResult
GET /
Tells an agent where to start on the API host. No credential needed.
Responses
What it does
It points to this document, the docs, the docs' llms.txt and the no-signup trial, which needs no key.
Authentication
None. Anyone can call it.
Examples
{
"name": "Sess API",
"openapi": "https://api.sess.example/openapi.json",
"docs": "https://docs.sess.example/",
"llms": "https://docs.sess.example/llms.txt",
"trial": {
"method": "POST",
"path": "/v1/trial/sessions"
}
}
Advanced
- The trial is POST /v1/trial/sessions with no
Authorizationheader. - Responses are sent with
Cache-Control: no-store. - Operation ID
apiRoot
GET /openapi.json
Returns this document.
Responses
200- The OpenAPI 3.1 document.
What it does
It is generated from the running artifact’s contract and checked for drift on every change.
Operation ID openApi
Authentication
None. Anyone can call it.
GET /health/live
Tells you the process is running.
Responses
What it does
It calls nothing else.
Authentication
None. Anyone can call it.
Advanced
- Responses are sent with
Cache-Control: no-store. - Operation ID
healthLive
GET /health/ready
Tells you the service is ready to serve, checked within a time bound.
Responses
503- Not ready: the configuration, the database or the schema; no detail is disclosed.
- Body HealthUnavailable
What it does
- The owner key and the receipt signing keys are set up and usable.
- The build identity is complete and valid.
- The database answers, and every migration shipped with the artifact is applied.
- Requests at the same moment share one check; the next request after it finishes runs a new one.
- It never migrates, never calls a telemetry service, and is never cached.
Authentication
None. Anyone can call it.
Advanced
- A complete build identity means
git_sha,build_idandbuild_timeare all non-null in /version. - Query parameters are ignored.
- Responses are sent with
Cache-Control: no-store. - Operation ID
healthReady
GET /version
Returns the build identity of the running service, which is not secret.
Responses
What it does
It answers even when the service is not ready. A part of the identity that was not supplied, or is not valid, is null, and any null makes the service not ready.
Authentication
None. Anyone can call it.
Examples
{
"git_sha": "0123456789abcdef0123456789abcdef01234567",
"build_id": "synthetic-build-1",
"build_time": "2026-01-01T00:00:00Z",
"node_version": "v24.21.0"
}
{
"git_sha": null,
"build_id": "synthetic-build-1",
"build_time": "2026-01-01T00:00:00Z",
"node_version": "v24.21.0"
}
Advanced
git_sha,build_idandbuild_timeare each null when missing or invalid;git_shawhen the deployment’s git SHA is missing, empty or malformed, andbuild_timealso while it is more than 5 seconds in the future, checked on every request.- Responses are sent with
Cache-Control: no-store. - Operation ID
version
GET /.well-known/oauth-protected-resource
Describes the hosted MCP server to an agent host that connects to it (RFC 9728 metadata).
Responses
429- Too many requests. Try again after the time in the Retry-After header.
- Body OAuthErrorResponse
- Headers
Retry-After
What it does
It names the MCP resource, its one authorization server and its one scope, which covers the five Sess tools. The same metadata is served at the root and with the resource path appended.
Authentication
None. Anyone can call it.
Examples
{
"error": "temporarily_unavailable",
"error_description": "Too many requests. Try again in a moment."
}
Advanced
- Hosted MCP only; served on the MCP host.
- Operation ID
protectedResourceMetadata
GET /.well-known/oauth-protected-resource/mcp
Describes the hosted MCP server to an agent host that connects to it (RFC 9728 metadata).
Responses
429- Too many requests. Try again after the time in the Retry-After header.
- Body OAuthErrorResponse
- Headers
Retry-After
What it does
It names the MCP resource, its one authorization server and its one scope, which covers the five Sess tools. The same metadata is served at the root and with the resource path appended.
Authentication
None. Anyone can call it.
Examples
{
"error": "temporarily_unavailable",
"error_description": "Too many requests. Try again in a moment."
}
Advanced
- Hosted MCP only; served on the MCP host.
- Operation ID
protectedResourceMetadataForPath
GET /.well-known/oauth-authorization-server
Describes how an agent host signs in to the hosted MCP server (RFC 8414 metadata).
Responses
429- Too many requests. Try again after the time in the Retry-After header.
- Body OAuthErrorResponse
- Headers
Retry-After
What it does
- Only the authorization code flow, with S256 PKCE.
- Only public clients, which send no client secret.
- A client identifies itself with a client ID metadata document; dynamic registration is there for compatibility.
- Tokens can be refreshed and revoked, and every authorization response names its issuer (RFC 9207).
Authentication
None. Anyone can call it.
Examples
{
"error": "temporarily_unavailable",
"error_description": "Too many requests. Try again in a moment."
}
Advanced
- The metadata sets
token_endpoint_auth_methodto none andclient_id_metadata_document_supported. - The issuer and the token, registration and revocation endpoints are on the MCP host; the authorization endpoint is the consent page on the account pages (app.sess.si).
- Hosted MCP only.
- Operation ID
authorizationServerMetadata
GET /app/oauth/authorize
Shows the person the page where they allow an agent host to use Sess for their workspace.
Responses
200- The consent page, or a page asking the person to sign in first.
303- The request has a problem, so the person goes back to the agent host with the error.
400- The client or its redirect address is unknown, or the request is malformed (
INVALID_REQUEST,INVALID_CLIENTorINVALID_REDIRECT_URI).
What it does
- Someone who has not signed in within the last 12 hours is asked to sign in again first; until then nothing is checked or fetched.
- An unknown client or a redirect address the client never registered gets an error page here, never a redirect.
- Other problems send the person back to the agent host with the error.
- A valid request shows "Authorize an agent host": the host, the workspace and the five tools.
- Opening this page never decides, uses up or issues anything.
Authentication
None. Anyone can call it.
Advanced
- The query takes
response_type=code;client_id, a registered ID or the https address of a client ID metadata document;redirect_uri, required, exactly one of the client’s registered addresses;code_challengeandcode_challenge_method=S256, both required;state, optional, at most 512 characters;scope, optional,sess:interact(an unknown scope beside it is ignored, and a request naming no known scope is refused asinvalid_scope); andresource, optional, the MCP resource, its scheme and host in any letter case. - A metadata document is fetched only from public addresses, on port 443, with no redirects, at most 16 KiB within 5 seconds, and is reused for 5 minutes.
- A redirect back to the host carries the error, the state and the issuer.
- Hosted MCP only.
- Operation ID
authorizeAgentHost
POST /app/oauth/authorize
Records the person’s choice to allow or deny an agent host.
Responses
200- The outcome page, which sends the person back to the agent host with a code, or with
access_deniedwhen the person denied it, by a refresh and a link. 400- The consent request expired, was already used or belongs to another session (
AUTHORIZATION_REQUEST_INVALID). 401- The sign-in is not recent enough, so the person signs in again.
403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED).
What it does
- The choice must come from the consent page itself, within its 10 minutes, from someone who signed in within the last 12 hours.
- Allow gives the host access to the workspace and ends any earlier access the same host had.
- The person goes back to the agent host with a single-use code that works for 5 minutes.
- Each request from a client is accepted once.
Authentication
None. Anyone can call it.
Advanced
- The form fields are
csrf,request(the page’s single-use consent request, bound to the account’s session) anddecision(allowordeny). - The request must be same-origin with a valid CSRF token.
- Allow creates or renews the consent grant of the workspace, the account and the agent host with a new generation, so earlier tokens and hosted handles of that host end.
- The redirect carries the code, the state and the issuer.
- A client and state pair is accepted once.
- Hosted MCP only.
- Operation ID
decideAgentHost
POST /oauth/token
Exchanges an authorization code or a refresh token for new tokens.
Request body (required)
Content type application/x-www-form-urlencoded: object
Type: object
Responses
400- The request, client, grant, scope or resource is not valid, or the grant type is not supported (
invalid_request,invalid_client,invalid_grant,invalid_scope,invalid_targetorunsupported_grant_type). - Body OAuthErrorResponse
401- The client tried HTTP authentication, which public clients do not use (
invalid_client). - Body OAuthErrorResponse
429- Too many requests. Try again after the time in the Retry-After header.
- Body OAuthErrorResponse
- Headers
Retry-After
What it does
- Clients are public: they send no client secret and no HTTP authentication.
- A code that is used a second time revokes every token issued from it.
- A refresh token that is used again after it was replaced revokes its whole family too, unless it is the family’s latest one and less than 30 seconds have passed, so two refreshes at once both work.
- The body may be at most 16 KiB.
Authentication
None. Anyone can call it.
Examples
{
"error": "temporarily_unavailable",
"error_description": "Too many requests. Try again in a moment."
}
Advanced
- With
grant_type=authorization_code, sendcode,redirect_uri(as authorized),client_id,code_verifier(S256) and, optionally,resource. - With
grant_type=refresh_token, sendrefresh_token,client_idand, optionally,scopeandresource; the scope is never wider, and an unknown scope is ignored. - A refresh within the 30 seconds issues another token pair of the same family.
- Responses are sent with
Cache-Control: no-store. - Hosted MCP only; served on the MCP host.
- Operation ID
oauthToken
POST /oauth/register
Registers an agent host as a public client, for hosts that cannot use a client ID metadata document (RFC 7591).
Request body (required)
Content type application/json: ClientRegistrationRequest
-
redirect_urisarray of string requiredmin items 1, max items 10
-
client_namestringmax length 100
-
token_endpoint_auth_methodstring"none" -
grant_typesarrayarray of
"authorization_code"or"refresh_token" -
response_typesarray of"code"
Responses
400- A redirect address or the client’s details are not valid (
invalid_redirect_uriorinvalid_client_metadata). - Body OAuthErrorResponse
429- Too many requests. Try again after the time in the Retry-After header.
- Body OAuthErrorResponse
- Headers
Retry-After
What it does
- Redirect addresses must be https, http on a loopback host, or a native app scheme, with no fragment or user info.
- Registering grants nothing: the person still allows each use.
- The redirect addresses and the name together may be at most 4 KiB.
- One network address can register at most 400 times an hour, and all addresses together at most 40,000 times an hour.
Authentication
None. Anyone can call it.
Examples
{
"error": "temporarily_unavailable",
"error_description": "Too many requests. Try again in a moment."
}
Advanced
- Client ID metadata documents are the preferred path; this one is for compatibility.
- Hosted MCP only; served on the MCP host.
- Operation ID
oauthRegister
POST /oauth/revoke
Revokes an access or refresh token (RFC 7009).
Request body (required)
Content type application/x-www-form-urlencoded: object
Type: object
Responses
200- Revoked, or there was nothing to revoke.
400- The request or the client is not valid (
invalid_requestorinvalid_client). - Body OAuthErrorResponse
429- Too many requests. Try again after the time in the Retry-After header.
- Body OAuthErrorResponse
- Headers
Retry-After
What it does
Revoking an access token also ends the API credentials issued under it; revoking a refresh token ends its whole family. An unknown token, or another client’s, gets the same answer.
Authentication
None. Anyone can call it.
Examples
{
"error": "temporarily_unavailable",
"error_description": "Too many requests. Try again in a moment."
}
Advanced
- The form fields are
tokenandclient_id;token_type_hintis ignored. - Hosted MCP only; served on the MCP host.
- Operation ID
oauthRevoke
GET /app/hosts
Lists the agent hosts the account has allowed.
Responses
200- The agent hosts page.
303- Not signed in, so to the sign-in page.
What it does
Someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- Hosted MCP only.
- Operation ID
agentHostsPage
GET /app/hosts/{id}/revoke
Asks the person to confirm removing an agent host.
Responses
200- The confirmation page.
303- Not signed in, so to the sign-in page.
404- This account has not allowed that agent host (
NOT_FOUND).
What it does
The page asks one question and offers Remove, which sends the request below, and Cancel, which goes back to the agent hosts page. Opening it changes nothing. Someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- Hosted MCP only.
- Operation ID
removeAgentHostConfirm
POST /app/hosts/{id}/revoke
Removes an agent host’s access to the workspace.
Responses
303- Removed; back to the agent hosts page (
/app/hosts?removed=1). 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 404- This account has not allowed that agent host (
NOT_FOUND).
What it does
Every token the host holds is revoked, so its access and its hosted conversations end at once.
Authentication
None. Anyone can call it.
Advanced
- Sent by the confirmation page’s Remove button, same-origin, with the form field
csrf. - The consent grant gets a new generation.
- Hosted MCP only.
- Operation ID
removeAgentHost
POST /personal/sign-in
Emails a person a code and a link to sign in to their receipts.
Request body (required)
Content type application/json: PersonalSignInRequest
no additional properties
-
emailstring requiredThe address to send the personal sign-in code and link to. Trimmed and lower-cased.
min length 3, max length 254
Responses
202- Handed to the email provider; the browser now holds the sign-in challenge.
- Body PersonalSignInAccepted
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
503- Sign-in is not set up here, or the email provider did not confirm the send, so an email may or may not arrive; earlier links still work and the attempt counts (
SIGN_IN_UNAVAILABLEorSERVICE_UNAVAILABLE). - Body Error
What it does
- The six-digit code works for 10 minutes, allows 5 guesses, and only in the browser that asked for it.
- The single-use link works for 15 minutes.
- The answer is the same whether or not the address has an account.
- Every attempt counts toward the sending limits, even one the email provider did not confirm.
Authentication
None. Anyone can call it.
Examples
{
"email": "person@example.test"
}
Advanced
- The code is bound to a challenge cookie this request sets.
- The link holds a 256-bit token in the URL fragment of the confirm page, /personal/confirm.
- A send is reserved before the email provider is called.
- The limits are shared with developer sign-in: 10 sends per address, 100 per client and 1,000 in total per rolling hour; 5 per address and 50 per client per rolling 10 minutes; 5 per browser per hour; and at most 20 sends in flight.
- Operation ID
requestPersonalSignIn
POST /personal/sign-in/resend
Sends a new sign-in email to the address this browser is already signing in with.
Request body (required)
Content type application/json: PersonalEmptyRequest
no additional properties
Type: object
Responses
202- Handed to the email provider; the browser now holds the new challenge.
- Body PersonalSignInAccepted
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- This browser has no sign-in in progress, so ask for the address again (
NOT_FOUND, reasonno_challenge). - Body Error
503- Sign-in is not set up here, or the email provider did not confirm the send (
SIGN_IN_UNAVAILABLEorSERVICE_UNAVAILABLE). - Body Error
What it does
The address comes from the browser’s own live sign-in challenge, never from the request, and the body is empty. The sending limits and answers are those of the first send; success is reported only once the email provider confirmed the send, and an uncertain send is never reported as sent.
Operation ID resendPersonalSignIn
Authentication
None. Anyone can call it.
POST /personal/sign-in/code
Signs the person in with the emailed code, in the browser that asked for it.
Request body (required)
Content type application/json: PersonalCodeRequest
no additional properties
-
codestring requiredThe six-digit code from the email (spaces and hyphens are ignored).
min length 1, max length 32
Responses
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
What it does
Using the code ends the link of the same email, and using the link ends the code.
Authentication
None. Anyone can call it.
Advanced
- The person’s session is a host-only cookie (HttpOnly, Secure, SameSite=Lax, path /) for 30 days, renewed to 30 days on a signed-in request at most once an hour; the challenge cookie is cleared.
- It is a personal session only: no workspace, developer account, API key or billing record is created or changed, and it signs in to no developer page or route.
- Every refusal gets the same answer: an unknown, used, replaced or expired code, a developer challenge, a wrong or locked code, too many failures, or no challenge in this browser.
- Operation ID
redeemPersonalSignInCode
POST /personal/sign-in/link
Signs the person in with the emailed link.
Request body (required)
Content type application/json: PersonalLinkRequest
no additional properties
-
tokenstring requiredThe sign-in link token, read by the page from the link’s URL fragment (it is never in a request URL). New tokens are base62 (0-9, A-Z, a-z); tokens of earlier links may also contain - and _, and both are accepted.
min length 1, max length 64
Responses
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
What it does
The confirm page sends the link’s token from its address. Opening the link never uses it up.
Authentication
None. Anyone can call it.
Advanced
- The token comes from the URL fragment of /personal/confirm.
- The session cookie, its renewal and its limits are those of signing in with the code.
- Every refusal gets the same answer.
- Operation ID
redeemPersonalSignInLink
GET /personal/session
Returns the signed-in person’s own account and the copy they saved most recently.
Responses
What it does
- The account’s address, so the page can name it before a Save.
- The form token for the person’s next requests.
- The copy this session’s latest Save wrote or found, or nothing when there is none or it was removed, and whether it was saved within the last ten minutes, so the receipts page can open it after a save.
- Reading changes nothing, except that it renews a live session at most once an hour.
- A developer session is never accepted here.
Authentication
None. Anyone can call it.
Advanced
- The copy is
last_saved, null when there is none or it was removed, andlast_saved_just_nowsays whether it was saved within the last ten minutes. - Operation ID
getPersonalSession
POST /personal/sign-out
Signs the person out in this browser.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalEmptyRequest
no additional properties
Type: object
Responses
401- No one is signed in to a personal account; a developer session never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
What it does
Operation ID personalSignOut
Authentication
None. Anyone can call it.
POST /personal/sign-out/everywhere
Signs the person out of their receipts on every device.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalEmptyRequest
no additional properties
Type: object
Responses
401- No one is signed in to a personal account; a developer session never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
What it does
Every session of this account ends, this one included. Other accounts and any developer session are not touched.
Operation ID personalSignOutEverywhere
Authentication
None. Anyone can call it.
POST /personal/close
Deletes the person’s account and everything they saved in it.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalEmptyRequest
no additional properties
Type: object
Responses
401- No one is signed in to a personal account; a developer session never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, had no form token, or the sign-in is more than 15 minutes old, so nothing changed and the person signs in again with an email code first (
ACTION_NOT_ALLOWED, reasonrecent_sign_in_requiredfor the last). - Body Error
409- A legal hold covers one of the saved copies, so nothing changed (
ACTION_NOT_ALLOWED, reasonremoval_delayed). - Body Error
What it does
Every session, every saved copy and the claims that wrote them are deleted. A developer account on the same address, with its sessions, keys and workspace, is not touched.
Authentication
None. Anyone can call it.
Advanced
- The personal grant itself is deleted too, and an opaque record with no address is left, also in the restore ledger, so a restore cannot bring the account back.
- The identity record is deleted unless a developer account still uses the address.
- Closing needs a sign-in within the last 15 minutes; a renewed session does not count.
- A hold that names a round of a saved copy stops the closing, and the hold is never named.
- Operation ID
closePersonalAccount
POST /personal/save/destination
Ties a Save to this signed-in person, so only they can finish it.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: SaveDestinationRequest
no additional properties
-
noncestring requiredA 32-byte random nonce this destination page keeps until it redeems.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
secretstringThe transfer secret of a claim made at the tap (with no destination binding). Never in a URL. How saving works.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
verifierstringThe source verifier of that claim (required with
secret, and only with it).43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
Responses
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- No claim matches, or it is bound elsewhere, with one answer for both; or the matching claim has expired or was abandoned (
NOT_FOUND, reasonclaim_expiredorclaim_abortedfor the last two). - Body Error
What it does
- The Save sheet sends a random value of its own; the answer is a value derived from it that only this session can produce.
- A claim made for this binding can be finished only by this session, presenting the same value.
- Nothing is stored, apart from renewing the session at most once an hour.
- Binding the same claim again gets the same answer, so a retry after a lost answer is safe.
Authentication
None. Anyone can call it.
Advanced
- The answer is an HMAC of the nonce keyed by the session’s secret.
- With
secretandverifier(a claim made at the tap, not bound yet), the same request binds that claim to this binding, atomically and before any redemption: the claim must match the secret, purpose, personal origin and source verifier, and a binding already held by another claim never binds it. - Operation ID
bindSaveDestination
POST /personal/save/redeem
Saves the claimed conversation into the person’s receipts.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: SaveRedeemRequest
no additional properties
-
secretstring requiredThe claim’s transfer secret.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
verifierstring requiredThe source verifier whose hash the claim was created with.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
noncestring requiredThis page’s nonce, the one its destination binding was made for (for a claim made at the tap, the nonce it was bound with).
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
Responses
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- No claim matches, with one answer whatever did not match; or the matching claim has expired or was abandoned (
NOT_FOUND, reasonclaim_expiredorclaim_abortedfor the last two). - Body Error
What it does
- The claim’s secret, its verifier, the Save sheet’s value and this session’s binding must all match; the secret alone never does, and a claim that is not bound yet never matches.
- The claim and the saved copy are written together, or not at all.
- If what the claim covers changed under a restriction since it was made, nothing is saved.
- Sending the same request again gets the first answer, without a second save.
Authentication
None. Anyone can call it.
Advanced
- Suppression is checked again: if the rounds the claim’s grants authorize are no longer exactly its batch, the claim is aborted.
- The copy is the kept-conversation file as Keep produces it at that moment, stored under the personal grant; saving the same rounds again writes nothing and answers the same
saved_at. - Operation ID
redeemSaveClaim
POST /personal/save/direct
Saves a conversation straight into the person’s receipts when the Sess link page is on the same site.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: SaveDirectRequest
no additional properties
-
linkstring requiredThe Sess link token of the page on this same origin (read from its path; sent only in this body, never in a URL): 22 characters for a /n/ link, 43 for a /s/ link. New tokens are base62 (0-9, A-Z, a-z); tokens of earlier links may also contain - and _, and both are accepted.
22 or 43 letters, digits, hyphens or underscores.
Details
^(?:[A-Za-z0-9_-]{22}|[A-Za-z0-9_-]{43})$ -
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
Responses
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- This is not the personal site, the link is no longer live, or nothing presented covers a round (
NOT_FOUND, reasonno_authorized_roundsfor the last). - Body Error
What it does
No claim is needed. The link and the person’s keep permissions travel in the body, never in an address. What those permissions cover now is saved, exactly as Keep would export it. This works only on that one site.
Authentication
None. Anyone can call it.
Advanced
- Saving the same rounds again writes nothing and answers the same
saved_at. - Operation ID
saveDirect
GET /personal/copies
Lists the copies the person saved, newest first, at most 100.
Responses
401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
What it does
Each copy comes with its title and its rounds as they are served now. For each round you get, separately, whether its signature checks out, whether its questions and answers match, and the holder status recorded when it was saved.
A round withheld by a restriction or deletion order is left out, and the copy’s status says it is partly unavailable or unavailable, never why. Reading changes nothing, apart from renewing the session at most once an hour.
Authentication
None. Anyone can call it.
Advanced
- The signature outcome is the archival verifier’s.
- Holder proofs whose batch names a withheld round are withheld too, and the status is then
partly_unavailableorunavailable. - Operation ID
listPersonalCopies
POST /personal/copies/query
Returns one page of 20 of the person’s saved copies, sorted, searched and filtered, with the number of matches.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalCopiesQuery
no additional properties
-
qstringSearch: a case-insensitive part of the shown title or of the agent name (no wildcards), matched only against what the copy serves now. Sent only in this body; never logged.
max length 100
-
statusstring"available","partly_unavailable"or"unavailable"partly_unavailableorunavailablewhen an operator restriction or deletion whose scope reaches personal copies withholds rounds or holder proofs of it: that content is never served, and the status never says why. -
sortstring"saved","title"or"agent"The order: by the date the row shows (the default;
answered_at, elsesaved_at), the shown title or the agent name (copies with none last). -
orderstring"asc"or"desc"Ascending or descending (the default: desc by date, asc by title or agent).
-
offsetintegerHow many matching copies to skip (pages of 20), when no cursor is given. Kept for a page loaded before cursors; the page itself sends a cursor.
minimum 0, maximum 1000000
-
cursorstringA page position from a previous answer’s next or previous, under the same sort, order, status and search: opaque, sealed for this personal session, never a credential. One that does not open here is the first page.
max length 2048
One or more letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]+$
Responses
401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
What it does
- Sort by the date the row shows (the last answer, else the date saved), the shown title or the agent’s name.
- Search a part of the title or the agent’s name; the answers are never searched.
- Filter by status, and page past the newest 100.
- Each copy shows only its item, the date saved, the date of its last answer, its status, its shown title and the agent’s name.
- The search travels only in this body, never in an address, and is never logged.
- Reading changes nothing, apart from renewing the session at most once an hour.
Authentication
None. Anyone can call it.
Advanced
- The shown title is the title of the first round the copy serves now that has one, and the last answer is that round’s or a later served round’s time.
- The agent’s name is the one it was published under when the copy was saved: a historical display name, never a verified identity.
- Withholding comes first: a round a restriction or deletion order withholds from personal copies, and the name of a copy with nothing served, are never shown, matched, counted or sorted on.
- Paging is by a stable position: each answer carries the cursors of its next and previous pages, sealed for this session, so a copy saved meanwhile never repeats or skips a row.
- Operation ID
queryPersonalCopies
POST /personal/copies/open
Returns one saved copy to read on the page.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalCopyRequest
no additional properties
-
itemstring requiredA saved copy of this personal account, as GET /personal/copies lists it.
psn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$
Responses
401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- This account has no such copy; another account’s copy gets the same answer (
NOT_FOUND). - Body Error
What it does
For each round it serves now: its title and description, the action the person chose, the questions and answers as plain text, and the two verification outcomes and the holder status, each kept separate. A withheld round is left out.
No file, receipt or proof is returned here; Download gives the file. Reading changes nothing, apart from renewing the session at most once an hour.
Operation ID openPersonalCopy
Authentication
None. Anyone can call it.
POST /personal/copies/label
Renames a saved copy for the person, or clears the name.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalCopyLabelRequest
no additional properties
-
itemstring requiredpsn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
labelstring or null requirednull clears the label: the copy shows its own title again.
Not blank, with no control characters.
Details
^[^\u0000-\u001f\u007f]*\S[^\u0000-\u001f\u007f]*$
Responses
401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- This account has no such copy; another account’s copy gets the same answer (
NOT_FOUND). - Body Error
What it does
The name is stored beside the copy, never in it: the file, its digest, its receipt and its download stay the same. The receipts table shows it, searches it and sorts by it in place of the title. It is deleted with the copy.
Authentication
None. Anyone can call it.
Advanced
- Send null to clear the name.
- Operation ID
labelPersonalCopy
POST /personal/copies/download-many
Downloads several saved copies as one ZIP file.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalCopiesRequest
no additional properties
-
itemsarray of string requiredSaved copies of this account, as the table lists them (at most a page).
min items 1, max items 25
Responses
200- The archive, as an attachment.
- Headers
X-Sess-Left-Out,X-Sess-Left-Out-Items 401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
409- None of the selected copies can be served now (
ACTION_NOT_ALLOWED, reasoncopy_unavailable). - Body Error
413- The selection is larger than one archive holds, so select fewer; nothing is trimmed (
PAYLOAD_TOO_LARGE, reasonexport_too_large). - Body Error
429- Too many requests from this session, or another export of this account or the service’s limit is in progress (
RATE_LIMITED, reasonexport_busyfor another export). - Body Error
- Headers
Retry-After 503- The service has just started and is not ready yet, or the archive could not be prepared in time (
SERVICE_UNAVAILABLE, reasonexport_timeoutfor the last). - Body Error
What it does
- Each file in the archive is exactly what downloading that one copy gives, named by the date saved and its place in the selection, never by the person’s own name for it.
- Copies with nothing to serve, or not in this account, are left out, and the response says how many and which.
- A selection larger than one archive holds is refused whole, never trimmed.
Authentication
None. Anyone can call it.
Advanced
- The archive is stored uncompressed, named sess-receipts-YYYY-MM-DD.zip, and sent as an attachment.
- The
X-Sess-Left-Outheader counts the copies left out andX-Sess-Left-Out-Itemsnames them. - It holds at most 32 MiB, a limit set from the largest valid copy measured, so any one copy fits; it must be ready within 20 seconds; one export runs per account and one per process at a time.
- Files are streamed one at a time with a
Content-Length, so a copy that changes while it is sent ends the response short and the download fails rather than delivering a wrong archive. - Operation ID
downloadPersonalCopies
POST /personal/copies/remove-many
Removes several saved copies from Sess and reports what happened to each.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalCopiesRequest
no additional properties
-
itemsarray of string requiredSaved copies of this account, as the table lists them (at most a page).
min items 1, max items 25
Responses
401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, had no form token, or the sign-in is more than 12 hours old, so nothing was removed and the person signs in again with an email code first (
ACTION_NOT_ALLOWED, reasonrecent_sign_in_requiredfor the last). - Body Error
What it does
Each copy is removed exactly as removing it alone would, in its own step with its own hold check and its own ledger entry.
Each copy gets one outcome: removed; not found, as it was already gone, so a retry is safe; held, as a legal hold covers it; failed, still saved as read again afterwards; not attempted, as the request ran out of time or the session ended part way; or unknown, as the removal failed and could not be read back in time.
Authentication
None. Anyone can call it.
Advanced
- Each copy has its own transaction.
- The outcomes are
removed,not_found,held,failed(read again under its lock),not_attemptedandunknown; a lost answer to a commit is never taken for a rollback. - Removing needs a sign-in within the last 12 hours; a renewed session does not count.
- Operation ID
removePersonalCopies
POST /personal/copies/download
Downloads one saved copy as a file, or as its receipt PDF.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalCopyDownloadRequest
no additional properties
-
itemstring requiredA saved copy of this personal account, as GET /personal/copies lists it.
psn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
formatstring"json"or"pdf"pdfanswers the copy as served now as a receipt PDF (application/pdf; the same exporter as Keep withformat: pdf, the file as served embedded unchanged as its one associated file). A file outside the PDF profile is answered as the JSON instead, whole. How saving works.
Responses
200- The file, or its receipt PDF, as an attachment.
401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- This account has no such copy; another account’s copy gets the same answer (
NOT_FOUND). - Body Error
409- Nothing of this copy can be served now (
ACTION_NOT_ALLOWED, reasoncopy_unavailable). - Body Error
What it does
When nothing of the copy is withheld, the file is exactly what was saved. Otherwise it is the file as Keep would serve it now: withheld rounds and the holder proofs that name them are left out.
Authentication
None. Anyone can call it.
Advanced
- The file is the copy’s sess.kept-conversation file, sent as an attachment.
- With
format: pdf, as the receipts page’s Download asks, the answer is the receipt PDF of that same file, with an ASCIIfilenameand the exactfilename*inContent-Disposition, or the JSON file when it falls outside what the PDF can show. - Operation ID
downloadPersonalCopy
POST /personal/copies/remove
Removes one saved copy from Sess.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
x-sess-csrf | header | string | yes |
Request body (required)
Content type application/json: PersonalCopyRequest
no additional properties
-
itemstring requiredA saved copy of this personal account, as GET /personal/copies lists it.
psn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$
Responses
401- No one is signed in to a personal account; a developer session, an owner key or a Sess link never counts (
UNAUTHORIZED). - Body Error
403- The request came from another site, or a signed-in request had no form token (
ACTION_NOT_ALLOWED). - Body Error
404- This account has no such copy; another account’s copy gets the same answer (
NOT_FOUND). - Body Error
409- A legal hold covers one of its rounds, so nothing changed (
ACTION_NOT_ALLOWED, reasonremoval_delayed). - Body Error
What it does
The copy and the claims that wrote it are deleted and the removal is recorded in the restore ledger, all in one step. Nothing else is touched: no receipt, no Session, nothing the developer keeps.
Authentication
None. Anyone can call it.
Advanced
- A legal hold that covers one of the copy’s rounds stops the removal, and the hold is never named.
- Operation ID
removePersonalCopy
POST /v1/auth/email-link
Emails a developer a link to sign in to their account.
Request body (required)
Content type application/json: EmailLinkRequest
no additional properties
-
emailstring requiredThe address to send a sign-in link to. Trimmed and lower-cased.
min length 3, max length 254
Responses
429- Too many links for this address or from this client (
RATE_LIMITED). - Body Error
- Headers
Retry-After 503- Email is not set up here, or the email provider did not confirm the send, so an email may or may not arrive; earlier links still work and the attempt counts (
SIGN_IN_UNAVAILABLEorSERVICE_UNAVAILABLE). - Body Error
What it does
- The link works once and for 15 minutes.
- A newer link replaces it once the email provider has confirmed sending the newer one; a send that was not confirmed replaces nothing.
- Signing in with one link ends the address’s other links.
- The answer is the same whether or not the address has an account.
- Opening the link shows a page whose Sign in button finishes signing in; opening it never uses it up.
- Signing in as a developer never verifies a person who answers a Sess link.
Authentication
None. Anyone can call it.
Examples
{
"email": "developer@example.test"
}
Advanced
- Each address can ask for 10 links and each client for 100 per rolling hour, and 5 and 50 per rolling 10 minutes.
- A send that was not confirmed still counts toward these limits.
- Operation ID
requestSignInLink
GET /app/sign-in
Shows the developer sign-in page, where a developer asks for a sign-in email.
Responses
200- The sign-in page, for someone not signed in or with a key creation waiting for a sign-in.
303- Already signed in, so to the account pages.
What it does
- The email has a link and a six-digit code; the code works only in this browser.
- Someone already signed in goes straight to the account pages.
- When a key creation is waiting for a sign-in, the page is shown as "Verify it’s you", whatever the session, and the key is created only after the email is confirmed.
- When GitHub sign-in is set up, the page also offers "Continue with GitHub".
- Opening the page never uses a link, creates a key or changes anything, apart from renewing a signed-in session at most once an hour.
Authentication
None. Anyone can call it.
Advanced
- The form posts same-origin only.
- Each request is one challenge, a link and a code, with a random browser challenge in a cookie (HttpOnly, Secure, SameSite=Strict, host-only, path /app, 15 minutes) that the code is bound to; the browser then goes to /app/check-email, whose code form posts to /app/sign-in/code.
- A live session (unexpired, not revoked) goes to /app/, a fixed path that nothing in the request can change.
- A waiting key creation is a valid key-creation cookie.
- "Continue with GitHub" posts to /app/sign-in/github, and the page’s form-action then also allows https://github.com.
- Operation ID
signInPage
GET /app/confirm/{token}
Shows the page the emailed sign-in link opens.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The token from the sign-in email’s link. |
Responses
200- The confirm page.
What it does
It shows only a Sign in button, and opening it uses nothing up. When the link was asked for to finish creating a key, the button says "Continue creating your key".
Authentication
None. Anyone can call it.
Advanced
- The token in the address is a single-use secret and is never logged.
- The key-creation case is
?continue=key. - Operation ID
signInConfirmPage
POST /app/confirm/{token}
Signs the developer in with the emailed link.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes | The token from the sign-in email’s link. |
Responses
200- Signed in, but the waiting key was not created because its expiry date changed with the new day; the keys page shows a fresh form.
303- Signed in, to the account pages, or to the keys page, which shows the new key once.
400- The link expired, was already used or was replaced by a newer one (
SIGN_IN_LINK_INVALID). 403- The request came from another site (
ACTION_NOT_ALLOWED). 409- Signed in, but the waiting key was not created because the account already has 10 active keys (
KEY_LIMIT_REACHED).
What it does
- The link works once, and using it also ends the code from the same email.
- The session lasts 30 days and renews while it is used; deleting things needs a sign-in within the last 12 hours.
- This browser’s previous session ends.
- When this browser was waiting to create a key for the same account, the key is created now, once, with the name and expiry chosen, and the keys page shows it once.
- A key creation waiting for another account creates nothing.
Authentication
None. Anyone can call it.
Advanced
- Same-origin requests only.
- The session is a cookie (HttpOnly, Secure, SameSite=Lax, host-only, path /app).
- The waiting key creation is a key-creation cookie, set by a create request whose session had expired, and it is cleared here.
- When the expiry date its form showed is no longer the date a key created now would get, because a new UTC day began, the key is not created and the keys page shows a fresh form.
- A link asked for to finish a key creation started in another browser goes to /app/keys?resume=elsewhere.
- Operation ID
signInConfirm
POST /app/sign-in/code
Signs the developer in with the emailed six-digit code, in the browser that asked for it.
Responses
303- Signed in, to the account pages, or to the keys page, which shows the new key once.
400- The code was not accepted, with one answer for every reason: wrong, expired, used, replaced or locked, no challenge in this browser, too many guesses or a malformed entry (
SIGN_IN_CODE_INVALID). 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED).
What it does
- The code works for 10 minutes and allows 5 guesses.
- Failed guesses also count toward limits per address, per client and in total, across resent emails.
- A correct code ends the link from the same email, then signs in exactly as the link does, including a waiting key creation.
- Every refusal gets the same answer.
Authentication
None. Anyone can call it.
Advanced
- Same-origin form posts only, with the fields
csrf(the check-email page’s token, derived from the browser challenge) andcode(6 digits; spaces and hyphens are ignored). - The limits are 10 failed guesses per address, 30 per client and 2,000 in total per rolling hour.
- A match uses up the challenge atomically.
- The session, its 30 days, its renewal and the 12-hour rule for deleting are the link’s.
- A key creation started in another browser or account goes to /app/keys?resume=elsewhere.
- Operation ID
signInWithCode
POST /app/devices/{id}/revoke
Signs one of the account’s sessions out.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The signed-in device’s ID. |
Responses
303- Signed out; back to the keys page (
/app/keys?device_revoked=1), or to the sign-in page for this device. 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 404- That is not a signed-in device of this account (
NOT_FOUND).
What it does
Each session is listed under "Sign-in and sessions" on the keys page. Signing out the device you are using also clears its cookie.
Authentication
None. Anyone can call it.
Advanced
- Each session has a public ID (
acs_…). - Same-origin form posts with the session’s form token only.
- Operation ID
signOutDevice
GET /app/account/close
Shows the one screen that confirms deleting the developer account.
Responses
200- The confirmation screen.
303- Not signed in, so to the sign-in page.
What it does
It opens from the account menu. Nothing is deleted until the person confirms; opening it only renews a signed-in session, at most once an hour.
Operation ID closeAccountScreen
Authentication
None. Anyone can call it.
POST /app/account/close
Deletes the signed-in developer account.
Responses
303- Deleted, to the closed page (
/app/account/closed) with the session cleared; or the sign-in is older than 15 minutes ("Verify it’s you"), or there is none, so to the sign-in page. 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 503- Nothing was deleted, because the plan’s cancellation was not confirmed or the service is not ready yet; or the outcome of the deletion is unknown, and the page says so (
SERVICE_UNAVAILABLE).
What it does
- It needs a sign-in within the last 15 minutes; an older one deletes nothing and asks the person to confirm by email in the same browser first, then deletes once.
- Any paid plan is set to end at the end of its period first; if that is not confirmed, nothing is deleted.
- Every API key, session, agent host’s access, the GitHub link and the account itself are deleted together, and any trial claims are released.
- The workspace closes: its webhook and agents stop, and its Sessions follow their retention; each signed receipt stays and keeps verifying, kept without automatic expiry.
- A personal account on the same address is never touched.
Authentication
None. Anyone can call it.
Advanced
- Same-origin form posts with the session’s form token only; the 15 minutes are measured by the database clock.
- Each live subscription not already ending is set to cancel at the end of its period through the billing provider, and open Checkouts are expired.
- Then one transaction deletes every API key, account session, hosted-MCP grant and token, the GitHub link, trial claims and the developer record, replaces live sign-in links, closes the workspace with its webhook endpoint and targets disabled, and records a content-free tombstone and account-ledger line.
- Operation ID
closeAccount
GET /app/account/closed
Shows the page a person sees after deleting their account.
Responses
200- Your account is deleted.
What it does
Its words are fixed and it reads nothing.
Operation ID accountClosed
Authentication
None. Anyone can call it.
POST /app/sign-in/github
Starts signing in with GitHub, from "Continue with GitHub" on the sign-in page.
Request body
Content type application/x-www-form-urlencoded: object
-
returnstring"/keys"or"/evidence"
Responses
303- To GitHub’s authorization page, with this browser’s tie set.
403- The request came from another site (
ACTION_NOT_ALLOWED). 429- Too many GitHub sign-ins started from this client or in total (
RATE_LIMITED). - Headers
Retry-After 503- GitHub sign-in is not set up on this deployment (
SIGN_IN_UNAVAILABLE).
What it does
- The button is shown only when the deployment has a GitHub app set up.
- The person goes to GitHub’s authorization page, asked only for their email address.
- The start is tied to this browser for 10 minutes, so it can finish only here.
- After signing in, the person returns to the receipts page when they started there, else to the account pages.
- A client can start 30 GitHub sign-ins and the service 1,000 per rolling hour.
Authentication
None. Anyone can call it.
Advanced
- Same-origin form posts only.
- A new random state (256 bits, single use, 10 minutes, stored only as a hash) is bound to a new browser secret in a cookie (HttpOnly, Secure, SameSite=Strict, host-only, path /app, 10 minutes, stored only as a hash), which also derives the PKCE verifier; the verifier is never stored or sent to the browser.
- The redirect to https://github.com/login/oauth/authorize carries
client_id, the fixedredirect_uriof /app/sign-in/github/callback on the account origin,scope=user:email(the only scope),state,code_challengeandcode_challenge_method=S256. - The optional field
returntakes/evidence; anything else returns to /app/. - A page with this form also allows https://github.com in its form-action; every other account page keeps form-action 'self'.
- Operation ID
gitHubSignInStart
GET /app/sign-in/github/callback
Shows the page GitHub sends the person back to.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
code | query | string | no | The one-time code GitHub sends back. |
state | query | string | no | The value Sess gave GitHub, sent back unchanged. |
error | query | string | no | GitHub’s error, such as access_denied when the person cancelled. |
Responses
200- The Continue page.
400- The person cancelled on GitHub, or GitHub returned an error or a malformed reply (
GITHUB_SIGN_IN_CANCELLEDorGITHUB_SIGN_IN_FAILED). 503- GitHub sign-in is not set up on this deployment (
SIGN_IN_UNAVAILABLE).
What it does
Opening it changes nothing. With a valid reply it shows "Finish signing in with GitHub", whose Continue button finishes on this site. When the person cancelled on GitHub, or GitHub reports an error, the page says so.
Authentication
None. Anyone can call it.
Advanced
- This is the callback address registered with the GitHub app.
- Continue posts the
codeandstateback, same-origin. - Both are single-use secrets: the request log records only the route, never the query.
- GitHub’s cancel is
error=access_denied. - Operation ID
gitHubSignInReturn
POST /app/sign-in/github/callback
Finishes signing in with GitHub, or linking a GitHub account, in the browser that started it.
Request body (required)
Content type application/x-www-form-urlencoded: object
-
codestring required -
statestring required
Responses
200- GitHub shared no verified, usable address, so the sign-in page offers email instead and nothing was created (
GITHUB_EMAIL_UNVERIFIED). 303- Signed in or linked, to the page the person started from (
/app/or/app/evidence), to the keys page when a waiting key was created, or after a link to/app/keys?github=linked. 400- This sign-in cannot finish, with one answer for every reason: an unknown, used, expired or altered start, another browser, or a code GitHub refused (
GITHUB_SIGN_IN_FAILED). 403- The request came from another site; or, for a link, the session is not the one that started it or signed in more than 12 hours ago (
ACTION_NOT_ALLOWED,RECENT_SIGN_IN_REQUIREDorGITHUB_SIGN_IN_FAILED). 409- An account already uses this address, the GitHub account is linked to another account, or this account already has another GitHub account (
GITHUB_NOT_LINKED,GITHUB_ALREADY_LINKEDorGITHUB_LINK_EXISTS). 503- GitHub did not answer usefully, so nothing changed; or GitHub sign-in is not set up (
SERVICE_UNAVAILABLEorSIGN_IN_UNAVAILABLE).
What it does
- Each start finishes once, whatever happens next, so a replay or another browser cannot use it.
- A GitHub account already linked signs in to its Sess account, whatever its address or login is now.
- A new GitHub account with a verified address no account uses creates a Sess account linked to it.
- An address an existing account already uses is never merged: sign in with email, then link GitHub.
- Without a verified, usable address the person signs in with email instead, and nothing is created.
- Signing in works exactly like the email sign-in, including a waiting key creation in this browser.
- Linking works only from the session that started it, signed in within the last 12 hours; a GitHub account links to one Sess account, and a Sess account to one GitHub account.
Authentication
None. Anyone can call it.
Advanced
- Same-origin form posts only, with the fields
codeandstate, carrying the browser cookie whose hash the state is bound to; the state is used once, so a replay, another browser or a planted callback finds it used or unbound. - The code is exchanged at GitHub with the PKCE verifier; the stable numeric GitHub user ID and the verified primary address are read with
user:email, and GitHub’s access token is discarded, never stored or logged. - The session, its 30 days, its renewal, the 12-hour rule and the end of the browser’s previous session are those of the email sign-in.
- The person returns to /app/ or /app/evidence, or to /app/keys?resume=elsewhere for a key creation of another account; a link returns to /app/keys?github=linked.
- Operation ID
gitHubSignInFinish
POST /app/github/link
Starts linking a GitHub account to the signed-in account, from "Sign-in and sessions" on the keys page.
Request body (required)
Content type application/x-www-form-urlencoded: object
-
csrfstring required
Responses
303- To GitHub’s authorization page, with this browser’s tie set; or, not signed in, to the sign-in page.
403- The request came from another site, had a wrong form token, or the sign-in is more than 12 hours old (
ACTION_NOT_ALLOWEDorRECENT_SIGN_IN_REQUIRED). 429- Too many GitHub sign-ins started (
RATE_LIMITED). 503- GitHub sign-in is not set up on this deployment (
SIGN_IN_UNAVAILABLE).
What it does
It needs a sign-in within the last 12 hours. It then works exactly as starting a GitHub sign-in, tied to this account and session as well.
Authentication
None. Anyone can call it.
Advanced
- Same-origin form posts with the session’s form token only.
- Operation ID
gitHubLinkStart
POST /app/github/unlink
Unlinks the account’s GitHub account.
Request body (required)
Content type application/x-www-form-urlencoded: object
-
csrfstring required
Responses
303- Unlinked, back to the keys page (
/app/keys?github=unlinked); or, not signed in, to the sign-in page. 403- The request came from another site, had a wrong form token, or the sign-in is more than 12 hours old (
ACTION_NOT_ALLOWEDorRECENT_SIGN_IN_REQUIRED). 404- No GitHub account is linked to this account (
NOT_FOUND).
What it does
- It needs a sign-in within the last 12 hours.
- Every other live session that GitHub opened is signed out; this one stays.
- The account always keeps its email sign-in, so unlinking never locks anyone out.
- It works even when GitHub sign-in is no longer set up.
Authentication
None. Anyone can call it.
Advanced
- Same-origin form posts with the session’s form token only.
- Operation ID
gitHubUnlink
GET /app/keys
Shows the workspace’s API keys: each key’s name, fingerprint, creation date, last use, expiry and state.
Responses
200- The keys page, with a new key’s secret shown once.
303- Not signed in, so to the sign-in page.
What it does
Right after you create a key, this page shows its secret once. If you open the page again within two minutes, it lists the keys and says the key was created and its secret already shown. Someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- The secret is held server-side for two minutes, bound to the session and sealed under a key derived from the session cookie, never in an address, and exactly one request takes it.
- The page is never cached.
- Operation ID
apiKeysPage
POST /app/keys
Creates an API key for the developer workspace from the keys page’s form.
Responses
303- Created, to the keys page, which shows the key once; or, with no session or an old sign-in, to the sign-in page, keeping a valid choice.
400- The expiry or the name is not valid, the form is missing, unknown, expired or from another session, or the expiry dates changed since the form was shown (
INVALID_SCHEMA). 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 409- The account already has 10 active keys, or this form already created a key, which is not shown again (
KEY_LIMIT_REACHEDorKEY_ALREADY_CREATED).
What it does
- The keys page you return to shows the key once; no secret is ever in this response or its headers.
- Each form can create one key: sending the same form again never creates a second key or shows the secret again.
- The key gets the expiry date the form showed; if that date is no longer right, the form is shown again.
- An account can have at most 10 active keys.
- If the session has expired, or the sign-in is more than 12 hours old, your choice is kept and the key is created right after you confirm by email in the same browser.
Authentication
None. Anyone can call it.
Advanced
- The form fields are
csrf,nonce(single use, bound to the account session, 15 minutes),rendered_at(bound to the nonce),label(optional, at most 64 characters, no control characters) andexpires_in_days(30, 90, 365 or never; required). - Same-origin requests with the session’s form token only.
- The answer is a 303 to /app/keys (Post/Redirect/Get).
- A kept choice is a key-creation cookie (HMAC-protected, HttpOnly, Secure, SameSite=Strict, host-only, path /app, 15 minutes) bound to that account, and the browser goes to the sign-in page, "Verify it’s you".
- Keys begin
sess_sk_. - Revoking asks first: GET /app/keys/{id}/revoke is the confirmation step, and its button posts to POST /app/keys/{id}/revoke.
- Sign out is POST /app/sign-out, at once.
- Operation ID
createApiKey
GET /app/keys/{id}/revoke
Asks the developer to confirm revoking an API key.
Responses
200- The confirmation page.
303- Not signed in, so to the sign-in page.
404- That is not an active key of this account; the keys page shows the error (
NOT_FOUND).
What it does
The page asks one question naming the key and offers Revoke key and Cancel, which goes back to the keys page. Opening it changes nothing, apart from renewing a signed-in session at most once an hour, and needs no recent sign-in. Someone who is not signed in is sent to the sign-in page.
Operation ID revokeApiKeyConfirm
Authentication
None. Anyone can call it.
POST /app/keys/{id}/revoke
Revokes one active API key of the workspace, at once.
Responses
303- Revoked, back to the keys page (
/app/keys?revoked=1); or, with no session or an old sign-in, to the sign-in page. 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 404- That is not an active key of this account; the keys page shows the error (
NOT_FOUND).
What it does
If the sign-in is more than 12 hours old, nothing is revoked yet: your choice is kept, and the key is revoked once you confirm by email in the same browser.
Authentication
None. Anyone can call it.
Advanced
- Sent by the confirmation page’s button, same-origin, with the form field
csrf. - The kept choice is the key-creation cookie, and the browser goes to the sign-in page, "Verify it’s you".
- Operation ID
revokeApiKey
GET /app/usage
Shows the workspace’s plan and how much of it is used.
Responses
200- The usage page.
303- Not signed in, so to the sign-in page.
What it does
- The plan, the Sessions used of the monthly allowance, the next reset (UTC) and the active Sessions.
- A warning at 80% and at 100% of the allowance.
- Where billing is set up: Change plan, which opens a payment page from the free plan or changes a paid plan in place, and Manage billing, with the plan’s badge and, at the limit, a link to Change plan beside the reason.
- Someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- The
billingquery is a fixed notice code shown after a billing action and changes nothing. - The page’s form-action also allows the payment provider’s hosted Checkout and portal origins.
- Operation ID
usagePage
POST /app/billing/plan
Changes the workspace’s paid plan.
Responses
303- To the payment page, to the usage page with a notice (
/app/usage?billing=<notice>), or, not signed in, to the sign-in page. 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED).
What it does
- Without a paid plan, the person goes to the payment provider’s checkout page.
- With one, that one plan changes in place, never a second plan or a new checkout; this needs a sign-in within the last 12 hours.
- The plan changes only when the payment provider confirms it, never from this request alone.
- When the provider’s answer is uncertain the change stays pending, and the next request repeats it safely before anything else is sent.
Authentication
None. Anyone can call it.
Advanced
- The form fields are
csrfandplan(starterorpro); the server chooses the approved price, and nothing else comes from the browser. - Same-origin requests with the session’s form token only.
- The checkout is the same one as POST /v1/account/billing/checkout.
- The confirmation is the provider’s signed event or a reconciliation, and a repeat uses the same idempotency key.
- The usage page’s notices are
requested,unchanged,payment_required,reauth,not_changeable,ending,processing,busy,unavailable,subscribed,not_configuredandinvalid. - Operation ID
changeBillingPlan
POST /app/billing/portal
Opens the payment provider’s billing page for the workspace: payment details, invoices and cancelling.
Responses
303- To the billing page, to the usage page with a notice (
/app/usage?billing=<notice>), or, not signed in, to the sign-in page. 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED).
What it does
It needs a sign-in within the last 12 hours. Cancelling there ends the paid plan at the provider, and the workspace returns to the free plan only once the provider confirms it.
Authentication
None. Anyone can call it.
Advanced
- The customer is the workspace’s own, found on the server; no customer ID or email comes from the browser.
- Same-origin requests with the form field
csrfonly. - The usage page’s notices are
reauth,no_customer(no billing details yet),unavailableandnot_configured. - Operation ID
openBillingPortal
POST /app/trials/claim
Adds a no-signup trial to the signed-in developer account.
Responses
303- Claimed, or already claimed by this account, back to the keys page (
/app/keys?claimed=1); or, not signed in, to the sign-in page. 400- That is not a trial key (
INVALID_SCHEMA). 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 404- No live trial has that key: it is unknown, revoked, deleted or past its deletion time (
TRIAL_NOT_FOUND). 409- Another account already claimed this trial (
TRIAL_ALREADY_CLAIMED).
What it does
- The account becomes the trial’s owner, once; nothing moves.
- The trial keeps its deadlines, limits and deletion time, its receipts stay as issued, and its trial key keeps working.
- The account’s API keys can then read, and only read, the trial’s Sessions, each until its result is no longer available, as the trial key can.
- Claiming the same trial again from the same account gets the same answer.
- A Sess link can never claim a trial.
Authentication
None. Anyone can call it.
Advanced
- The form fields are
csrfandmanagement_credential. - The trial key goes only in the form body, never in an address.
- Only same-origin requests with the session’s form token are taken.
- The reads use the owner read routes, each Session until its
result_available_until. - Operation ID
claimTrial
GET /app/evidence
Lists the workspace’s receipts in the console, as details only.
Responses
200- The receipts page.
303- Not signed in, so to the sign-in page.
400- A filter could not be read (
INVALID_SCHEMA). 500- The receipts could not be read (
INTERNAL). 503- The receipts view is not set up here (
SERVICE_UNAVAILABLE).
What it does
Each row shows the receipt and Session IDs, the workspace’s sequence number, when the answer was accepted and whether the answers are still kept; receipts held unverified have their own view. A receipt or an answer is never shown on this page. The page shows 25 at a time, counted under the same filters, with Previous and Next. Someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- The query takes
custody(exception),fromandto(UTC dates,toincluded),target(a target ID),q(a part of the Session title, matched as plain text) andcursor, an opaque page position, forward or back; one that is not of this view gives the first page. - The page is labelled "issued records in this defined scope/range".
- Operation ID
evidencePage
GET /app/sessions
Lists the workspace’s Sessions in the console, as details only.
Responses
200- The Sessions page.
303- Not signed in, so to the sign-in page.
503- The Sessions could not be read.
What it does
Each row shows the title, when it was sent, when it closes and its status: open, answered, expired, revoked or closed. You can filter by open, answered or expired, and sort by when it was sent or when it closes. The page shows 25 at a time, counted under the same filter, with Previous and Next. A Sess link, a token or an answer is never shown here. Reading changes nothing, apart from renewing a signed-in session at most once an hour; someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- The query takes
status(open,answeredorexpired; all by default),sort(sentorcloses;sentby default),dir(ascordesc; newest first for sent, soonest first for closes) andafterorbefore, an opaque page key, andq(a part of the title, matched as plain text). - The Filter menu sends
order(sent-desc,sent-asc,closes-ascorcloses-desc) in place ofsortanddir. - An unknown or malformed value, or a key past every row, takes its default.
- Closes is the Session’s
action_expires_at. - Operation ID
sessionsPage
GET /app/sessions/{id}
Shows one Session of the workspace in the console, as details only.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | The Session’s ID. |
Responses
200- The Session page.
303- Not signed in, so to the sign-in page.
404- This workspace has no such Session (
NOT_FOUND).
What it does
You see its status, when it was sent and when it closes, and its event log: event, round, action, by whom and when, never the answer. Each accepted answer shows its receipt’s workspace number when it has one (the number Evidence names it by), its event ID and time, with a link to that receipt’s Evidence page while the receipt is kept and not restricted. Reading changes nothing, apart from renewing a signed-in session at most once an hour. Another workspace’s Session gets the same answer as an unknown one.
Operation ID sessionPage
Authentication
None. Anyone can call it.
POST /app/evidence/export
Downloads an export of the receipts in the current filter, from the console.
Responses
303- Not signed in, so to the sign-in page.
400- The dates are the wrong way round or the agent ID is not valid (
INVALID_SCHEMA). 403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 429- Too many exports; try again after
Retry-After(RATE_LIMITED).
What it does
It is the same document as the export API, for up to 100 receipts that the applied filter shows (every receipt when none is applied); the search is not part of it. The page says what the export holds in the line under the list.
Authentication
None. Anyone can call it.
Advanced
- The form fields are
csrf,custodyand, optionally,fromandto(UTC dates,toincluded) andtarget. - Same-origin requests with the session’s form token only.
- The file is an attachment named from the workspace, the custody and the dates only.
- The export API is POST /v1/evidence/export.
- Operation ID
evidenceExportDownload
GET /app/evidence/{event_id}
Shows one receipt of the workspace in the console.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
200- The receipt page.
303- Not signed in, so to the sign-in page.
404- This workspace has no such receipt (
NOT_FOUND). 503- The receipts view is not set up here (
SERVICE_UNAVAILABLE).
What it does
You see its receipt number, its event and Session IDs, when the answer was accepted and whether the answers are still kept, with Verify and the receipt download when the receipt has a signed archival core. A receipt, an answer or a Sess link is never shown on the page. Another workspace’s receipt, an unknown one and a malformed ID get the same answer; someone who is not signed in is sent to the sign-in page.
Operation ID evidenceReceiptPage
Authentication
None. Anyone can call it.
GET /app/evidence/{event_id}/receipt.json
Downloads one receipt’s archival envelope.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
303- Not signed in, so to the sign-in page.
404- This workspace has no such receipt (
NOT_FOUND). 503- The receipts view is not set up here (
SERVICE_UNAVAILABLE).
What it does
It is the same value the export holds for that receipt. A receipt without a signed archival core, another workspace’s receipt and an unknown one get the same answer; someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- The file is an attachment named from the workspace and the receipt number, or the event ID, only.
- Operation ID
evidenceReceiptDownload
GET /app/evidence/{event_id}/verify
Sends a reload of Verify’s answer back to the receipt page.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
303- To the receipt page, or, not signed in, to the sign-in page.
What it does
Nothing is checked here; the receipt page applies its own rules.
Operation ID evidenceReceiptVerifyReload
Authentication
None. Anyone can call it.
POST /app/evidence/{event_id}/verify
Checks a receipt from its page in the console, and shows the result there.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
200- The receipt page with the result.
303- Not signed in, so to the sign-in page.
403- The request came from another site or had a wrong form token (
ACTION_NOT_ALLOWED). 404- This workspace has no such receipt (
NOT_FOUND). 503- The receipts view is not set up here (
SERVICE_UNAVAILABLE).
What it does
It uses the same checker as the public archival verifier and says the result in the words of the public verify page. A receipt without a signed archival core, another workspace’s receipt and an unknown one get the same answer.
Authentication
None. Anyone can call it.
Advanced
- The checker is POST /v1/receipts/verify-archival’s, run in process.
- Same-origin requests with the form field
csrfonly. - Operation ID
evidenceReceiptVerify
GET /app/evidence/records/{event_id}/pdf
Downloads a receipt’s PDF from the console.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_id | path | string | yes | The ID of the answer’s Event. |
Responses
200- The receipt PDF as a download, or the record itself when it is too large for the PDF.
- Body object
303- Not signed in, so to the sign-in page.
404- This workspace has no such record (
NOT_FOUND). 409- The record is restricted (
EVIDENCE_RESTRICTED). 410- The record was deleted (
EVIDENCE_DELETED). 429- Too many downloads; try again after
Retry-After(RATE_LIMITED). 503- The receipts view is not set up or not ready yet (
SERVICE_UNAVAILABLE).
What it does
It is the same PDF as the receipt PDF API, for the signed-in workspace, and it is refused for the same reasons, each shown as a page. Someone who is not signed in is sent to the sign-in page.
Authentication
None. Anyone can call it.
Advanced
- The API is GET /v1/evidence/records/{event_id}/pdf.
- Operation ID
evidenceRecordPdfDownload
Webhooks sent by Sess
Requests Sess sends to your registered, verified endpoint.
POST responseAccepted
Sent for every accepted response while the workspace has a verified endpoint.
Request body (required)
Content type application/json: WebhookDelivery
no additional properties
-
typestring required"response.accepted" -
event_idstring requiredStable across retries and redeliveries: deduplicate on it.
-
session_idstring required -
ask_idstringPresent only when the Session is a respondent of an Ask (POST /v1/asks).
ask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
sequenceinteger required -
revisioninteger required -
action_idstring required -
dataobject required -
accepted_atstring required -
receiptstring or null requiredThe stored signed decision receipt (identical on every delivery).
-
revision_envelopeobject or nullThe revision envelope the receipt v2 commits to (verify the receipt with it: a receipt v2 without its envelope is refused with
revision); null for a receipt v1, for no receipt, or when the revision is no longer retained.
Responses
200- Accepted by the endpoint.
What it does
- Signed per workspace (Standard Webhooks v1): webhook-id = event_id (stable across retries and redeliveries: deduplicate on it), webhook-timestamp (seconds), webhook-signature = space-separated v1,<base64 HMAC-SHA256(secret, id.timestamp.body)>, one per secret in force (two during a 24-hour rotation overlap), sess-webhook-key-ids = their key IDs.
- HTTPS on port 443, no redirects followed, 10-second timeout, response read up to 64 KiB.
- 2xx = accepted by the endpoint (not that the workflow resumed); 5xx, 429 (Retry-After honored up to 1 h), 408, 425, timeouts and disconnects are retried with jitter up to 12 attempts within 24 h (a job out of budget ends exhausted); 3xx and other 4xx (including 401/403) are permanent.
- Delivery is at least once.
- Operation ID
webhookResponseAccepted
POST endpointVerification
Sent by POST /v1/webhook/verify to the exact registered URL, signed like deliveries.
Request body (required)
Content type application/json: WebhookVerification
no additional properties
-
typestring required"sess.webhook.verification" -
challengestring required
Responses
200- The echoed challenge.
What it does
Answer 2xx with a JSON body (at most 4 KiB) {"challenge": <the same value>}.
Operation ID webhookEndpointVerification
POST targetDispatch
POSTed to the exact registered target endpoint once per admitted Invocation, through the same egress safeguards as webhooks (HTTPS on port 443, every connection resolved and refused for non-public addresses, no redirects followed, 10-second timeout, response read up to 64 KiB).
Request body (required)
Content type application/json: TargetDispatch
no additional properties
-
typestring required"sess.invocation" -
invocation_idstring requiredinv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$ -
request_idstring required -
target_idstring requiredtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
target_versioninteger required -
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring required -
versionstring required
-
-
inputobject required -
limitsobject requiredno additional properties
Show propertiesHide properties
-
accepted_roundsinteger requiredminimum 1
-
expires_inintegerThe target’s default_expires_in when this run was admitted (absent when it had none). Advisory: the agent passes it as expires_in on POST /v1/sessions for the Sessions of this run unless it sets its own; that create checks it against the agent key’s plan.
minimum 30
-
-
expires_atstring required -
callbackobject requiredno additional properties
Show propertiesHide properties
-
urlstring required -
credentialstring requiredPresent as Authorization: Bearer on the callback URL; one dispatch only.
-
Responses
What it does
- Headers: content-type, User-Agent Sess-Target/1 and sess-invocation-id (deduplicate on it); never an owner key, Sess link or caller header.
- Answer 2xx with TargetDispatchAnswer naming the same invocation_id and target_version: accepted (report later on callback.url with callback.credential), completed with result, or failed.
- An answer that does not bind, a timeout, a dropped connection or a 5xx leaves the Invocation unknown: it is never treated as success and never sent again.
- Only a DNS failure or an explicit 429/503 is retried (at most 3 attempts within the Invocation lifetime); 3xx and other 4xx fail it.
- Operation ID
targetDispatch
POST askClosed
Sent once when an Ask closes at its last place or by your close, while the workspace has a verified endpoint.
Request body (required)
Content type application/json: AskClosedDelivery
no additional properties
-
typestring required"ask.closed" -
event_idstring requiredStable across retries and redeliveries: deduplicate on it.
-
ask_idstring requiredask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
closed_bystring required"max"or"owner" -
startedinteger requiredStarts admitted when it closed.
minimum 0
-
closed_atstring required
Responses
200- Accepted by the endpoint.
What it does
Signed, retried and delivered at least once exactly as responseAccepted is; webhook-id = event_id.
An Ask that passes its deadline sends nothing: read it with GET /v1/asks/{id}.
Operation ID webhookAskClosed
Error codes
Errors use one envelope: {"error": {"code", "message", "request_id"}}. Branch on code, never on message. Quote request_id when you contact support.
INVALID_SCHEMAPAYLOAD_TOO_LARGEUNAUTHORIZEDSESSION_NOT_FOUNDNOT_FOUNDINTERNALUNKNOWN_COMPONENTSESSION_REVISION_CONFLICTIDEMPOTENCY_CONFLICTPRECONDITION_REQUIREDSESSION_COMPLETEDSESSION_ENDEDACTION_NOT_ALLOWEDACTION_NOT_FOUNDVALIDATION_FAILEDRESPONSE_LIMIT_REACHEDSERVICE_UNAVAILABLERATE_LIMITEDTRIAL_UNAVAILABLESIGN_IN_UNAVAILABLEWEBHOOK_INVALID_URLWEBHOOK_VERIFICATION_FAILEDWEBHOOK_NOT_CONFIGUREDTARGET_INVALID_URLTARGET_INVALID_CAPABILITYTARGET_VERIFICATION_FAILEDTARGET_VERSION_CONFLICTINVOCATION_TERMINALHOLDER_ENROLLMENT_REFUSEDPLAN_LIMIT_REACHEDSUBSCRIPTION_EXISTSTARGET_NAME_TAKENEVIDENCE_RESTRICTEDEVIDENCE_DELETEDSESSION_ROUND_LIMIT
Schemas
CreateSessionRequest
no additional properties
-
interactionobject requiredShow propertiesHide properties
-
modestring required"display"or"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 4000 when
modeis"display"; max length 200 whenmodeis"interactive" -
sourceobject requiredShow propertiesHide properties
-
kindstring required"data"or"sess_surface" -
dataobject requiredmap of string to string or number or boolean or null or map of string to string or number or boolean or null or array of map of string to string or number or boolean or null
Only when
kindis"data".min properties 1
-
componentsarray of object requiredThe page's content, in order. How your page looks.
Only when
kindis"sess_surface".min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
Only when
modeis"interactive".max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
Only when
modeis"interactive".no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
actionsarray of object requiredOnly when
modeis"interactive".min items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
Only when
modeis"interactive".
-
-
expires_inintegerAdvanced. How long the Sess link stays open, in seconds from creation: at least 30 and at most the plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000). Absent: the plan’s lifetime. Expiry and revocation.
-
invocation_idstringAdvanced. The invocation_id of the run your registered agent received, when this Session serves that run. Sess then records the agent and its version with every receipt it keeps for this Session. How it works.
inv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$
CreateSessionResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
revisioninteger requiredminimum 1
-
human_urlstring required -
action_expires_atstring requiredThe Sess link’s deadline for answers, an RFC 3339 UTC instant with milliseconds, set when the Session is created and never null. From this instant the link no longer opens and accepts no response; a read never extends it, and a link revoked by the operator stops earlier, which this field does not report.
SessionResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
revisioninteger requiredminimum 1
-
action_expires_atstring requiredThe Sess link’s deadline for answers, an RFC 3339 UTC instant with milliseconds, set when the Session is created and never null. From this instant the link no longer opens and accepts no response; a read never extends it, and a link revoked by the operator stops earlier, which this field does not report.
-
action_expires_horizonstring or null requirednull unless link extensions were on for this deployment when the Session was created; with them on, also null for a link longer than 20 hours or a display Session. Otherwise the fixed instant after which the link can never be extended or reopened: creation + the original lifetime + 10 × min(original lifetime, 1 hour).
-
extensions_usedinteger requiredHow many times the person extended the link: always 0 when action_expires_horizon is null, at most 10 otherwise.
minimum 0, maximum 10
-
link_statestring required"live","lapsed"or"expired"The Sess link’s state at the time of this read: live while it opens and accepts answers (before action_expires_at), expired once it will never accept an answer; an answer accepted while live stays the result. lapsed occurs only where link extensions were on when the Session was created (action_expires_horizon is not null): past the deadline the link accepts no answer and does not open, but can still be extended until the horizon, so the Session is still open for your agent.
-
extensionsarray of object requiredEvery accepted extension of the Sess link, in order: at most ten, empty when none (always empty when action_expires_horizon is null). Each is recorded once, atomically with its extension, and never holds an answer or field value.
max items 10
Show propertiesHide properties
no additional properties
-
numberinteger requiredIts number, 1 to 10, in order.
minimum 1, maximum 10
-
previous_action_expires_atstring requiredThe deadline (action_expires_at) before this extension.
-
action_expires_atstring requiredThe deadline this extension set.
-
from_lapsedboolean requiredTrue when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline.
-
extended_atstring requiredWhen the extension was accepted.
-
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"display" -
titlestring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringmax length 4000
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"data" -
dataobject requiredmap of string to string or number or boolean or null or map of string to string or number or boolean or null or array of map of string to string or number or boolean or null
min properties 1
-
-
InteractiveSessionResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
statusstring required"active","responded"or"completed" -
revisioninteger requiredThe current Surface revision.
minimum 1
-
action_expires_atstring requiredThe Sess link’s deadline for answers, an RFC 3339 UTC instant with milliseconds, set when the Session is created and never null. From this instant the link no longer opens and accepts no response; a read never extends it, and a link revoked by the operator stops earlier, which this field does not report.
-
action_expires_horizonstring or null requirednull unless link extensions were on for this deployment when the Session was created; with them on, also null for a link longer than 20 hours or a display Session. Otherwise the fixed instant after which the link can never be extended or reopened: creation + the original lifetime + 10 × min(original lifetime, 1 hour).
-
extensions_usedinteger requiredHow many times the person extended the link: always 0 when action_expires_horizon is null, at most 10 otherwise.
minimum 0, maximum 10
-
link_statestring required"live","lapsed"or"expired"The Sess link’s state at the time of this read: live while it opens and accepts answers (before action_expires_at), expired once it will never accept an answer; an answer accepted while live stays the result. lapsed occurs only where link extensions were on when the Session was created (action_expires_horizon is not null): past the deadline the link accepts no answer and does not open, but can still be extended until the horizon, so the Session is still open for your agent.
-
extensionsarray of object requiredEvery accepted extension of the Sess link, in order: at most ten, empty when none (always empty when action_expires_horizon is null). Each is recorded once, atomically with its extension, and never holds an answer or field value.
max items 10
Show propertiesHide properties
no additional properties
-
numberinteger requiredIts number, 1 to 10, in order.
minimum 1, maximum 10
-
previous_action_expires_atstring requiredThe deadline (action_expires_at) before this extension.
-
action_expires_atstring requiredThe deadline this extension set.
-
from_lapsedboolean requiredTrue when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline.
-
extended_atstring requiredWhen the extension was accepted.
-
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringmax length 4000
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredShow propertiesHide properties
-
typestring required"heading","text","record","field"or"items" -
textstring requiredOnly when
typeis"heading"or"text".min length 1, max length 200 when
typeis"heading"; min length 1, max length 4000 whentypeis"text"Not blank: at least one character that is not white space.
Details
\S -
labelstringOnly when
typeis"record","field"or"items".min length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
fieldsobject requiredmap of string to string or number or boolean or null
Only when
typeis"record".min properties 1, max properties 50
-
namestringOnly when
typeis"field"or"items".A lower-case letter, then up to 63 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,63}$ -
descriptionstringOnly when
typeis"field".max length 1000
-
requiredbooleanOnly when
typeis"field". -
multilinebooleanA string field rendered as a multi-line text area.
Only when
typeis"field". -
option_labelsmap of string to stringDisplay labels for enum values (default: the value itself).
Only when
typeis"field".max properties 100
-
ratingobjectA rating is a field with rating and the schema exactly {"type": "integer", "minimum": 1, "maximum": N}, N from 2 to 10 (title and description allowed); any other schema fails with 400 INVALID_SCHEMA. The person sees stars when N is 5 or less, numbered choices above it; the result is the chosen integer. Inputs, actions and submissions.
Only when
typeis"field".no additional properties
Show propertiesHide properties
-
lowstringmin length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S -
highstringmin length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S
-
-
schemaobject requiredThe field value schema, JSON Schema 2020-12 restricted to: type string (minLength, maxLength, enum), number or integer (minimum, maximum, exclusiveMinimum, exclusiveMaximum), boolean, or array of string enum IDs (items {type: string, enum}, minItems, maxItems, uniqueItems: true). title and description are allowed on the field value schema itself; array items permit only type and enum. Inputs, actions and submissions.
Only when
typeis"field". -
valueanyThe proposed value shown to the person (a correction is a field with a proposed value). It must be valid against the field schema.
Only when
typeis"field". -
currencystring requiredISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.
Only when
typeis"items".Three capital letters, such as CAD.
Details
^[A-Z]{3}$ -
selectstring"one"or"many"The person may choose rows: one (radios) or many (checkboxes). Needs name; the result carries the chosen row indices in selected.
Only when
typeis"items". -
editablearray of"quantity"The person may change the quantity of rows that carry one. Needs name and an action with intent request_change; a changed quantity is sent only with that action. Choosing lines and changing quantities.
Only when
typeis"items".min items 1, max items 1
-
rowsarray of object required1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).
Only when
typeis"items".min items 1, max items 100
Show propertiesHide properties
no additional properties
-
namestring requiredmin length 1, max length 80
Not blank: at least one character that is not white space.
Details
\S -
detailstringmin length 1, max length 160
Not blank: at least one character that is not white space.
Details
\S -
quantityobjectAn editable quantity (only with editable ["quantity"]): the person may change it within min (default 0) and max; Sess never recomputes the amount, your agent does on its next revision. The result carries the quantities.
no additional properties
-
amountinteger or null requiredThe line amount in minor units, or null for a line with no amount.
-
-
totalsarray of objectUp to 8 totals lines, in order, as you state them.
Only when
typeis"items".max items 8
Show propertiesHide properties
no additional properties
-
labelstring requiredmin length 1, max length 40
Not blank: at least one character that is not white space.
Details
\S -
amountinteger requiredThe amount in minor units, as stated.
minimum -1000000000000000, maximum 1000000000000000
-
rolestring required"subtotal","tax","discount","shipping","fee","tip","paid","due","adjustment","total"or"other"subtotal (at most one) must equal the sum of the rows; total (at most one), with a subtotal, must equal the subtotal plus the other lines except paid, due and included.
-
includedbooleanAlready included in the prices (such as VAT): shown, never added. Not on a subtotal or total.
-
-
-
-
actionsarray of object requiredShow propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring required"first"
-
-
response_schemaobject requiredThe JSON Schema 2020-12 the current revision’s responses are validated against.
-
responsesarray of object requiredEvery accepted response, in sequence order, each bound to its revision.
Show propertiesHide properties
no additional properties
-
event_idstring requiredevt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
sequenceinteger requiredMonotonic per-Session Event sequence.
minimum 1
-
revisioninteger requiredThe Surface revision it was accepted on.
minimum 1
-
action_idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
dataobject requiredThe normalized typed result, valid against that revision’s response_schema.
-
actorobject requiredno additional properties
Show propertiesHide properties
-
assurancestring required"link_holder"
-
-
accepted_atstring requiredISO 8601 UTC time of acceptance.
-
receiptstring or null requiredThe signed decision receipt: a compact JWS (EdDSA/Ed25519, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json: typ sess-receipt+jwt (receipt v1) or sess-receipt-2+jwt (receipt v2; verify it with the revision_envelope returned beside it). Issued once in the acceptance transaction and never re-signed. Receipts.
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
revision_envelopeobjectPresent beside a receipt v2: the revision envelope it commits to (verify the receipt with it; a receipt v2 without its envelope is refused with
revision). Absent beside a receipt v1 (issued before receipt v2) and when there is no receipt.no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
Show propertiesHide properties
-
noncestring required16 random bytes drawn when the revision was published (base64url).
22 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{22}$ -
grant_titlestring or null required -
target_titlestring or null required -
owner_namestring or null required
-
-
-
InteractiveSurfaceResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
revisioninteger requiredminimum 1
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringmax length 4000
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredShow propertiesHide properties
-
typestring required"heading","text","record","field"or"items" -
textstring requiredOnly when
typeis"heading"or"text".min length 1, max length 200 when
typeis"heading"; min length 1, max length 4000 whentypeis"text"Not blank: at least one character that is not white space.
Details
\S -
labelstringOnly when
typeis"record","field"or"items".min length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
fieldsobject requiredmap of string to string or number or boolean or null
Only when
typeis"record".min properties 1, max properties 50
-
namestringOnly when
typeis"field"or"items".A lower-case letter, then up to 63 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,63}$ -
descriptionstringOnly when
typeis"field".max length 1000
-
requiredbooleanOnly when
typeis"field". -
multilinebooleanA string field rendered as a multi-line text area.
Only when
typeis"field". -
option_labelsmap of string to stringDisplay labels for enum values (default: the value itself).
Only when
typeis"field".max properties 100
-
ratingobjectA rating is a field with rating and the schema exactly {"type": "integer", "minimum": 1, "maximum": N}, N from 2 to 10 (title and description allowed); any other schema fails with 400 INVALID_SCHEMA. The person sees stars when N is 5 or less, numbered choices above it; the result is the chosen integer. Inputs, actions and submissions.
Only when
typeis"field".no additional properties
Show propertiesHide properties
-
lowstringmin length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S -
highstringmin length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S
-
-
schemaobject requiredThe field value schema, JSON Schema 2020-12 restricted to: type string (minLength, maxLength, enum), number or integer (minimum, maximum, exclusiveMinimum, exclusiveMaximum), boolean, or array of string enum IDs (items {type: string, enum}, minItems, maxItems, uniqueItems: true). title and description are allowed on the field value schema itself; array items permit only type and enum. Inputs, actions and submissions.
Only when
typeis"field". -
valueanyThe proposed value shown to the person (a correction is a field with a proposed value). It must be valid against the field schema.
Only when
typeis"field". -
currencystring requiredISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.
Only when
typeis"items".Three capital letters, such as CAD.
Details
^[A-Z]{3}$ -
selectstring"one"or"many"The person may choose rows: one (radios) or many (checkboxes). Needs name; the result carries the chosen row indices in selected.
Only when
typeis"items". -
editablearray of"quantity"The person may change the quantity of rows that carry one. Needs name and an action with intent request_change; a changed quantity is sent only with that action. Choosing lines and changing quantities.
Only when
typeis"items".min items 1, max items 1
-
rowsarray of object required1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).
Only when
typeis"items".min items 1, max items 100
Show propertiesHide properties
no additional properties
-
namestring requiredmin length 1, max length 80
Not blank: at least one character that is not white space.
Details
\S -
detailstringmin length 1, max length 160
Not blank: at least one character that is not white space.
Details
\S -
quantityobjectAn editable quantity (only with editable ["quantity"]): the person may change it within min (default 0) and max; Sess never recomputes the amount, your agent does on its next revision. The result carries the quantities.
no additional properties
-
amountinteger or null requiredThe line amount in minor units, or null for a line with no amount.
-
-
totalsarray of objectUp to 8 totals lines, in order, as you state them.
Only when
typeis"items".max items 8
Show propertiesHide properties
no additional properties
-
labelstring requiredmin length 1, max length 40
Not blank: at least one character that is not white space.
Details
\S -
amountinteger requiredThe amount in minor units, as stated.
minimum -1000000000000000, maximum 1000000000000000
-
rolestring required"subtotal","tax","discount","shipping","fee","tip","paid","due","adjustment","total"or"other"subtotal (at most one) must equal the sum of the rows; total (at most one), with a subtotal, must equal the subtotal plus the other lines except paid, due and included.
-
includedbooleanAlready included in the prices (such as VAT): shown, never added. Not on a subtotal or total.
-
-
-
-
actionsarray of object requiredShow propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring required"first"
-
-
response_schemaobject required
DisplaySurfaceResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
revisioninteger requiredminimum 1
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"display" -
titlestring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringmax length 4000
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"data" -
dataobject requiredmap of string to string or number or boolean or null or map of string to string or number or boolean or null or array of map of string to string or number or boolean or null
min properties 1
-
-
HumanStatusResponse
no additional properties
-
statestring required"waiting","active"or"completed" -
revisioninteger requiredThe current Surface revision.
minimum 1
SessionEventsResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
eventsarray of object requiredEvery Event of the Session, in sequence order (append-only; never rewritten).
Show propertiesHide properties
no additional properties
-
event_idstring requiredevt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
sequenceinteger requiredMonotonic per-Session sequence.
minimum 1
-
typestring required"response.accepted","revision.published"or"session.completed" -
revisioninteger requiredresponse.accepted: the revision the response was accepted on; revision.published: the revision published; session.completed: the current revision at completion.
minimum 1
-
actorobject requiredno additional properties
Show propertiesHide properties
-
assurancestring required"link_holder"or"owner"
-
-
action_idstringA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
dataobjectresponse.accepted only: the typed result, valid against that revision.
-
created_atstring requiredISO 8601 UTC time the Event was recorded.
-
receiptstring or nullThe signed decision receipt: a compact JWS (EdDSA/Ed25519, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json: typ sess-receipt+jwt (receipt v1) or sess-receipt-2+jwt (receipt v2; verify it with the revision_envelope returned beside it). Issued once in the acceptance transaction and never re-signed. Receipts.
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
revision_envelopeobjectPresent beside a receipt v2: the revision envelope it commits to (verify the receipt with it; a receipt v2 without its envelope is refused with
revision). Absent beside a receipt v1 (issued before receipt v2) and when there is no receipt.no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
Show propertiesHide properties
-
noncestring required16 random bytes drawn when the revision was published (base64url).
22 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{22}$ -
grant_titlestring or null required -
target_titlestring or null required -
owner_namestring or null required
-
-
-
ask_idstringThe Ask this respondent Session belongs to: on its
response.acceptedandsession.completedonly.ask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$
-
-
link_extensionsarray of objectEvery accepted extension of the Sess link, in order (the same records as the Session read’s extensions), listed beside the Events rather than as an Event type, so readers of the Event types above are unaffected. Present only where the deployment has enabled link extensions.
max items 10
Show propertiesHide properties
no additional properties
-
numberinteger requiredIts number, 1 to 10, in order.
minimum 1, maximum 10
-
previous_action_expires_atstring requiredThe deadline (action_expires_at) before this extension.
-
action_expires_atstring requiredThe deadline this extension set.
-
from_lapsedboolean requiredTrue when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline.
-
extended_atstring requiredWhen the extension was accepted.
-
-
closingobjectThe Session’s closing receipt: a signed record of how it ended and of every accepted answer’s receipt, in order. Present only once the Session has ended with at least one accepted answer, its closing receipt is signed and the receipts listed above are exactly the ones it commits to; absent otherwise.
no additional properties
Show propertiesHide properties
-
typstring required"sess-closing-receipt+jwt"What
receiptis: a closing receipt, version 1. Never a receipt for one answer, so never verify it as one. -
closure_idstring requiredThe closing receipt’s ID, the
jtiit signs.cls_then 26 capital letters and digits, without I, L, O or U.Details
^cls_[0-9A-HJKMNP-TV-Z]{26}$ -
causestring required"completed_by_owner","completed_by_ask_rule","final_expiry"or"revoked"How the Session ended, as the closing receipt signs it:
completed_by_ownerwhen your agent completed it,completed_by_ask_rulewhen its Ask completed it on the answer,final_expirywhen its Sess link expired for good.revokedends a Session with no accepted answer, which has no closing receipt. -
terminal_event_idstring or null requiredThe Event that ended the Session, as the closing receipt signs it: its
session.completed, or forfinal_expirythe expiry Event Sess recorded, which this list does not include. null only forrevoked.evt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
accepted_roundsinteger requiredHow many answers were accepted in the Session, at least 1: the count the closing receipt signs. Each is a
response.acceptedEvent above.minimum 1
-
receiptstring requiredThe closing receipt exactly as signed: a compact JWS (EdDSA/Ed25519, typ sess-closing-receipt+jwt, no exp) that commits, in order, to the exact bytes of every accepted answer’s receipt. Verify it with GET /.well-known/sess-receipt-keys.json; it is signed once and never re-signed.
max length 8192
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
-
SessionClosing
The Session’s closing receipt: a signed record of how it ended and of every accepted answer’s receipt, in order. Present only once the Session has ended with at least one accepted answer, its closing receipt is signed and the receipts listed above are exactly the ones it commits to; absent otherwise.
no additional properties
-
typstring required"sess-closing-receipt+jwt"What
receiptis: a closing receipt, version 1. Never a receipt for one answer, so never verify it as one. -
closure_idstring requiredThe closing receipt’s ID, the
jtiit signs.cls_then 26 capital letters and digits, without I, L, O or U.Details
^cls_[0-9A-HJKMNP-TV-Z]{26}$ -
causestring required"completed_by_owner","completed_by_ask_rule","final_expiry"or"revoked"How the Session ended, as the closing receipt signs it:
completed_by_ownerwhen your agent completed it,completed_by_ask_rulewhen its Ask completed it on the answer,final_expirywhen its Sess link expired for good.revokedends a Session with no accepted answer, which has no closing receipt. -
terminal_event_idstring or null requiredThe Event that ended the Session, as the closing receipt signs it: its
session.completed, or forfinal_expirythe expiry Event Sess recorded, which this list does not include. null only forrevoked.evt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
accepted_roundsinteger requiredHow many answers were accepted in the Session, at least 1: the count the closing receipt signs. Each is a
response.acceptedEvent above.minimum 1
-
receiptstring requiredThe closing receipt exactly as signed: a compact JWS (EdDSA/Ed25519, typ sess-closing-receipt+jwt, no exp) that commits, in order, to the exact bytes of every accepted answer’s receipt. Verify it with GET /.well-known/sess-receipt-keys.json; it is signed once and never re-signed.
max length 8192
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
ReceiptKeysResponse
no additional properties
-
keysarray of object requiredThe active signing key and every retained verification key (rotation overlap). A receipt verifies with the key whose kid its protected header names; there is no fallback key.
Show propertiesHide properties
no additional properties
-
ktystring required"OKP" -
crvstring required"Ed25519" -
xstring required -
kidstring required1 to 64 letters, digits, dots, hyphens or underscores.
Details
^[A-Za-z0-9._-]{1,64}$ -
algstring required"EdDSA" -
usestring required"sig"
-
WitnessKeysResponse
no additional properties
-
typestring required"sess.witness-key-set" -
versionnumber required1 -
issuerstring requiredThe receipt issuer whose witness checkpoints these keys sign.
min length 1, max length 200
-
keysarray of object requiredThe current witness key (open window) first, then every retained key, newest first. Empty when no witness key is configured.
max items 32
Show propertiesHide properties
no additional properties
-
key_idstring requiredsha256:<hex> of the SPKI DER: the key id stored with each witnessed batch.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
key_detailsstring required"PKIX_ECDSA_P256_SHA_256" -
spkistring requiredStandard base64 of the ECDSA P-256 SubjectPublicKeyInfo DER. Public material only.
min length 4, max length 256
Base64 with its = padding: letters, digits, + and /.
Details
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ -
valid_fromstring requiredRFC 3339 UTC: from when the key may have signed a checkpoint (TSA time).
A UTC time such as 2026-11-09T02:05:00Z, with up to 3 decimal places of seconds.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?Z$ -
valid_tostring or null requiredRFC 3339 UTC end of the window; null for the current key. A retired key keeps its closed window, so evidence it signed stays verifiable.
A UTC time such as 2026-11-09T02:05:00Z, with up to 3 decimal places of seconds.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?Z$
-
DecisionBundle
A deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer’s public keys. Never a private key, owner credential or Sess link. At most 1 MiB canonical, depth 32, 1000 items per array and members per object, 100000 values.
no additional properties
-
typestring required"sess.decision-bundle" -
versionnumber required1or22 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).
-
receiptstring requiredThe receipt compact JWS exactly as issued: receipt v2 in bundle-v2, receipt v1 in bundle-v1.
max length 32768
Three parts of letters, digits, hyphens or underscores, joined by dots; the last may be empty.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*$ -
revision_envelopeobjectbundle-v2 only: the revision envelope the receipt v2 commits to (missing or other:
revision).no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
Show propertiesHide properties
-
noncestring required16 random bytes drawn when the revision was published (base64url).
22 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{22}$ -
grant_titlestring or null required -
target_titlestring or null required -
owner_namestring or null required
-
-
-
contentobject requiredno additional properties
Show propertiesHide properties
-
surfaceobject requiredThe complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).
-
inputobject requiredThe complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).
-
-
keysobject requiredno additional properties
Show propertiesHide properties
-
keysarray of object requiredThe issuer's public verification keys when the bundle was exported. Disclosed for convenience only: verifiers use keys they trust, never these.
max items 16
Show propertiesHide properties
no additional properties
-
ktystring required"OKP" -
crvstring required"Ed25519" -
xstring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
kidstring required1 to 64 letters, digits, dots, hyphens or underscores.
Details
^[A-Za-z0-9._-]{1,64}$ -
algstring"EdDSA" -
usestring"sig"
-
-
DecisionBundleVerification
no additional properties
-
validboolean required -
reasonany or null required"malformed","oversized","unsupported_version","receipt_malformed","algorithm","missing_kid","unknown_kid","type","signature","issuer","audience","expired","claims","revision","not_yet_valid","surface_mismatch","input_mismatch"or"context_mismatch"or nullnull when valid; otherwise the first check that failed.
-
checked_atstring requiredThe time the receipt was checked against (UTC).
-
contentstring required"verified","mismatch"or"not_checked" -
contextobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"verified","incomplete","mismatch","unchecked"or"not_checked" -
checkedarray requiredarray of
"audience","workspace_id","session_id","event_id","surface.revision"or"action.id" -
mismatchesarray requiredarray of
"audience","workspace_id","session_id","event_id","surface.revision"or"action.id"
-
-
application_purposestring required"unchecked"or"matched_caller_context"Always unchecked from the public verifier: it checks the signed declared context only, never what the decision was for in your application.
-
actorobject or null required -
receiptobject or null required
ReceiptAuthenticityCheck
no additional properties
-
validboolean required -
reasonany or null required"malformed","oversized","unsupported_version","receipt_malformed","algorithm","missing_kid","unknown_kid","type","signature","issuer","audience","expired","claims","revision","not_yet_valid","surface_mismatch","input_mismatch"or"context_mismatch"or nullnull when valid; otherwise the first check that failed.
-
checked_atstring requiredThe moment the check ran (UTC).
-
contentstring required"verified","mismatch"or"not_checked" -
contextobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"verified","incomplete","mismatch","unchecked"or"not_checked" -
checkedarray requiredarray of
"audience","workspace_id","session_id","event_id","surface.revision"or"action.id" -
mismatchesarray requiredarray of
"audience","workspace_id","session_id","event_id","surface.revision"or"action.id"
-
-
application_purposestring required"unchecked"or"matched_caller_context"Always unchecked from the public verifier: it checks the signed declared context only, never what the decision was for in your application.
-
actorobject or null required -
receiptobject or null required -
checkstring required"authenticity_at_signing"What was asked: whether the record is genuine, judged when it was signed.
-
judged_atstring or null requiredThe instant every check was judged at: the receipt's signed
iat(UTC); null when the receipt states none. -
live_eligibilityobject or null requiredWhether an app may still act on the receipt; null unless valid.
-
signing_timeobject or null requiredNull unless valid.
ArchivalEnvelope
An archival envelope: the original receipt, the signed archival core that binds it and its preservation evidence. Public structure only; never a private key, holder secret or recovery section.
no additional properties
-
typestring required"sess.archival-envelope" -
versionnumber required1or21 for a receipt v1; 2 for a receipt v2 (archival-core-v2).
-
receiptstring requiredThe original receipt compact JWS, exactly as issued: receipt v1 in version 1, receipt v2 in version 2.
max length 32768
-
revision_envelopeobjectVersion 2 only: the revision envelope the receipt v2 commits to, strictly checked by the verifier with the receipt.
-
signed_coreobject requiredno additional properties
Show propertiesHide properties
-
typestring required"sess.signed-archival-core" -
versionnumber required1 -
coreobject requiredThe archival core, strictly checked by the verifier.
-
signatureobject requiredno additional properties
Show propertiesHide properties
-
algstring required"Ed25519" -
kidstring required -
valuestring requiredbase64url, 64 bytes.
-
-
-
evidencearray of object requiredDetachable preservation evidence: witness evidence version 1 entries. Empty while the witness is pending.
max items 16
ArchivalPersonEnvelope
A person's archival envelope: the original receipt, the signed projection that binds it without the capability, and its preservation evidence.
no additional properties
-
typestring required"sess.archival-person-envelope" -
versionnumber required1or21 for a receipt v1; 2 for a receipt v2.
-
receiptstring requiredThe original receipt compact JWS, exactly as issued.
max length 32768
-
revision_envelopeobjectVersion 2 only: the revision envelope the receipt v2 commits to.
-
signed_projectionobject requiredno additional properties
Show propertiesHide properties
-
typestring required"sess.signed-archival-person-projection" -
versionnumber required1 -
projectionobject requiredThe person-carried projection, strictly checked by the verifier: its bindings are exactly {target, owner}.
-
signatureobject requiredno additional properties
Show propertiesHide properties
-
algstring required"Ed25519" -
kidstring required -
valuestring requiredbase64url, 64 bytes.
-
-
-
evidencearray of object requiredThe projection's own witness evidence version 1 entries (never the core's). Empty while the witness is pending.
max items 16
ArchivalVerifyResponse
no additional properties
-
checked_atstring requiredThe current time the check used (UTC).
-
signatureobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"valid","invalid","unsupported"or"unverifiable" -
reasonstring required"verified","malformed","oversized","wrong_type","unknown_version","unsupported_algorithm","core_signature","receipt_digest_mismatch","receipt_malformed","receipt_signature","core_receipt_mismatch","untrusted_key","revision","projection_signature"or"projection_receipt_mismatch"
-
-
contentsobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"valid","invalid","unsupported"or"unverifiable" -
reasonstring required"verified","content_unavailable","content_mismatch","content_malformed","content_oversized"or"signature_unverified"
-
-
contextobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"valid","invalid","unsupported"or"unverifiable" -
reasonstring required"verified","unchecked","incomplete","mismatch"or"signature_unverified" -
checkedarray of string requiredThe expected members checked, of: issuer, audience, workspace_id, session_id, event_id, surface_revision, action_id.
-
mismatchedarray of string requiredThe checked members that did not match.
-
-
witnessobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"witnessed","pending","indeterminate","invalid","unsupported"or"unverifiable" -
reasonstring required"verified","unwitnessed","malformed_evidence","invalid_evidence","unsupported_evidence","witness_trust_unavailable","untrusted_witness_key","untrusted_tsa","unknown_log","renewal_lapsed"or"signature_unverified" -
witnessed_atstringWitnessed only: the TSA time, an upper bound on when the signed core existed.
-
detailstringinvalid_evidence only: which part failed.
-
-
key_trustobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"valid","invalid","unsupported"or"unverifiable" -
reasonstring required"trusted","unknown_kid"or"not_evaluated" -
key_setstring required"caller_supplied"Always this server's own published receipt keys, never the envelope's.
-
key_set_observed_atstring or null required
-
-
live_expiryobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"valid","invalid","unsupported"or"unverifiable" -
reasonstring required"unexpired","expired"or"signature_unverified" -
expires_atstring or null required
-
-
coreobject or null requiredThe validated archival core; null unless signature is valid, and always null for a person's envelope.
-
projectionobject or nullA person's archival envelope only: the validated person-carried projection (no capability binding); null unless signature is valid.
-
claimsobject or null requiredThe verified receipt-v1 claims; null unless signature is valid.
-
presentationobject requiredpresentArchivalVerification of the dimensions: the user-facing messages, or the refusal. Witness status and live expiry are beside the messages, never folded in.
no additional properties
Show propertiesHide properties
-
verifiedboolean required -
messagesarray requiredarray of
"signature_verified","contents_verified","contents_unavailable"or"application_context_unchecked" -
refusalobject or null required -
witnessstring required"witnessed","pending","indeterminate","invalid","unsupported"or"unverifiable" -
expired_for_live_useboolean or null required
-
ClosingVerifyRequest
no additional properties
-
closing_receiptstring requiredThe kept file’s closing receipt, its exact compact JWS.
min length 1, max length 8192
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
roundsarray of object requiredThe file’s round receipts, in the order the file carries them.
min items 1, max items 64
Show propertiesHide properties
no additional properties
-
receiptstring requiredmin length 1, max length 32768
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
revision_envelopeobject or nullA receipt v2’s revision envelope, as the file carries it.
-
ClosingVerifyResponse
no additional properties
-
completenessstring required"complete","failed","unsupported"or"none"Derived from authenticity and set match alone.
-
closingobject requiredThe closing receipt’s own authenticity.
no additional properties
Show propertiesHide properties
-
statusstring required"valid","invalid","missing","unsupported"or"unverifiable" -
reasonstring requiredmax length 64
-
-
set_matchobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"valid","invalid","missing","unsupported"or"unverifiable" -
reasonstring requiredmax length 64
-
presentinteger requiredminimum 0, maximum 64
-
signed_countinteger or null required
-
-
independent_timeobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"missing" -
reasonstring required"no_timestamp_evidence"
-
-
presentationobject requiredWhat a person’s page shows: complete (the set-match row, with the signed count), failed (the shared failed-evidence result) or none (no row and no line).
no additional properties
Show propertiesHide properties
-
statestring required"complete","failed"or"none" -
countinteger or null required -
anchored_atstring or null required
-
KeepChallengeRequest
no additional properties
-
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
KeepChallengeResponse
no additional properties
-
roundsinteger requiredThe authorized accepted rounds the file will hold.
minimum 1
-
cutoff_sequenceinteger requiredminimum 1
-
challengenull or object required
KeepRequest
no additional properties
-
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
-
formatstring"json"or"pdf"S-04:
pdfanswers the same kept conversation as a receipt PDF (application/pdf; PDF/A-3b and PDF/UA-1, the exact file embedded unchanged as its one associated file), named "Sess receipt – <title> – <d Mon yyyy>.pdf". A file outside the PDF profile is answered as the JSON instead, whole. How saving works. -
enrollmentobjectno additional properties
Show propertiesHide properties
-
challenge_idstring requiredkch_then 26 capital letters and digits, without I, L, O or U.Details
^kch_[0-9A-HJKMNP-TV-Z]{26}$ -
itemsarray of object requiredExactly the challenge's batch in order, or only its final receipt (the disclosed fallback). One distinct key per receipt.
min items 1, max items 64
Show propertiesHide properties
no additional properties
-
event_idstring requiredevt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
holder_keyobject requiredA fresh public P-256 key (never a private one).
no additional properties
Show propertiesHide properties
-
crvstring required"P-256" -
ktystring required"EC" -
xstring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
ystring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
-
-
proofstring requiredbase64url of the 64-byte ECDSA P-256 SHA-256 signature (IEEE P1363) over the holder proof message.
86 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{86}$
-
-
KeptConversation
The kept conversation: every authorized accepted round of the Session through the snapshot cutoff, each with its unchanged receipt-v1, its bundle-v1 while the content is retained (else unavailable, never reconstructed), its preservation status and holder status, plus an inventory. No private key, grant secret or Sess link. Each extracted bundle verifies with the unchanged bundle-v1 verifier.
no additional properties
-
typestring required"sess.kept-conversation" -
versionnumber required1,2,3or42 (keep-v2: a round also carries revision_envelope) exactly when the file holds a receipt v2 round; else 1 (keep-v1, as written before receipt v2); 3 (keep-v3: person envelopes and holder proofs v2) for every file once keep-v3 writing is on; 4 (keep-v4: keep-v3 with closing_receipt) for every file once keep-v4 writing is on. Readers take all four.
-
issuerstring required -
workspace_idstring required -
session_idstring required -
snapshotobject requiredno additional properties
Show propertiesHide properties
-
cutoff_sequenceinteger requiredminimum 1
-
taken_atstring requiredformat date-time
-
-
coveragestring required"every_accepted_round"or"partial" -
inventoryarray of object requiredShow propertiesHide properties
no additional properties
-
event_idstring required -
sequenceinteger requiredminimum 1
-
revisioninteger requiredminimum 1
-
accepted_atstring requiredformat date-time
-
contentstring required"included"or"unavailable" -
preservationstring required"preserved"or"not_preserved" -
witnessstring or null required -
holderstring required"enrolled","unenrolled"or"revoked"
-
-
roundsarray of object requiredmin items 1, max items 64
Show propertiesHide properties
no additional properties
-
event_idstring required -
sequenceinteger requiredminimum 1
-
revisioninteger requiredminimum 1
-
accepted_atstring requiredformat date-time
-
receiptstring requiredThe receipt compact JWS exactly as issued: receipt v1 (keep-v1 holds only receipt v1 rounds), or receipt v1 or v2 in a keep-v2 file.
-
revision_envelopeobject or nullkeep-v2 only (absent in keep-v1): the revision envelope a receipt v2 commits to; null for a receipt v1 round.
-
contentobject requiredShow propertiesHide properties
-
statusstring required"included"or"unavailable" -
bundleobject requiredA deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer’s public keys. Never a private key, owner credential or Sess link. Receipts.
Only when
statusis"included".no additional properties
Show propertiesHide properties
-
typestring required"sess.decision-bundle" -
versionnumber required1or22 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).
-
receiptstring requiredThe receipt compact JWS exactly as issued: receipt v2 in bundle-v2, receipt v1 in bundle-v1.
max length 32768
Three parts of letters, digits, hyphens or underscores, joined by dots; the last may be empty.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*$ -
revision_envelopeobjectbundle-v2 only: the revision envelope the receipt v2 commits to (missing or other:
revision).no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
-
-
contentobject requiredno additional properties
Show propertiesHide properties
-
surfaceobject requiredThe complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).
-
inputobject requiredThe complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).
-
-
keysobject requiredno additional properties
Show propertiesHide properties
-
keysarray of object requiredThe issuer's public verification keys when the bundle was exported. Disclosed for convenience only: verifiers use keys they trust, never these.
max items 16
-
-
-
-
preservationobject requiredShow propertiesHide properties
-
statusstring required"preserved","preserved"or"not_preserved" -
witnessstring requiredThe witness state at snapshot time (the custody witness job:
pendinguntil a witness attaches, then e.g.witnessed); the envelope carries the evidence attached by then. -
archival_envelopeobject requiredThe archival envelope: version 2 (archival-core-v2) for a receipt v2, version 1 (archival-core-v1) for a receipt v1.
-
person_envelopeobject requiredkeep-v3 only: the person's archival envelope, of the version of its receipt; never a core.
-
-
holderobject requiredShow propertiesHide properties
-
statusany or string required"enrolled"or"revoked"or"unenrolled" -
public_keyobject requiredA fresh public P-256 key (never a private one).
no additional properties
Show propertiesHide properties
-
crvstring required"P-256" -
ktystring required"EC" -
xstring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
ystring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
-
-
key_thumbprintstring required43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
enrolled_atstring requiredformat date-time
-
batchobject required -
proofstring required86 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{86}$ -
reasonstring required"not_preserved","final_only","not_enrolled","holder_withheld"or"holder_core_bound"
-
-
-
closing_receiptstring or nullkeep-v4 only: the Session’s closing receipt (closing-receipt-v1), its exact compact JWS as sealed, present only when the file holds exactly the accepted rounds it commits to; else null. Never a count or list of rounds the file lacks.
WebhookRegisterRequest
no additional properties
-
urlstring requiredAbsolute https:// URL on port 443, without user info or fragment. Registering replaces the current endpoint (which stops receiving new deliveries); the new one receives nothing until verified.
min length 1, max length 2048
WebhookRegisterResponse
no additional properties
-
endpointobject requiredno additional properties
Show propertiesHide properties
-
idstring requiredwhe_then 26 capital letters and digits, without I, L, O or U.Details
^whe_[0-9A-HJKMNP-TV-Z]{26}$ -
urlstring required -
statusstring required"pending"or"verified" -
created_atstring required -
verified_atstring or null required -
verification_expires_atstring or null requiredThe verification lapses 30 days after it succeeds; after that the endpoint is pending again (no new deliveries; queued ones fail endpoint_unavailable) until re-verified.
-
-
signing_secretobject or null requiredThe workspace’s first signing secret when this registration created it, else null.
WebhookVerifyResponse
no additional properties
-
endpointobject requiredno additional properties
Show propertiesHide properties
-
idstring requiredwhe_then 26 capital letters and digits, without I, L, O or U.Details
^whe_[0-9A-HJKMNP-TV-Z]{26}$ -
urlstring required -
statusstring required"pending"or"verified" -
created_atstring required -
verified_atstring or null required -
verification_expires_atstring or null requiredThe verification lapses 30 days after it succeeds; after that the endpoint is pending again (no new deliveries; queued ones fail endpoint_unavailable) until re-verified.
-
WebhookResponse
no additional properties
-
endpointobject or null required -
signing_secretsarray of object requiredSecrets in force, newest first (never the secret values).
Show propertiesHide properties
no additional properties
-
kidstring required -
activeboolean required -
retire_atstring or null required
-
-
deliveriesobject requiredno additional properties
Show propertiesHide properties
-
pendinginteger requiredminimum 0
-
failedinteger requiredminimum 0
-
deliveredinteger requiredminimum 0
-
oldest_pending_age_secondsinteger or null required
-
WebhookRotateResponse
no additional properties
-
signing_secretobject requiredno additional properties
Show propertiesHide properties
-
kidstring requiredwk_then 26 capital letters and digits, without I, L, O or U.Details
^wk_[0-9A-HJKMNP-TV-Z]{26}$ -
secretstring requiredShown once. Store it in the receiver; Sess keeps it only encrypted.
whsec_then 43 letters, digits, + or /, then =.Details
^whsec_[A-Za-z0-9+/]{43}=$
-
-
previousobject or null required
DeliveriesResponse
no additional properties
-
idstring required -
deliveriesarray of object requiredShow propertiesHide properties
no additional properties
-
delivery_idstring requiredobx_then 26 capital letters and digits, without I, L, O or U.Details
^obx_[0-9A-HJKMNP-TV-Z]{26}$ -
event_idstring required -
kindstring required"accepted"or"redelivery" -
statusstring required"pending","delivered"or"failed" -
endpoint_idstring required -
next_attempt_atstring or null required -
deadline_atstring required -
created_atstring required -
finished_atstring or null required -
last_outcomeany or null required"started","delivered","server_error","rate_limited","timeout","connection","dns","signing_unavailable","request_timeout","too_early","rejected","redirect","egress_refused","endpoint_unavailable"or"exhausted"or nullThe job-level outcome: the last attempt’s, or
exhaustedwhen the attempt or time budget ran out, orendpoint_unavailablewhen its endpoint was replaced, disabled or its verification lapsed. -
attemptsarray of object requiredEvery started attempt.
startedwith no finish time: the attempt was interrupted (e.g. a crash); the outcome at the endpoint is unknown and the job is retried.Show propertiesHide properties
no additional properties
-
attemptinteger requiredminimum 1
-
started_atstring required -
finished_atstring or null required -
outcomestring required"started","delivered","server_error","rate_limited","timeout","connection","dns","signing_unavailable","request_timeout","too_early","rejected","redirect","egress_refused","endpoint_unavailable"or"exhausted" -
http_statusinteger or null required
-
-
RedeliverResponse
no additional properties
-
deliveryobject requiredno additional properties
Show propertiesHide properties
-
delivery_idstring requiredobx_then 26 capital letters and digits, without I, L, O or U.Details
^obx_[0-9A-HJKMNP-TV-Z]{26}$ -
event_idstring required -
kindstring required"accepted"or"redelivery" -
statusstring required"pending","delivered"or"failed" -
endpoint_idstring required -
next_attempt_atstring or null required -
deadline_atstring required -
created_atstring required -
finished_atstring or null required -
last_outcomeany or null required"started","delivered","server_error","rate_limited","timeout","connection","dns","signing_unavailable","request_timeout","too_early","rejected","redirect","egress_refused","endpoint_unavailable"or"exhausted"or nullThe job-level outcome: the last attempt’s, or
exhaustedwhen the attempt or time budget ran out, orendpoint_unavailablewhen its endpoint was replaced, disabled or its verification lapsed. -
attemptsarray of object requiredEvery started attempt.
startedwith no finish time: the attempt was interrupted (e.g. a crash); the outcome at the endpoint is unknown and the job is retried.Show propertiesHide properties
no additional properties
-
attemptinteger requiredminimum 1
-
started_atstring required -
finished_atstring or null required -
outcomestring required"started","delivered","server_error","rate_limited","timeout","connection","dns","signing_unavailable","request_timeout","too_early","rejected","redirect","egress_refused","endpoint_unavailable"or"exhausted" -
http_statusinteger or null required
-
-
WebhookDelivery
no additional properties
-
typestring required"response.accepted" -
event_idstring requiredStable across retries and redeliveries: deduplicate on it.
-
session_idstring required -
ask_idstringPresent only when the Session is a respondent of an Ask (POST /v1/asks).
ask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
sequenceinteger required -
revisioninteger required -
action_idstring required -
dataobject required -
accepted_atstring required -
receiptstring or null requiredThe stored signed decision receipt (identical on every delivery).
-
revision_envelopeobject or nullThe revision envelope the receipt v2 commits to (verify the receipt with it: a receipt v2 without its envelope is refused with
revision); null for a receipt v1, for no receipt, or when the revision is no longer retained.
WebhookVerification
no additional properties
-
typestring required"sess.webhook.verification" -
challengestring required
PatchSessionRequest
no additional properties
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 200
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredThe page's content, in order. How your page looks.
min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
actionsarray of object requiredmin items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
-
SurfaceComponent
-
typestring required"heading","text","record","field"or"items" -
textstring requiredA section heading: a few words; at most 40. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
Only when
typeis"heading"or"text".min length 1, max length 40 when
typeis"heading"; min length 1, max length 4000 whentypeis"text"Not blank: at least one character that is not white space.
Details
\S -
labelstringOptional caption above the record: a few words; at most 200. When a later page depends on an earlier answer, restate it in a record. How your page looks.
Only when
typeis"record","field"or"items".min length 1, max length 200 when
typeis"record"; min length 1, max length 40 whentypeis"field"; min length 1, max length 200 whentypeis"items"Not blank: at least one character that is not white space.
Details
\S -
fieldsobject requiredmap of string to string or number or boolean or null
Only when
typeis"record".min properties 1, max properties 50
-
namestringOnly when
typeis"field"or"items".A lower-case letter, then up to 63 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,63}$ -
descriptionstringOptional help, shown under its own field: one hint, only when needed; at most 120. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
Only when
typeis"field".max length 120
-
requiredbooleanOnly when
typeis"field". -
multilinebooleanA string field rendered as a multi-line text area.
Only when
typeis"field". -
option_labelsmap of string to stringDisplay labels for enum values (default: the value itself).
Only when
typeis"field".max properties 100
-
ratingobjectA rating is a field with rating and the schema exactly {"type": "integer", "minimum": 1, "maximum": N}, N from 2 to 10 (title and description allowed); any other schema fails with 400 INVALID_SCHEMA. The person sees stars when N is 5 or less, numbered choices above it; the result is the chosen integer. Inputs, actions and submissions.
Only when
typeis"field".no additional properties
Show propertiesHide properties
-
lowstringOptional words at one end of a rating, shown by its lowest (low) or highest (high) choice: a word or two; at most 24 characters. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S -
highstringOptional words at one end of a rating, shown by its lowest (low) or highest (high) choice: a word or two; at most 24 characters. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S
-
-
schemaobject requiredThe field value schema, JSON Schema 2020-12 restricted to: type string (minLength, maxLength, enum), number or integer (minimum, maximum, exclusiveMinimum, exclusiveMaximum), boolean, or array of string enum IDs (items {type: string, enum}, minItems, maxItems, uniqueItems: true). title and description are allowed on the field value schema itself; array items permit only type and enum. Inputs, actions and submissions.
Only when
typeis"field". -
valueanyThe proposed value shown to the person (a correction is a field with a proposed value). It must be valid against the field schema.
Only when
typeis"field". -
currencystring requiredISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.
Only when
typeis"items".Three capital letters, such as CAD.
Details
^[A-Z]{3}$ -
selectstring"one"or"many"The person may choose rows: one (radios) or many (checkboxes). Needs name; the result carries the chosen row indices in selected.
Only when
typeis"items". -
editablearray of"quantity"The person may change the quantity of rows that carry one. Needs name and an action with intent request_change; a changed quantity is sent only with that action. Choosing lines and changing quantities.
Only when
typeis"items".min items 1, max items 1
-
rowsarray of object required1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).
Only when
typeis"items".min items 1, max items 100
Show propertiesHide properties
no additional properties
-
namestring requiredWhat one line is, shown verbatim; put quantity and unit price in detail; at most 30. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 30
Not blank: at least one character that is not white space.
Details
\S -
detailstringOptional second line under the name: quantity, unit price or a reference; at most 160. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 160
Not blank: at least one character that is not white space.
Details
\S -
quantityobjectAn editable quantity (only with editable ["quantity"]): the person may change it within min (default 0) and max; Sess never recomputes the amount, your agent does on its next revision. The result carries the quantities.
no additional properties
Show propertiesHide properties
-
valueinteger requiredminimum 0, maximum 1000000
-
unitstringOptional unit shown after an editable quantity: a word; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
minintegerminimum 0, maximum 1000000
-
maxintegerminimum 0, maximum 1000000
-
-
amountinteger or null requiredThe line amount in minor units, or null for a line with no amount.
-
-
totalsarray of objectUp to 8 totals lines, in order, as you state them.
Only when
typeis"items".max items 8
Show propertiesHide properties
no additional properties
-
labelstring requiredA totals line's label: a word or two; at most 40. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 40
Not blank: at least one character that is not white space.
Details
\S -
amountinteger requiredThe amount in minor units, as stated.
minimum -1000000000000000, maximum 1000000000000000
-
rolestring required"subtotal","tax","discount","shipping","fee","tip","paid","due","adjustment","total"or"other"subtotal (at most one) must equal the sum of the rows; total (at most one), with a subtotal, must equal the subtotal plus the other lines except paid, due and included.
-
includedbooleanAlready included in the prices (such as VAT): shown, never added. Not on a subtotal or total.
-
items component
Guide: Commerce.
Line items with amounts and totals (Commerce). For anything with prices, send an items component, not a table or text. Amounts are integers in the currency’s smallest unit (cents for USD, yen for JPY, fils for BHD), with one ISO 4217 currency per component; Sess never rounds, converts or computes them. Discounts, credits and payments are negative amounts. A subtotal must equal the sum of the rows, and a total given with a subtotal must equal the subtotal plus every other totals line except paid, due and included ones; otherwise 400 INVALID_SCHEMA gives expected and actual in minor units. Every row and total is shown; nothing is collapsed. Editable quantities need an action with intent request_change, such as “Request changes”: a changed quantity can only be sent with it, and your agent replies with a new revision and updated amounts; without one, 400 INVALID_SCHEMA.
no additional properties
-
typestring required"items" -
labelstringOptional caption of an items card: what the list is, a few words; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
currencystring requiredISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.
Three capital letters, such as CAD.
Details
^[A-Z]{3}$ -
selectstring"one"or"many"The person may choose rows: one (radios) or many (checkboxes). Needs name; the result carries the chosen row indices in selected.
-
editablearray of"quantity"The person may change the quantity of rows that carry one. Needs name and an action with intent request_change; a changed quantity is sent only with that action. Choosing lines and changing quantities.
min items 1, max items 1
-
namestringA lower-case letter, then up to 55 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,55}$ -
rowsarray of object required1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).
min items 1, max items 100
Show propertiesHide properties
no additional properties
-
namestring requiredWhat one line is, shown verbatim; put quantity and unit price in detail; at most 30. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 30
Not blank: at least one character that is not white space.
Details
\S -
detailstringOptional second line under the name: quantity, unit price or a reference; at most 160. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 160
Not blank: at least one character that is not white space.
Details
\S -
quantityobjectAn editable quantity (only with editable ["quantity"]): the person may change it within min (default 0) and max; Sess never recomputes the amount, your agent does on its next revision. The result carries the quantities.
no additional properties
Show propertiesHide properties
-
valueinteger requiredminimum 0, maximum 1000000
-
unitstringOptional unit shown after an editable quantity: a word; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
minintegerminimum 0, maximum 1000000
-
maxintegerminimum 0, maximum 1000000
-
-
amountinteger or null requiredThe line amount in minor units, or null for a line with no amount.
-
-
totalsarray of objectUp to 8 totals lines, in order, as you state them.
max items 8
Show propertiesHide properties
no additional properties
-
labelstring requiredA totals line's label: a word or two; at most 40. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 40
Not blank: at least one character that is not white space.
Details
\S -
amountinteger requiredThe amount in minor units, as stated.
minimum -1000000000000000, maximum 1000000000000000
-
rolestring required"subtotal","tax","discount","shipping","fee","tip","paid","due","adjustment","total"or"other"subtotal (at most one) must equal the sum of the rows; total (at most one), with a subtotal, must equal the subtotal plus the other lines except paid, due and included.
-
includedbooleanAlready included in the prices (such as VAT): shown, never added. Not on a subtotal or total.
-
HumanSubmissionForm
other properties, named as below: string, no additional properties
Property names: data. then a lower-case letter and up to 63 lower-case letters, digits or underscores.
Details
^data\.[a-z][a-z0-9_]{0,63}$
-
client_event_idstring required16 to 64 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{16,64}$ -
surface_revisionstring requiredA whole number from 1 to 999999999, without leading zeros.
Details
^[1-9][0-9]{0,8}$ -
action_idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$
HumanExtensionForm
other properties, named as below: string, no additional properties
Property names: data. then a lower-case letter and up to 63 lower-case letters, digits or underscores.
Details
^data\.[a-z][a-z0-9_]{0,63}$
-
client_event_idstring required16 to 64 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{16,64}$ -
surface_revisionstring requiredA whole number from 1 to 999999999, without leading zeros.
Details
^[1-9][0-9]{0,8}$
Error
no additional properties
-
errorobject requiredno additional properties
Show propertiesHide properties
-
codestring required"INVALID_SCHEMA","PAYLOAD_TOO_LARGE","UNAUTHORIZED","SESSION_NOT_FOUND","NOT_FOUND","INTERNAL","UNKNOWN_COMPONENT","SESSION_REVISION_CONFLICT","IDEMPOTENCY_CONFLICT","PRECONDITION_REQUIRED","SESSION_COMPLETED","SESSION_ENDED","ACTION_NOT_ALLOWED","ACTION_NOT_FOUND","VALIDATION_FAILED","RESPONSE_LIMIT_REACHED","SERVICE_UNAVAILABLE","RATE_LIMITED","TRIAL_UNAVAILABLE","SIGN_IN_UNAVAILABLE","WEBHOOK_INVALID_URL","WEBHOOK_VERIFICATION_FAILED","WEBHOOK_NOT_CONFIGURED","TARGET_INVALID_URL","TARGET_INVALID_CAPABILITY","TARGET_VERIFICATION_FAILED","TARGET_VERSION_CONFLICT","INVOCATION_TERMINAL","HOLDER_ENROLLMENT_REFUSED","PLAN_LIMIT_REACHED","SUBSCRIPTION_EXISTS","TARGET_NAME_TAKEN","EVIDENCE_RESTRICTED","EVIDENCE_DELETED"or"SESSION_ROUND_LIMIT" -
messagestring requiredPlain words for people; clients read code, field, limit, length and expected, never this text. For a value over its length limit it names the value, its length and the limit, and says how to fix it: "Shorten it to at most <limit> characters." Errors.
-
request_idstring requiredmin length 1
-
reasonstringA stable machine-readable refinement of some codes (P1 A4 webhook errors; P2 target, admission and limit errors; SESSION_ENDED: the terminal cause,
final_expiryorrevoked).1 to 40 lower-case letters or underscores.
Details
^[a-z_]{1,40}$ -
fieldstringINVALID_SCHEMA for a value over its length limit, and for an items component (Commerce): a JSON pointer to the value in the request body, for example /interaction/title (for a record key, the pointer names that key) or /interaction/source/components/2/currency; and VALIDATION_FAILED for an agent’s sharing title (reason title_invalid or title_required): /title. A request body that does not match the schema carries field, the pointer to its first failing value, with expected: for a missing property the pointer names it; for an unknown property it is the object that holds it (the unknown name is never repeated); a pointer never passes through a key you chose (it stops at the object holding that key). Errors.
-
limitintegerWith field: the most the value may have, in Unicode code points. Interactive Surface: title 60, description 200, heading 40, text 4,000, record caption 200, record key 24, record string value 200, field label 40, field description 120, option label 30, rating end label 24, action label 16, items caption 200, item name 30, item detail 160, totals label 40, quantity unit 16. Requests and content.
minimum 0
-
lengthintegerWith field: the value’s length in Unicode code points (for rows or totals, how many were sent).
minimum 0
-
expectedinteger or stringAn integer (with actual) for an items amount that does not add up; a short string (without actual) for a request body that does not match the schema.
-
actualintegerWith expected: the amount stated, in minor units.
-
HealthOk
no additional properties
-
statusstring required"ok"
VersionResponse
no additional properties
-
git_shastring or null requiredThe deployed commit, from SESS_GIT_SHA. null when SESS_GIT_SHA is missing, empty or not exactly 40 lower-case hex characters; readiness then answers 503. Which version am I using?
40 lower-case hexadecimal digits.
Details
^[0-9a-f]{40}$ -
build_idstring or null requiredSESS_BUILD_ID, else the BUILD_ID file at the workspace root of the image. null when neither supplies a valid one; readiness then answers 503.
1 to 128 printable ASCII characters, without spaces.
Details
^[!-~]{1,128}$ -
build_timestring or null requiredISO 8601 UTC build time, from SESS_BUILD_TIME, else the BUILD_TIME file at the workspace root of the image. Valid when it has real calendar components and is not more than 5 s after the current time, checked on every request. Which version am I using?
A UTC time such as 2026-11-09T02:05:00Z, with up to 9 decimal places of seconds.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$ -
node_versionstring requiredThe Node.js version (process.version).
ApiRootResponse
no additional properties
-
namestring required"Sess API" -
openapistring requiredThe OpenAPI document of this API (absolute URL).
-
docsstring requiredThe docs home (absolute URL).
-
llmsstring requiredThe docs’ llms.txt, written for agents (absolute URL).
-
trialobject requiredThe no-signup trial: create a Session with no Authorization header.
no additional properties
Show propertiesHide properties
-
methodstring required"POST" -
pathstring required"/v1/trial/sessions"
-
TrialCreateSessionRequest
no additional properties
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 200
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredThe page's content, in order. How your page looks.
min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
actionsarray of object requiredmin items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
-
TrialCreateSessionResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
revisioninteger requiredminimum 1
-
human_urlstring requiredThe Sess link (a capability): share it only with the responder.
-
workspace_idstring requiredThe trial workspace this Session belongs to.
-
management_credentialstringReturned once, only when this request created the trial (no Authorization header). Keep it secret; never put it in a URL. Credentials and audiences.
sess_mg_then 43 letters, digits, hyphens or underscores.Details
^sess_mg_[A-Za-z0-9_-]{43}$ -
action_expires_atstring requiredAfter this instant the Sess link accepts no response.
-
result_available_untilstring requiredUntil this instant the result can be read with the management credential.
-
trial_expires_atstring requiredAfter this instant the trial creates no further Session.
TrialSessionResponse
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
statusstring required"active","responded"or"completed" -
revisioninteger requiredThe current Surface revision.
minimum 1
-
action_expires_horizonstring or null requirednull unless link extensions were on for this deployment when the Session was created; with them on, also null for a link longer than 20 hours or a display Session. Otherwise the fixed instant after which the link can never be extended or reopened: creation + the original lifetime + 10 × min(original lifetime, 1 hour).
-
extensions_usedinteger requiredHow many times the person extended the link: always 0 when action_expires_horizon is null, at most 10 otherwise.
minimum 0, maximum 10
-
link_statestring required"live","lapsed"or"expired"The Sess link’s state at the time of this read: live while it opens and accepts answers (before action_expires_at), expired once it will never accept an answer; an answer accepted while live stays the result. lapsed occurs only where link extensions were on when the Session was created (action_expires_horizon is not null): past the deadline the link accepts no answer and does not open, but can still be extended until the horizon, so the Session is still open for your agent.
-
extensionsarray of object requiredEvery accepted extension of the Sess link, in order: at most ten, empty when none (always empty when action_expires_horizon is null). Each is recorded once, atomically with its extension, and never holds an answer or field value.
max items 10
Show propertiesHide properties
no additional properties
-
numberinteger requiredIts number, 1 to 10, in order.
minimum 1, maximum 10
-
previous_action_expires_atstring requiredThe deadline (action_expires_at) before this extension.
-
action_expires_atstring requiredThe deadline this extension set.
-
from_lapsedboolean requiredTrue when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline.
-
extended_atstring requiredWhen the extension was accepted.
-
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringmax length 4000
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredShow propertiesHide properties
-
typestring required"heading","text","record","field"or"items" -
textstring requiredOnly when
typeis"heading"or"text".min length 1, max length 200 when
typeis"heading"; min length 1, max length 4000 whentypeis"text"Not blank: at least one character that is not white space.
Details
\S -
labelstringOnly when
typeis"record","field"or"items".min length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
fieldsobject requiredmap of string to string or number or boolean or null
Only when
typeis"record".min properties 1, max properties 50
-
namestringOnly when
typeis"field"or"items".A lower-case letter, then up to 63 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,63}$ -
descriptionstringOnly when
typeis"field".max length 1000
-
requiredbooleanOnly when
typeis"field". -
multilinebooleanA string field rendered as a multi-line text area.
Only when
typeis"field". -
option_labelsmap of string to stringDisplay labels for enum values (default: the value itself).
Only when
typeis"field".max properties 100
-
ratingobjectA rating is a field with rating and the schema exactly {"type": "integer", "minimum": 1, "maximum": N}, N from 2 to 10 (title and description allowed); any other schema fails with 400 INVALID_SCHEMA. The person sees stars when N is 5 or less, numbered choices above it; the result is the chosen integer. Inputs, actions and submissions.
Only when
typeis"field".no additional properties
Show propertiesHide properties
-
lowstringmin length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S -
highstringmin length 1, max length 24
Not blank: at least one character that is not white space.
Details
\S
-
-
schemaobject requiredThe field value schema, JSON Schema 2020-12 restricted to: type string (minLength, maxLength, enum), number or integer (minimum, maximum, exclusiveMinimum, exclusiveMaximum), boolean, or array of string enum IDs (items {type: string, enum}, minItems, maxItems, uniqueItems: true). title and description are allowed on the field value schema itself; array items permit only type and enum. Inputs, actions and submissions.
Only when
typeis"field". -
valueanyThe proposed value shown to the person (a correction is a field with a proposed value). It must be valid against the field schema.
Only when
typeis"field". -
currencystring requiredISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.
Only when
typeis"items".Three capital letters, such as CAD.
Details
^[A-Z]{3}$ -
selectstring"one"or"many"The person may choose rows: one (radios) or many (checkboxes). Needs name; the result carries the chosen row indices in selected.
Only when
typeis"items". -
editablearray of"quantity"The person may change the quantity of rows that carry one. Needs name and an action with intent request_change; a changed quantity is sent only with that action. Choosing lines and changing quantities.
Only when
typeis"items".min items 1, max items 1
-
rowsarray of object required1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).
Only when
typeis"items".min items 1, max items 100
Show propertiesHide properties
no additional properties
-
namestring requiredmin length 1, max length 80
Not blank: at least one character that is not white space.
Details
\S -
detailstringmin length 1, max length 160
Not blank: at least one character that is not white space.
Details
\S -
quantityobjectAn editable quantity (only with editable ["quantity"]): the person may change it within min (default 0) and max; Sess never recomputes the amount, your agent does on its next revision. The result carries the quantities.
no additional properties
-
amountinteger or null requiredThe line amount in minor units, or null for a line with no amount.
-
-
totalsarray of objectUp to 8 totals lines, in order, as you state them.
Only when
typeis"items".max items 8
Show propertiesHide properties
no additional properties
-
labelstring requiredmin length 1, max length 40
Not blank: at least one character that is not white space.
Details
\S -
amountinteger requiredThe amount in minor units, as stated.
minimum -1000000000000000, maximum 1000000000000000
-
rolestring required"subtotal","tax","discount","shipping","fee","tip","paid","due","adjustment","total"or"other"subtotal (at most one) must equal the sum of the rows; total (at most one), with a subtotal, must equal the subtotal plus the other lines except paid, due and included.
-
includedbooleanAlready included in the prices (such as VAT): shown, never added. Not on a subtotal or total.
-
-
-
-
actionsarray of object requiredShow propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredmin length 1, max length 200
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring required"first"
-
-
response_schemaobject requiredThe JSON Schema 2020-12 the current revision’s responses are validated against.
-
responsesarray of object requiredEvery accepted response, in sequence order, each bound to its revision.
Show propertiesHide properties
no additional properties
-
event_idstring requiredevt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
sequenceinteger requiredMonotonic per-Session Event sequence.
minimum 1
-
revisioninteger requiredThe Surface revision it was accepted on.
minimum 1
-
action_idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
dataobject requiredThe normalized typed result, valid against that revision’s response_schema.
-
actorobject requiredno additional properties
Show propertiesHide properties
-
assurancestring required"link_holder"
-
-
accepted_atstring requiredISO 8601 UTC time of acceptance.
-
receiptstring or null requiredThe signed decision receipt: a compact JWS (EdDSA/Ed25519, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json: typ sess-receipt+jwt (receipt v1) or sess-receipt-2+jwt (receipt v2; verify it with the revision_envelope returned beside it). Issued once in the acceptance transaction and never re-signed. Receipts.
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
revision_envelopeobjectPresent beside a receipt v2: the revision envelope it commits to (verify the receipt with it; a receipt v2 without its envelope is refused with
revision). Absent beside a receipt v1 (issued before receipt v2) and when there is no receipt.no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
Show propertiesHide properties
-
noncestring required16 random bytes drawn when the revision was published (base64url).
22 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{22}$ -
grant_titlestring or null required -
target_titlestring or null required -
owner_namestring or null required
-
-
-
-
trialobject requiredno additional properties
Show propertiesHide properties
-
workspace_idstring required -
action_expires_atstring requiredAfter this instant the Sess link accepts no response.
-
result_available_untilstring requiredUntil this instant this result remains readable.
-
EmailLinkRequest
no additional properties
-
emailstring requiredThe address to send a sign-in link to. Trimmed and lower-cased.
min length 3, max length 254
EmailLinkAccepted
no additional properties
-
statusstring required"accepted"The link was handed to the email provider. The same answer for every address: it never says whether an account exists.
PersonalSignInRequest
no additional properties
-
emailstring requiredThe address to send the personal sign-in code and link to. Trimmed and lower-cased.
min length 3, max length 254
PersonalSignInAccepted
no additional properties
-
statusstring required"accepted"The email was handed to the email provider. The same answer for every address: it never says whether an identity, a personal account or a developer account exists.
PersonalCodeRequest
no additional properties
-
codestring requiredThe six-digit code from the email (spaces and hyphens are ignored).
min length 1, max length 32
PersonalLinkRequest
no additional properties
-
tokenstring requiredThe sign-in link token, read by the page from the link’s URL fragment (it is never in a request URL). New tokens are base62 (0-9, A-Z, a-z); tokens of earlier links may also contain - and _, and both are accepted.
min length 1, max length 64
PersonalEmptyRequest
no additional properties
Type: object
PersonalSignedInResponse
no additional properties
-
statusstring required"signed_in" -
expires_atstring requiredThe personal session’s absolute expiry (never extended).
format date-time
-
csrfstring requiredThe personal session’s CSRF token: send it as the x-sess-csrf header on /personal/sign-out and /personal/close.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
PersonalSessionResponse
no additional properties
-
emailstring requiredThe address of this session’s own identity.
-
expires_atstring requiredformat date-time
-
csrfstring requiredThe personal session’s CSRF token: send it as the x-sess-csrf header on /personal/sign-out and /personal/close.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
last_savedstring or null requiredThe saved copy (its item) this session’s latest Save wrote or found, while it exists; null otherwise. Bound to this session: another session never sees it.
psn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
last_saved_just_nowboolean requiredWhere Save lands:
last_savedwas saved within the last ten minutes on the server’s clock, so Your receipts marks it "Saved just now". False when there is none. -
has_workspaceboolean requiredThis session’s own verified address also has a developer account (a workspace), so Your receipts’ account menu links to the console, whose own sign-in still applies. False when it has none or the lookup failed.
PersonalDone
no additional properties
-
statusstring required"signed_out"or"closed"
SaveClaimRequest
no additional properties
-
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
-
sourcestring requiredbase64url SHA-256 of UTF-8 "sess.personal-save.source/v1", one 0x00 byte and the source verifier: a 32-byte random value (base64url) this page keeps and hands only to the destination page.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
destinationstringThe destination binding the signed-in destination page obtained from POST /personal/save/destination for its own nonce. Absent: the claim is made at the tap, before the destination page is signed in, and has no binding until the signed-in destination page binds it (POST /personal/save/destination with the secret and the source verifier); it is never redeemed unbound.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
SaveClaimResponse
no additional properties
-
secretstring requiredThe 256-bit transfer secret (stored only as its hash). Hand it, with the source verifier, only to the destination page, in a window message or a body; never put it in a URL.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
expires_atstring requiredThe claim’s expiry.
format date-time
SaveDestinationRequest
no additional properties
-
noncestring requiredA 32-byte random nonce this destination page keeps until it redeems.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
secretstringThe transfer secret of a claim made at the tap (with no destination binding). Never in a URL. How saving works.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
verifierstringThe source verifier of that claim (required with
secret, and only with it).43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
SaveDestinationResponse
no additional properties
-
destinationstring requiredThe destination binding: bound to the nonce and to this personal session, so a claim made for it can be redeemed only by this session presenting the same nonce.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
SaveRedeemRequest
no additional properties
-
secretstring requiredThe claim’s transfer secret.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
verifierstring requiredThe source verifier whose hash the claim was created with.
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$ -
noncestring requiredThis page’s nonce, the one its destination binding was made for (for a claim made at the tap, the nonce it was bound with).
43 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{43}$
SaveDirectRequest
no additional properties
-
linkstring requiredThe Sess link token of the page on this same origin (read from its path; sent only in this body, never in a URL): 22 characters for a /n/ link, 43 for a /s/ link. New tokens are base62 (0-9, A-Z, a-z); tokens of earlier links may also contain - and _, and both are accepted.
22 or 43 letters, digits, hyphens or underscores.
Details
^(?:[A-Za-z0-9_-]{22}|[A-Za-z0-9_-]{43})$ -
grantsarray of string requiredThe Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (
kg-+ hash). Sent in the body only, never in a URL. How saving works.min items 1, max items 128
SavedResponse
no additional properties
-
statusstring required"saved" -
saved_atstring requiredWhen the saved copy was written. The identical request again answers the same time: nothing is written twice.
format date-time
-
existingbooleantruePresent when this account already held the same copy before this request: nothing was written, and the saved copy is that existing one.
PersonalCopyRequest
no additional properties
-
itemstring requiredA saved copy of this personal account, as GET /personal/copies lists it.
psn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$
PersonalCopyDownloadRequest
no additional properties
-
itemstring requiredA saved copy of this personal account, as GET /personal/copies lists it.
psn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
formatstring"json"or"pdf"pdfanswers the copy as served now as a receipt PDF (application/pdf; the same exporter as Keep withformat: pdf, the file as served embedded unchanged as its one associated file). A file outside the PDF profile is answered as the JSON instead, whole. How saving works.
PersonalCopiesResponse
no additional properties
-
copiesarray of object requiredThe newest saved copies first, at most 100.
max items 100
Show propertiesHide properties
no additional properties
-
itemstring requiredpsn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
saved_atstring requiredformat date-time
-
statusstring required"available","partly_unavailable"or"unavailable"partly_unavailableorunavailablewhen an operator restriction or deletion whose scope reaches personal copies withholds rounds or holder proofs of it: that content is never served, and the status never says why. -
titlestring or null requiredThe first served round’s Surface title, from the copy itself.
-
roundsarray of object requiredmax items 64
Show propertiesHide properties
no additional properties
-
accepted_atstring requiredformat date-time
-
signaturestring required"verified","not_valid"or"not_checked"The archival verifier’s signature outcome for this round’s kept record with the service’s receipt keys:
not_checkedwhen the round was not preserved or its key is not trusted here. -
contentsstring required"verified","not_valid","unavailable"or"not_checked"Whether the round’s questions and answers in the copy match the receipt:
unavailablewhen the copy does not hold them (they were purged before the Save),not_checkedwhen the signature was not verified first. Never folded into the signature outcome. -
holderstring required"enrolled","revoked","not_enrolled"or"withheld"The holder status as recorded at Save;
withheldwhen its signed batch names a round an operator order now withholds.
-
-
PersonalCopyRemoved
no additional properties
-
statusstring required"removed"
PersonalCopiesQuery
no additional properties
-
qstringSearch: a case-insensitive part of the shown title or of the agent name (no wildcards), matched only against what the copy serves now. Sent only in this body; never logged.
max length 100
-
statusstring"available","partly_unavailable"or"unavailable"partly_unavailableorunavailablewhen an operator restriction or deletion whose scope reaches personal copies withholds rounds or holder proofs of it: that content is never served, and the status never says why. -
sortstring"saved","title"or"agent"The order: by the date the row shows (the default;
answered_at, elsesaved_at), the shown title or the agent name (copies with none last). -
orderstring"asc"or"desc"Ascending or descending (the default: desc by date, asc by title or agent).
-
offsetintegerHow many matching copies to skip (pages of 20), when no cursor is given. Kept for a page loaded before cursors; the page itself sends a cursor.
minimum 0, maximum 1000000
-
cursorstringA page position from a previous answer’s next or previous, under the same sort, order, status and search: opaque, sealed for this personal session, never a credential. One that does not open here is the first page.
max length 2048
One or more letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]+$
PersonalCopiesPage
no additional properties
-
copiesarray of object requiredmax items 25
Show propertiesHide properties
no additional properties
-
itemstring requiredpsn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
saved_atstring requiredformat date-time
-
answered_atstring or null requiredWhen the last round the copy serves now was answered (its
accepted_at, as opening the copy shows it): the date the list shows and sorts by. null when the copy serves no round or gives no readable time (the list then shows and sorts bysaved_at). -
date_textstring requiredThe date the list row and the opened receipt’s header show, as text, written by the server when it answers (one smart date for every list row, rendered when the page is served, no script): the last answer’s time the copy serves, else
saved_at, against the server’s clock in UTC: “now” under a minute, “5m” under an hour, “3h” under 24 hours, “Yesterday” on the UTC day before, else “6 Nov”, with the year (“6 Nov 2025”) only in another year. Display text, never parsed; the exact times stay insaved_at,answered_atand each round’saccepted_at.min length 1, max length 16
-
statusstring required"available","partly_unavailable"or"unavailable"partly_unavailableorunavailablewhen an operator restriction or deletion whose scope reaches personal copies withholds rounds or holder proofs of it: that content is never served, and the status never says why. -
titlestring or null requiredThe Surface title of the first round the copy serves now that has one, from the copy itself; a withheld round’s title is never used.
-
labelstring or null requiredThe person’s own name for the copy (Rename, D7): the page’s navigation title only. It is never in the file, a receipt, a PDF or an export, and never presented as the author’s. How saving works.
-
agentstring or null requiredThe name the agent was published under for this conversation when it was saved (a shared card’s display title, or its name when it had none; or the Sess demo), kept as it was then and given as a person reads it (a title exactly as written; a card name with its hyphens as spaces and a capital first letter, so weekend-planner is Weekend planner): a historical display name, never a verified identity. null when there was none, or when nothing of the copy is served now.
-
verifiedboolean requiredWhether the copy is available and every round it serves was checked and verified at this read, its signature and its questions and answers both (each round’s
signatureandcontentsverified, as POST /personal/copies/open gives them): the list row says no state then, else “Unverified”, unlessstatusmakes it “Partial” or “Unavailable”. false unlessstatusisavailable, even when every round a partly unavailable copy still serves verifies; false when the copy serves no round.
-
-
totalinteger requiredEvery saved copy that matches.
minimum 0
-
allinteger requiredEvery saved copy the list holds, under no search and no status, counted after suppression in the same snapshot as total (the page shows {total} of {all} while a search or status narrows it).
minimum 0
-
offsetinteger requiredHow many matching copies precede this page’s first row.
minimum 0
-
limitinteger requiredThe page size (20).
minimum 1
-
nextstring or null requiredThe cursor of the next page; null on the last page.
-
previousstring or null requiredThe cursor of the previous page; an empty string when the previous page is the first (asked for with no cursor); null on the first page.
PersonalCopyView
no additional properties
-
itemstring requiredpsn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
saved_atstring requiredformat date-time
-
date_textstring requiredThe date the list row and the opened receipt’s header show, as text, written by the server when it answers (one smart date for every list row, rendered when the page is served, no script): the last answer’s time the copy serves, else
saved_at, against the server’s clock in UTC: “now” under a minute, “5m” under an hour, “3h” under 24 hours, “Yesterday” on the UTC day before, else “6 Nov”, with the year (“6 Nov 2025”) only in another year. Display text, never parsed; the exact times stay insaved_at,answered_atand each round’saccepted_at.min length 1, max length 16
-
statusstring required"available","partly_unavailable"or"unavailable"partly_unavailableorunavailablewhen an operator restriction or deletion whose scope reaches personal copies withholds rounds or holder proofs of it: that content is never served, and the status never says why. -
titlestring or null required -
labelstring or null requiredThe person’s own name for the copy (Rename, D7): the page’s navigation title only. It is never in the file, a receipt, a PDF or an export, and never presented as the author’s. How saving works.
-
agentstring or null requiredThe name the agent was published under for this conversation when it was saved (a shared card’s display title, or its name when it had none; or the Sess demo), kept as it was then and given as a person reads it (a title exactly as written; a card name with its hyphens as spaces and a capital first letter, so weekend-planner is Weekend planner): a historical display name, never a verified identity. null when there was none, or when nothing of the copy is served now.
-
roundsarray of object requiredmax items 64
Show propertiesHide properties
no additional properties
-
accepted_atstring requiredformat date-time
-
titlestring or null required -
descriptionstring or null required -
actionstring or null requiredThe label of the action the person chose, as the receipt records it.
-
blocksarray of object requiredEmpty when the copy does not hold the round’s questions and answers.
max items 200
Show propertiesHide properties
-
kindstring required"heading","text","record","items"or"answer" -
textstring requiredOnly when
kindis"heading"or"text".max length 200 when
kindis"heading"; max length 4000 whenkindis"text" -
labelany or string requiredstring or null or string or null or string
Only when
kindis"record","items"or"answer". -
pairsarray of array of any requiredOnly when
kindis"record".max items 50
-
currencystring or null requiredThe ISO 4217 code, or null when the formatted amounts carry it already.
Only when
kindis"items".Three capital letters, such as CAD.
Details
^[A-Z]{3}$ -
amount_code"start"or"end"or null requiredWhere the amounts carry the ISO code set apart from the number by a space (@sess/core amountCodeAt): before it, after it, or null where they carry a symbol.
Only when
kindis"items". -
rowsarray of object requiredOnly when
kindis"items".max items 100
Show propertiesHide properties
no additional properties
-
namestring requiredmax length 200
-
detailstring or null required -
quantitystring or null requiredThe row’s quantity and unit; where the person could change it, the accepted one.
-
amountstring or null requiredThe line amount, formatted exactly; null for a line with no amount.
-
amount_groupsarray of string or null required
-
-
totalsarray of object requiredOnly when
kindis"items".max items 8
Show propertiesHide properties
no additional properties
-
labelstring requiredmax length 200
-
amountstring requiredmax length 100
-
amount_groupsarray of string requiredThe amount cut after each grouping separator (@sess/core formatMinorGroups): the only places the page lets a long amount break; an ISO code apart from the number is a piece of its own. The pieces join to the amount, the space beside such a code an ordinary one.
min items 1, max items 16
-
mainboolean requiredThe total, or without one the amount due.
-
includedboolean requiredAlready in the prices: shown, not added.
-
-
answerstring or boolean or null requiredstring or boolean or null
The accepted answer: text as typed, a number as written, a choice as its option label, several choices joined with ", "; true or false for a yes/no field; null when it was left empty.
Only when
kindis"answer". -
ratingobjectFor a rating field, its chosen value and its scale’s maximum (the answer reads "{value} of {max}"); absent for every other field.
Only when
kindis"answer".no additional properties
Show propertiesHide properties
-
valueinteger requiredminimum 1, maximum 10
-
maxinteger requiredminimum 2, maximum 10
-
-
-
signaturestring required"verified","not_valid"or"not_checked"The archival verifier’s signature outcome for this round’s kept record with the service’s receipt keys:
not_checkedwhen the round was not preserved or its key is not trusted here. -
contentsstring required"verified","not_valid","unavailable"or"not_checked"Whether the round’s questions and answers in the copy match the receipt:
unavailablewhen the copy does not hold them (they were purged before the Save),not_checkedwhen the signature was not verified first. Never folded into the signature outcome. -
holderstring required"enrolled","revoked","not_enrolled"or"withheld"The holder status as recorded at Save;
withheldwhen its signed batch names a round an operator order now withholds. -
provenanceobjectRV2-06: who asked and when, only from a receipt v2 whose revision envelope verified with it; absent for a receipt v1 or an unverified round, as revision_envelope is absent beside a receipt v1 on the /v1 faces. Never a live name and never a key label.
no additional properties
Show propertiesHide properties
-
asked_bystring or null requiredThe most specific owner-chosen title committed in the verified revision envelope (its grant title, else its Target title, else its owner name); null when it has none.
-
published_atstring requiredWhen the round was published (UTC).
-
addressstring or null requiredThe registered address the Session was started from (agent_target.name in the verified envelope), drawn as the receipt summary’s address line; null when none.
-
inboxboolean requiredAn inbox child (the verified envelope names both agent_target and ask_id): the summary says "Sent to" its Target’s title and no "Asked by".
-
sent_tostring or null requiredOn an inbox child, the committed Target title (titles.target_title); null otherwise or when it has none.
-
-
-
closingobjectThe Session’s closing receipt, checked on the server against the copy as served now. Absent when the copy carries none, or when it can’t be decided here.
no additional properties
Show propertiesHide properties
-
verifiedboolean requiredtrue: the copy’s rounds are exactly the set the closing receipt signs; false: the closing receipt it carries does not verify or does not match (the copy is then unverified).
-
countinteger or null requiredThe signed count of answers recorded, when verified; else null.
-
PersonalCopyLabelRequest
no additional properties
-
itemstring requiredpsn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
labelstring or null requirednull clears the label: the copy shows its own title again.
Not blank, with no control characters.
Details
^[^\u0000-\u001f\u007f]*\S[^\u0000-\u001f\u007f]*$
PersonalCopyLabelled
no additional properties
-
statusstring required"saved"or"cleared"
PersonalCopiesRequest
no additional properties
-
itemsarray of string requiredSaved copies of this account, as the table lists them (at most a page).
min items 1, max items 25
PersonalCopiesRemoved
no additional properties
-
resultsarray of object requiredmax items 25
Show propertiesHide properties
no additional properties
-
itemstring requiredpsn_then 32 lower-case hexadecimal digits.Details
^psn_[0-9a-f]{32}$ -
outcomestring required"removed","held","not_found","failed","not_attempted"or"unknown"Each item, exactly (D8):
removedin its own committed transaction;not_foundnot among this account’s copies now (already removed, also when a removal’s answer was lost and the copy, read under its lock, is gone: a retry is safe);helda justified hold delays it (never named);failednot removed: its removal failed and the copy, read under its lock, is still saved;not_attemptedthe request’s time bound or the session ended before it;unknownits removal failed and what happened could not be read in time.
-
ProtectedResourceMetadata
no additional properties
-
resourcestring requiredThe MCP resource (RFC 8707): the deployment’s MCP endpoint, the /mcp path on its MCP host.
-
authorization_serversarray of string requiredmin items 1, max items 1
-
scopes_supportedarray of"sess:interact"required -
bearer_methods_supportedarray of"header"required -
resource_namestring required
AuthorizationServerMetadata
no additional properties
-
issuerstring required -
authorization_endpointstring required -
token_endpointstring required -
registration_endpointstring required -
revocation_endpointstring required -
scopes_supportedarray of"sess:interact"required -
response_types_supportedarray of"code"required -
response_modes_supportedarray of"query"required -
grant_types_supportedarray requiredarray of
"authorization_code"or"refresh_token" -
token_endpoint_auth_methods_supportedarray of"none"required -
revocation_endpoint_auth_methods_supportedarray of"none"required -
code_challenge_methods_supportedarray of"S256"required -
client_id_metadata_document_supportedboolean requiredtrue -
authorization_response_iss_parameter_supportedboolean requiredtrue
OAuthTokenResponse
no additional properties
-
access_tokenstring requiredBearer for the MCP resource only (audience-bound), 256 bits, about one hour.
sess_ha_then 43 letters, digits, hyphens or underscores.Details
^sess_ha_[A-Za-z0-9_-]{43}$ -
token_typestring required"Bearer" -
expires_ininteger requiredminimum 1
-
refresh_tokenstring requiredSingle use: every refresh returns a new one. Presenting a used one again revokes the whole token family.
sess_hr_then 43 letters, digits, hyphens or underscores.Details
^sess_hr_[A-Za-z0-9_-]{43}$ -
scopestring required"sess:interact"
OAuthErrorResponse
no additional properties
-
errorstring required"invalid_request","invalid_client","invalid_grant","invalid_scope","invalid_target","unsupported_grant_type","invalid_redirect_uri","invalid_client_metadata","temporarily_unavailable"or"server_error" -
error_descriptionstring
ClientRegistrationRequest
A public client (no secret). The redirect addresses and the name together may be at most 4 KiB. Other RFC 7591 metadata is ignored; a client secret, jwks or another authentication method is refused.
-
redirect_urisarray of string requiredmin items 1, max items 10
-
client_namestringmax length 100
-
token_endpoint_auth_methodstring"none" -
grant_typesarrayarray of
"authorization_code"or"refresh_token" -
response_typesarray of"code"
ClientRegistrationResponse
no additional properties
-
client_idstring requiredhcl_then 32 lower-case hexadecimal digits.Details
^hcl_[0-9a-f]{32}$ -
client_id_issued_atinteger required -
client_namestring required -
redirect_urisarray of string required -
token_endpoint_auth_methodstring required"none" -
grant_typesarray requiredarray of
"authorization_code"or"refresh_token" -
response_typesarray of"code"required
TargetRegisterRequest
no additional properties
-
typestring required"http"The only supported target protocol type.
-
endpointstring requiredAbsolute https:// URL on port 443 without user info or fragment; an IP literal must be public. Immutable: register a new target to change it.
min length 1, max length 2048
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring requiredA lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.
Details
^[a-z][a-z0-9_.-]{0,63}$ -
versionstring requiredA letter or digit, then up to 31 letters, digits, dots, plus signs or hyphens.
Details
^[0-9A-Za-z][0-9A-Za-z.+-]{0,31}$ -
input_schemaobject requiredJSON Schema 2020-12 for the start input: an object schema using only type, properties, required, additionalProperties, items, enum, const, numeric and length bounds, title and description (no pattern, format, $ref or composition), at most 6 levels deep and 8192 bytes.
-
-
grantobject requiredno additional properties
Show propertiesHide properties
-
audiencesarray of string requiredThe exact browser origins a grant may be issued for. A start must come from its grant’s origin (the Origin header).
min items 1, max items 8
-
lifetime_secondsinteger requiredHow long an issued grant lives.
minimum 60, maximum 86400
-
-
budgetobject requiredno additional properties
Show propertiesHide properties
-
max_concurrentinteger requiredminimum 1, maximum 100
-
max_starts_per_dayinteger requiredminimum 1, maximum 100000
-
-
enabledbooleanDefault true.
-
default_expires_inintegerAdvanced. The Sess link lifetime, in seconds, the target’s agent is asked to give each Session it creates for a run: at least 30 and at most the workspace plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000); out of range → 400 INVALID_SCHEMA, whose message names both bounds. Advisory: Sess does not create the target’s Sessions. How it works.
TargetUpdateRequest
min properties 1, no additional properties
-
enabledboolean -
capabilityobjectno additional properties
Show propertiesHide properties
-
namestring requiredA lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.
Details
^[a-z][a-z0-9_.-]{0,63}$ -
versionstring requiredA letter or digit, then up to 31 letters, digits, dots, plus signs or hyphens.
Details
^[0-9A-Za-z][0-9A-Za-z.+-]{0,31}$ -
input_schemaobject requiredJSON Schema 2020-12 for the start input: an object schema using only type, properties, required, additionalProperties, items, enum, const, numeric and length bounds, title and description (no pattern, format, $ref or composition), at most 6 levels deep and 8192 bytes.
-
-
grantobjectno additional properties
Show propertiesHide properties
-
audiencesarray of string requiredThe exact browser origins a grant may be issued for. A start must come from its grant’s origin (the Origin header).
min items 1, max items 8
-
lifetime_secondsinteger requiredHow long an issued grant lives.
minimum 60, maximum 86400
-
-
budgetobjectno additional properties
Show propertiesHide properties
-
max_concurrentinteger requiredminimum 1, maximum 100
-
max_starts_per_dayinteger requiredminimum 1, maximum 100000
-
-
default_expires_ininteger or null
TargetSharingRequest
min properties 1, no additional properties
-
namestring or nullLower-case letters and digits, starting with a letter, with single hyphens between words.
Details
^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$ -
sharedbooleanTurning sharing on needs a name and a title, in this request or already set. Any change while shared needs the title too.
-
titlestring or null -
descriptionstring or null -
attributionstring or null -
ask_againboolean
TargetResponse
no additional properties
-
idstring requiredtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
typestring required"http" -
endpointstring required -
versioninteger requiredIncremented by every change of capability, grant policy or budget (not by sharing or default_expires_in). Grants are bound to one version; a start with an older grant → 409 TARGET_VERSION_CONFLICT, and admitted runs not yet dispatched fail as stale_binding.
minimum 1
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring requiredA lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.
Details
^[a-z][a-z0-9_.-]{0,63}$ -
versionstring requiredA letter or digit, then up to 31 letters, digits, dots, plus signs or hyphens.
Details
^[0-9A-Za-z][0-9A-Za-z.+-]{0,31}$ -
input_schemaobject requiredJSON Schema 2020-12 for the start input: an object schema using only type, properties, required, additionalProperties, items, enum, const, numeric and length bounds, title and description (no pattern, format, $ref or composition), at most 6 levels deep and 8192 bytes.
-
-
grantobject requiredno additional properties
Show propertiesHide properties
-
audiencesarray of string requiredThe exact browser origins a grant may be issued for. A start must come from its grant’s origin (the Origin header).
min items 1, max items 8
-
lifetime_secondsinteger requiredHow long an issued grant lives.
minimum 60, maximum 86400
-
-
budgetobject requiredno additional properties
Show propertiesHide properties
-
max_concurrentinteger requiredminimum 1, maximum 100
-
max_starts_per_dayinteger requiredminimum 1, maximum 100000
-
-
enabledboolean required -
verificationobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"pending"or"verified" -
tokenstring requiredPublish it at well_known_url (public by design).
-
well_known_urlstring required -
verified_atstring or null required -
expires_atstring or null required
-
-
countsobject requiredOwner-only counts; never public.
no additional properties
Show propertiesHide properties
-
startedinteger requiredminimum 0
-
completedinteger requiredminimum 0
-
-
sharingobject requiredno additional properties
Show propertiesHide properties
-
namestring or null requiredLower-case letters and digits, starting with a letter, with single hyphens between words.
Details
^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$ -
sharedboolean requiredOff by default. While false, /a/{name} answers 404 and its starts stop.
-
titlestring or null required -
descriptionstring or null required -
attributionstring or null required -
ask_againboolean requiredOff by default. When on, the completion page of a run started from the card offers “Ask this agent again”: a new start (a new Invocation and a new Session) that carries nothing from the finished one.
-
-
default_expires_ininteger or null requiredThe advisory link lifetime in seconds; null: none (the plan’s lifetime).
-
created_atstring required
TargetListResponse
no additional properties
-
targetsarray of object requiredShow propertiesHide properties
no additional properties
-
idstring requiredtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
typestring required"http" -
endpointstring required -
versioninteger requiredIncremented by every change of capability, grant policy or budget (not by sharing or default_expires_in). Grants are bound to one version; a start with an older grant → 409 TARGET_VERSION_CONFLICT, and admitted runs not yet dispatched fail as stale_binding.
minimum 1
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring requiredA lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.
Details
^[a-z][a-z0-9_.-]{0,63}$ -
versionstring requiredA letter or digit, then up to 31 letters, digits, dots, plus signs or hyphens.
Details
^[0-9A-Za-z][0-9A-Za-z.+-]{0,31}$ -
input_schemaobject requiredJSON Schema 2020-12 for the start input: an object schema using only type, properties, required, additionalProperties, items, enum, const, numeric and length bounds, title and description (no pattern, format, $ref or composition), at most 6 levels deep and 8192 bytes.
-
-
grantobject requiredno additional properties
Show propertiesHide properties
-
audiencesarray of string requiredThe exact browser origins a grant may be issued for. A start must come from its grant’s origin (the Origin header).
min items 1, max items 8
-
lifetime_secondsinteger requiredHow long an issued grant lives.
minimum 60, maximum 86400
-
-
budgetobject requiredno additional properties
Show propertiesHide properties
-
max_concurrentinteger requiredminimum 1, maximum 100
-
max_starts_per_dayinteger requiredminimum 1, maximum 100000
-
-
enabledboolean required -
verificationobject requiredno additional properties
Show propertiesHide properties
-
statusstring required"pending"or"verified" -
tokenstring requiredPublish it at well_known_url (public by design).
-
well_known_urlstring required -
verified_atstring or null required -
expires_atstring or null required
-
-
countsobject requiredOwner-only counts; never public.
no additional properties
Show propertiesHide properties
-
startedinteger requiredminimum 0
-
completedinteger requiredminimum 0
-
-
sharingobject requiredno additional properties
Show propertiesHide properties
-
namestring or null requiredLower-case letters and digits, starting with a letter, with single hyphens between words.
Details
^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$ -
sharedboolean requiredOff by default. While false, /a/{name} answers 404 and its starts stop.
-
titlestring or null required -
descriptionstring or null required -
attributionstring or null required -
ask_againboolean requiredOff by default. When on, the completion page of a run started from the card offers “Ask this agent again”: a new start (a new Invocation and a new Session) that carries nothing from the finished one.
-
-
default_expires_ininteger or null requiredThe advisory link lifetime in seconds; null: none (the plan’s lifetime).
-
created_atstring required
-
TargetVerificationDocument
-
target_idstring requiredtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
tokenstring required
GrantIssueRequest
no additional properties
-
audiencestring requiredmax length 300
An https origin in lower case, such as https://agent.example.com, with an optional port and no path.
Details
^https://[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::[0-9]{1,5})?$
GrantIssueResponse
no additional properties
-
grantobject requiredno additional properties
Show propertiesHide properties
-
idstring requiredtgr_then 26 capital letters and digits, without I, L, O or U.Details
^tgr_[0-9A-HJKMNP-TV-Z]{26}$ -
target_idstring requiredtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
target_versioninteger requiredminimum 1
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring required -
versionstring required
-
-
audiencestring required -
expires_atstring required -
revoked_atstring or null required
-
-
secretstring requiredShown once; Sess stores only its hash. Never put it in a URL. How it works.
sess_gr_then 43 letters, digits, hyphens or underscores.Details
^sess_gr_[A-Za-z0-9_-]{43}$
GrantRevokeResponse
no additional properties
-
grantobject requiredno additional properties
Show propertiesHide properties
-
idstring requiredtgr_then 26 capital letters and digits, without I, L, O or U.Details
^tgr_[0-9A-HJKMNP-TV-Z]{26}$ -
target_idstring requiredtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
target_versioninteger requiredminimum 1
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring required -
versionstring required
-
-
audiencestring required -
expires_atstring required -
revoked_atstring or null required
-
InvocationStartRequest
no additional properties
-
request_idstring requiredOne logical start. The same request_id and body with the same grant returns the same admitted run; a different body → 409 IDEMPOTENCY_CONFLICT.
16 to 64 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{16,64}$ -
inputobject required
InvocationStartResponse
no additional properties
-
invocationobject requiredno additional properties
Show propertiesHide properties
-
idstring requiredinv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$ -
statusstring required"admitted","dispatching","dispatched","unknown","completed","failed","cancelled"or"expired"admitted → dispatching → dispatched → completed | failed; unknown when the dispatch outcome at the target cannot be known (never success, never repeated blindly); cancelled and expired. completed, failed, cancelled and expired are terminal.
-
reasonstring or null required1 to 40 lower-case letters or underscores.
Details
^[a-z_]{1,40}$ -
request_idstring required -
target_versioninteger requiredminimum 1
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring required -
versionstring required
-
-
created_atstring required -
expires_atstring required -
finished_atstring or null required -
resultobject or null required
-
-
participant_credentialstring requiredStatus, result and cancel access to this Invocation only (Authorization: Bearer). The same on every replay of the start.
sess_pc_then 43 letters, digits, hyphens or underscores.Details
^sess_pc_[A-Za-z0-9_-]{43}$
InvocationResponse
no additional properties
-
idstring requiredinv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$ -
statusstring required"admitted","dispatching","dispatched","unknown","completed","failed","cancelled"or"expired"admitted → dispatching → dispatched → completed | failed; unknown when the dispatch outcome at the target cannot be known (never success, never repeated blindly); cancelled and expired. completed, failed, cancelled and expired are terminal.
-
reasonstring or null required1 to 40 lower-case letters or underscores.
Details
^[a-z_]{1,40}$ -
request_idstring required -
target_versioninteger requiredminimum 1
-
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring required -
versionstring required
-
-
created_atstring required -
expires_atstring required -
finished_atstring or null required -
resultobject or null required
InvocationResultRequest
no additional properties
-
invocation_idstring requiredinv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$ -
target_versioninteger requiredminimum 1
-
statusstring required"completed"or"failed" -
resultobject
TargetDispatch
no additional properties
-
typestring required"sess.invocation" -
invocation_idstring requiredinv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$ -
request_idstring required -
target_idstring requiredtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
target_versioninteger required -
capabilityobject requiredno additional properties
Show propertiesHide properties
-
namestring required -
versionstring required
-
-
inputobject required -
limitsobject requiredno additional properties
Show propertiesHide properties
-
accepted_roundsinteger requiredminimum 1
-
expires_inintegerThe target’s default_expires_in when this run was admitted (absent when it had none). Advisory: the agent passes it as expires_in on POST /v1/sessions for the Sessions of this run unless it sets its own; that create checks it against the agent key’s plan.
minimum 30
-
-
expires_atstring required -
callbackobject requiredno additional properties
Show propertiesHide properties
-
urlstring required -
credentialstring requiredPresent as Authorization: Bearer on the callback URL; one dispatch only.
-
TargetDispatchAnswer
no additional properties
-
invocation_idstring requiredinv_then 26 capital letters and digits, without I, L, O or U.Details
^inv_[0-9A-HJKMNP-TV-Z]{26}$ -
target_versioninteger required -
statusstring required"accepted","completed"or"failed" -
resultobject
AccountUsageResponse
no additional properties
-
planobject requiredno additional properties
Show propertiesHide properties
-
idstring required"free","starter"or"pro" -
namestring requiredmin length 1
-
price_usd_centsinteger requiredUS dollars per month in cents, excluding applicable taxes.
minimum 0
-
resolved_per_periodinteger requiredResolved Sessions per period: the plan total. No overage is charged.
minimum 1
-
active_sessionsinteger requiredminimum 1
-
live_hoursinteger requiredThe human-link lifetime a new Session gets (captured at admission).
minimum 1
-
retention_hours_after_endinteger requiredHow long a new Session’s payloads and results are kept after it ends (captured at admission). Receipts are kept without automatic expiry on every plan.
minimum 1
-
-
periodobject requiredno additional properties
Show propertiesHide properties
-
usage_fromstring requiredResolutions from this instant count against the allowance (the period start, or earlier when a plan change carried usage over).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
resets_atstring requiredThe next reset: monthly from the workspace’s billing anchor (UTC).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
-
-
usageobject requiredno additional properties
Show propertiesHide properties
-
resolvedinteger requiredResolved Sessions in this period.
minimum 0
-
allowanceinteger requiredminimum 1
-
reservedinteger requiredAdmitted interactive Sessions that can still qualify; each holds one unit of the allowance until it qualifies, its link ends before completion, or its delivery deadline passes without its result reaching the owner.
minimum 0
-
availableinteger requiredNew Sessions the allowance still admits: allowance − resolved − reserved.
minimum 0
-
activeinteger requiredminimum 0
-
active_limitinteger requiredminimum 1
-
-
warningsarray requiredarray of
"allowance_80"or"allowance_100"allowance_80 at 80% of the allowance used, allowance_100 at 100%.
-
pausedstring or null required"monthly_allowance"or"active_sessions"or nullWhy a new Session would be refused now (429 PLAN_LIMIT_REACHED with this reason); null when it would be admitted.
BillingCheckoutRequest
no additional properties
-
planstring required"starter"or"pro"The paid plan to upgrade to.
BillingCheckoutResponse
no additional properties
-
planstring required"starter"or"pro" -
checkout_urlstring requiredThe payment provider’s hosted Checkout page. Open it in a browser; returning from it grants nothing by itself: the plan changes when the provider’s verified subscription state says it is paid.
max length 2048
Starts with https://.
Details
^https:// -
expires_atstring requiredWhen the Checkout page stops accepting payment.
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
BillingEventAck
no additional properties
-
receivedboolean requiredtrue
EvidenceRecordSummary
no additional properties
-
event_idstring required -
session_idstring required -
custodystring required"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
sequenceinteger or null requiredThe committed workspace custody sequence (archival); null for exception.
-
accepted_atstring requiredThe receipt’s asserted acceptance time.
-
preserved_atstring requiredWhen custody began: at acceptance, by the later backfill, or the exception.
-
originstring or null required"acceptance"or"backfill"or null -
witnessstring required"pending","batched","failed_retryable","indeterminate","witnessed"or"none"The archival record’s witness job state. witnessed: its preservation evidence (an external timestamp and transparency log entry) is attached. Results, receipts and webhooks.
-
target_idstring or null requiredThe target the archival core binds, or null (no target binding).
-
exceptionnull or object requirednull for archival custody. For exception custody: the receipt is kept exactly as issued but is unverified; it is not evidence that the decision happened as stated.
-
content_retainedboolean requiredTrue while the original Surface and accepted input are still kept (the Session’s retention has not ended). The receipt itself is kept either way.
EvidenceListResponse
no additional properties
-
scopeobject requiredno additional properties
Show propertiesHide properties
-
labelstring required"issued records in this defined scope/range" -
complete_historyboolean requiredfalseAlways false: no anchored high-water/count evidence and reconciliation exist yet, so a list or export is never a complete history.
-
custodystring required"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
filtersobject requiredno additional properties
Show propertiesHide properties
-
target_idstring -
accepted_fromstring -
accepted_tostring -
from_sequenceinteger -
to_sequenceinteger
-
-
-
recordsarray of object requiredShow propertiesHide properties
no additional properties
-
event_idstring required -
session_idstring required -
custodystring required"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
sequenceinteger or null requiredThe committed workspace custody sequence (archival); null for exception.
-
accepted_atstring requiredThe receipt’s asserted acceptance time.
-
preserved_atstring requiredWhen custody began: at acceptance, by the later backfill, or the exception.
-
originstring or null required"acceptance"or"backfill"or null -
witnessstring required"pending","batched","failed_retryable","indeterminate","witnessed"or"none"The archival record’s witness job state. witnessed: its preservation evidence (an external timestamp and transparency log entry) is attached. Results, receipts and webhooks.
-
target_idstring or null requiredThe target the archival core binds, or null (no target binding).
-
exceptionnull or object requirednull for archival custody. For exception custody: the receipt is kept exactly as issued but is unverified; it is not evidence that the decision happened as stated.
-
content_retainedboolean requiredTrue while the original Surface and accepted input are still kept (the Session’s retention has not ended). The receipt itself is kept either way.
-
-
next_cursorstring or null required
EvidenceExportRequest
An explicit range is required: both from_sequence and to_sequence (archival only), or both accepted_from and accepted_to. A range beyond the record or size bound is truncated; range.next_cursor continues it.
no additional properties
-
custodystring"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
from_sequenceintegerminimum 1, maximum 9007199254740991
-
to_sequenceintegerminimum 1, maximum 9007199254740991
-
accepted_fromstringAccepted at or after (inclusive). UTC, at most millisecond precision (finer is refused).
max length 24
A UTC time such as 2026-11-09T02:05:00Z, with up to 3 decimal places of seconds.
Details
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]{1,3})?Z$ -
accepted_tostringAccepted before (exclusive). UTC, at most millisecond precision (finer is refused).
max length 24
A UTC time such as 2026-11-09T02:05:00Z, with up to 3 decimal places of seconds.
Details
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]{1,3})?Z$ -
target_idstringtgt_then 26 capital letters and digits, without I, L, O or U.Details
^tgt_[0-9A-HJKMNP-TV-Z]{26}$ -
limitintegerAt most this many records (default 100).
minimum 1, maximum 100
-
cursorstringOpaque. Pass the next_cursor of the previous answer, with the same filters.
1 to 400 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{1,400}$
EvidenceExport
no additional properties
-
typestring required"sess.evidence-export" -
versionnumber required1 -
disclosurestring required"This file contains signed decision receipts and, where still kept, the questions people saw and the answers they gave. Anyone you share it with can read all of it. Sess cannot recall a copy once it leaves your account." -
exported_atstring required -
workspace_idstring required -
scopeobject requiredno additional properties
Show propertiesHide properties
-
labelstring required"issued records in this defined scope/range" -
complete_historyboolean requiredfalseAlways false: no anchored high-water/count evidence and reconciliation exist yet, so a list or export is never a complete history.
-
custodystring required"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
filtersobject requiredno additional properties
Show propertiesHide properties
-
target_idstring -
accepted_fromstring -
accepted_tostring -
from_sequenceinteger -
to_sequenceinteger
-
-
-
rangeobject requiredno additional properties
Show propertiesHide properties
-
countinteger requiredminimum 0
-
first_sequenceinteger or null required -
last_sequenceinteger or null required -
truncatedboolean requiredTrue when more records match: continue with next_cursor.
-
next_cursorstring or null required
-
-
recordsarray of object requiredShow propertiesHide properties
no additional properties
-
event_idstring required -
session_idstring required -
custodystring required"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
sequenceinteger or null requiredThe committed workspace custody sequence (archival); null for exception.
-
accepted_atstring requiredThe receipt’s asserted acceptance time.
-
preserved_atstring requiredWhen custody began: at acceptance, by the later backfill, or the exception.
-
originstring or null required"acceptance"or"backfill"or null -
witnessstring required"pending","batched","failed_retryable","indeterminate","witnessed"or"none"The archival record’s witness job state. witnessed: its preservation evidence (an external timestamp and transparency log entry) is attached. Results, receipts and webhooks.
-
target_idstring or null requiredThe target the archival core binds, or null (no target binding).
-
exceptionnull or object requirednull for archival custody. For exception custody: the receipt is kept exactly as issued but is unverified; it is not evidence that the decision happened as stated.
-
receiptstring requiredThe exact original receipt-v1 compact JWS.
-
receipt_digeststring requiredsha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
archivalobject or null requiredThe archival envelope (sess.archival-envelope v1: the exact receipt, its signed archival core and detachable preservation evidence) for the successor verifier; null for exception custody.
-
contentobject requiredIncluded only while retained, and only for the authenticated workspace.
Show propertiesHide properties
-
statusstring required"retained"or"unavailable" -
surface_revisioninteger requiredOnly when
statusis"retained".minimum 1
-
surfaceobject requiredThe exact interaction of that revision (what the receipt hashes).
Only when
statusis"retained". -
inputany requiredThe accepted input (what the receipt hashes).
Only when
statusis"retained". -
reasonstring required"purged"Only when
statusis"unavailable".
-
-
EvidenceRecordStatus
The status of one custody record of the owner workspace, never its content. A deletion does not recall copies already exported or kept by people, and public witness commitments (aggregate batch roots) remain.
no additional properties
-
event_idstring required -
statusstring required"available","restricted"or"deleted"available: listed and exported as usual. restricted: kept and still verifiable for preservation integrity, but excluded from every list, export and receipt-scoped fetch until it is unrestricted. What remains after deletion.
-
custodystring required"archival"or"exception"archival (default): records held with a signed archival core, in workspace sequence. exception: receipts held unverified (exception custody), by acceptance time; they never match a target filter or a sequence range.
-
restrictionnull or object required -
deletionnull or object required
CreateAskRequest
no additional properties
-
interactionobject requiredno additional properties
Show propertiesHide properties
-
modestring required"interactive" -
titlestring requiredThe page's heading: a question or a task, about 40 characters; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 60
Not blank: at least one character that is not white space.
Details
\S -
descriptionstringOptional context under the title: what the person decides and why, in one or two plain sentences; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
max length 200
-
localestringAdvanced. Optional BCP 47 locale for formatting the amounts on this page, one per Surface (default: the page’s language, en). It does not translate the page.
max length 35
A language tag such as en-CA: 2 or 3 letters, then up to four parts of 1 to 8 letters or digits, each after a hyphen.
Details
^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,4}$ -
progressobjectAdvanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Interactive Sessions.
no additional properties
Show propertiesHide properties
-
stepinteger requiredminimum 1, maximum 20
-
totalinteger requiredminimum 1, maximum 20
-
-
sourceobject requiredno additional properties
Show propertiesHide properties
-
kindstring required"sess_surface" -
componentsarray of object requiredThe page's content, in order. How your page looks.
min items 1, max items 100
Show propertiesHide properties
-
typestring requiredmin length 1, max length 64
-
-
-
actionsarray of object requiredmin items 1, max items 5
Show propertiesHide properties
no additional properties
-
idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
labelstring requiredA button: a verb, 1–3 words; at most 16. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
min length 1, max length 16
Not blank: at least one character that is not white space.
Details
\S -
intentstring"submit","continue","approve","reject"or"request_change"
-
-
response_policystring"first"One accepted response per revision (the only P1 policy; the default).
-
-
respondentsobject requiredno additional properties
Show propertiesHide properties
-
maxinteger requiredHow many people may start. At least 2 and at most the plan’s active-Session limit (Free 25, Starter 50, Pro 100); a trial Ask at most 2. Create the Ask.
-
namebooleanAdvanced. Adds one required “Your name” text field, named
name, before the page’s first field. Typed data for your agent to compare; never verified. Create the Ask.
-
-
expires_inintegerAdvanced. The one deadline, in seconds from creation: after it no one new may start, and every respondent’s link has ended. At least 30 and at most the plan’s live-link lifetime. Create the Ask.
-
respondent_expires_inintegerAdvanced. Each respondent’s link life from their Start, in seconds: at least 30, and clamped at Start to the plan’s limit and to what remains of the Ask. Absent: what remains of the Ask.
-
auto_completebooleanAdvanced. True (the default): a respondent’s Session completes when its answer is accepted. False: your agent continues each respondent by PATCH /v1/sessions/{id} and completes it.
CreateAskResponse
no additional properties
-
idstring requiredask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
revisioninteger requiredRound one.
minimum 1
-
human_urlstring requiredThe link to share with everyone who should answer. Each person gets their own page.
-
action_expires_atstring requiredThe Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.
-
maxinteger requiredminimum 1
AskResponse
no additional properties
-
idstring requiredask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
statusstring required"open"or"closed" -
closed_bystring or null required"max"or"owner"or"deadline"or nullWhich closed it:
max(the last place was started),owner(you closed it) ordeadline. Null while open. -
closed_atstring or null required -
maxinteger requiredminimum 1
-
action_expires_atstring requiredThe Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.
-
auto_completeboolean required -
countsobject requiredno additional properties
Show propertiesHide properties
-
startedinteger requiredStarts admitted: each made one respondent Session.
minimum 0
-
answeredinteger requiredRespondents with at least one accepted answer.
minimum 0
-
completedinteger requiredRespondents whose Session is completed.
minimum 0
-
refusedobject requiredno additional properties
Show propertiesHide properties
-
fullinteger requiredStarts refused because every place was taken.
minimum 0
-
closedinteger requiredStarts refused after you closed the Ask.
minimum 0
-
deadlineinteger requiredStarts refused after the deadline.
minimum 0
-
minimum_timeinteger requiredStarts refused because less than a minute was left.
minimum 0
-
burstinteger requiredStarts refused by the per-Ask limit of 30 Starts a minute.
minimum 0
-
pausedinteger requiredStarts refused by your plan (the person saw that it is paused).
minimum 0
-
networkinteger requiredTrial Asks only: Starts refused by the network’s trial allowance.
minimum 0
-
-
-
sessionsarray of object requiredRespondents in Start order, then by id; one page.
Show propertiesHide properties
no additional properties
-
idstring requiredses_then 26 capital letters and digits, without I, L, O or U.Details
^ses_[0-9A-HJKMNP-TV-Z]{26}$ -
statusstring required"active","responded","completed"or"purged"The respondent Session’s status, as GET /v1/sessions/{id} reads it;
purgedonce its content is deleted (a tombstone: times only). -
revisioninteger requiredIts current revision.
minimum 1
-
started_atstring required -
completed_atstring or null required -
responsesarray of object requiredEvery accepted answer, in order (none for a tombstone).
Show propertiesHide properties
no additional properties
-
event_idstring requiredevt_then 26 capital letters and digits, without I, L, O or U.Details
^evt_[0-9A-HJKMNP-TV-Z]{26}$ -
sequenceinteger requiredMonotonic per-Session Event sequence.
minimum 1
-
revisioninteger requiredThe Surface revision it was accepted on.
minimum 1
-
action_idstring requiredA lower-case letter, then up to 31 lower-case letters, digits or underscores.
Details
^[a-z][a-z0-9_]{0,31}$ -
dataobject requiredThe normalized typed result, valid against that revision’s response_schema.
-
actorobject requiredno additional properties
Show propertiesHide properties
-
assurancestring required"link_holder"
-
-
accepted_atstring requiredISO 8601 UTC time of acceptance.
-
receiptstring or null requiredThe signed decision receipt: a compact JWS (EdDSA/Ed25519, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json: typ sess-receipt+jwt (receipt v1) or sess-receipt-2+jwt (receipt v2; verify it with the revision_envelope returned beside it). Issued once in the acceptance transaction and never re-signed. Receipts.
Three parts of letters, digits, hyphens or underscores, joined by dots.
Details
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$ -
revision_envelopeobjectPresent beside a receipt v2: the revision envelope it commits to (verify the receipt with it; a receipt v2 without its envelope is refused with
revision). Absent beside a receipt v1 (issued before receipt v2) and when there is no receipt.no additional properties
Show propertiesHide properties
-
sess_revisionnumber required2The envelope’s own schema version.
-
revisioninteger requiredminimum 1
-
session_idstring requiredmin length 5, max length 200
-
surface_hashstring requiredRFC 8785 SHA-256 of the revision’s normalized Surface (the receipt’s surface.hash): the page, its field schema titles and descriptions included.
sha256:then 64 lower-case hexadecimal digits.Details
^sha256:[0-9a-f]{64}$ -
renderer_versionstring requiredmin length 1, max length 200
-
published_atstring requiredWhen the revision was published: RFC 3339 UTC with exactly three fractional digits (the stored time truncated to milliseconds).
A UTC time with 3 decimal places of seconds, such as 2026-11-09T02:05:00.000Z.
Details
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ -
key_idstring or null requiredThe responsible owner key’s non-secret ID; null for every other publisher (the operator key, a hosted agent host, the hosted demo, an anonymous trial). No key label is carried.
-
grant_idstring or null requiredA Session grant’s ID; null when no grant published the revision.
-
agent_targetobject or null requiredThe registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.
-
ask_idstring or null requiredThe Ask a respondent’s Session belongs to; null otherwise.
-
titlesobject requiredThe owner-chosen titles as at publish, under their nonce. "Asked by" shows the most specific: grant_title, else target_title, else owner_name.
no additional properties
Show propertiesHide properties
-
noncestring required16 random bytes drawn when the revision was published (base64url).
22 letters, digits, hyphens or underscores.
Details
^[A-Za-z0-9_-]{22}$ -
grant_titlestring or null required -
target_titlestring or null required -
owner_namestring or null required
-
-
-
-
-
next_cursorstring or null requiredPass as
cursorto read the next page; null on the last page.
AskCloseResponse
no additional properties
-
idstring requiredask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
statusstring required"open"or"closed" -
closed_bystring or null required"max"or"owner"or"deadline"or nullWhich closed it:
max(the last place was started),owner(you closed it) ordeadline. Null while open. -
closed_atstring or null required -
maxinteger requiredminimum 1
-
action_expires_atstring requiredThe Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.
-
auto_completeboolean required -
countsobject requiredno additional properties
Show propertiesHide properties
-
startedinteger requiredStarts admitted: each made one respondent Session.
minimum 0
-
answeredinteger requiredRespondents with at least one accepted answer.
minimum 0
-
completedinteger requiredRespondents whose Session is completed.
minimum 0
-
refusedobject requiredno additional properties
Show propertiesHide properties
-
fullinteger requiredStarts refused because every place was taken.
minimum 0
-
closedinteger requiredStarts refused after you closed the Ask.
minimum 0
-
deadlineinteger requiredStarts refused after the deadline.
minimum 0
-
minimum_timeinteger requiredStarts refused because less than a minute was left.
minimum 0
-
burstinteger requiredStarts refused by the per-Ask limit of 30 Starts a minute.
minimum 0
-
pausedinteger requiredStarts refused by your plan (the person saw that it is paused).
minimum 0
-
networkinteger requiredTrial Asks only: Starts refused by the network’s trial allowance.
minimum 0
-
-
TrialCreateAskResponse
no additional properties
-
idstring requiredask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
revisioninteger requiredRound one.
minimum 1
-
human_urlstring requiredThe link to share with everyone who should answer. Each person gets their own page.
-
action_expires_atstring requiredThe Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.
-
maxinteger requiredminimum 1
-
workspace_idstring requiredThe trial workspace this Ask belongs to.
-
management_credentialstringReturned once, only when this request created the trial (no Authorization header).
sess_mg_then 43 letters, digits, hyphens or underscores.Details
^sess_mg_[A-Za-z0-9_-]{43}$ -
trial_expires_atstring requiredAfter this instant the trial admits no further respondent or Session.
AskClosedDelivery
no additional properties
-
typestring required"ask.closed" -
event_idstring requiredStable across retries and redeliveries: deduplicate on it.
-
ask_idstring requiredask_then 26 capital letters and digits, without I, L, O or U.Details
^ask_[0-9A-HJKMNP-TV-Z]{26}$ -
closed_bystring required"max"or"owner" -
startedinteger requiredStarts admitted when it closed.
minimum 0
-
closed_atstring required