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, OpenAPI 3.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

Creates a Session and returns the Sess link to send to the person.

Request body (required)

Content type application/json: CreateSessionRequest

no additional properties

  • interaction object required

    • mode string required

      "display" or "interactive"

    • title string required

      The 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

    • description string

      Optional 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 mode is "display"; max length 200 when mode is "interactive"

    • source object required

      Show propertiesHide properties
      • kind string required

        "data" or "sess_surface"

      • data object required

        map 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 kind is "data".

        min properties 1

      • components array of object required

        The page's content, in order. How your page looks.

        Only when kind is "sess_surface".

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • locale string

      Advanced. 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 mode is "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}$

    • progress object

      Advanced. 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 mode is "interactive".

      no additional properties

      Show propertiesHide properties
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • actions array of object required

      Only when mode is "interactive".

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

      Only when mode is "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_SCHEMA or UNKNOWN_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_id has ended or expired, so nothing is created (INVOCATION_TERMINAL).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
422
Your workspace has no run with that invocation_id, so nothing is created (VALIDATION_FAILED, reason unknown_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
500
Something went wrong on our side (INTERNAL).
Body Error

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_in integer

    Advanced. 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_id string

    Advanced. 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_in sets 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_at is the stored deadline, the same value reading the Session returns.
  • invocation_id ties 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-Key header is refused, because the Sess link is stored only as a hash and cannot be sent again.
  • A display Session is mode display with a data source; an interactive Session is mode interactive with a sess_surface source 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 (reason active_sessions).
  • Sessions already admitted keep their answers, completion and result delivery.
  • GET /v1/account/usage has the numbers.
  • With no Authorization header, 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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.

Responses

200
The current revision of the Session.
Body SessionResponse or InteractiveSessionResponse
Headers ETag, Sess-Workspace-Id
400
The request is not valid (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no Session with this ID (SESSION_NOT_FOUND).
Body Error
500
Something went wrong on our side (INTERNAL).
Body Error

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, its response_schema and every accepted response bound to its revision.
  • action_expires_at is the stored deadline.
  • link_state is live, lapsed or expired at the time of the read; action_expires_horizon and extensions_used describe 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.
  • extensions lists every accepted extension in order: the old and new deadline, whether it was lapsed, and when; never an answer value.
  • The ETag is 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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.
If-MatchheaderstringyesThe 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-KeyheaderstringnoMakes 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

  • interaction object required

    no additional properties

    • mode string required

      "interactive"

    • title string required

      The 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

    • description string

      Optional 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

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        The page's content, in order. How your page looks.

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • actions array of object required

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

Responses

200
The Session at its new revision.
Body InteractiveSessionResponse
Headers ETag
400
The body is not valid or uses an unknown component (INVALID_SCHEMA or UNKNOWN_COMPONENT).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
403
This Session belongs to a claimed trial, which is read-only (ACTION_NOT_ALLOWED).
Body Error
404
Your workspace has no Session with this ID (SESSION_NOT_FOUND).
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_ALLOWED or IDEMPOTENCY_CONFLICT). The Session already has 64 accepted rounds, the most one Session can hold (SESSION_ROUND_LIMIT, with limit); start a new Session.
Body Error
412
The Session changed since you read it, so read it again (SESSION_REVISION_CONFLICT).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
428
The request must say which version of the Session it changes (PRECONDITION_REQUIRED).
Body Error
500
Something went wrong on our side (INTERNAL).
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 responded or active, and returns to active.
  • 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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.
If-MatchheaderstringyesThe 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-KeyheaderstringnoMakes 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

200
The completed Session.
Body InteractiveSessionResponse
Headers ETag
400
The request is not valid (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
403
This Session belongs to a claimed trial, which is read-only (ACTION_NOT_ALLOWED).
Body Error
404
Your workspace has no Session with this ID (SESSION_NOT_FOUND).
Body Error
409
The Session is already completed (SESSION_COMPLETED); has already ended (SESSION_ENDED, with its terminal cause in reason: final_expiry when its link expired for good, revoked when 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
412
The Session changed since you read it, so read it again (SESSION_REVISION_CONFLICT).
Body Error
428
The request must say which version of the Session it changes (PRECONDITION_REQUIRED).
Body Error
500
Something went wrong on our side (INTERNAL).
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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.
revisionpathstringyesThe revision number, from 1.

Responses

400
The revision is not a positive whole number (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such Session, or it has no such revision (SESSION_NOT_FOUND or NOT_FOUND).
Body Error
500
Something went wrong on our side (INTERNAL).
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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.

Responses

200
The Event log.
Body SessionEventsResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no Session with this ID (SESSION_NOT_FOUND).
Body Error
500
Something went wrong on our side (INTERNAL).
Body Error

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.accepted by link_holder, with the revision, action_id and the data; revision.published and session.completed are by owner.
  • Event IDs and sequence numbers never change.
  • The list is not paginated: a Session has a few Events per round.
  • link_extensions lists each extension’s old and new deadline, whether it was asked for after the deadline, and when.
  • closing is the closing receipt (typ sess-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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.
event_idpathstringyesThe ID of the answer’s Event.

Responses

200
The bundle.
Body DecisionBundle
400
That is not an event ID (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such Session, or it has no such accepted answer with a receipt, or its content was deleted (SESSION_NOT_FOUND or NOT_FOUND).
Body Error
409
The receipt is restricted, so nothing is disclosed until it is unrestricted (EVIDENCE_RESTRICTED).
Body Error
410
The receipt was deleted, and only its tombstone remains (EVIDENCE_DELETED).
Body Error
500
Something went wrong on our side (INTERNAL).
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-transform and Referrer-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

  • type string required

    "sess.decision-bundle"

  • version number required

    1 or 2

    2 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).

  • receipt string required

    The 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_envelope object

    bundle-v2 only: the revision envelope the receipt v2 commits to (missing or other: revision).

    no additional properties

    Show propertiesHide properties
    • sess_revision number required

      2

      The envelope’s own schema version.

    • revision integer required

      minimum 1

    • session_id string required

      min length 5, max length 200

    • surface_hash string required

      RFC 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_version string required

      min length 1, max length 200

    • published_at string required

      When 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_id string or null required

      The 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_id string or null required

      A Session grant’s ID; null when no grant published the revision.

    • agent_target object or null required

      The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

    • ask_id string or null required

      The Ask a respondent’s Session belongs to; null otherwise.

    • titles object required

      The 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
      • nonce string required

        16 random bytes drawn when the revision was published (base64url).

        22 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{22}$

      • grant_title string or null required

      • target_title string or null required

      • owner_name string or null required

  • content object required

    no additional properties

    Show propertiesHide properties
    • surface object required

      The complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).

    • input object required

      The complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).

  • keys object required

    no additional properties

    Show propertiesHide properties
    • keys array of object required

      The 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

      • kty string required

        "OKP"

      • crv string required

        "Ed25519"

      • x string required

        43 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{43}$

      • kid string required

        1 to 64 letters, digits, dots, hyphens or underscores.

        Details

        ^[A-Za-z0-9._-]{1,64}$

      • alg string

        "EdDSA"

      • use string

        "sig"

Responses

200
The verification result, valid or invalid.
Body DecisionBundleVerification
400
The body is not JSON (INVALID_SCHEMA).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
429
Too many checks; try again after Retry-After (RATE_LIMITED).
Body Error
503
The checker is unavailable, or the 2-second deadline passed (SERVICE_UNAVAILABLE).
Body Error

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; context and application_purpose are therefore unchecked, and an invalid bundle has valid: 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-transform and Referrer-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

  • type string required

    "sess.decision-bundle"

  • version number required

    1 or 2

    2 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).

  • receipt string required

    The 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_envelope object

    bundle-v2 only: the revision envelope the receipt v2 commits to (missing or other: revision).

    no additional properties

    Show propertiesHide properties
    • sess_revision number required

      2

      The envelope’s own schema version.

    • revision integer required

      minimum 1

    • session_id string required

      min length 5, max length 200

    • surface_hash string required

      RFC 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_version string required

      min length 1, max length 200

    • published_at string required

      When 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_id string or null required

      The 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_id string or null required

      A Session grant’s ID; null when no grant published the revision.

    • agent_target object or null required

      The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

    • ask_id string or null required

      The Ask a respondent’s Session belongs to; null otherwise.

    • titles object required

      The 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
      • nonce string required

        16 random bytes drawn when the revision was published (base64url).

        22 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{22}$

      • grant_title string or null required

      • target_title string or null required

      • owner_name string or null required

  • content object required

    no additional properties

    Show propertiesHide properties
    • surface object required

      The complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).

    • input object required

      The complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).

  • keys object required

    no additional properties

    Show propertiesHide properties
    • keys array of object required

      The 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

      • kty string required

        "OKP"

      • crv string required

        "Ed25519"

      • x string required

        43 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{43}$

      • kid string required

        1 to 64 letters, digits, dots, hyphens or underscores.

        Details

        ^[A-Za-z0-9._-]{1,64}$

      • alg string

        "EdDSA"

      • use string

        "sig"

Responses

200
The result of the check, valid or invalid.
Body ReceiptAuthenticityCheck
400
The body is not JSON (INVALID_SCHEMA).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
429
Too many checks; try again after Retry-After (RATE_LIMITED).
Body Error
503
The checker is unavailable, or the 2-second deadline passed (SERVICE_UNAVAILABLE).
Body Error

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 signed iat), live_eligibility (its exp, and whether that has passed) and signing_time (answered_at, with public_timestamp_verified always false); the last two are null unless the result is valid.
  • checked_at is when the check ran.
  • The reason is never expired.
  • A receipt whose iat is more than 60 seconds after the check is refused as not_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-transform and Referrer-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

Responses

200
The result of the archival check and how to present it.
Body ArchivalVerifyResponse
400
The body is not JSON (INVALID_SCHEMA).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
429
Too many checks; try again after Retry-After (RATE_LIMITED).
Body Error
503
The checker is unavailable, or the 2-second deadline passed (SERVICE_UNAVAILABLE).
Body Error

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 type says, with reasons projection_signature and projection_receipt_mismatch, and the dimensions are signature, contents, context, witness, key_trust and live_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.
  • contents is content_unavailable, and context is 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-transform and Referrer-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_receipt string required

    The 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_-]+$

  • rounds array of object required

    The file’s round receipts, in the order the file carries them.

    min items 1, max items 64

    Show propertiesHide properties

    no additional properties

    • receipt string required

      min 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_envelope object or null

      A receipt v2’s revision envelope, as the file carries it.

Responses

200
The result of the closing check and how to present it.
Body ClosingVerifyResponse
400
The body is not a closing check (INVALID_SCHEMA).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
429
Too many checks; try again after Retry-After (RATE_LIMITED).
Body Error
503
The checker is unavailable, or the 2-second deadline passed (SERVICE_UNAVAILABLE).
Body Error

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-transform and Referrer-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

NameInTypeRequiredDescription
custodyquerystringnoarchival (default) or exception.
target_idquerystringnoA target ID (tgt_…).
accepted_fromquerystringnoUTC instant (YYYY-MM-DDTHH:MM:SS[.fff]Z, at most millisecond precision; finer is refused), inclusive.
accepted_toquerystringnoUTC instant (at most millisecond precision), exclusive.
limitquerystringno1–100, default 25.
cursorquerystringnoThe previous answer’s next_cursor, with the same filters.

Responses

200
One page.
Body EvidenceListResponse
400
A filter, the limit or the cursor could not be read (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
503
The receipts view is not set up here (SERVICE_UNAVAILABLE).
Body Error

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=exception lists the receipts held unverified.
  • target_id matches records whose archival core names that agent; records with no agent never match.
  • accepted_from and accepted_to bound the acceptance time.
  • Every answer is labelled "issued records in this defined scope/range" with complete_history false.
  • 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

  • custody string

    "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_sequence integer

    minimum 1, maximum 9007199254740991

  • to_sequence integer

    minimum 1, maximum 9007199254740991

  • accepted_from string

    Accepted 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_to string

    Accepted 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_id string

    tgt_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

  • limit integer

    At most this many records (default 100).

    minimum 1, maximum 100

  • cursor string

    Opaque. 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

200
The export file, as a download.
Body EvidenceExport
Headers Content-Disposition
400
There is no explicit range, or the range could not be read (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
429
Too many exports; try again after Retry-After (RATE_LIMITED).
Body Error
503
The receipts view is not set up here (SERVICE_UNAVAILABLE).
Body Error

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_sequence and to_sequence (archival), or both accepted_from and accepted_to.
  • An export holds at most limit records (at most 100) and 8 MiB; a range beyond either is cut short, and range.next_cursor continues 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

NameInTypeRequiredDescription
event_idpathstringyesThe ID of the answer’s Event.

Responses

200
The status.
Body EvidenceRecordStatus
400
That is not an event ID (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such record (NOT_FOUND).
Body Error
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

NameInTypeRequiredDescription
event_idpathstringyesThe 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
400
That is not an event ID (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such record (NOT_FOUND).
Body Error
409
The receipt is restricted (EVIDENCE_RESTRICTED).
Body Error
410
The receipt was deleted (EVIDENCE_DELETED).
Body Error
429
Too many downloads; try again after Retry-After (RATE_LIMITED).
Body Error
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

200
The key set.
Body ReceiptKeysResponse
503
The receipt keys are not set up on this deployment (SERVICE_UNAVAILABLE).
Body Error

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, alg EdDSA).
  • A receipt is a compact JWS (typ sess-receipt+jwt); its protected header’s kid names 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-Id header 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
503
The receipt keys are not set up on this deployment (SERVICE_UNAVAILABLE).
Body Error

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) and identities, each a renderer_version with since, the UTC date it was added.
  • The signature covers seq and iat.
  • 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 kid names) and the expected issuer.
  • sess-html-form-1 is 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

200
The witness key set.
Body WitnessKeysResponse
503
The witness keys set up on this deployment are unusable (SERVICE_UNAVAILABLE).
Body Error

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_to null.
  • Read the set with parseWitnessKeySet and pass it as the witnessKeys anchor of verifyWitnessEvidence, 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

200
The webhook.
Body WebhookResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error

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

  • url string required

    Absolute 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

201
Registered, waiting for verification.
Body WebhookRegisterResponse
400
The address is not an https address Sess can use, or the body is not valid (WEBHOOK_INVALID_URL, reason not_https, port, credentials, fragment, non_public_address, malformed or too_long; or INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
503
Webhooks are not set up on this deployment (SERVICE_UNAVAILABLE).
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

200
Verified; the address and when its verification expires.
Body WebhookVerifyResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
409
There is no webhook address to verify (WEBHOOK_NOT_CONFIGURED).
Body Error
422
The address did not answer the challenge correctly (WEBHOOK_VERIFICATION_FAILED, reason egress_refused, redirect, rejected, bad_answer, timeout, connection or dns).
Body Error
503
Webhooks are not set up on this deployment (SERVICE_UNAVAILABLE).
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

201
Rotated.
Body WebhookRotateResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
409
There is no webhook address yet (WEBHOOK_NOT_CONFIGURED).
Body Error
503
Webhooks are not set up on this deployment (SERVICE_UNAVAILABLE).
Body Error

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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.

Responses

200
The delivery log.
Body DeliveriesResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no Session with this ID (SESSION_NOT_FOUND).
Body Error

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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.
event_idpathstringyesThe Event’s ID.

Responses

202
Queued, or the delivery already waiting for this answer and address.
Body RedeliverResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
403
This Session belongs to a claimed trial, which is read-only (ACTION_NOT_ALLOWED).
Body Error
404
This Session has no such accepted answer (NOT_FOUND).
Body Error
409
There is no verified webhook address (WEBHOOK_NOT_CONFIGURED).
Body Error

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

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      The 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

    • description string

      Optional 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

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        The page's content, in order. How your page looks.

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • actions array of object required

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

  • respondents object required

    no additional properties

    Show propertiesHide properties
    • max integer required

      How 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.

    • name boolean

      Advanced. 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

201
Ask created and open.
Body TrialCreateAskResponse
400
The body is not valid, respondents.max is above 2, or an idempotency key was sent (INVALID_SCHEMA or UNKNOWN_COMPONENT).
Body Error
404
The key does not open a trial (NOT_FOUND).
Body Error
429
A trial limit is reached (RATE_LIMITED).
Body Error
500
Something went wrong on our side (INTERNAL).
Body Error
503
The trial is not set up on this deployment (TRIAL_UNAVAILABLE).
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_in integer

    Advanced. 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_in integer

    Advanced. 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_complete boolean

    Advanced. 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-Key header 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

NameInTypeRequiredDescription
idpathstringyesThe Ask’s ID.

Responses

200
The Ask.
Body AskResponse
404
The key does not open this Ask (NOT_FOUND).
Body Error
500
Something went wrong on our side (INTERNAL).
Body Error

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

  • interaction object required

    no additional properties

    • mode string required

      "interactive"

    • title string required

      The 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

    • description string

      Optional 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

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        The page's content, in order. How your page looks.

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • actions array of object required

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

Responses

201
Session created at revision 1.
Body TrialCreateSessionResponse
Headers ETag, Location
400
The body is not valid, uses an unknown component, or sends an idempotency key (INVALID_SCHEMA or UNKNOWN_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
413
The body is too large (PAYLOAD_TOO_LARGE).
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
500
Something went wrong on our side (INTERNAL).
Body Error
503
The trial is not set up on this deployment (TRIAL_UNAVAILABLE).
Body Error

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: mode is interactive.
  • 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-Key header 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

NameInTypeRequiredDescription
idpathstringyesThe Session’s ID.

Responses

200
The Session with its trial timing.
Body TrialSessionResponse
Headers ETag
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
500
Something went wrong on our side (INTERNAL).
Body Error
503
The trial is not set up on this deployment (TRIAL_UNAVAILABLE).
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

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      The 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

    • description string

      Optional 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

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        The page's content, in order. How your page looks.

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • actions array of object required

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

  • respondents object required

    no additional properties

    Show propertiesHide properties
    • max integer required

      How 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.

    • name boolean

      Advanced. 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

201
Ask created and open.
Body CreateAskResponse
Headers Location
400
The body is not valid, respondents.max or a lifetime is out of range, or an idempotency key was sent (INVALID_SCHEMA or UNKNOWN_COMPONENT).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
500
Something went wrong on our side (INTERNAL).
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.max is 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_in integer

    Advanced. 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_in integer

    Advanced. 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_complete boolean

    Advanced. 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 interaction as POST /v1/sessions.
  • expires_in is 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-Key header 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

NameInTypeRequiredDescription
idpathstringyesThe Ask’s ID.
cursorquerystringnoThe next_cursor of the page before, for the next page.
limitqueryintegernoHow many respondents a page: at most 100.

Responses

200
The Ask.
Body AskResponse
400
The cursor or limit is not valid (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no Ask with this ID (NOT_FOUND).
Body Error
500
Something went wrong on our side (INTERNAL).
Body Error

What it does

  • Respondents are in the order they started.
  • Counts include Starts refused, by reason.
  • An Ask is closed once its last place was started, you closed it, or its deadline passed; closed_by says 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_cursor as cursor for the next.
  • Operation ID getAsk

PATCH /v1/asks/{id}

Always refused: an Ask is immutable.

Parameters

NameInTypeRequiredDescription
idpathstringyesThe Ask’s ID.

Responses

401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
409
An Ask cannot be changed (ACTION_NOT_ALLOWED).
Body Error

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

NameInTypeRequiredDescription
idpathstringyesThe Ask’s ID.

Responses

200
The closed Ask.
Body AskCloseResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no Ask with this ID (NOT_FOUND).
Body Error
500
Something went wrong on our side (INTERNAL).
Body Error

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.closed webhook 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

NameInTypeRequiredDescription
idpathstringyesThe Ask’s ID.

Responses

200
The delivery log.
Body DeliveriesResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no Ask with this ID (NOT_FOUND).
Body Error

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

NameInTypeRequiredDescription
idpathstringyesThe Ask’s ID.
event_idpathstringyesThe Event’s ID.

Responses

202
Queued, or the delivery already waiting for this event and address.
Body RedeliverResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
This Ask has no such event (NOT_FOUND).
Body Error
409
There is no verified webhook address (WEBHOOK_NOT_CONFIGURED).
Body Error

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

NameInTypeRequiredDescription
tokenpathstringyesThe 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_id string required

    16 to 64 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{16,64}$

  • surface_revision string required

    A whole number from 1 to 999999999, without leading zeros.

    Details

    ^[1-9][0-9]{0,8}$

  • action_id string required

    A 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_SCHEMA or ACTION_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_CONFLICT or LINK_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-origin or an Origin equal to the public origin; with only Origin: null or Sec-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-site Sec-Fetch-Site, or neither header is always refused.
  • The server resolves action_id from the stored revision and checks the data against its response_schema.
  • The receipt is stored with its Event and returned by reading the Session and its Event log.
  • Sending the same client_event_id with 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-code attribute.
  • 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}/keep/challenge

Starts “Keep your receipt” on the Sess link page, the first of two steps.

Parameters

NameInTypeRequiredDescription
tokenpathstringyesThe Sess link’s token: the part after /s/.

Request body (required)

Content type application/json: KeepChallengeRequest

no additional properties

  • grants array of string required

    The 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

200
The snapshot and the challenge.
Body KeepChallengeResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
403
The request was not sent from the page itself (ACTION_NOT_ALLOWED).
Body Error
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, reason no_authorized_rounds, as JSON).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
429
Too many requests for this link; try again after Retry-After (RATE_LIMITED).
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-origin or an Origin equal to the page’s; with only Origin: null or Sec-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

NameInTypeRequiredDescription
tokenpathstringyesThe Sess link’s token: the part after /s/.

Request body (required)

Content type application/json: KeepRequest

no additional properties

  • grants array of string required

    The 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

  • format string

    "json" or "pdf"

    S-04: pdf answers 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.

  • enrollment object

    no additional properties

    Show propertiesHide properties
    • challenge_id string required

      kch_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^kch_[0-9A-HJKMNP-TV-Z]{26}$

    • items array of object required

      Exactly 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_id string required

        evt_ then 26 capital letters and digits, without I, L, O or U.

        Details

        ^evt_[0-9A-HJKMNP-TV-Z]{26}$

      • holder_key object required

        A fresh public P-256 key (never a private one).

        no additional properties

        Show propertiesHide properties
        • crv string required

          "P-256"

        • kty string required

          "EC"

        • x string required

          43 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{43}$

        • y string required

          43 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{43}$

      • proof string required

        base64url 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

200
The kept conversation as a JSON attachment, or its receipt PDF.
Body KeptConversation
400
The body is not valid (INVALID_SCHEMA).
Body Error
403
The request was not sent from the page itself (ACTION_NOT_ALLOWED).
Body Error
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, reason no_authorized_rounds, as JSON).
Body Error
409
This challenge was already used by a different request (IDEMPOTENCY_CONFLICT).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
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, reason challenge_unknown, challenge_expired, batch_mismatch, not_authorized, proof_invalid, key_reused or already_enrolled).
Body Error
429
Too many requests for this link; try again after Retry-After (RATE_LIMITED).
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 ASCII filename and the exact filename* in Content-Disposition and the header Sess-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

NameInTypeRequiredDescription
tokenpathstringyesThe Sess link’s token: the part after /s/.

Request body (required)

Content type application/json: SaveClaimRequest

no additional properties

  • grants array of string required

    The 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

  • source string required

    base64url 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}$

  • destination string

    The 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

201
The claim’s transfer secret and expiry.
Body SaveClaimResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
403
The request was not sent from the page itself (ACTION_NOT_ALLOWED).
Body Error
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, reason no_authorized_rounds, as JSON).
Body Error
409
This Save sheet already has a claim (IDEMPOTENCY_CONFLICT, reason destination_used).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
429
Too many requests for this link; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

NameInTypeRequiredDescription
tokenpathstringyesThe 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-After gives (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

200 response example: waiting
{
  "state": "waiting",
  "revision": 2
}
Advanced
  • Every /s/ response is sent with Cache-Control: no-store, Referrer-Policy: no-referrer and X-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

200
The plan and usage.
Body AccountUsageResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
This key’s workspace has no plan (NOT_FOUND).
Body Error
503
Billing is not set up on this deployment (SERVICE_UNAVAILABLE).
Body Error

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

  • plan string required

    "starter" or "pro"

    The paid plan to upgrade to.

Responses

200
The payment page and when it expires.
Body BillingCheckoutResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
This key’s workspace has no plan (NOT_FOUND).
Body Error
409
The workspace already pays, or its payment went through, so there is no new payment page (SUBSCRIPTION_EXISTS, reason subscribed or checkout_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, reason not_configured, checkout_in_progress, checkout_processing, provider_unavailable or provider_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

Request example: upgrade
{
  "plan": "starter"
}
200 response example: checkout
{
  "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

200
Received: handled, a repeat, or ignored.
Body BillingEventAck
400
The signed body is not a provider event (INVALID_SCHEMA).
Body Error
401
The signature is missing, malformed, too old or does not match (UNAUTHORIZED).
Body Error
404
No billing provider is set up here (NOT_FOUND).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
503
The event was not handled; send it again (SERVICE_UNAVAILABLE, reason provider_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

200
The agents.
Body TargetListResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error

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

NameInTypeRequiredDescription
Idempotency-KeyheaderstringnoOptional. 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

  • type string required

    "http"

    The only supported target protocol type.

  • endpoint string required

    Absolute 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

  • capability object required

    no additional properties

    Show propertiesHide properties
    • name string required

      A lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.

      Details

      ^[a-z][a-z0-9_.-]{0,63}$

    • version string required

      A 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_schema object required

      JSON 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.

  • grant object required

    no additional properties

    Show propertiesHide properties
    • audiences array of string required

      The 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_seconds integer required

      How long an issued grant lives.

      minimum 60, maximum 86400

  • budget object required

    no additional properties

    Show propertiesHide properties
    • max_concurrent integer required

      minimum 1, maximum 100

    • max_starts_per_day integer required

      minimum 1, maximum 100000

  • enabled boolean

    Default true.

Responses

201
Registered, waiting for verification.
Body TargetResponse
400
The endpoint, the capability or the body is not valid (TARGET_INVALID_URL, TARGET_INVALID_CAPABILITY or INVALID_SCHEMA; the reason says which part).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
409
The idempotency key was used for a different request (IDEMPOTENCY_CONFLICT).
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_in integer

    Advanced. 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 type http explicitly; 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; enabled is optional.
  • The workspace comes from the credential only.
  • The key is the Idempotency-Key header.
  • An endpoint is refused with reason not_https, port, credentials, fragment, non_public_address, malformed or too_long; a capability with not_object, unsupported_keyword, too_deep, too_large, does_not_compile or not_a_schema; and a body with an unsupported type, an unknown field or a malformed Idempotency-Key.
  • Operation ID registerTarget

GET /v1/targets/{id}

Reads one of your agents, with its versions, its verification and its counts.

Parameters

NameInTypeRequiredDescription
idpathstringyesThe agent’s ID.

Responses

200
The agent.
Body TargetResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
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

NameInTypeRequiredDescription
idpathstringyesThe agent’s ID.

Request body (required)

Content type application/json: TargetUpdateRequest

min properties 1, no additional properties

  • enabled boolean

  • capability object

    no additional properties

    Show propertiesHide properties
    • name string required

      A lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.

      Details

      ^[a-z][a-z0-9_.-]{0,63}$

    • version string required

      A 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_schema object required

      JSON 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.

  • grant object

    no additional properties

    Show propertiesHide properties
    • audiences array of string required

      The 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_seconds integer required

      How long an issued grant lives.

      minimum 60, maximum 86400

  • budget object

    no additional properties

    Show propertiesHide properties
    • max_concurrent integer required

      minimum 1, maximum 100

    • max_starts_per_day integer required

      minimum 1, maximum 100000

  • default_expires_in integer or null

Responses

200
The updated agent.
Body TargetResponse
400
The capability or the body is not valid (TARGET_INVALID_CAPABILITY or INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such agent (NOT_FOUND).
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 as stale_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

NameInTypeRequiredDescription
idpathstringyesThe agent’s ID.

Request body (required)

Content type application/json: TargetSharingRequest

min properties 1, no additional properties

  • name string or null

    Lower-case letters and digits, starting with a letter, with single hyphens between words.

    Details

    ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

  • shared boolean

    Turning sharing on needs a name and a title, in this request or already set. Any change while shared needs the title too.

  • title string or null

  • description string or null

  • attribution string or null

  • ask_again boolean

Responses

200
The updated agent.
Body TargetResponse
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, reason name_invalid, name_reserved, title_invalid, title_required, description_invalid or attribution_invalid; the title’s two carry field /title; or INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
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, or ACTION_NOT_ALLOWED, reason name_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

NameInTypeRequiredDescription
idpathstringyesThe agent’s ID.

Responses

200
Verified.
Body TargetResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such agent (NOT_FOUND).
Body Error
422
The verification document could not be fetched or is not right (TARGET_VERIFICATION_FAILED, reason egress_refused, redirect, rejected, bad_answer, timeout, connection or dns).
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 TargetVerificationDocument naming this target_id and 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

NameInTypeRequiredDescription
idpathstringyesThe agent’s ID.

Request body (required)

Content type application/json: GrantIssueRequest

no additional properties

  • audience string required

    max 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

201
Issued.
Body GrantIssueResponse
400
That site is not allowed by the grant policy, or the body is not valid (VALIDATION_FAILED, reason audience; or INVALID_SCHEMA).
Body Error
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such agent (NOT_FOUND).
Body Error
409
The agent is turned off or not verified (ACTION_NOT_ALLOWED, reason disabled or unverified).
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

NameInTypeRequiredDescription
idpathstringyesThe agent’s ID.
grant_idpathstringyesThe grant’s ID.

Responses

200
Revoked.
Body GrantRevokeResponse
401
The API key is missing, wrong, revoked or expired (UNAUTHORIZED).
Body Error
404
Your workspace has no such agent or grant (NOT_FOUND).
Body Error

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_id string required

    One 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}$

  • input object required

Responses

200
The same run, started by the same request before.
Body InvocationStartResponse
201
Started.
Body InvocationStartResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
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_CONFLICT or TARGET_VERSION_CONFLICT).
Body Error
413
The input is too large (PAYLOAD_TOO_LARGE).
Body Error
422
The input does not match the agent’s capability (VALIDATION_FAILED).
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, reason grant_active, client_daily, target_daily, target_concurrency, workspace_concurrency, global_concurrency or workspace_paused).
Body Error
503
Starts are switched off or not set up here (SERVICE_UNAVAILABLE, reason admission_disabled or not_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_id and body returns the same run (200); a different body with the same request_id is 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

NameInTypeRequiredDescription
idpathstringyesThe run’s ID.

Responses

200
The run.
Body InvocationResponse
404
This credential has no such run (NOT_FOUND).
Body Error

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

NameInTypeRequiredDescription
idpathstringyesThe run’s ID.

Responses

200
Cancelled.
Body InvocationResponse
404
This credential has no such run (NOT_FOUND).
Body Error
409
The run already completed, failed or expired (INVOCATION_TERMINAL).
Body Error

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

NameInTypeRequiredDescription
idpathstringyesThe run’s ID.

Request body (required)

Content type application/json: InvocationResultRequest

no additional properties

  • invocation_id string required

    inv_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^inv_[0-9A-HJKMNP-TV-Z]{26}$

  • target_version integer required

    minimum 1

  • status string required

    "completed" or "failed"

  • result object

Responses

200
Recorded.
Body InvocationResponse
404
This credential has no such run (NOT_FOUND).
Body Error
409
The run has already finished (INVOCATION_TERMINAL).
Body Error
413
The result is larger than 16 KiB (PAYLOAD_TOO_LARGE).
Body Error
422
The result does not belong to this run (VALIDATION_FAILED, reason unbound_result).
Body Error

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_id and target_version.
  • Operation ID reportInvocationResult

GET /

Tells an agent where to start on the API host. No credential needed.

Responses

200
Where to start.
Body ApiRootResponse

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

200 response example: root
{
  "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 Authorization header.
  • 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

200
The process is running.
Body HealthOk

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

200
Ready to serve.
Body HealthOk
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_id and build_time are 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

200
The build identity of the running artifact.
Body VersionResponse

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

200 response example: configured
{
  "git_sha": "0123456789abcdef0123456789abcdef01234567",
  "build_id": "synthetic-build-1",
  "build_time": "2026-01-01T00:00:00Z",
  "node_version": "v24.21.0"
}
200 response example: withoutGitSha
{
  "git_sha": null,
  "build_id": "synthetic-build-1",
  "build_time": "2026-01-01T00:00:00Z",
  "node_version": "v24.21.0"
}
Advanced
  • git_sha, build_id and build_time are each null when missing or invalid; git_sha when the deployment’s git SHA is missing, empty or malformed, and build_time also 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

200
The metadata.
Body ProtectedResourceMetadata
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

429 response example: temporarily_unavailable
{
  "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

200
The metadata.
Body ProtectedResourceMetadata
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

429 response example: temporarily_unavailable
{
  "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

200
The metadata.
Body AuthorizationServerMetadata
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

429 response example: temporarily_unavailable
{
  "error": "temporarily_unavailable",
  "error_description": "Too many requests. Try again in a moment."
}
Advanced
  • The metadata sets token_endpoint_auth_method to none and client_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_CLIENT or INVALID_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_challenge and code_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 as invalid_scope); and resource, 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_denied when 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) and decision (allow or deny).
  • 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

200
The new tokens.
Body OAuthTokenResponse
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_target or unsupported_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

429 response example: temporarily_unavailable
{
  "error": "temporarily_unavailable",
  "error_description": "Too many requests. Try again in a moment."
}
Advanced
  • With grant_type=authorization_code, send code, redirect_uri (as authorized), client_id, code_verifier (S256) and, optionally, resource.
  • With grant_type=refresh_token, send refresh_token, client_id and, optionally, scope and resource; 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_uris array of string required

    min items 1, max items 10

  • client_name string

    max length 100

  • token_endpoint_auth_method string

    "none"

  • grant_types array

    array of "authorization_code" or "refresh_token"

  • response_types array of "code"

Responses

201
Registered.
Body ClientRegistrationResponse
400
A redirect address or the client’s details are not valid (invalid_redirect_uri or invalid_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

429 response example: temporarily_unavailable
{
  "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_request or 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

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

429 response example: temporarily_unavailable
{
  "error": "temporarily_unavailable",
  "error_description": "Too many requests. Try again in a moment."
}
Advanced
  • The form fields are token and client_id; token_type_hint is 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

  • email string required

    The 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
400
That is not a valid email address (INVALID_SCHEMA).
Body Error
403
The request came from another site, or a signed-in request had no form token (ACTION_NOT_ALLOWED).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
A sending limit is reached (RATE_LIMITED).
Body Error
Headers Retry-After
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_UNAVAILABLE or SERVICE_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

Request example: request
{
  "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
400
The body is not valid (INVALID_SCHEMA).
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 browser has no sign-in in progress, so ask for the address again (NOT_FOUND, reason no_challenge).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
A sending limit is reached (RATE_LIMITED).
Body Error
Headers Retry-After
503
Sign-in is not set up here, or the email provider did not confirm the send (SIGN_IN_UNAVAILABLE or SERVICE_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

  • code string required

    The six-digit code from the email (spaces and hyphens are ignored).

    min length 1, max length 32

Responses

200
Signed in.
Body PersonalSignedInResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
401
The code or link was not accepted, whatever the reason (UNAUTHORIZED).
Body Error
403
The request came from another site, or a signed-in request had no form token (ACTION_NOT_ALLOWED).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
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

GET /personal/session

Returns the signed-in person’s own account and the copy they saved most recently.

Responses

200
Signed in.
Body PersonalSessionResponse
401
No one is signed in to a personal account (UNAUTHORIZED).
Body Error

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, and last_saved_just_now says whether it was saved within the last ten minutes.
  • Operation ID getPersonalSession

POST /personal/sign-out

Signs the person out in this browser.

Parameters

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalEmptyRequest

no additional properties

Type: object

Responses

200
Signed out.
Body PersonalDone
400
The body is not valid (INVALID_SCHEMA).
Body Error
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
415
The body is not JSON (INVALID_SCHEMA).
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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalEmptyRequest

no additional properties

Type: object

Responses

200
Signed out on every device.
Body PersonalDone
400
The body is not valid (INVALID_SCHEMA).
Body Error
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
415
The body is not JSON (INVALID_SCHEMA).
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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalEmptyRequest

no additional properties

Type: object

Responses

200
Closed.
Body PersonalDone
400
The body is not valid (INVALID_SCHEMA).
Body Error
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, reason recent_sign_in_required for the last).
Body Error
409
A legal hold covers one of the saved copies, so nothing changed (ACTION_NOT_ALLOWED, reason removal_delayed).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: SaveDestinationRequest

no additional properties

  • nonce string required

    A 32-byte random nonce this destination page keeps until it redeems.

    43 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{43}$

  • secret string

    The 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}$

  • verifier string

    The 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

200
The binding.
Body SaveDestinationResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
401
No one is signed in to a personal account (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
No claim matches, or it is bound elsewhere, with one answer for both; or the matching claim has expired or was abandoned (NOT_FOUND, reason claim_expired or claim_aborted for the last two).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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 secret and verifier (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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: SaveRedeemRequest

no additional properties

  • secret string required

    The claim’s transfer secret.

    43 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{43}$

  • verifier string required

    The source verifier whose hash the claim was created with.

    43 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{43}$

  • nonce string required

    This 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

200
Saved.
Body SavedResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
401
No one is signed in to a personal account (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
No claim matches, with one answer whatever did not match; or the matching claim has expired or was abandoned (NOT_FOUND, reason claim_expired or claim_aborted for the last two).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: SaveDirectRequest

no additional properties

  • link string required

    The 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})$

  • grants array of string required

    The 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

200
Saved.
Body SavedResponse
400
The body is not valid (INVALID_SCHEMA).
Body Error
401
No one is signed in to a personal account (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 is not the personal site, the link is no longer live, or nothing presented covers a round (NOT_FOUND, reason no_authorized_rounds for the last).
Body Error
413
The body is too large (PAYLOAD_TOO_LARGE).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

200
The saved copies.
Body PersonalCopiesResponse
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
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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_unavailable or unavailable.
  • 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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalCopiesQuery

no additional properties

  • q string

    Search: 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

  • status string

    "available", "partly_unavailable" or "unavailable"

    partly_unavailable or unavailable when 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.

  • sort string

    "saved", "title" or "agent"

    The order: by the date the row shows (the default; answered_at, else saved_at), the shown title or the agent name (copies with none last).

  • order string

    "asc" or "desc"

    Ascending or descending (the default: desc by date, asc by title or agent).

  • offset integer

    How 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

  • cursor string

    A 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

200
One page of saved copies.
Body PersonalCopiesPage
400
The body is not valid (INVALID_SCHEMA).
Body Error
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
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalCopyRequest

no additional properties

  • item string required

    A 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

200
The copy as it is served now.
Body PersonalCopyView
400
The body is not valid (INVALID_SCHEMA).
Body Error
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
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalCopyLabelRequest

no additional properties

  • item string required

    psn_ then 32 lower-case hexadecimal digits.

    Details

    ^psn_[0-9a-f]{32}$

  • label string or null required

    null 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

200
Saved or cleared.
Body PersonalCopyLabelled
400
The body is not valid (INVALID_SCHEMA).
Body Error
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
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalCopiesRequest

no additional properties

  • items array of string required

    Saved 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
400
The body is not valid (INVALID_SCHEMA).
Body Error
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, reason copy_unavailable).
Body Error
413
The selection is larger than one archive holds, so select fewer; nothing is trimmed (PAYLOAD_TOO_LARGE, reason export_too_large).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
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, reason export_busy for 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, reason export_timeout for 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-Out header counts the copies left out and X-Sess-Left-Out-Items names 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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalCopiesRequest

no additional properties

  • items array of string required

    Saved copies of this account, as the table lists them (at most a page).

    min items 1, max items 25

Responses

200
The outcome for each copy.
Body PersonalCopiesRemoved
400
The body is not valid (INVALID_SCHEMA).
Body Error
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, reason recent_sign_in_required for the last).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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_attempted and unknown; 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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalCopyDownloadRequest

no additional properties

  • item string required

    A 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}$

  • format string

    "json" or "pdf"

    pdf answers the copy as served now as a receipt PDF (application/pdf; the same exporter as Keep with format: 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.
400
The body is not valid (INVALID_SCHEMA).
Body Error
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, reason copy_unavailable).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_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 ASCII filename and the exact filename* in Content-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

NameInTypeRequired
x-sess-csrfheaderstringyes

Request body (required)

Content type application/json: PersonalCopyRequest

no additional properties

  • item string required

    A 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

200
Removed.
Body PersonalCopyRemoved
400
The body is not valid (INVALID_SCHEMA).
Body Error
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, reason removal_delayed).
Body Error
415
The body is not JSON (INVALID_SCHEMA).
Body Error
429
Too many requests from this session; try again after Retry-After (RATE_LIMITED).
Body Error
503
The service has just started and is not ready yet (SERVICE_UNAVAILABLE).
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

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

NameInTypeRequiredDescription
tokenpathstringyesThe 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

NameInTypeRequiredDescription
tokenpathstringyesThe 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) and code (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

NameInTypeRequiredDescription
idpathstringyesThe 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

  • return string

    "/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 fixed redirect_uri of /app/sign-in/github/callback on the account origin, scope=user:email (the only scope), state, code_challenge and code_challenge_method=S256.
  • The optional field return takes /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

NameInTypeRequiredDescription
codequerystringnoThe one-time code GitHub sends back.
statequerystringnoThe value Sess gave GitHub, sent back unchanged.
errorquerystringnoGitHub’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_CANCELLED or GITHUB_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 code and state back, 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

  • code string required

  • state string 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_REQUIRED or GITHUB_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_LINKED or GITHUB_LINK_EXISTS).
503
GitHub did not answer usefully, so nothing changed; or GitHub sign-in is not set up (SERVICE_UNAVAILABLE or SIGN_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 code and state, 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

  • csrf string 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_ALLOWED or RECENT_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

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_REACHED or KEY_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) and expires_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 billing query 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 csrf and plan (starter or pro); 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_configured and invalid.
  • 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 csrf only.
  • The usage page’s notices are reauth, no_customer (no billing details yet), unavailable and not_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 csrf and management_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), from and to (UTC dates, to included), target (a target ID), q (a part of the Session title, matched as plain text) and cursor, 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, answered or expired; all by default), sort (sent or closes; sent by default), dir (asc or desc; newest first for sent, soonest first for closes) and after or before, an opaque page key, and q (a part of the title, matched as plain text).
  • The Filter menu sends order (sent-desc, sent-asc, closes-asc or closes-desc) in place of sort and dir.
  • 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

NameInTypeRequiredDescription
idpathstringyesThe 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

200
The export file.
Body EvidenceExport
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, custody and, optionally, from and to (UTC dates, to included) and target.
  • 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

NameInTypeRequiredDescription
event_idpathstringyesThe 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

NameInTypeRequiredDescription
event_idpathstringyesThe ID of the answer’s Event.

Responses

200
The archival envelope.
Body ArchivalEnvelope
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

NameInTypeRequiredDescription
event_idpathstringyesThe 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

NameInTypeRequiredDescription
event_idpathstringyesThe 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 csrf only.
  • Operation ID evidenceReceiptVerify

GET /app/evidence/records/{event_id}/pdf

Downloads a receipt’s PDF from the console.

Parameters

NameInTypeRequiredDescription
event_idpathstringyesThe 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

  • type string required

    "response.accepted"

  • event_id string required

    Stable across retries and redeliveries: deduplicate on it.

  • session_id string required

  • ask_id string

    Present 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}$

  • sequence integer required

  • revision integer required

  • action_id string required

  • data object required

  • accepted_at string required

  • receipt string or null required

    The stored signed decision receipt (identical on every delivery).

  • revision_envelope object or null

    The 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

  • type string required

    "sess.webhook.verification"

  • challenge string 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

  • type string required

    "sess.invocation"

  • invocation_id string required

    inv_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^inv_[0-9A-HJKMNP-TV-Z]{26}$

  • request_id string required

  • target_id string required

    tgt_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

  • target_version integer required

  • capability object required

    no additional properties

    Show propertiesHide properties
    • name string required

    • version string required

  • input object required

  • limits object required

    no additional properties

    Show propertiesHide properties
    • accepted_rounds integer required

      minimum 1

    • expires_in integer

      The 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_at string required

  • callback object required

    no additional properties

    Show propertiesHide properties
    • url string required

    • credential string required

      Present as Authorization: Bearer on the callback URL; one dispatch only.

Responses

200
Bound answer.
Body TargetDispatchAnswer

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

  • type string required

    "ask.closed"

  • event_id string required

    Stable across retries and redeliveries: deduplicate on it.

  • ask_id string required

    ask_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ask_[0-9A-HJKMNP-TV-Z]{26}$

  • closed_by string required

    "max" or "owner"

  • started integer required

    Starts admitted when it closed.

    minimum 0

  • closed_at string 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_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
  • SESSION_ROUND_LIMIT

Schemas

CreateSessionRequest

no additional properties

  • interaction object required

    Show propertiesHide properties
    • mode string required

      "display" or "interactive"

    • title string required

      The 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

    • description string

      Optional 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 mode is "display"; max length 200 when mode is "interactive"

    • source object required

      Show propertiesHide properties
      • kind string required

        "data" or "sess_surface"

      • data object required

        map 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 kind is "data".

        min properties 1

      • components array of object required

        The page's content, in order. How your page looks.

        Only when kind is "sess_surface".

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • locale string

      Advanced. 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 mode is "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}$

    • progress object

      Advanced. 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 mode is "interactive".

      no additional properties

      Show propertiesHide properties
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • actions array of object required

      Only when mode is "interactive".

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

      Only when mode is "interactive".

  • expires_in integer

    Advanced. 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_id string

    Advanced. 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

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • revision integer required

    minimum 1

  • human_url string required

  • action_expires_at string required

    The 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

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • revision integer required

    minimum 1

  • action_expires_at string required

    The 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_horizon string or null required

    null 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_used integer required

    How many times the person extended the link: always 0 when action_expires_horizon is null, at most 10 otherwise.

    minimum 0, maximum 10

  • link_state string 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.

  • extensions array of object required

    Every 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

    • number integer required

      Its number, 1 to 10, in order.

      minimum 1, maximum 10

    • previous_action_expires_at string required

      The deadline (action_expires_at) before this extension.

    • action_expires_at string required

      The deadline this extension set.

    • from_lapsed boolean required

      True 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_at string required

      When the extension was accepted.

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "display"

    • title string required

      min length 1, max length 200

      Not blank: at least one character that is not white space.

      Details

      \S

    • description string

      max length 4000

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "data"

      • data object required

        map 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

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • status string required

    "active", "responded" or "completed"

  • revision integer required

    The current Surface revision.

    minimum 1

  • action_expires_at string required

    The 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_horizon string or null required

    null 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_used integer required

    How many times the person extended the link: always 0 when action_expires_horizon is null, at most 10 otherwise.

    minimum 0, maximum 10

  • link_state string 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.

  • extensions array of object required

    Every 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

    • number integer required

      Its number, 1 to 10, in order.

      minimum 1, maximum 10

    • previous_action_expires_at string required

      The deadline (action_expires_at) before this extension.

    • action_expires_at string required

      The deadline this extension set.

    • from_lapsed boolean required

      True 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_at string required

      When the extension was accepted.

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      min length 1, max length 200

      Not blank: at least one character that is not white space.

      Details

      \S

    • description string

      max length 4000

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        Show propertiesHide properties
        • type string required

          "heading", "text", "record", "field" or "items"

        • text string required

          Only when type is "heading" or "text".

          min length 1, max length 200 when type is "heading"; min length 1, max length 4000 when type is "text"

          Not blank: at least one character that is not white space.

          Details

          \S

        • label string

          Only when type is "record", "field" or "items".

          min length 1, max length 200

          Not blank: at least one character that is not white space.

          Details

          \S

        • fields object required

          map of string to string or number or boolean or null

          Only when type is "record".

          min properties 1, max properties 50

        • name string

          Only when type is "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}$

        • description string

          Only when type is "field".

          max length 1000

        • required boolean

          Only when type is "field".

        • multiline boolean

          A string field rendered as a multi-line text area.

          Only when type is "field".

        • option_labels map of string to string

          Display labels for enum values (default: the value itself).

          Only when type is "field".

          max properties 100

        • rating object

          A 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 type is "field".

          no additional properties

          Show propertiesHide properties
          • low string

            min length 1, max length 24

            Not blank: at least one character that is not white space.

            Details

            \S

          • high string

            min length 1, max length 24

            Not blank: at least one character that is not white space.

            Details

            \S

        • schema object required

          The 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 type is "field".

        • value any

          The 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 type is "field".

        • currency string required

          ISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.

          Only when type is "items".

          Three capital letters, such as CAD.

          Details

          ^[A-Z]{3}$

        • select string

          "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 type is "items".

        • editable array 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 type is "items".

          min items 1, max items 1

        • rows array of object required

          1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).

          Only when type is "items".

          min items 1, max items 100

          Show propertiesHide properties

          no additional properties

          • name string required

            min length 1, max length 80

            Not blank: at least one character that is not white space.

            Details

            \S

          • detail string

            min length 1, max length 160

            Not blank: at least one character that is not white space.

            Details

            \S

          • quantity object

            An 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

          • amount integer or null required

            The line amount in minor units, or null for a line with no amount.

        • totals array of object

          Up to 8 totals lines, in order, as you state them.

          Only when type is "items".

          max items 8

          Show propertiesHide properties

          no additional properties

          • label string required

            min length 1, max length 40

            Not blank: at least one character that is not white space.

            Details

            \S

          • amount integer required

            The amount in minor units, as stated.

            minimum -1000000000000000, maximum 1000000000000000

          • role string 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.

          • included boolean

            Already included in the prices (such as VAT): shown, never added. Not on a subtotal or total.

    • actions array of object required

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        min length 1, max length 200

        Not blank: at least one character that is not white space.

        Details

        \S

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string required

      "first"

  • response_schema object required

    The JSON Schema 2020-12 the current revision’s responses are validated against.

  • responses array of object required

    Every accepted response, in sequence order, each bound to its revision.

    Show propertiesHide properties

    no additional properties

    • event_id string required

      evt_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^evt_[0-9A-HJKMNP-TV-Z]{26}$

    • sequence integer required

      Monotonic per-Session Event sequence.

      minimum 1

    • revision integer required

      The Surface revision it was accepted on.

      minimum 1

    • action_id string required

      A lower-case letter, then up to 31 lower-case letters, digits or underscores.

      Details

      ^[a-z][a-z0-9_]{0,31}$

    • data object required

      The normalized typed result, valid against that revision’s response_schema.

    • actor object required

      no additional properties

      Show propertiesHide properties
      • assurance string required

        "link_holder"

    • accepted_at string required

      ISO 8601 UTC time of acceptance.

    • receipt string or null required

      The 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_envelope object

      Present 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_revision number required

        2

        The envelope’s own schema version.

      • revision integer required

        minimum 1

      • session_id string required

        min length 5, max length 200

      • surface_hash string required

        RFC 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_version string required

        min length 1, max length 200

      • published_at string required

        When 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_id string or null required

        The 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_id string or null required

        A Session grant’s ID; null when no grant published the revision.

      • agent_target object or null required

        The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

      • ask_id string or null required

        The Ask a respondent’s Session belongs to; null otherwise.

      • titles object required

        The 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
        • nonce string required

          16 random bytes drawn when the revision was published (base64url).

          22 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{22}$

        • grant_title string or null required

        • target_title string or null required

        • owner_name string or null required

InteractiveSurfaceResponse

no additional properties

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • revision integer required

    minimum 1

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      min length 1, max length 200

      Not blank: at least one character that is not white space.

      Details

      \S

    • description string

      max length 4000

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        Show propertiesHide properties
        • type string required

          "heading", "text", "record", "field" or "items"

        • text string required

          Only when type is "heading" or "text".

          min length 1, max length 200 when type is "heading"; min length 1, max length 4000 when type is "text"

          Not blank: at least one character that is not white space.

          Details

          \S

        • label string

          Only when type is "record", "field" or "items".

          min length 1, max length 200

          Not blank: at least one character that is not white space.

          Details

          \S

        • fields object required

          map of string to string or number or boolean or null

          Only when type is "record".

          min properties 1, max properties 50

        • name string

          Only when type is "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}$

        • description string

          Only when type is "field".

          max length 1000

        • required boolean

          Only when type is "field".

        • multiline boolean

          A string field rendered as a multi-line text area.

          Only when type is "field".

        • option_labels map of string to string

          Display labels for enum values (default: the value itself).

          Only when type is "field".

          max properties 100

        • rating object

          A 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 type is "field".

          no additional properties

          Show propertiesHide properties
          • low string

            min length 1, max length 24

            Not blank: at least one character that is not white space.

            Details

            \S

          • high string

            min length 1, max length 24

            Not blank: at least one character that is not white space.

            Details

            \S

        • schema object required

          The 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 type is "field".

        • value any

          The 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 type is "field".

        • currency string required

          ISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.

          Only when type is "items".

          Three capital letters, such as CAD.

          Details

          ^[A-Z]{3}$

        • select string

          "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 type is "items".

        • editable array 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 type is "items".

          min items 1, max items 1

        • rows array of object required

          1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).

          Only when type is "items".

          min items 1, max items 100

          Show propertiesHide properties

          no additional properties

          • name string required

            min length 1, max length 80

            Not blank: at least one character that is not white space.

            Details

            \S

          • detail string

            min length 1, max length 160

            Not blank: at least one character that is not white space.

            Details

            \S

          • quantity object

            An 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

          • amount integer or null required

            The line amount in minor units, or null for a line with no amount.

        • totals array of object

          Up to 8 totals lines, in order, as you state them.

          Only when type is "items".

          max items 8

          Show propertiesHide properties

          no additional properties

          • label string required

            min length 1, max length 40

            Not blank: at least one character that is not white space.

            Details

            \S

          • amount integer required

            The amount in minor units, as stated.

            minimum -1000000000000000, maximum 1000000000000000

          • role string 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.

          • included boolean

            Already included in the prices (such as VAT): shown, never added. Not on a subtotal or total.

    • actions array of object required

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        min length 1, max length 200

        Not blank: at least one character that is not white space.

        Details

        \S

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string required

      "first"

  • response_schema object required

DisplaySurfaceResponse

no additional properties

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • revision integer required

    minimum 1

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "display"

    • title string required

      min length 1, max length 200

      Not blank: at least one character that is not white space.

      Details

      \S

    • description string

      max length 4000

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "data"

      • data object required

        map 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

  • state string required

    "waiting", "active" or "completed"

  • revision integer required

    The current Surface revision.

    minimum 1

SessionEventsResponse

no additional properties

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • events array of object required

    Every Event of the Session, in sequence order (append-only; never rewritten).

    Show propertiesHide properties

    no additional properties

    • event_id string required

      evt_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^evt_[0-9A-HJKMNP-TV-Z]{26}$

    • sequence integer required

      Monotonic per-Session sequence.

      minimum 1

    • type string required

      "response.accepted", "revision.published" or "session.completed"

    • revision integer required

      response.accepted: the revision the response was accepted on; revision.published: the revision published; session.completed: the current revision at completion.

      minimum 1

    • actor object required

      no additional properties

      Show propertiesHide properties
      • assurance string required

        "link_holder" or "owner"

    • action_id string

      A lower-case letter, then up to 31 lower-case letters, digits or underscores.

      Details

      ^[a-z][a-z0-9_]{0,31}$

    • data object

      response.accepted only: the typed result, valid against that revision.

    • created_at string required

      ISO 8601 UTC time the Event was recorded.

    • receipt string or null

      The 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_envelope object

      Present 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_revision number required

        2

        The envelope’s own schema version.

      • revision integer required

        minimum 1

      • session_id string required

        min length 5, max length 200

      • surface_hash string required

        RFC 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_version string required

        min length 1, max length 200

      • published_at string required

        When 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_id string or null required

        The 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_id string or null required

        A Session grant’s ID; null when no grant published the revision.

      • agent_target object or null required

        The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

      • ask_id string or null required

        The Ask a respondent’s Session belongs to; null otherwise.

      • titles object required

        The 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
        • nonce string required

          16 random bytes drawn when the revision was published (base64url).

          22 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{22}$

        • grant_title string or null required

        • target_title string or null required

        • owner_name string or null required

    • ask_id string

      The Ask this respondent Session belongs to: on its response.accepted and session.completed only.

      ask_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^ask_[0-9A-HJKMNP-TV-Z]{26}$

  • link_extensions array of object

    Every 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

    • number integer required

      Its number, 1 to 10, in order.

      minimum 1, maximum 10

    • previous_action_expires_at string required

      The deadline (action_expires_at) before this extension.

    • action_expires_at string required

      The deadline this extension set.

    • from_lapsed boolean required

      True 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_at string required

      When the extension was accepted.

  • closing object

    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

    Show propertiesHide properties
    • typ string required

      "sess-closing-receipt+jwt"

      What receipt is: a closing receipt, version 1. Never a receipt for one answer, so never verify it as one.

    • closure_id string required

      The closing receipt’s ID, the jti it signs.

      cls_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^cls_[0-9A-HJKMNP-TV-Z]{26}$

    • cause string required

      "completed_by_owner", "completed_by_ask_rule", "final_expiry" or "revoked"

      How the Session ended, as the closing receipt signs it: completed_by_owner when your agent completed it, completed_by_ask_rule when its Ask completed it on the answer, final_expiry when its Sess link expired for good. revoked ends a Session with no accepted answer, which has no closing receipt.

    • terminal_event_id string or null required

      The Event that ended the Session, as the closing receipt signs it: its session.completed, or for final_expiry the expiry Event Sess recorded, which this list does not include. null only for revoked.

      evt_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^evt_[0-9A-HJKMNP-TV-Z]{26}$

    • accepted_rounds integer required

      How many answers were accepted in the Session, at least 1: the count the closing receipt signs. Each is a response.accepted Event above.

      minimum 1

    • receipt string required

      The 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

  • typ string required

    "sess-closing-receipt+jwt"

    What receipt is: a closing receipt, version 1. Never a receipt for one answer, so never verify it as one.

  • closure_id string required

    The closing receipt’s ID, the jti it signs.

    cls_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^cls_[0-9A-HJKMNP-TV-Z]{26}$

  • cause string required

    "completed_by_owner", "completed_by_ask_rule", "final_expiry" or "revoked"

    How the Session ended, as the closing receipt signs it: completed_by_owner when your agent completed it, completed_by_ask_rule when its Ask completed it on the answer, final_expiry when its Sess link expired for good. revoked ends a Session with no accepted answer, which has no closing receipt.

  • terminal_event_id string or null required

    The Event that ended the Session, as the closing receipt signs it: its session.completed, or for final_expiry the expiry Event Sess recorded, which this list does not include. null only for revoked.

    evt_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^evt_[0-9A-HJKMNP-TV-Z]{26}$

  • accepted_rounds integer required

    How many answers were accepted in the Session, at least 1: the count the closing receipt signs. Each is a response.accepted Event above.

    minimum 1

  • receipt string required

    The 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

  • keys array of object required

    The 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

    • kty string required

      "OKP"

    • crv string required

      "Ed25519"

    • x string required

    • kid string required

      1 to 64 letters, digits, dots, hyphens or underscores.

      Details

      ^[A-Za-z0-9._-]{1,64}$

    • alg string required

      "EdDSA"

    • use string required

      "sig"

WitnessKeysResponse

no additional properties

  • type string required

    "sess.witness-key-set"

  • version number required

    1

  • issuer string required

    The receipt issuer whose witness checkpoints these keys sign.

    min length 1, max length 200

  • keys array of object required

    The 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_id string required

      sha256:<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_details string required

      "PKIX_ECDSA_P256_SHA_256"

    • spki string required

      Standard 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_from string required

      RFC 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_to string or null required

      RFC 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

  • type string required

    "sess.decision-bundle"

  • version number required

    1 or 2

    2 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).

  • receipt string required

    The 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_envelope object

    bundle-v2 only: the revision envelope the receipt v2 commits to (missing or other: revision).

    no additional properties

    Show propertiesHide properties
    • sess_revision number required

      2

      The envelope’s own schema version.

    • revision integer required

      minimum 1

    • session_id string required

      min length 5, max length 200

    • surface_hash string required

      RFC 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_version string required

      min length 1, max length 200

    • published_at string required

      When 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_id string or null required

      The 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_id string or null required

      A Session grant’s ID; null when no grant published the revision.

    • agent_target object or null required

      The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

    • ask_id string or null required

      The Ask a respondent’s Session belongs to; null otherwise.

    • titles object required

      The 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
      • nonce string required

        16 random bytes drawn when the revision was published (base64url).

        22 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{22}$

      • grant_title string or null required

      • target_title string or null required

      • owner_name string or null required

  • content object required

    no additional properties

    Show propertiesHide properties
    • surface object required

      The complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).

    • input object required

      The complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).

  • keys object required

    no additional properties

    Show propertiesHide properties
    • keys array of object required

      The 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

      • kty string required

        "OKP"

      • crv string required

        "Ed25519"

      • x string required

        43 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{43}$

      • kid string required

        1 to 64 letters, digits, dots, hyphens or underscores.

        Details

        ^[A-Za-z0-9._-]{1,64}$

      • alg string

        "EdDSA"

      • use string

        "sig"

DecisionBundleVerification

no additional properties

  • valid boolean required

  • reason any 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 null

    null when valid; otherwise the first check that failed.

  • checked_at string required

    The time the receipt was checked against (UTC).

  • content string required

    "verified", "mismatch" or "not_checked"

  • context object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "verified", "incomplete", "mismatch", "unchecked" or "not_checked"

    • checked array required

      array of "audience", "workspace_id", "session_id", "event_id", "surface.revision" or "action.id"

    • mismatches array required

      array of "audience", "workspace_id", "session_id", "event_id", "surface.revision" or "action.id"

  • application_purpose string 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.

  • actor object or null required

  • receipt object or null required

ReceiptAuthenticityCheck

no additional properties

  • valid boolean required

  • reason any 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 null

    null when valid; otherwise the first check that failed.

  • checked_at string required

    The moment the check ran (UTC).

  • content string required

    "verified", "mismatch" or "not_checked"

  • context object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "verified", "incomplete", "mismatch", "unchecked" or "not_checked"

    • checked array required

      array of "audience", "workspace_id", "session_id", "event_id", "surface.revision" or "action.id"

    • mismatches array required

      array of "audience", "workspace_id", "session_id", "event_id", "surface.revision" or "action.id"

  • application_purpose string 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.

  • actor object or null required

  • receipt object or null required

  • check string required

    "authenticity_at_signing"

    What was asked: whether the record is genuine, judged when it was signed.

  • judged_at string or null required

    The instant every check was judged at: the receipt's signed iat (UTC); null when the receipt states none.

  • live_eligibility object or null required

    Whether an app may still act on the receipt; null unless valid.

  • signing_time object or null required

    Null 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

  • type string required

    "sess.archival-envelope"

  • version number required

    1 or 2

    1 for a receipt v1; 2 for a receipt v2 (archival-core-v2).

  • receipt string required

    The original receipt compact JWS, exactly as issued: receipt v1 in version 1, receipt v2 in version 2.

    max length 32768

  • revision_envelope object

    Version 2 only: the revision envelope the receipt v2 commits to, strictly checked by the verifier with the receipt.

  • signed_core object required

    no additional properties

    Show propertiesHide properties
    • type string required

      "sess.signed-archival-core"

    • version number required

      1

    • core object required

      The archival core, strictly checked by the verifier.

    • signature object required

      no additional properties

      Show propertiesHide properties
      • alg string required

        "Ed25519"

      • kid string required

      • value string required

        base64url, 64 bytes.

  • evidence array of object required

    Detachable 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

  • type string required

    "sess.archival-person-envelope"

  • version number required

    1 or 2

    1 for a receipt v1; 2 for a receipt v2.

  • receipt string required

    The original receipt compact JWS, exactly as issued.

    max length 32768

  • revision_envelope object

    Version 2 only: the revision envelope the receipt v2 commits to.

  • signed_projection object required

    no additional properties

    Show propertiesHide properties
    • type string required

      "sess.signed-archival-person-projection"

    • version number required

      1

    • projection object required

      The person-carried projection, strictly checked by the verifier: its bindings are exactly {target, owner}.

    • signature object required

      no additional properties

      Show propertiesHide properties
      • alg string required

        "Ed25519"

      • kid string required

      • value string required

        base64url, 64 bytes.

  • evidence array of object required

    The 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_at string required

    The current time the check used (UTC).

  • signature object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "valid", "invalid", "unsupported" or "unverifiable"

    • reason string 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"

  • contents object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "valid", "invalid", "unsupported" or "unverifiable"

    • reason string required

      "verified", "content_unavailable", "content_mismatch", "content_malformed", "content_oversized" or "signature_unverified"

  • context object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "valid", "invalid", "unsupported" or "unverifiable"

    • reason string required

      "verified", "unchecked", "incomplete", "mismatch" or "signature_unverified"

    • checked array of string required

      The expected members checked, of: issuer, audience, workspace_id, session_id, event_id, surface_revision, action_id.

    • mismatched array of string required

      The checked members that did not match.

  • witness object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "witnessed", "pending", "indeterminate", "invalid", "unsupported" or "unverifiable"

    • reason string 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_at string

      Witnessed only: the TSA time, an upper bound on when the signed core existed.

    • detail string

      invalid_evidence only: which part failed.

  • key_trust object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "valid", "invalid", "unsupported" or "unverifiable"

    • reason string required

      "trusted", "unknown_kid" or "not_evaluated"

    • key_set string required

      "caller_supplied"

      Always this server's own published receipt keys, never the envelope's.

    • key_set_observed_at string or null required

  • live_expiry object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "valid", "invalid", "unsupported" or "unverifiable"

    • reason string required

      "unexpired", "expired" or "signature_unverified"

    • expires_at string or null required

  • core object or null required

    The validated archival core; null unless signature is valid, and always null for a person's envelope.

  • projection object or null

    A person's archival envelope only: the validated person-carried projection (no capability binding); null unless signature is valid.

  • claims object or null required

    The verified receipt-v1 claims; null unless signature is valid.

  • presentation object required

    presentArchivalVerification 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
    • verified boolean required

    • messages array required

      array of "signature_verified", "contents_verified", "contents_unavailable" or "application_context_unchecked"

    • refusal object or null required

    • witness string required

      "witnessed", "pending", "indeterminate", "invalid", "unsupported" or "unverifiable"

    • expired_for_live_use boolean or null required

ClosingVerifyRequest

no additional properties

  • closing_receipt string required

    The 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_-]+$

  • rounds array of object required

    The file’s round receipts, in the order the file carries them.

    min items 1, max items 64

    Show propertiesHide properties

    no additional properties

    • receipt string required

      min 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_envelope object or null

      A receipt v2’s revision envelope, as the file carries it.

ClosingVerifyResponse

no additional properties

  • completeness string required

    "complete", "failed", "unsupported" or "none"

    Derived from authenticity and set match alone.

  • closing object required

    The closing receipt’s own authenticity.

    no additional properties

    Show propertiesHide properties
    • status string required

      "valid", "invalid", "missing", "unsupported" or "unverifiable"

    • reason string required

      max length 64

  • set_match object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "valid", "invalid", "missing", "unsupported" or "unverifiable"

    • reason string required

      max length 64

    • present integer required

      minimum 0, maximum 64

    • signed_count integer or null required

  • independent_time object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "missing"

    • reason string required

      "no_timestamp_evidence"

  • presentation object required

    What 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
    • state string required

      "complete", "failed" or "none"

    • count integer or null required

    • anchored_at string or null required

KeepChallengeRequest

no additional properties

  • grants array of string required

    The 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

  • rounds integer required

    The authorized accepted rounds the file will hold.

    minimum 1

  • cutoff_sequence integer required

    minimum 1

  • challenge null or object required

KeepRequest

no additional properties

  • grants array of string required

    The 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

  • format string

    "json" or "pdf"

    S-04: pdf answers 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.

  • enrollment object

    no additional properties

    Show propertiesHide properties
    • challenge_id string required

      kch_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^kch_[0-9A-HJKMNP-TV-Z]{26}$

    • items array of object required

      Exactly 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_id string required

        evt_ then 26 capital letters and digits, without I, L, O or U.

        Details

        ^evt_[0-9A-HJKMNP-TV-Z]{26}$

      • holder_key object required

        A fresh public P-256 key (never a private one).

        no additional properties

        Show propertiesHide properties
        • crv string required

          "P-256"

        • kty string required

          "EC"

        • x string required

          43 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{43}$

        • y string required

          43 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{43}$

      • proof string required

        base64url 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

  • type string required

    "sess.kept-conversation"

  • version number required

    1, 2, 3 or 4

    2 (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.

  • issuer string required

  • workspace_id string required

  • session_id string required

  • snapshot object required

    no additional properties

    Show propertiesHide properties
    • cutoff_sequence integer required

      minimum 1

    • taken_at string required

      format date-time

  • coverage string required

    "every_accepted_round" or "partial"

  • inventory array of object required

    Show propertiesHide properties

    no additional properties

    • event_id string required

    • sequence integer required

      minimum 1

    • revision integer required

      minimum 1

    • accepted_at string required

      format date-time

    • content string required

      "included" or "unavailable"

    • preservation string required

      "preserved" or "not_preserved"

    • witness string or null required

    • holder string required

      "enrolled", "unenrolled" or "revoked"

  • rounds array of object required

    min items 1, max items 64

    Show propertiesHide properties

    no additional properties

    • event_id string required

    • sequence integer required

      minimum 1

    • revision integer required

      minimum 1

    • accepted_at string required

      format date-time

    • receipt string required

      The 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_envelope object or null

      keep-v2 only (absent in keep-v1): the revision envelope a receipt v2 commits to; null for a receipt v1 round.

    • content object required

      Show propertiesHide properties
      • status string required

        "included" or "unavailable"

      • bundle object required

        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. Receipts.

        Only when status is "included".

        no additional properties

        Show propertiesHide properties
        • type string required

          "sess.decision-bundle"

        • version number required

          1 or 2

          2 for a receipt v2 (bundle-v2); 1 for a receipt v1 (bundle-v1).

        • receipt string required

          The 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_envelope object

          bundle-v2 only: the revision envelope the receipt v2 commits to (missing or other: revision).

          no additional properties

          Show propertiesHide properties
          • sess_revision number required

            2

            The envelope’s own schema version.

          • revision integer required

            minimum 1

          • session_id string required

            min length 5, max length 200

          • surface_hash string required

            RFC 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_version string required

            min length 1, max length 200

          • published_at string required

            When 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_id string or null required

            The 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_id string or null required

            A Session grant’s ID; null when no grant published the revision.

          • agent_target object or null required

            The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

          • ask_id string or null required

            The Ask a respondent’s Session belongs to; null otherwise.

          • titles object required

            The 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

        • content object required

          no additional properties

          Show propertiesHide properties
          • surface object required

            The complete normalized Surface document of the accepted revision (its RFC 8785 SHA-256 is the receipt surface.hash).

          • input object required

            The complete validated input as accepted (its RFC 8785 SHA-256 is the receipt input_hash).

        • keys object required

          no additional properties

          Show propertiesHide properties
          • keys array of object required

            The issuer's public verification keys when the bundle was exported. Disclosed for convenience only: verifiers use keys they trust, never these.

            max items 16

    • preservation object required

      Show propertiesHide properties
      • status string required

        "preserved", "preserved" or "not_preserved"

      • witness string required

        The witness state at snapshot time (the custody witness job: pending until a witness attaches, then e.g. witnessed); the envelope carries the evidence attached by then.

      • archival_envelope object required

        The archival envelope: version 2 (archival-core-v2) for a receipt v2, version 1 (archival-core-v1) for a receipt v1.

      • person_envelope object required

        keep-v3 only: the person's archival envelope, of the version of its receipt; never a core.

    • holder object required

      Show propertiesHide properties
      • status any or string required

        "enrolled" or "revoked" or "unenrolled"

      • public_key object required

        A fresh public P-256 key (never a private one).

        no additional properties

        Show propertiesHide properties
        • crv string required

          "P-256"

        • kty string required

          "EC"

        • x string required

          43 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{43}$

        • y string required

          43 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{43}$

      • key_thumbprint string required

        43 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{43}$

      • enrolled_at string required

        format date-time

      • batch object required

      • proof string required

        86 letters, digits, hyphens or underscores.

        Details

        ^[A-Za-z0-9_-]{86}$

      • reason string required

        "not_preserved", "final_only", "not_enrolled", "holder_withheld" or "holder_core_bound"

  • closing_receipt string or null

    keep-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

  • url string required

    Absolute 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

  • endpoint object required

    no additional properties

    Show propertiesHide properties
    • id string required

      whe_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^whe_[0-9A-HJKMNP-TV-Z]{26}$

    • url string required

    • status string required

      "pending" or "verified"

    • created_at string required

    • verified_at string or null required

    • verification_expires_at string or null required

      The 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_secret object or null required

    The workspace’s first signing secret when this registration created it, else null.

WebhookVerifyResponse

no additional properties

  • endpoint object required

    no additional properties

    Show propertiesHide properties
    • id string required

      whe_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^whe_[0-9A-HJKMNP-TV-Z]{26}$

    • url string required

    • status string required

      "pending" or "verified"

    • created_at string required

    • verified_at string or null required

    • verification_expires_at string or null required

      The 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

  • endpoint object or null required

  • signing_secrets array of object required

    Secrets in force, newest first (never the secret values).

    Show propertiesHide properties

    no additional properties

    • kid string required

    • active boolean required

    • retire_at string or null required

  • deliveries object required

    no additional properties

    Show propertiesHide properties
    • pending integer required

      minimum 0

    • failed integer required

      minimum 0

    • delivered integer required

      minimum 0

    • oldest_pending_age_seconds integer or null required

WebhookRotateResponse

no additional properties

  • signing_secret object required

    no additional properties

    Show propertiesHide properties
    • kid string required

      wk_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^wk_[0-9A-HJKMNP-TV-Z]{26}$

    • secret string required

      Shown 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}=$

  • previous object or null required

DeliveriesResponse

no additional properties

  • id string required

  • deliveries array of object required

    Show propertiesHide properties

    no additional properties

    • delivery_id string required

      obx_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^obx_[0-9A-HJKMNP-TV-Z]{26}$

    • event_id string required

    • kind string required

      "accepted" or "redelivery"

    • status string required

      "pending", "delivered" or "failed"

    • endpoint_id string required

    • next_attempt_at string or null required

    • deadline_at string required

    • created_at string required

    • finished_at string or null required

    • last_outcome any 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 null

      The job-level outcome: the last attempt’s, or exhausted when the attempt or time budget ran out, or endpoint_unavailable when its endpoint was replaced, disabled or its verification lapsed.

    • attempts array of object required

      Every started attempt. started with 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

      • attempt integer required

        minimum 1

      • started_at string required

      • finished_at string or null required

      • outcome string 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_status integer or null required

RedeliverResponse

no additional properties

  • delivery object required

    no additional properties

    Show propertiesHide properties
    • delivery_id string required

      obx_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^obx_[0-9A-HJKMNP-TV-Z]{26}$

    • event_id string required

    • kind string required

      "accepted" or "redelivery"

    • status string required

      "pending", "delivered" or "failed"

    • endpoint_id string required

    • next_attempt_at string or null required

    • deadline_at string required

    • created_at string required

    • finished_at string or null required

    • last_outcome any 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 null

      The job-level outcome: the last attempt’s, or exhausted when the attempt or time budget ran out, or endpoint_unavailable when its endpoint was replaced, disabled or its verification lapsed.

    • attempts array of object required

      Every started attempt. started with 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

      • attempt integer required

        minimum 1

      • started_at string required

      • finished_at string or null required

      • outcome string 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_status integer or null required

WebhookDelivery

no additional properties

  • type string required

    "response.accepted"

  • event_id string required

    Stable across retries and redeliveries: deduplicate on it.

  • session_id string required

  • ask_id string

    Present 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}$

  • sequence integer required

  • revision integer required

  • action_id string required

  • data object required

  • accepted_at string required

  • receipt string or null required

    The stored signed decision receipt (identical on every delivery).

  • revision_envelope object or null

    The 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

  • type string required

    "sess.webhook.verification"

  • challenge string required

PatchSessionRequest

no additional properties

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      The 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

    • description string

      Optional 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

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        The page's content, in order. How your page looks.

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • actions array of object required

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

SurfaceComponent

  • type string required

    "heading", "text", "record", "field" or "items"

  • text string required

    A section heading: a few words; at most 40. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.

    Only when type is "heading" or "text".

    min length 1, max length 40 when type is "heading"; min length 1, max length 4000 when type is "text"

    Not blank: at least one character that is not white space.

    Details

    \S

  • label string

    Optional 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 type is "record", "field" or "items".

    min length 1, max length 200 when type is "record"; min length 1, max length 40 when type is "field"; min length 1, max length 200 when type is "items"

    Not blank: at least one character that is not white space.

    Details

    \S

  • fields object required

    map of string to string or number or boolean or null

    Only when type is "record".

    min properties 1, max properties 50

  • name string

    Only when type is "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}$

  • description string

    Optional 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 type is "field".

    max length 120

  • required boolean

    Only when type is "field".

  • multiline boolean

    A string field rendered as a multi-line text area.

    Only when type is "field".

  • option_labels map of string to string

    Display labels for enum values (default: the value itself).

    Only when type is "field".

    max properties 100

  • rating object

    A 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 type is "field".

    no additional properties

    Show propertiesHide properties
    • low string

      Optional 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

    • high string

      Optional 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

  • schema object required

    The 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 type is "field".

  • value any

    The 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 type is "field".

  • currency string required

    ISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.

    Only when type is "items".

    Three capital letters, such as CAD.

    Details

    ^[A-Z]{3}$

  • select string

    "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 type is "items".

  • editable array 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 type is "items".

    min items 1, max items 1

  • rows array of object required

    1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).

    Only when type is "items".

    min items 1, max items 100

    Show propertiesHide properties

    no additional properties

    • name string required

      What 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

    • detail string

      Optional 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

    • quantity object

      An 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
      • value integer required

        minimum 0, maximum 1000000

      • unit string

        Optional 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

      • min integer

        minimum 0, maximum 1000000

      • max integer

        minimum 0, maximum 1000000

    • amount integer or null required

      The line amount in minor units, or null for a line with no amount.

  • totals array of object

    Up to 8 totals lines, in order, as you state them.

    Only when type is "items".

    max items 8

    Show propertiesHide properties

    no additional properties

    • label string required

      A 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

    • amount integer required

      The amount in minor units, as stated.

      minimum -1000000000000000, maximum 1000000000000000

    • role string 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.

    • included boolean

      Already 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

  • type string required

    "items"

  • label string

    Optional 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

  • currency string required

    ISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.

    Three capital letters, such as CAD.

    Details

    ^[A-Z]{3}$

  • select string

    "one" or "many"

    The person may choose rows: one (radios) or many (checkboxes). Needs name; the result carries the chosen row indices in selected.

  • editable array 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

  • name string

    A lower-case letter, then up to 55 lower-case letters, digits or underscores.

    Details

    ^[a-z][a-z0-9_]{0,55}$

  • rows array of object required

    1 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

    • name string required

      What 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

    • detail string

      Optional 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

    • quantity object

      An 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
      • value integer required

        minimum 0, maximum 1000000

      • unit string

        Optional 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

      • min integer

        minimum 0, maximum 1000000

      • max integer

        minimum 0, maximum 1000000

    • amount integer or null required

      The line amount in minor units, or null for a line with no amount.

  • totals array of object

    Up to 8 totals lines, in order, as you state them.

    max items 8

    Show propertiesHide properties

    no additional properties

    • label string required

      A 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

    • amount integer required

      The amount in minor units, as stated.

      minimum -1000000000000000, maximum 1000000000000000

    • role string 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.

    • included boolean

      Already 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_id string required

    16 to 64 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{16,64}$

  • surface_revision string required

    A whole number from 1 to 999999999, without leading zeros.

    Details

    ^[1-9][0-9]{0,8}$

  • action_id string required

    A 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_id string required

    16 to 64 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{16,64}$

  • surface_revision string required

    A whole number from 1 to 999999999, without leading zeros.

    Details

    ^[1-9][0-9]{0,8}$

Error

no additional properties

  • error object required

    no additional properties

    Show propertiesHide properties
    • code string 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"

    • message string required

      Plain 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_id string required

      min length 1

    • reason string

      A stable machine-readable refinement of some codes (P1 A4 webhook errors; P2 target, admission and limit errors; SESSION_ENDED: the terminal cause, final_expiry or revoked).

      1 to 40 lower-case letters or underscores.

      Details

      ^[a-z_]{1,40}$

    • field string

      INVALID_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.

    • limit integer

      With 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

    • length integer

      With field: the value’s length in Unicode code points (for rows or totals, how many were sent).

      minimum 0

    • expected integer or string

      An 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.

    • actual integer

      With expected: the amount stated, in minor units.

HealthOk

no additional properties

  • status string required

    "ok"

HealthUnavailable

no additional properties

  • status string required

    "unavailable"

VersionResponse

no additional properties

  • git_sha string or null required

    The 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_id string or null required

    SESS_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_time string or null required

    ISO 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_version string required

    The Node.js version (process.version).

ApiRootResponse

no additional properties

  • name string required

    "Sess API"

  • openapi string required

    The OpenAPI document of this API (absolute URL).

  • docs string required

    The docs home (absolute URL).

  • llms string required

    The docs’ llms.txt, written for agents (absolute URL).

  • trial object required

    The no-signup trial: create a Session with no Authorization header.

    no additional properties

    Show propertiesHide properties
    • method string required

      "POST"

    • path string required

      "/v1/trial/sessions"

TrialCreateSessionRequest

no additional properties

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      The 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

    • description string

      Optional 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

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        The page's content, in order. How your page looks.

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • actions array of object required

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

TrialCreateSessionResponse

no additional properties

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • revision integer required

    minimum 1

  • human_url string required

    The Sess link (a capability): share it only with the responder.

  • workspace_id string required

    The trial workspace this Session belongs to.

  • management_credential string

    Returned 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_at string required

    After this instant the Sess link accepts no response.

  • result_available_until string required

    Until this instant the result can be read with the management credential.

  • trial_expires_at string required

    After this instant the trial creates no further Session.

TrialSessionResponse

no additional properties

  • id string required

    ses_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ses_[0-9A-HJKMNP-TV-Z]{26}$

  • status string required

    "active", "responded" or "completed"

  • revision integer required

    The current Surface revision.

    minimum 1

  • action_expires_horizon string or null required

    null 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_used integer required

    How many times the person extended the link: always 0 when action_expires_horizon is null, at most 10 otherwise.

    minimum 0, maximum 10

  • link_state string 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.

  • extensions array of object required

    Every 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

    • number integer required

      Its number, 1 to 10, in order.

      minimum 1, maximum 10

    • previous_action_expires_at string required

      The deadline (action_expires_at) before this extension.

    • action_expires_at string required

      The deadline this extension set.

    • from_lapsed boolean required

      True 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_at string required

      When the extension was accepted.

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      min length 1, max length 200

      Not blank: at least one character that is not white space.

      Details

      \S

    • description string

      max length 4000

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        Show propertiesHide properties
        • type string required

          "heading", "text", "record", "field" or "items"

        • text string required

          Only when type is "heading" or "text".

          min length 1, max length 200 when type is "heading"; min length 1, max length 4000 when type is "text"

          Not blank: at least one character that is not white space.

          Details

          \S

        • label string

          Only when type is "record", "field" or "items".

          min length 1, max length 200

          Not blank: at least one character that is not white space.

          Details

          \S

        • fields object required

          map of string to string or number or boolean or null

          Only when type is "record".

          min properties 1, max properties 50

        • name string

          Only when type is "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}$

        • description string

          Only when type is "field".

          max length 1000

        • required boolean

          Only when type is "field".

        • multiline boolean

          A string field rendered as a multi-line text area.

          Only when type is "field".

        • option_labels map of string to string

          Display labels for enum values (default: the value itself).

          Only when type is "field".

          max properties 100

        • rating object

          A 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 type is "field".

          no additional properties

          Show propertiesHide properties
          • low string

            min length 1, max length 24

            Not blank: at least one character that is not white space.

            Details

            \S

          • high string

            min length 1, max length 24

            Not blank: at least one character that is not white space.

            Details

            \S

        • schema object required

          The 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 type is "field".

        • value any

          The 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 type is "field".

        • currency string required

          ISO 4217 alphabetic code with known minor units (CAD, JPY, BHD …); one per component.

          Only when type is "items".

          Three capital letters, such as CAD.

          Details

          ^[A-Z]{3}$

        • select string

          "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 type is "items".

        • editable array 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 type is "items".

          min items 1, max items 1

        • rows array of object required

          1 to 100 rows, in order; more fail with 400 INVALID_SCHEMA (never truncated).

          Only when type is "items".

          min items 1, max items 100

          Show propertiesHide properties

          no additional properties

          • name string required

            min length 1, max length 80

            Not blank: at least one character that is not white space.

            Details

            \S

          • detail string

            min length 1, max length 160

            Not blank: at least one character that is not white space.

            Details

            \S

          • quantity object

            An 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

          • amount integer or null required

            The line amount in minor units, or null for a line with no amount.

        • totals array of object

          Up to 8 totals lines, in order, as you state them.

          Only when type is "items".

          max items 8

          Show propertiesHide properties

          no additional properties

          • label string required

            min length 1, max length 40

            Not blank: at least one character that is not white space.

            Details

            \S

          • amount integer required

            The amount in minor units, as stated.

            minimum -1000000000000000, maximum 1000000000000000

          • role string 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.

          • included boolean

            Already included in the prices (such as VAT): shown, never added. Not on a subtotal or total.

    • actions array of object required

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        min length 1, max length 200

        Not blank: at least one character that is not white space.

        Details

        \S

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string required

      "first"

  • response_schema object required

    The JSON Schema 2020-12 the current revision’s responses are validated against.

  • responses array of object required

    Every accepted response, in sequence order, each bound to its revision.

    Show propertiesHide properties

    no additional properties

    • event_id string required

      evt_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^evt_[0-9A-HJKMNP-TV-Z]{26}$

    • sequence integer required

      Monotonic per-Session Event sequence.

      minimum 1

    • revision integer required

      The Surface revision it was accepted on.

      minimum 1

    • action_id string required

      A lower-case letter, then up to 31 lower-case letters, digits or underscores.

      Details

      ^[a-z][a-z0-9_]{0,31}$

    • data object required

      The normalized typed result, valid against that revision’s response_schema.

    • actor object required

      no additional properties

      Show propertiesHide properties
      • assurance string required

        "link_holder"

    • accepted_at string required

      ISO 8601 UTC time of acceptance.

    • receipt string or null required

      The 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_envelope object

      Present 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_revision number required

        2

        The envelope’s own schema version.

      • revision integer required

        minimum 1

      • session_id string required

        min length 5, max length 200

      • surface_hash string required

        RFC 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_version string required

        min length 1, max length 200

      • published_at string required

        When 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_id string or null required

        The 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_id string or null required

        A Session grant’s ID; null when no grant published the revision.

      • agent_target object or null required

        The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

      • ask_id string or null required

        The Ask a respondent’s Session belongs to; null otherwise.

      • titles object required

        The 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
        • nonce string required

          16 random bytes drawn when the revision was published (base64url).

          22 letters, digits, hyphens or underscores.

          Details

          ^[A-Za-z0-9_-]{22}$

        • grant_title string or null required

        • target_title string or null required

        • owner_name string or null required

  • trial object required

    no additional properties

    Show propertiesHide properties
    • workspace_id string required

    • action_expires_at string required

      After this instant the Sess link accepts no response.

    • result_available_until string required

      Until this instant this result remains readable.

EmailLinkRequest

no additional properties

  • email string required

    The address to send a sign-in link to. Trimmed and lower-cased.

    min length 3, max length 254

EmailLinkAccepted

no additional properties

  • status string 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

  • email string required

    The 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

  • status string 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

  • code string required

    The six-digit code from the email (spaces and hyphens are ignored).

    min length 1, max length 32

PersonalLinkRequest

no additional properties

  • token string required

    The 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

  • status string required

    "signed_in"

  • expires_at string required

    The personal session’s absolute expiry (never extended).

    format date-time

  • csrf string required

    The 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

  • email string required

    The address of this session’s own identity.

  • expires_at string required

    format date-time

  • csrf string required

    The 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_saved string or null required

    The 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_now boolean required

    Where Save lands: last_saved was 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_workspace boolean required

    This 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

  • status string required

    "signed_out" or "closed"

SaveClaimRequest

no additional properties

  • grants array of string required

    The 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

  • source string required

    base64url 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}$

  • destination string

    The 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

  • secret string required

    The 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_at string required

    The claim’s expiry.

    format date-time

SaveDestinationRequest

no additional properties

  • nonce string required

    A 32-byte random nonce this destination page keeps until it redeems.

    43 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{43}$

  • secret string

    The 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}$

  • verifier string

    The 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

  • destination string required

    The 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

  • secret string required

    The claim’s transfer secret.

    43 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{43}$

  • verifier string required

    The source verifier whose hash the claim was created with.

    43 letters, digits, hyphens or underscores.

    Details

    ^[A-Za-z0-9_-]{43}$

  • nonce string required

    This 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

  • link string required

    The 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})$

  • grants array of string required

    The 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

  • status string required

    "saved"

  • saved_at string required

    When the saved copy was written. The identical request again answers the same time: nothing is written twice.

    format date-time

  • existing boolean

    true

    Present 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

  • item string required

    A 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

  • item string required

    A 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}$

  • format string

    "json" or "pdf"

    pdf answers the copy as served now as a receipt PDF (application/pdf; the same exporter as Keep with format: 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

  • copies array of object required

    The newest saved copies first, at most 100.

    max items 100

    Show propertiesHide properties

    no additional properties

    • item string required

      psn_ then 32 lower-case hexadecimal digits.

      Details

      ^psn_[0-9a-f]{32}$

    • saved_at string required

      format date-time

    • status string required

      "available", "partly_unavailable" or "unavailable"

      partly_unavailable or unavailable when 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.

    • title string or null required

      The first served round’s Surface title, from the copy itself.

    • rounds array of object required

      max items 64

      Show propertiesHide properties

      no additional properties

      • accepted_at string required

        format date-time

      • signature string 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_checked when the round was not preserved or its key is not trusted here.

      • contents string required

        "verified", "not_valid", "unavailable" or "not_checked"

        Whether the round’s questions and answers in the copy match the receipt: unavailable when the copy does not hold them (they were purged before the Save), not_checked when the signature was not verified first. Never folded into the signature outcome.

      • holder string required

        "enrolled", "revoked", "not_enrolled" or "withheld"

        The holder status as recorded at Save; withheld when its signed batch names a round an operator order now withholds.

PersonalCopyRemoved

no additional properties

  • status string required

    "removed"

PersonalCopiesQuery

no additional properties

  • q string

    Search: 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

  • status string

    "available", "partly_unavailable" or "unavailable"

    partly_unavailable or unavailable when 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.

  • sort string

    "saved", "title" or "agent"

    The order: by the date the row shows (the default; answered_at, else saved_at), the shown title or the agent name (copies with none last).

  • order string

    "asc" or "desc"

    Ascending or descending (the default: desc by date, asc by title or agent).

  • offset integer

    How 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

  • cursor string

    A 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

  • copies array of object required

    max items 25

    Show propertiesHide properties

    no additional properties

    • item string required

      psn_ then 32 lower-case hexadecimal digits.

      Details

      ^psn_[0-9a-f]{32}$

    • saved_at string required

      format date-time

    • answered_at string or null required

      When 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 by saved_at).

    • date_text string required

      The 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 in saved_at, answered_at and each round’s accepted_at.

      min length 1, max length 16

    • status string required

      "available", "partly_unavailable" or "unavailable"

      partly_unavailable or unavailable when 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.

    • title string or null required

      The 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.

    • label string or null required

      The 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.

    • agent string or null required

      The 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.

    • verified boolean required

      Whether 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 signature and contents verified, as POST /personal/copies/open gives them): the list row says no state then, else “Unverified”, unless status makes it “Partial” or “Unavailable”. false unless status is available, even when every round a partly unavailable copy still serves verifies; false when the copy serves no round.

  • total integer required

    Every saved copy that matches.

    minimum 0

  • all integer required

    Every 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

  • offset integer required

    How many matching copies precede this page’s first row.

    minimum 0

  • limit integer required

    The page size (20).

    minimum 1

  • next string or null required

    The cursor of the next page; null on the last page.

  • previous string or null required

    The 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

  • item string required

    psn_ then 32 lower-case hexadecimal digits.

    Details

    ^psn_[0-9a-f]{32}$

  • saved_at string required

    format date-time

  • date_text string required

    The 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 in saved_at, answered_at and each round’s accepted_at.

    min length 1, max length 16

  • status string required

    "available", "partly_unavailable" or "unavailable"

    partly_unavailable or unavailable when 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.

  • title string or null required

  • label string or null required

    The 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.

  • agent string or null required

    The 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.

  • rounds array of object required

    max items 64

    Show propertiesHide properties

    no additional properties

    • accepted_at string required

      format date-time

    • title string or null required

    • description string or null required

    • action string or null required

      The label of the action the person chose, as the receipt records it.

    • blocks array of object required

      Empty when the copy does not hold the round’s questions and answers.

      max items 200

      Show propertiesHide properties
      • kind string required

        "heading", "text", "record", "items" or "answer"

      • text string required

        Only when kind is "heading" or "text".

        max length 200 when kind is "heading"; max length 4000 when kind is "text"

      • label any or string required

        string or null or string or null or string

        Only when kind is "record", "items" or "answer".

      • pairs array of array of any required

        Only when kind is "record".

        max items 50

      • currency string or null required

        The ISO 4217 code, or null when the formatted amounts carry it already.

        Only when kind is "items".

        Three capital letters, such as CAD.

        Details

        ^[A-Z]{3}$

      • amount_code "start" or "end" or null required

        Where 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 kind is "items".

      • rows array of object required

        Only when kind is "items".

        max items 100

        Show propertiesHide properties

        no additional properties

        • name string required

          max length 200

        • detail string or null required

        • quantity string or null required

          The row’s quantity and unit; where the person could change it, the accepted one.

        • amount string or null required

          The line amount, formatted exactly; null for a line with no amount.

        • amount_groups array of string or null required

      • totals array of object required

        Only when kind is "items".

        max items 8

        Show propertiesHide properties

        no additional properties

        • label string required

          max length 200

        • amount string required

          max length 100

        • amount_groups array of string required

          The 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

        • main boolean required

          The total, or without one the amount due.

        • included boolean required

          Already in the prices: shown, not added.

      • answer string or boolean or null required

        string 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 kind is "answer".

      • rating object

        For a rating field, its chosen value and its scale’s maximum (the answer reads "{value} of {max}"); absent for every other field.

        Only when kind is "answer".

        no additional properties

        Show propertiesHide properties
        • value integer required

          minimum 1, maximum 10

        • max integer required

          minimum 2, maximum 10

    • signature string 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_checked when the round was not preserved or its key is not trusted here.

    • contents string required

      "verified", "not_valid", "unavailable" or "not_checked"

      Whether the round’s questions and answers in the copy match the receipt: unavailable when the copy does not hold them (they were purged before the Save), not_checked when the signature was not verified first. Never folded into the signature outcome.

    • holder string required

      "enrolled", "revoked", "not_enrolled" or "withheld"

      The holder status as recorded at Save; withheld when its signed batch names a round an operator order now withholds.

    • provenance object

      RV2-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_by string or null required

        The 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_at string required

        When the round was published (UTC).

      • address string or null required

        The 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.

      • inbox boolean required

        An 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_to string or null required

        On an inbox child, the committed Target title (titles.target_title); null otherwise or when it has none.

  • closing object

    The 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
    • verified boolean required

      true: 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).

    • count integer or null required

      The signed count of answers recorded, when verified; else null.

PersonalCopyLabelRequest

no additional properties

  • item string required

    psn_ then 32 lower-case hexadecimal digits.

    Details

    ^psn_[0-9a-f]{32}$

  • label string or null required

    null 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

  • status string required

    "saved" or "cleared"

PersonalCopiesRequest

no additional properties

  • items array of string required

    Saved copies of this account, as the table lists them (at most a page).

    min items 1, max items 25

PersonalCopiesRemoved

no additional properties

  • results array of object required

    max items 25

    Show propertiesHide properties

    no additional properties

    • item string required

      psn_ then 32 lower-case hexadecimal digits.

      Details

      ^psn_[0-9a-f]{32}$

    • outcome string required

      "removed", "held", "not_found", "failed", "not_attempted" or "unknown"

      Each item, exactly (D8): removed in its own committed transaction; not_found not 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); held a justified hold delays it (never named); failed not removed: its removal failed and the copy, read under its lock, is still saved; not_attempted the request’s time bound or the session ended before it; unknown its removal failed and what happened could not be read in time.

ProtectedResourceMetadata

no additional properties

  • resource string required

    The MCP resource (RFC 8707): the deployment’s MCP endpoint, the /mcp path on its MCP host.

  • authorization_servers array of string required

    min items 1, max items 1

  • scopes_supported array of "sess:interact" required

  • bearer_methods_supported array of "header" required

  • resource_name string required

AuthorizationServerMetadata

no additional properties

  • issuer string required

  • authorization_endpoint string required

  • token_endpoint string required

  • registration_endpoint string required

  • revocation_endpoint string required

  • scopes_supported array of "sess:interact" required

  • response_types_supported array of "code" required

  • response_modes_supported array of "query" required

  • grant_types_supported array required

    array of "authorization_code" or "refresh_token"

  • token_endpoint_auth_methods_supported array of "none" required

  • revocation_endpoint_auth_methods_supported array of "none" required

  • code_challenge_methods_supported array of "S256" required

  • client_id_metadata_document_supported boolean required

    true

  • authorization_response_iss_parameter_supported boolean required

    true

OAuthTokenResponse

no additional properties

  • access_token string required

    Bearer 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_type string required

    "Bearer"

  • expires_in integer required

    minimum 1

  • refresh_token string required

    Single 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}$

  • scope string required

    "sess:interact"

OAuthErrorResponse

no additional properties

  • error string 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_description string

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_uris array of string required

    min items 1, max items 10

  • client_name string

    max length 100

  • token_endpoint_auth_method string

    "none"

  • grant_types array

    array of "authorization_code" or "refresh_token"

  • response_types array of "code"

ClientRegistrationResponse

no additional properties

  • client_id string required

    hcl_ then 32 lower-case hexadecimal digits.

    Details

    ^hcl_[0-9a-f]{32}$

  • client_id_issued_at integer required

  • client_name string required

  • redirect_uris array of string required

  • token_endpoint_auth_method string required

    "none"

  • grant_types array required

    array of "authorization_code" or "refresh_token"

  • response_types array of "code" required

TargetRegisterRequest

no additional properties

  • type string required

    "http"

    The only supported target protocol type.

  • endpoint string required

    Absolute 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

  • capability object required

    no additional properties

    Show propertiesHide properties
    • name string required

      A lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.

      Details

      ^[a-z][a-z0-9_.-]{0,63}$

    • version string required

      A 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_schema object required

      JSON 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.

  • grant object required

    no additional properties

    Show propertiesHide properties
    • audiences array of string required

      The 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_seconds integer required

      How long an issued grant lives.

      minimum 60, maximum 86400

  • budget object required

    no additional properties

    Show propertiesHide properties
    • max_concurrent integer required

      minimum 1, maximum 100

    • max_starts_per_day integer required

      minimum 1, maximum 100000

  • enabled boolean

    Default true.

  • default_expires_in integer

    Advanced. 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

  • enabled boolean

  • capability object

    no additional properties

    Show propertiesHide properties
    • name string required

      A lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.

      Details

      ^[a-z][a-z0-9_.-]{0,63}$

    • version string required

      A 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_schema object required

      JSON 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.

  • grant object

    no additional properties

    Show propertiesHide properties
    • audiences array of string required

      The 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_seconds integer required

      How long an issued grant lives.

      minimum 60, maximum 86400

  • budget object

    no additional properties

    Show propertiesHide properties
    • max_concurrent integer required

      minimum 1, maximum 100

    • max_starts_per_day integer required

      minimum 1, maximum 100000

  • default_expires_in integer or null

TargetSharingRequest

min properties 1, no additional properties

  • name string or null

    Lower-case letters and digits, starting with a letter, with single hyphens between words.

    Details

    ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

  • shared boolean

    Turning sharing on needs a name and a title, in this request or already set. Any change while shared needs the title too.

  • title string or null

  • description string or null

  • attribution string or null

  • ask_again boolean

TargetResponse

no additional properties

  • id string required

    tgt_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

  • type string required

    "http"

  • endpoint string required

  • version integer required

    Incremented 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

  • capability object required

    no additional properties

    Show propertiesHide properties
    • name string required

      A lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.

      Details

      ^[a-z][a-z0-9_.-]{0,63}$

    • version string required

      A 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_schema object required

      JSON 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.

  • grant object required

    no additional properties

    Show propertiesHide properties
    • audiences array of string required

      The 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_seconds integer required

      How long an issued grant lives.

      minimum 60, maximum 86400

  • budget object required

    no additional properties

    Show propertiesHide properties
    • max_concurrent integer required

      minimum 1, maximum 100

    • max_starts_per_day integer required

      minimum 1, maximum 100000

  • enabled boolean required

  • verification object required

    no additional properties

    Show propertiesHide properties
    • status string required

      "pending" or "verified"

    • token string required

      Publish it at well_known_url (public by design).

    • well_known_url string required

    • verified_at string or null required

    • expires_at string or null required

  • counts object required

    Owner-only counts; never public.

    no additional properties

    Show propertiesHide properties
    • started integer required

      minimum 0

    • completed integer required

      minimum 0

  • sharing object required

    no additional properties

    Show propertiesHide properties
    • name string or null required

      Lower-case letters and digits, starting with a letter, with single hyphens between words.

      Details

      ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

    • shared boolean required

      Off by default. While false, /a/{name} answers 404 and its starts stop.

    • title string or null required

    • description string or null required

    • attribution string or null required

    • ask_again boolean required

      Off 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_in integer or null required

    The advisory link lifetime in seconds; null: none (the plan’s lifetime).

  • created_at string required

TargetListResponse

no additional properties

  • targets array of object required

    Show propertiesHide properties

    no additional properties

    • id string required

      tgt_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

    • type string required

      "http"

    • endpoint string required

    • version integer required

      Incremented 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

    • capability object required

      no additional properties

      Show propertiesHide properties
      • name string required

        A lower-case letter, then up to 63 lower-case letters, digits, dots, hyphens or underscores.

        Details

        ^[a-z][a-z0-9_.-]{0,63}$

      • version string required

        A 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_schema object required

        JSON 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.

    • grant object required

      no additional properties

      Show propertiesHide properties
      • audiences array of string required

        The 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_seconds integer required

        How long an issued grant lives.

        minimum 60, maximum 86400

    • budget object required

      no additional properties

      Show propertiesHide properties
      • max_concurrent integer required

        minimum 1, maximum 100

      • max_starts_per_day integer required

        minimum 1, maximum 100000

    • enabled boolean required

    • verification object required

      no additional properties

      Show propertiesHide properties
      • status string required

        "pending" or "verified"

      • token string required

        Publish it at well_known_url (public by design).

      • well_known_url string required

      • verified_at string or null required

      • expires_at string or null required

    • counts object required

      Owner-only counts; never public.

      no additional properties

      Show propertiesHide properties
      • started integer required

        minimum 0

      • completed integer required

        minimum 0

    • sharing object required

      no additional properties

      Show propertiesHide properties
      • name string or null required

        Lower-case letters and digits, starting with a letter, with single hyphens between words.

        Details

        ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

      • shared boolean required

        Off by default. While false, /a/{name} answers 404 and its starts stop.

      • title string or null required

      • description string or null required

      • attribution string or null required

      • ask_again boolean required

        Off 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_in integer or null required

      The advisory link lifetime in seconds; null: none (the plan’s lifetime).

    • created_at string required

TargetVerificationDocument

  • target_id string required

    tgt_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

  • token string required

GrantIssueRequest

no additional properties

  • audience string required

    max 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

  • grant object required

    no additional properties

    Show propertiesHide properties
    • id string required

      tgr_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^tgr_[0-9A-HJKMNP-TV-Z]{26}$

    • target_id string required

      tgt_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

    • target_version integer required

      minimum 1

    • capability object required

      no additional properties

      Show propertiesHide properties
      • name string required

      • version string required

    • audience string required

    • expires_at string required

    • revoked_at string or null required

  • secret string required

    Shown 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

  • grant object required

    no additional properties

    Show propertiesHide properties
    • id string required

      tgr_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^tgr_[0-9A-HJKMNP-TV-Z]{26}$

    • target_id string required

      tgt_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

    • target_version integer required

      minimum 1

    • capability object required

      no additional properties

      Show propertiesHide properties
      • name string required

      • version string required

    • audience string required

    • expires_at string required

    • revoked_at string or null required

InvocationStartRequest

no additional properties

  • request_id string required

    One 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}$

  • input object required

InvocationStartResponse

no additional properties

  • invocation object required

    no additional properties

    Show propertiesHide properties
    • id string required

      inv_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^inv_[0-9A-HJKMNP-TV-Z]{26}$

    • status string 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.

    • reason string or null required

      1 to 40 lower-case letters or underscores.

      Details

      ^[a-z_]{1,40}$

    • request_id string required

    • target_version integer required

      minimum 1

    • capability object required

      no additional properties

      Show propertiesHide properties
      • name string required

      • version string required

    • created_at string required

    • expires_at string required

    • finished_at string or null required

    • result object or null required

  • participant_credential string required

    Status, 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

  • id string required

    inv_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^inv_[0-9A-HJKMNP-TV-Z]{26}$

  • status string 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.

  • reason string or null required

    1 to 40 lower-case letters or underscores.

    Details

    ^[a-z_]{1,40}$

  • request_id string required

  • target_version integer required

    minimum 1

  • capability object required

    no additional properties

    Show propertiesHide properties
    • name string required

    • version string required

  • created_at string required

  • expires_at string required

  • finished_at string or null required

  • result object or null required

InvocationResultRequest

no additional properties

  • invocation_id string required

    inv_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^inv_[0-9A-HJKMNP-TV-Z]{26}$

  • target_version integer required

    minimum 1

  • status string required

    "completed" or "failed"

  • result object

TargetDispatch

no additional properties

  • type string required

    "sess.invocation"

  • invocation_id string required

    inv_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^inv_[0-9A-HJKMNP-TV-Z]{26}$

  • request_id string required

  • target_id string required

    tgt_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

  • target_version integer required

  • capability object required

    no additional properties

    Show propertiesHide properties
    • name string required

    • version string required

  • input object required

  • limits object required

    no additional properties

    Show propertiesHide properties
    • accepted_rounds integer required

      minimum 1

    • expires_in integer

      The 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_at string required

  • callback object required

    no additional properties

    Show propertiesHide properties
    • url string required

    • credential string required

      Present as Authorization: Bearer on the callback URL; one dispatch only.

TargetDispatchAnswer

no additional properties

  • invocation_id string required

    inv_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^inv_[0-9A-HJKMNP-TV-Z]{26}$

  • target_version integer required

  • status string required

    "accepted", "completed" or "failed"

  • result object

AccountUsageResponse

no additional properties

  • plan object required

    no additional properties

    Show propertiesHide properties
    • id string required

      "free", "starter" or "pro"

    • name string required

      min length 1

    • price_usd_cents integer required

      US dollars per month in cents, excluding applicable taxes.

      minimum 0

    • resolved_per_period integer required

      Resolved Sessions per period: the plan total. No overage is charged.

      minimum 1

    • active_sessions integer required

      minimum 1

    • live_hours integer required

      The human-link lifetime a new Session gets (captured at admission).

      minimum 1

    • retention_hours_after_end integer required

      How 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

  • period object required

    no additional properties

    Show propertiesHide properties
    • usage_from string required

      Resolutions 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_at string required

      The 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$

  • usage object required

    no additional properties

    Show propertiesHide properties
    • resolved integer required

      Resolved Sessions in this period.

      minimum 0

    • allowance integer required

      minimum 1

    • reserved integer required

      Admitted 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

    • available integer required

      New Sessions the allowance still admits: allowance − resolved − reserved.

      minimum 0

    • active integer required

      minimum 0

    • active_limit integer required

      minimum 1

  • warnings array required

    array of "allowance_80" or "allowance_100"

    allowance_80 at 80% of the allowance used, allowance_100 at 100%.

  • paused string or null required

    "monthly_allowance" or "active_sessions" or null

    Why a new Session would be refused now (429 PLAN_LIMIT_REACHED with this reason); null when it would be admitted.

BillingCheckoutRequest

no additional properties

  • plan string required

    "starter" or "pro"

    The paid plan to upgrade to.

BillingCheckoutResponse

no additional properties

  • plan string required

    "starter" or "pro"

  • checkout_url string required

    The 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_at string required

    When 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

  • received boolean required

    true

EvidenceRecordSummary

no additional properties

  • event_id string required

  • session_id string required

  • custody string 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.

  • sequence integer or null required

    The committed workspace custody sequence (archival); null for exception.

  • accepted_at string required

    The receipt’s asserted acceptance time.

  • preserved_at string required

    When custody began: at acceptance, by the later backfill, or the exception.

  • origin string or null required

    "acceptance" or "backfill" or null

  • witness string 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_id string or null required

    The target the archival core binds, or null (no target binding).

  • exception null or object required

    null 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_retained boolean required

    True 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

  • scope object required

    no additional properties

    Show propertiesHide properties
    • label string required

      "issued records in this defined scope/range"

    • complete_history boolean required

      false

      Always false: no anchored high-water/count evidence and reconciliation exist yet, so a list or export is never a complete history.

    • custody string 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.

    • filters object required

      no additional properties

      Show propertiesHide properties
      • target_id string

      • accepted_from string

      • accepted_to string

      • from_sequence integer

      • to_sequence integer

  • records array of object required

    Show propertiesHide properties

    no additional properties

    • event_id string required

    • session_id string required

    • custody string 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.

    • sequence integer or null required

      The committed workspace custody sequence (archival); null for exception.

    • accepted_at string required

      The receipt’s asserted acceptance time.

    • preserved_at string required

      When custody began: at acceptance, by the later backfill, or the exception.

    • origin string or null required

      "acceptance" or "backfill" or null

    • witness string 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_id string or null required

      The target the archival core binds, or null (no target binding).

    • exception null or object required

      null 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_retained boolean required

      True 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_cursor string 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

  • custody string

    "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_sequence integer

    minimum 1, maximum 9007199254740991

  • to_sequence integer

    minimum 1, maximum 9007199254740991

  • accepted_from string

    Accepted 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_to string

    Accepted 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_id string

    tgt_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^tgt_[0-9A-HJKMNP-TV-Z]{26}$

  • limit integer

    At most this many records (default 100).

    minimum 1, maximum 100

  • cursor string

    Opaque. 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

  • type string required

    "sess.evidence-export"

  • version number required

    1

  • disclosure string 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_at string required

  • workspace_id string required

  • scope object required

    no additional properties

    Show propertiesHide properties
    • label string required

      "issued records in this defined scope/range"

    • complete_history boolean required

      false

      Always false: no anchored high-water/count evidence and reconciliation exist yet, so a list or export is never a complete history.

    • custody string 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.

    • filters object required

      no additional properties

      Show propertiesHide properties
      • target_id string

      • accepted_from string

      • accepted_to string

      • from_sequence integer

      • to_sequence integer

  • range object required

    no additional properties

    Show propertiesHide properties
    • count integer required

      minimum 0

    • first_sequence integer or null required

    • last_sequence integer or null required

    • truncated boolean required

      True when more records match: continue with next_cursor.

    • next_cursor string or null required

  • records array of object required

    Show propertiesHide properties

    no additional properties

    • event_id string required

    • session_id string required

    • custody string 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.

    • sequence integer or null required

      The committed workspace custody sequence (archival); null for exception.

    • accepted_at string required

      The receipt’s asserted acceptance time.

    • preserved_at string required

      When custody began: at acceptance, by the later backfill, or the exception.

    • origin string or null required

      "acceptance" or "backfill" or null

    • witness string 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_id string or null required

      The target the archival core binds, or null (no target binding).

    • exception null or object required

      null 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.

    • receipt string required

      The exact original receipt-v1 compact JWS.

    • receipt_digest string required

      sha256: then 64 lower-case hexadecimal digits.

      Details

      ^sha256:[0-9a-f]{64}$

    • archival object or null required

      The 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.

    • content object required

      Included only while retained, and only for the authenticated workspace.

      Show propertiesHide properties
      • status string required

        "retained" or "unavailable"

      • surface_revision integer required

        Only when status is "retained".

        minimum 1

      • surface object required

        The exact interaction of that revision (what the receipt hashes).

        Only when status is "retained".

      • input any required

        The accepted input (what the receipt hashes).

        Only when status is "retained".

      • reason string required

        "purged"

        Only when status is "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_id string required

  • status string 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.

  • custody string 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.

  • restriction null or object required

  • deletion null or object required

CreateAskRequest

no additional properties

  • interaction object required

    no additional properties

    Show propertiesHide properties
    • mode string required

      "interactive"

    • title string required

      The 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

    • description string

      Optional 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

    • locale string

      Advanced. 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}$

    • progress object

      Advanced. 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
      • step integer required

        minimum 1, maximum 20

      • total integer required

        minimum 1, maximum 20

    • source object required

      no additional properties

      Show propertiesHide properties
      • kind string required

        "sess_surface"

      • components array of object required

        The page's content, in order. How your page looks.

        min items 1, max items 100

        Show propertiesHide properties
        • type string required

          min length 1, max length 64

    • actions array of object required

      min items 1, max items 5

      Show propertiesHide properties

      no additional properties

      • id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • label string required

        A 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

      • intent string

        "submit", "continue", "approve", "reject" or "request_change"

    • response_policy string

      "first"

      One accepted response per revision (the only P1 policy; the default).

  • respondents object required

    no additional properties

    Show propertiesHide properties
    • max integer required

      How 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.

    • name boolean

      Advanced. 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_in integer

    Advanced. 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_in integer

    Advanced. 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_complete boolean

    Advanced. 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

  • id string required

    ask_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ask_[0-9A-HJKMNP-TV-Z]{26}$

  • revision integer required

    Round one.

    minimum 1

  • human_url string required

    The link to share with everyone who should answer. Each person gets their own page.

  • action_expires_at string required

    The Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.

  • max integer required

    minimum 1

AskResponse

no additional properties

  • id string required

    ask_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ask_[0-9A-HJKMNP-TV-Z]{26}$

  • status string required

    "open" or "closed"

  • closed_by string or null required

    "max" or "owner" or "deadline" or null

    Which closed it: max (the last place was started), owner (you closed it) or deadline. Null while open.

  • closed_at string or null required

  • max integer required

    minimum 1

  • action_expires_at string required

    The Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.

  • auto_complete boolean required

  • counts object required

    no additional properties

    Show propertiesHide properties
    • started integer required

      Starts admitted: each made one respondent Session.

      minimum 0

    • answered integer required

      Respondents with at least one accepted answer.

      minimum 0

    • completed integer required

      Respondents whose Session is completed.

      minimum 0

    • refused object required

      no additional properties

      Show propertiesHide properties
      • full integer required

        Starts refused because every place was taken.

        minimum 0

      • closed integer required

        Starts refused after you closed the Ask.

        minimum 0

      • deadline integer required

        Starts refused after the deadline.

        minimum 0

      • minimum_time integer required

        Starts refused because less than a minute was left.

        minimum 0

      • burst integer required

        Starts refused by the per-Ask limit of 30 Starts a minute.

        minimum 0

      • paused integer required

        Starts refused by your plan (the person saw that it is paused).

        minimum 0

      • network integer required

        Trial Asks only: Starts refused by the network’s trial allowance.

        minimum 0

  • sessions array of object required

    Respondents in Start order, then by id; one page.

    Show propertiesHide properties

    no additional properties

    • id string required

      ses_ then 26 capital letters and digits, without I, L, O or U.

      Details

      ^ses_[0-9A-HJKMNP-TV-Z]{26}$

    • status string required

      "active", "responded", "completed" or "purged"

      The respondent Session’s status, as GET /v1/sessions/{id} reads it; purged once its content is deleted (a tombstone: times only).

    • revision integer required

      Its current revision.

      minimum 1

    • started_at string required

    • completed_at string or null required

    • responses array of object required

      Every accepted answer, in order (none for a tombstone).

      Show propertiesHide properties

      no additional properties

      • event_id string required

        evt_ then 26 capital letters and digits, without I, L, O or U.

        Details

        ^evt_[0-9A-HJKMNP-TV-Z]{26}$

      • sequence integer required

        Monotonic per-Session Event sequence.

        minimum 1

      • revision integer required

        The Surface revision it was accepted on.

        minimum 1

      • action_id string required

        A lower-case letter, then up to 31 lower-case letters, digits or underscores.

        Details

        ^[a-z][a-z0-9_]{0,31}$

      • data object required

        The normalized typed result, valid against that revision’s response_schema.

      • actor object required

        no additional properties

        Show propertiesHide properties
        • assurance string required

          "link_holder"

      • accepted_at string required

        ISO 8601 UTC time of acceptance.

      • receipt string or null required

        The 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_envelope object

        Present 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_revision number required

          2

          The envelope’s own schema version.

        • revision integer required

          minimum 1

        • session_id string required

          min length 5, max length 200

        • surface_hash string required

          RFC 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_version string required

          min length 1, max length 200

        • published_at string required

          When 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_id string or null required

          The 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_id string or null required

          A Session grant’s ID; null when no grant published the revision.

        • agent_target object or null required

          The registered address the Session was started from, as at Start (its Target, the Target’s version and the address name); null otherwise.

        • ask_id string or null required

          The Ask a respondent’s Session belongs to; null otherwise.

        • titles object required

          The 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
          • nonce string required

            16 random bytes drawn when the revision was published (base64url).

            22 letters, digits, hyphens or underscores.

            Details

            ^[A-Za-z0-9_-]{22}$

          • grant_title string or null required

          • target_title string or null required

          • owner_name string or null required

  • next_cursor string or null required

    Pass as cursor to read the next page; null on the last page.

AskCloseResponse

no additional properties

  • id string required

    ask_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ask_[0-9A-HJKMNP-TV-Z]{26}$

  • status string required

    "open" or "closed"

  • closed_by string or null required

    "max" or "owner" or "deadline" or null

    Which closed it: max (the last place was started), owner (you closed it) or deadline. Null while open.

  • closed_at string or null required

  • max integer required

    minimum 1

  • action_expires_at string required

    The Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.

  • auto_complete boolean required

  • counts object required

    no additional properties

    Show propertiesHide properties
    • started integer required

      Starts admitted: each made one respondent Session.

      minimum 0

    • answered integer required

      Respondents with at least one accepted answer.

      minimum 0

    • completed integer required

      Respondents whose Session is completed.

      minimum 0

    • refused object required

      no additional properties

      Show propertiesHide properties
      • full integer required

        Starts refused because every place was taken.

        minimum 0

      • closed integer required

        Starts refused after you closed the Ask.

        minimum 0

      • deadline integer required

        Starts refused after the deadline.

        minimum 0

      • minimum_time integer required

        Starts refused because less than a minute was left.

        minimum 0

      • burst integer required

        Starts refused by the per-Ask limit of 30 Starts a minute.

        minimum 0

      • paused integer required

        Starts refused by your plan (the person saw that it is paused).

        minimum 0

      • network integer required

        Trial Asks only: Starts refused by the network’s trial allowance.

        minimum 0

TrialCreateAskResponse

no additional properties

  • id string required

    ask_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ask_[0-9A-HJKMNP-TV-Z]{26}$

  • revision integer required

    Round one.

    minimum 1

  • human_url string required

    The link to share with everyone who should answer. Each person gets their own page.

  • action_expires_at string required

    The Ask’s deadline: an RFC 3339 UTC instant with milliseconds. From it no one new may start.

  • max integer required

    minimum 1

  • workspace_id string required

    The trial workspace this Ask belongs to.

  • management_credential string

    Returned 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_at string required

    After this instant the trial admits no further respondent or Session.

AskClosedDelivery

no additional properties

  • type string required

    "ask.closed"

  • event_id string required

    Stable across retries and redeliveries: deduplicate on it.

  • ask_id string required

    ask_ then 26 capital letters and digits, without I, L, O or U.

    Details

    ^ask_[0-9A-HJKMNP-TV-Z]{26}$

  • closed_by string required

    "max" or "owner"

  • started integer required

    Starts admitted when it closed.

    minimum 0

  • closed_at string required

Was this page useful?

Tell us more

Thanks for telling us.

You’ve sent a lot of answers in the last hour. Please try again later.

This couldn’t be sent right now. Please try again later.

That didn’t go through. Keep your note under 280 characters and send it again.

No account needed. We keep your answer, your note and this page’s address for a year, with a one-way code of your network address to stop abuse. Please leave out personal details.