THIDE
All APIs

Client API

https://thide.io/api/v1Download OpenAPI

Connect

From an AI assistant, add https://thide.io/mcp/client as a connector and sign in to THIDE when asked. In ChatGPT, choose OAuth only and sign in during connector setup. No key is needed, and the consent screen lets you grant only what the task needs.

From your own software, create an API key in your profile menu → API and send both headers below with every call, over MCP or over this HTTP API. Keep the secret on your server.

keyId
x-thide-key-id
apiSecret
x-thide-secret

Endpoints

POST/mandatesIntake — create a mandate from the four-question form (or an automator).

UNAUTHENTICATED, DELIBERATELY. The other non-public routes require a caller identity (the terms and this contract are public), but intake stays open because a first-time client has no credential yet. It is protected by what it RETURNS: the accessToken, and — for a caller that presented no client or professional credential — creatorGrant, the signed grant that reads THIS request back for seven days, until it is paid (header x-thide-creator; see securitySchemes.creatorGrant). Without one of those the mandate is readable only with the client's own key or a verified browser session. Optional clientLanguage (en or nl) selects initial request notification language; it never changes an existing account preference. multipart/form-data (repeatable "file" fields) or JSON with file.contentBase64 (single, back-compat) and/or files:[{fileName, mimeType?, contentBase64}, …] (multi-document). Every uploaded file becomes its own downloadable 'source' document row; the quoted volume is the SUM of the per-file counts. Counts characters (manualCharCount is honoured ONLY with a professional credential — it records the count as a professional override, the TOTAL across all files, and extraction.method is then 'manual_override'; from a client or integrator it is ignored and the documents are counted): text extraction for digital files (.docx/.pdf/.txt/.md/.csv/.xlsx), time-boxed. No OCR runs in this request: a scanned PDF or an image comes back with charCount null, method 'needs_ocr' and extraction.countPending true, and the background reading queue reads it, quotes the job and mails the client when the reading lands (poll GET /mandates/{id}). Stores the source documents, prices standard pairs from the professional's matrix and e-mails both sides. Since 2026-08-21 that price is INDICATIVE for human work — the mandate STAYS 'submitted' with a saved quote until the professional confirms it (POST /mandates/{id}/decision action 'send'), which is when the client receives the payment link; only the machine tier auto-releases to 'quoted'. If ANY file cannot be counted yet (queued for reading, or unreadable) the WHOLE mandate stays 'submitted' with extraction.method 'needs_ocr' — a partial volume is never quoted; the translator confirms the total. Ad-hoc pairs stay 'submitted' with a saved quote (requiresManualRate=true, zeroed amounts — the translator provides the rate in the studio). Guardrails (apps/web/src/lib/upload-limits.ts): each upload is capped at 100 MiB (104857600 bytes), one request at 30 files and 200 MiB (209715200 bytes) of RAW documents. Caps are inclusive; 1 MiB = 1048576 bytes. Separately, multipart bodies allow 210763776 bytes (201 MiB), and base64 JSON bodies allow 280668964 bytes, including expansion, per-file padding and 1 MiB of framing/fields. Content-Length above the applicable BODY cap is refused before reading; chunked API bodies are capped while streaming (413 payload_too_large). Decoded documents must still satisfy the raw caps. Reduce sizes, split into separate requests, or contact THIDE for help with a larger upload. Rejected requests are not stored or quoted. An implausible auto-counted volume (> 2M characters) pauses like an uncountable scan instead of auto-quoting. LEGALISATION: send documentCategory ('civil_status' | 'diploma' | 'notarial' | 'commercial' | 'other') for sworn work. It is what decides the answer inside the EU — Regulation (EU) 2016/1191 exempts an enumerated list of civil-status facts, so a diploma or a company document still needs an apostille between member states. Omit it and the recommendation reports that it cannot tell yet rather than guessing. The result is a RECOMMENDATION either side can override at /mandates/{id}/legalisation. THE ORIGINAL'S OWN LEG: optionally send issuingCountry (ISO alpha-2, sworn only) — where the ORIGINAL document was issued. An apostille certifies the official who signed the original, so only the issuing country can legalise it (a Mexican birth certificate → Mexico, never Belgium), whatever language it is in. Powers the envelope's legalisation.original advisory; never prices or pauses anything. extraction.detectedIssuingCountry suggests it when the document carries its state's formal name. SUBJECT: optional subject string (at most 160 characters), supplied by the client. Retained on every resulting mandate; the internal id remains unchanged. MULTI-LANGUAGE FAN-OUT: send targetLanguages: ["fr","en"] (JSON array; in multipart a JSON-encoded string field) instead of targetLanguage, and the same documents are ordered into EACH language. Every pair becomes its own mandate — its own quote, escrow, apostille, delivery and sign-off — sharing a requestGroupId, and the response becomes {requestGroup: {id, count}, mandates: [MandateEnvelope...], extraction} with a DISTINCT accessToken per mandate. One target (or a deduped list of one) keeps the original single-envelope shape exactly. Payment note — THE WHOLE-REQUEST RULE: the professional confirms all human members together. A mixed Machine/human request waits for its complete quote before any member can be paid. Use POST /request-groups/{id}/pay for the full unpaid quote; a single-item payment of a subset is 409 illegal_transition ("Pay the complete quote together."). An incomplete or unusable active quote is also 409 illegal_transition. Historical paid or declined members are excluded from the new charge. Standalone Machine work remains independently payable; urgent Machine work must be submitted separately. A non-standard deadlineBucket is accepted only while the service offers the deadline choice (see GET /catalog deadlines) — otherwise the intake answers 400. TERMS GATE: acceptedTerms is REQUIRED — an array of {id, version} covering every id in GET /terms.requiredForMandate, at the version currently served. Naming the version is the point: an agent acting for a client must be pinned to text it actually fetched, and a stale cached version is refused rather than silently binding the client. In multipart, send it as a JSON-encoded string field. The accepted versions and their content hashes are stored on the mandate and are readable afterwards at GET /mandates/{id}/terms. WHO PAYS: payerType 'individual' (default) or 'company'. A company MUST send companyBilling — the invoice is made out to it; omitting it is 400 validation. Company name and VAT number, plus the registered address either as one `address` line or as the four parts street / postalCode / city / country (ISO-2) — see the companyBilling schema for the Belgian VAT rule.

{
  "summary": "Intake — create a mandate from the four-question form (or an automator).",
  "security": [
    {},
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "$ref": "#/components/parameters/IdempotencyKey"
    }
  ],
  "description": "UNAUTHENTICATED, DELIBERATELY. The other non-public routes require a caller identity (the terms and this contract are public), but intake stays open because a first-time client has no credential yet. It is protected by what it RETURNS: the accessToken, and — for a caller that presented no client or professional credential — creatorGrant, the signed grant that reads THIS request back for seven days, until it is paid (header x-thide-creator; see securitySchemes.creatorGrant). Without one of those the mandate is readable only with the client's own key or a verified browser session. Optional clientLanguage (en or nl) selects initial request notification language; it never changes an existing account preference. multipart/form-data (repeatable \"file\" fields) or JSON with file.contentBase64 (single, back-compat) and/or files:[{fileName, mimeType?, contentBase64}, …] (multi-document). Every uploaded file becomes its own downloadable 'source' document row; the quoted volume is the SUM of the per-file counts. Counts characters (manualCharCount is honoured ONLY with a professional credential — it records the count as a professional override, the TOTAL across all files, and extraction.method is then 'manual_override'; from a client or integrator it is ignored and the documents are counted): text extraction for digital files (.docx/.pdf/.txt/.md/.csv/.xlsx), time-boxed. No OCR runs in this request: a scanned PDF or an image comes back with charCount null, method 'needs_ocr' and extraction.countPending true, and the background reading queue reads it, quotes the job and mails the client when the reading lands (poll GET /mandates/{id}). Stores the source documents, prices standard pairs from the professional's matrix and e-mails both sides. Since 2026-08-21 that price is INDICATIVE for human work — the mandate STAYS 'submitted' with a saved quote until the professional confirms it (POST /mandates/{id}/decision action 'send'), which is when the client receives the payment link; only the machine tier auto-releases to 'quoted'. If ANY file cannot be counted yet (queued for reading, or unreadable) the WHOLE mandate stays 'submitted' with extraction.method 'needs_ocr' — a partial volume is never quoted; the translator confirms the total. Ad-hoc pairs stay 'submitted' with a saved quote (requiresManualRate=true, zeroed amounts — the translator provides the rate in the studio). Guardrails (apps/web/src/lib/upload-limits.ts): each upload is capped at 100 MiB (104857600 bytes), one request at 30 files and 200 MiB (209715200 bytes) of RAW documents. Caps are inclusive; 1 MiB = 1048576 bytes. Separately, multipart bodies allow 210763776 bytes (201 MiB), and base64 JSON bodies allow 280668964 bytes, including expansion, per-file padding and 1 MiB of framing/fields. Content-Length above the applicable BODY cap is refused before reading; chunked API bodies are capped while streaming (413 payload_too_large). Decoded documents must still satisfy the raw caps. Reduce sizes, split into separate requests, or contact THIDE for help with a larger upload. Rejected requests are not stored or quoted. An implausible auto-counted volume (> 2M characters) pauses like an uncountable scan instead of auto-quoting.\nLEGALISATION: send documentCategory ('civil_status' | 'diploma' | 'notarial' | 'commercial' | 'other') for sworn work. It is what decides the answer inside the EU — Regulation (EU) 2016/1191 exempts an enumerated list of civil-status facts, so a diploma or a company document still needs an apostille between member states. Omit it and the recommendation reports that it cannot tell yet rather than guessing. The result is a RECOMMENDATION either side can override at /mandates/{id}/legalisation.\nTHE ORIGINAL'S OWN LEG: optionally send issuingCountry (ISO alpha-2, sworn only) — where the ORIGINAL document was issued. An apostille certifies the official who signed the original, so only the issuing country can legalise it (a Mexican birth certificate → Mexico, never Belgium), whatever language it is in. Powers the envelope's legalisation.original advisory; never prices or pauses anything. extraction.detectedIssuingCountry suggests it when the document carries its state's formal name.\nSUBJECT: optional subject string (at most 160 characters), supplied by the client. Retained on every resulting mandate; the internal id remains unchanged.\nMULTI-LANGUAGE FAN-OUT: send targetLanguages: [\"fr\",\"en\"] (JSON array; in multipart a JSON-encoded string field) instead of targetLanguage, and the same documents are ordered into EACH language. Every pair becomes its own mandate — its own quote, escrow, apostille, delivery and sign-off — sharing a requestGroupId, and the response becomes {requestGroup: {id, count}, mandates: [MandateEnvelope...], extraction} with a DISTINCT accessToken per mandate. One target (or a deduped list of one) keeps the original single-envelope shape exactly. Payment note — THE WHOLE-REQUEST RULE: the professional confirms all human members together. A mixed Machine/human request waits for its complete quote before any member can be paid. Use POST /request-groups/{id}/pay for the full unpaid quote; a single-item payment of a subset is 409 illegal_transition (\"Pay the complete quote together.\"). An incomplete or unusable active quote is also 409 illegal_transition. Historical paid or declined members are excluded from the new charge. Standalone Machine work remains independently payable; urgent Machine work must be submitted separately. A non-standard deadlineBucket is accepted only while the service offers the deadline choice (see GET /catalog deadlines) — otherwise the intake answers 400.\nTERMS GATE: acceptedTerms is REQUIRED — an array of {id, version} covering every id in GET /terms.requiredForMandate, at the version currently served. Naming the version is the point: an agent acting for a client must be pinned to text it actually fetched, and a stale cached version is refused rather than silently binding the client. In multipart, send it as a JSON-encoded string field. The accepted versions and their content hashes are stored on the mandate and are readable afterwards at GET /mandates/{id}/terms.\nWHO PAYS: payerType 'individual' (default) or 'company'. A company MUST send companyBilling — the invoice is made out to it; omitting it is 400 validation. Company name and VAT number, plus the registered address either as one `address` line or as the four parts street / postalCode / city / country (ISO-2) — see the companyBilling schema for the Belgian VAT rule.\n",
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "clientEmail",
            "clientName",
            "subject",
            "sourceLanguage",
            "kind",
            "gdprConsent",
            "pretranslationGateAck",
            "acceptedTerms"
          ],
          "properties": {
            "clientEmail": {
              "type": "string",
              "format": "email"
            },
            "clientName": {
              "type": "string",
              "minLength": 1
            },
            "clientLanguage": {
              "type": "string",
              "enum": [
                "en",
                "nl"
              ]
            },
            "subject": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "description": "Required client reference; whitespace-only values are rejected."
            },
            "requestedDate": {
              "type": "string",
              "format": "date",
              "description": "Optional day the client would like the work by (YYYY-MM-DD): from tomorrow up to six months ahead, in Brussels days; any other day is refused with 400. Indicative; no price effect."
            },
            "message": {
              "type": "string",
              "maxLength": 4000,
              "description": "Optional message to the translator, recorded as the request's first message on its thread (request-wide; nothing extra is mailed). Context documents travel only as multipart `attachment` parts (same limits and virus scan as message attachments) and need a line of text (2 Nov 2026)."
            },
            "sourceLanguage": {
              "type": "string",
              "description": "A supported language code (see GET /catalog)."
            },
            "targetLanguage": {
              "type": "string",
              "description": "One target; or targetLanguages (1–10) for a fan-out. One of the two is required."
            },
            "targetLanguages": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1,
              "maxItems": 10
            },
            "kind": {
              "type": "string",
              "enum": [
                "regular",
                "sworn"
              ]
            },
            "destinationCountry": {
              "type": "string",
              "description": "ISO 3166-1 alpha-2 country among those offered for the target languages (countries[] in GET /catalog lists the union); required when kind is sworn (Certified)."
            },
            "issuingCountry": {
              "type": "string",
              "description": "ISO 3166-1 alpha-2 — where the original was issued (sworn only)."
            },
            "documentCategory": {
              "type": "string",
              "enum": [
                "civil_status",
                "diploma",
                "notarial",
                "commercial",
                "other"
              ]
            },
            "deadlineBucket": {
              "type": "string",
              "enum": [
                "rush_1_3d",
                "week_1",
                "month_1"
              ],
              "default": "week_1"
            },
            "payerType": {
              "type": "string",
              "enum": [
                "individual",
                "company"
              ],
              "description": "Explicit invoice recipient when the client has chosen one. Optional at intake; an omitted value is not a choice and must be resolved before payment. 'company' requires companyBilling."
            },
            "companyBilling": {
              "$ref": "#/components/schemas/CompanyBillingInput"
            },
            "gdprConsent": {
              "type": "boolean",
              "enum": [
                true
              ]
            },
            "pretranslationGateAck": {
              "type": "boolean",
              "enum": [
                true
              ]
            },
            "acceptedTerms": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "version"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                }
              }
            },
            "file": {
              "type": "object",
              "required": [
                "fileName",
                "contentBase64"
              ],
              "properties": {
                "fileName": {
                  "type": "string"
                },
                "mimeType": {
                  "type": "string"
                },
                "contentBase64": {
                  "type": "string"
                }
              }
            },
            "files": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "fileName",
                  "contentBase64"
                ],
                "properties": {
                  "fileName": {
                    "type": "string"
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "contentBase64": {
                    "type": "string"
                  }
                }
              }
            },
            "manualCharCount": {
              "type": "integer",
              "minimum": 1,
              "description": "Honoured only with a professional credential."
            }
          }
        }
      },
      "multipart/form-data": {
        "schema": {
          "type": "object",
          "description": "The same fields; repeat \"file\"; acceptedTerms, targetLanguages and companyBilling as JSON-encoded string fields. Repeat \"attachment\" for the context documents of `message` (2 Nov 2026)."
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "MandateEnvelope (with accessToken), creatorGrant for a caller without a client or professional credential (securitySchemes.creatorGrant) + extraction {charCount (the TOTAL across files, null when paused), method: text_extraction | ocr | needs_ocr, countPending: boolean, detectedLanguage: supported-set code or null, detectedOtherLabel: label for a language outside our catalogue (\"Polish\") or null, languageMismatch: boolean, files: [{fileName, charCount, method, detectedLanguage, rawCharCount (the full count before the repeat-section correction; equals charCount when nothing was corrected), photoEstimateChars} per uploaded file], detectedIssuingCountry (ISO alpha-2 read from the document's formal state name, or null — a suggestion for issuingCountry, never applied), detectedDocumentCategory (what the text claims to be, or null — a suggestion for documentCategory, never applied)}. A photo upload (png/jpg/…) is NEVER auto-quoted: its charCount is null and method 'needs_ocr'; photoEstimateChars is null in this response (the background reading records a rough estimate on the document for the professional, who enters the billable count). detectedLanguage is named only on certain evidence (the document's script or its function words; taken from the file with the largest text yield) — a trigram-only guess is not reported and never locks anything (2 Nov 2026); a mismatch with the declared sourceLanguage never blocks the mandate; automators should surface it to their end user. detectedLanguage and languageMismatch rest ONLY on text the engine accepted (a billable count or an accepted photo reading) — a paused scan or a photo with no readable text reports null / false, never a guess from the filename. READING: this request reads digital text only (~20 s budget); nothing is OCR'd inline. A scan or a photo comes back at once with charCount null, method 'needs_ocr' and countPending TRUE: it was handed to the background reading queue — the same admission-capped queue the web intake uses — which OCRs it (10-minute budget per document, two documents at a time on the host) and quotes the job when the reading lands. Consequently detectedLanguage, photoEstimateChars and languageMismatch are null / false for such a document at 201. For human translation, the result becomes an indicative quote awaiting professional confirmation; for machine translation, the ready quote is released and the client is mailed. Poll GET /mandates/{id} for the current quote and status. A document the queue cannot read either ends with the professional confirming the volume (POST /mandates/{id}/count), as does countPending FALSE with a null charCount. When the queue refuses the documents (capacity), the whole request answers 503 count_capacity with Retry-After and nothing is created.\n",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/IntakeResult"
          }
        }
      }
    },
    "400": {
      "description": "Validation error (incl. unparseable body, no file at all), or code terms_not_accepted when acceptedTerms is missing, incomplete, or names a version we no longer serve — the message states the current version. Also idempotency_key_invalid (malformed Idempotency-Key) and idempotency_requires_key (Idempotency-Key sent without an API key).\n"
    },
    "401": {
      "description": "unauthorized — an x-thide-key / x-thide-studio header was presented that matches no live key (revoked or unknown). Sending no header at all is fine: intake is open."
    },
    "403": {
      "description": "client_email_mismatch — a client key created the request under an e-mail that is not the key owner's; or forbidden — a professional key (Settings → API) may only create work it will own itself: refused for another professional's board and, while automatic routing is on, refused altogether (the request is allocated later). The operator bootstrap key is not affected. insufficient_scope — a keyed caller whose credential lacks workflow."
    },
    "409": {
      "description": "idempotency_in_flight — the same Idempotency-Key is still being processed; retry in a moment. (Also illegal_transition elsewhere.)"
    },
    "413": {
      "description": "payload_too_large — above 100 MiB per document, 30 files, or 200 MiB raw total; separately, above 210763776 multipart body bytes or 280668964 JSON body bytes. Body caps apply to Content-Length and streamed bytes; raw caps apply to decoded documents. Reduce, split, or contact THIDE; rejected requests are not stored or quoted."
    },
    "415": {
      "description": "Unsupported file type (names the offending file)."
    },
    "422": {
      "description": "idempotency_key_reused — this Idempotency-Key was used for a different request; or malware_detected — the virus scan refused a document (the message names it); nothing is stored or quoted."
    },
    "429": {
      "description": "rate_limited with Retry-After — the intake meters every caller per IP (30 / 10 min, before the body is read), all callers together (100 / 10 min, before the body is read, counted only for requests the per-IP meter admitted; when reached, intake is closed for everyone until the oldest request is ten minutes old — 5 Nov 2026) and per clientEmail (20 / 10 min, after it is parsed); keyed callers are also metered per key and per shared profile (120 / min).\n",
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer"
          },
          "description": "Seconds to wait before retrying."
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "partly_processed — with an Idempotency-Key only: the request failed after it had created at least one job. What was created is kept, the answer is stored, and a retry with the same key replays it instead of creating the request again. Read GET /mandates for what exists. (Any other 500 created nothing and may be retried.)"
    },
    "503": {
      "description": "terms_unavailable — the contracts did not ship with the build (nothing can be accepted); count_capacity — the background reading queue refused the scans (Retry-After in seconds; nothing created); scanner_unavailable — no virus-scan verdict (nothing created; retry later); or payments_not_configured on a later pay."
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "postMandates",
  "tags": [
    "Resources"
  ]
}
POST/request-groups/{id}/payOne checkout for a multi-language request.

Pays every payable member of a fan-out (status 'quoted' with a real total) in ONE checkout — a line item per language, a Payment row per member carrying its OWN quote total, so per-job escrow stays honest and declining one language later refunds exactly that job's share. THE WHOLE-REQUEST RULE (25 Sep 2026): a human request is paid as one unit. While ANY human member is still awaiting the professional (status 'submitted'), no human member is payable and the call is 409 illegal_transition "Your translator is confirming the complete quote. We’ll let you know when it is ready." — nothing is skipped and paid in part. 409 no_payable_quote means nothing in the group is payable for another reason (all paid, declined or still without a rate). `skipped` in the response lists members left out for another reason (already paid, declined, machine-tier work that pays on its own); `covered` lists what this checkout pays. Auth: the access token of ANY member mandate (with the recipient's VERIFIED portal session), or a client key owned by the group's e-mail. The creatorGrant an API caller received (x-thide-creator) and the creator cookie of the browser that filed the request are never charged: once the whole request is payable they get 403 verification_required with {continuation: {kind: verification, url}} — the role operations' shape for the same concept — the web payment-verification entry with the pay page (group=1, the first payable member's link) as its next step, where the person who owns the request's inbox proves it and pays — and the same 409s as a payer before that (5 Nov 2026; see /mandates/{id}/pay). The webhook fans completion out to every member. Dev mode (no Stripe keys) marks the members paid inline.

{
  "summary": "One checkout for a multi-language request.",
  "description": "Pays every payable member of a fan-out (status 'quoted' with a real total) in ONE checkout — a line item per language, a Payment row per member carrying its OWN quote total, so per-job escrow stays honest and declining one language later refunds exactly that job's share. THE WHOLE-REQUEST RULE (25 Sep 2026): a human request is paid as one unit. While ANY human member is still awaiting the professional (status 'submitted'), no human member is payable and the call is 409 illegal_transition \"Your translator is confirming the complete quote. We’ll let you know when it is ready.\" — nothing is skipped and paid in part. 409 no_payable_quote means nothing in the group is payable for another reason (all paid, declined or still without a rate). `skipped` in the response lists members left out for another reason (already paid, declined, machine-tier work that pays on its own); `covered` lists what this checkout pays. Auth: the access token of ANY member mandate (with the recipient's VERIFIED portal session), or a client key owned by the group's e-mail. The creatorGrant an API caller received (x-thide-creator) and the creator cookie of the browser that filed the request are never charged: once the whole request is payable they get 403 verification_required with {continuation: {kind: verification, url}} — the role operations' shape for the same concept — the web payment-verification entry with the pay page (group=1, the first payable member's link) as its next step, where the person who owns the request's inbox proves it and pays — and the same 409s as a payer before that (5 Nov 2026; see /mandates/{id}/pay). The webhook fans completion out to every member. Dev mode (no Stripe keys) marks the members paid inline.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "apiKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    },
    {
      "creatorGrant": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "engagementAcceptance"
          ],
          "properties": {
            "token": {
              "type": "string"
            },
            "payerType": {
              "type": "string",
              "enum": [
                "individual",
                "company"
              ],
              "description": "Explicit invoice recipient. Overrides the request choice or saved account preference. When neither exists, omission answers 400 billing_choice_required. Does not save an account preference."
            },
            "companyBilling": {
              "$ref": "#/components/schemas/CompanyBillingInput",
              "description": "Required for company billing unless complete details are already saved on the request or account. Refused with payerType individual."
            },
            "engagementAcceptance": {
              "$ref": "#/components/schemas/EngagementAcceptance",
              "description": "The members' engagementOffers merged — version and contentHash from any member, `items` concatenated across every payable member (QUICKSTART \"One request, several languages\"). Missing, stale, partial or altered → 409 engagement_acceptance_required."
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Open session reused (retry guard) — nothing new created; same shape as 201.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/GroupPayResponse"
          }
        }
      }
    },
    "201": {
      "description": "New session: {mode: stripe_checkout, checkoutUrl, covered[], skipped[]} — or {mode: dev, covered[], skipped[], ...MandateEnvelope} without keys.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/GroupPayResponse"
          }
        }
      }
    },
    "400": {
      "description": "validation — malformed JSON, token or payerType, or incomplete/invalid companyBilling; billing_choice_required — choose Individual or Company when no explicit request/account choice exists."
    },
    "401": {
      "description": "No member token with its verified session, no client credential for the group's e-mail and no creatorGrant for this request was presented, or the request is already funded.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Two refusals share the status. A client credential: insufficient_scope or terms_acceptance_required, as KeyForbidden — nothing ran. The creatorGrant (or the creator cookie beside a member token) once the whole request is payable: verification_required WITH the continuation — the web payment-verification entry (group=1); nothing locked, written or paid (5 Nov 2026).\n",
      "content": {
        "application/json": {
          "schema": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Error"
              },
              {
                "$ref": "#/components/schemas/PaymentVerificationContinuation"
              }
            ]
          }
        }
      }
    },
    "404": {
      "description": "Unknown request group."
    },
    "409": {
      "description": "illegal_transition — a human member is still awaiting the professional (\"Your translator is confirming the complete quote. We’ll let you know when it is ready.\"), the payable members do not form the complete quote (\"Pay the complete quote together.\"), or the group spans more than one client e-mail; no_payable_quote — nothing in the group is payable for another reason; engagement_acceptance_required — missing, stale or partial engagementAcceptance; or payment_attempt_pending — an earlier attempt on a member could not yet be verified at Stripe; retry in a few minutes."
    },
    "413": {
      "$ref": "#/components/responses/JsonBodyTooLarge"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client"
  ],
  "operationId": "postRequest_groupsIdPay",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}Fetch one mandate.

THE read: the mandate, its quote, documents (with signed download paths), the append-only status log, the client timeline, the request's conversation and both legalisation legs in one envelope — a polling agent needs nothing else. Reading also runs the deemed-acceptance clock, so a delivered job past its window reports 'settled' here rather than waiting for a sweep. The audience follows the credential: a mandate token (with the verified session), the client key or the creatorGrant of the caller that filed it (x-thide-creator, while unpaid) gets the client view with accessToken and engagementOffer (while payable); the owning professional's credential gets the professional view (no client contact data, no token, studio-only quote fields) and 404 for work that is not hers.

{
  "summary": "Fetch one mandate.",
  "description": "THE read: the mandate, its quote, documents (with signed download paths), the append-only status log, the client timeline, the request's conversation and both legalisation legs in one envelope — a polling agent needs nothing else. Reading also runs the deemed-acceptance clock, so a delivered job past its window reports 'settled' here rather than waiting for a sweep. The audience follows the credential: a mandate token (with the verified session), the client key or the creatorGrant of the caller that filed it (x-thide-creator, while unpaid) gets the client view with accessToken and engagementOffer (while payable); the owning professional's credential gets the professional view (no client contact data, no token, studio-only quote fields) and 404 for work that is not hers.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "MandateEnvelope. accessToken (and token-embedding downloadPaths) only for client-token / client-key callers — studio-key reads never receive the client's bearer token.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/MandateEnvelope"
          }
        }
      }
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesId",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/documents/{docId}Tokenized document download (the URL delivery e-mails embed).

Streams the stored bytes with the stored Content-Type and a Content-Disposition attachment header. Client-token links are expiring signed links (spec §2.4): downloadPath embeds exp+sig (HMAC, 7-day TTL) and the route enforces them; studio-key calls are header-authorized and need no signature. Becomes a Supabase Storage signed-URL redirect at provisioning; the URL shape stays stable. ?inline=1 asks for Content-Disposition inline (preview in a frame) — honoured only for types a browser renders inertly (PDF, PNG, JPEG, GIF, WebP, plain text); anything else stays an attachment. A BROWSER (Accept: text/html) presenting a token without the verified portal session is sent to e-mail verification with a 303 instead of the 401 an API caller receives. Without ?token=, the professional's signed-in Studio browser (its thide_portal session) also authorises the download of its own work; a ?token= always decides as a client link.

{
  "summary": "Tokenized document download (the URL delivery e-mails embed).",
  "description": "Streams the stored bytes with the stored Content-Type and a Content-Disposition attachment header. Client-token links are expiring signed links (spec §2.4): downloadPath embeds exp+sig (HMAC, 7-day TTL) and the route enforces them; studio-key calls are header-authorized and need no signature. Becomes a Supabase Storage signed-URL redirect at provisioning; the URL shape stays stable. ?inline=1 asks for Content-Disposition inline (preview in a frame) — honoured only for types a browser renders inertly (PDF, PNG, JPEG, GIF, WebP, plain text); anything else stays an attachment. A BROWSER (Accept: text/html) presenting a token without the verified portal session is sent to e-mail verification with a 303 instead of the 401 an API caller receives. Without ?token=, the professional's signed-in Studio browser (its thide_portal session) also authorises the download of its own work; a ?token= always decides as a client link.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "in": "path",
      "name": "docId",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "inline",
      "schema": {
        "type": "string",
        "enum": [
          "1"
        ]
      },
      "description": "Inline disposition for PDF / image / plain-text documents (browser preview)."
    }
  ],
  "responses": {
    "200": {
      "description": "The file bytes.",
      "content": {
        "application/octet-stream": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    },
    "303": {
      "description": "Browser caller (Accept text/html) with a token but no verified portal session — redirected to e-mail verification."
    },
    "401": {
      "description": "Bad token or credential, or an invalid link signature.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate or document, or stored file missing (code file_missing).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "410": {
      "description": "Signed link expired (code link_expired) — fetch a fresh envelope for a new downloadPath."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdDocumentsDocId",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/attachments/{attachmentId}Download reference material attached to a message of the request conversation.

The file a party attached to a message (MessageAttachmentView.downloadPath resolves here). The same door as a document download — client-token links carry an expiring signature (exp+sig, 7-day TTL); studio-key, studio-cookie and client-key calls are authorised by their credential — plus one rule: the attachment must hang off a message of THIS request's conversation (the path id may be any part of a multi-language request), and a private professional/subcontractor file is served to the studio side only — a client asking for one receives 404. Always Content-Disposition attachment: reference material is downloaded, never rendered in the app's origin. A BROWSER (Accept: text/html) presenting a token without the verified portal session is sent to e-mail verification with a 303. Without ?token=, the professional's signed-in Studio browser (its thide_portal session) also authorises the download of its own work; a ?token= always decides as a client link.

{
  "summary": "Download reference material attached to a message of the request conversation.",
  "description": "The file a party attached to a message (MessageAttachmentView.downloadPath resolves here). The same door as a document download — client-token links carry an expiring signature (exp+sig, 7-day TTL); studio-key, studio-cookie and client-key calls are authorised by their credential — plus one rule: the attachment must hang off a message of THIS request's conversation (the path id may be any part of a multi-language request), and a private professional/subcontractor file is served to the studio side only — a client asking for one receives 404. Always Content-Disposition attachment: reference material is downloaded, never rendered in the app's origin. A BROWSER (Accept: text/html) presenting a token without the verified portal session is sent to e-mail verification with a 303. Without ?token=, the professional's signed-in Studio browser (its thide_portal session) also authorises the download of its own work; a ?token= always decides as a client link.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "in": "path",
      "name": "attachmentId",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "The file bytes.",
      "content": {
        "application/octet-stream": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    },
    "303": {
      "description": "Browser caller (Accept text/html) with a token but no verified portal session — redirected to e-mail verification."
    },
    "401": {
      "description": "Bad token or credential, or an invalid link signature.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate or attachment, an attachment of another conversation or of the private assignment thread asked for by a client, or stored file missing (code file_missing).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "410": {
      "description": "Signed link expired (code link_expired) — read the thread again for a new downloadPath."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdAttachmentsAttachmentId",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/documents/archiveEvery document of one request, as a single .zip.

The client portal listed files one link at a time, which is tedious on a delivered sworn job carrying a translation, an apostille and an invoice. Same authorisation as a single download: a client token for their own request, a credential, or (without ?token=) the professional's signed-in Studio browser. Entries are STORED (not deflated) — the documents are already compressed formats. Studio-internal roles (partner_upload, machine_text) never enter a client's archive. By default a file whose bytes are missing is skipped rather than failing the whole download; with scope=delivery the archive holds the published delivery (translations and apostilles, every part of a package) and a missing file is 409 file_missing — no partial delivery archive. Metered at 20 per 10 minutes per IP and 5 per 10 minutes per request (429).

{
  "summary": "Every document of one request, as a single .zip.",
  "description": "The client portal listed files one link at a time, which is tedious on a delivered sworn job carrying a translation, an apostille and an invoice. Same authorisation as a single download: a client token for their own request, a credential, or (without ?token=) the professional's signed-in Studio browser. Entries are STORED (not deflated) — the documents are already compressed formats. Studio-internal roles (partner_upload, machine_text) never enter a client's archive. By default a file whose bytes are missing is skipped rather than failing the whole download; with scope=delivery the archive holds the published delivery (translations and apostilles, every part of a package) and a missing file is 409 file_missing — no partial delivery archive. Metered at 20 per 10 minutes per IP and 5 per 10 minutes per request (429).\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "scope",
      "required": false,
      "schema": {
        "type": "string",
        "enum": [
          "delivery"
        ]
      },
      "description": "delivery — only the published delivery files."
    },
    {
      "in": "query",
      "name": "ids",
      "required": false,
      "schema": {
        "type": "string"
      },
      "description": "With scope=delivery: comma-separated document ids (up to 500) from this delivery, originals included; an id outside it is 400 invalid_selection."
    }
  ],
  "responses": {
    "200": {
      "description": "application/zip — the request's documents.",
      "content": {
        "application/zip": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    },
    "400": {
      "description": "invalid_selection — ids names a file outside this delivery, or none or more than 500.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate, nothing to download yet, every stored file missing, or (scope=delivery) a delivery that is not published.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "file_missing — with scope=delivery a delivery file is unavailable; no partial archive is sent.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "archive_too_large — the documents exceed the archive cap (150 MiB); download them one by one."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdDocumentsArchive",
  "tags": [
    "Resources"
  ]
}
POST/mandates/{id}/declineThe client declines a sent quote (Platform Terms 7.1).

Since 4 Nov 2026 (A-22) the client may refuse the quote the professional sent, instead of letting it lapse. The request is quoted and paid as ONE unit, so every unpaid quoted part of it closes at once — quoted→cancelled with the reason 'rejected' on the status log — and the professional is told once; nothing financial is recorded. Body {token?}: the client token (?token= or body.token) with a verified session or the creator grant, or a client credential for this request's e-mail; the same shared decision as the quote page's "Decline this quote" and the client role operation request.decline. 409 illegal_transition once the quote is no longer sent, a checkout is in flight or a payment was taken. Answers the client envelope of the mandate named (status 'cancelled'; the archive shows it as Declined).

{
  "summary": "The client declines a sent quote (Platform Terms 7.1).",
  "description": "Since 4 Nov 2026 (A-22) the client may refuse the quote the professional sent, instead of letting it lapse. The request is quoted and paid as ONE unit, so every unpaid quoted part of it closes at once — quoted→cancelled with the reason 'rejected' on the status log — and the professional is told once; nothing financial is recorded. Body {token?}: the client token (?token= or body.token) with a verified session or the creator grant, or a client credential for this request's e-mail; the same shared decision as the quote page's \"Decline this quote\" and the client role operation request.decline. 409 illegal_transition once the quote is no longer sent, a checkout is in flight or a payment was taken. Answers the client envelope of the mandate named (status 'cancelled'; the archive shows it as Declined).\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "token": {
              "type": "string",
              "description": "The client token, when not sent as ?token=."
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "MandateEnvelope (client view) of the mandate named, now cancelled.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/MandateEnvelope"
          }
        }
      }
    },
    "400": {
      "description": "Validation error."
    },
    "401": {
      "description": "Missing or invalid client token, session or credential — answered before the lookup when nothing is presented, so an anonymous call never learns whether the id exists."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate (to a caller that presented a credential)."
    },
    "409": {
      "description": "illegal_transition — the quote is no longer sent, a payment is in progress or the request is paid."
    },
    "413": {
      "$ref": "#/components/responses/JsonBodyTooLarge"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client"
  ],
  "operationId": "postMandatesIdDecline",
  "tags": [
    "Resources"
  ]
}
POST/mandates/{id}/payClient pays the released quote into escrow.

quoted: with STRIPE_SECRET_KEY creates a Checkout Session (mode stripe_checkout; quoted→paid happens only in the webhook); without a key the dev fallback records a succeeded payment and transitions (mode dev). Auth: the mandate token (?token= or body.token) together with the recipient's VERIFIED portal session, or a client credential owned by the mandate's e-mail and holding payments; a professional credential never pays. Money moves only for a verified e-mail or its own key. The creatorGrant an API caller received at intake (x-thide-creator) — and the browser-session creator cookie beside the token (QUICKSTART, "E-mail verification requirement") — is the request's author, not its payer: it is never charged. It hears the same 409s as a payer while nothing is payable and then, where a payer would be charged, 403 verification_required with {continuation: {kind: verification, url}} (PaymentVerificationContinuation — the role operations' shape for the same concept): the web payment-verification entry for this request, /verify with the pay page as its next step (group=1 on a grouped request). Hand that URL to the person who owns the request's e-mail address; they prove the inbox there, accept the Engagement Terms and pay in the browser. Nothing is locked or written and no engagementAcceptance is read from the grant. Afterwards poll GET /mandates/{id}: from the first funded status on the grant is 401 (5 Nov 2026).

{
  "summary": "Client pays the released quote into escrow.",
  "description": "quoted: with STRIPE_SECRET_KEY creates a Checkout Session (mode stripe_checkout; quoted→paid happens only in the webhook); without a key the dev fallback records a succeeded payment and transitions (mode dev). Auth: the mandate token (?token= or body.token) together with the recipient's VERIFIED portal session, or a client credential owned by the mandate's e-mail and holding payments; a professional credential never pays. Money moves only for a verified e-mail or its own key. The creatorGrant an API caller received at intake (x-thide-creator) — and the browser-session creator cookie beside the token (QUICKSTART, \"E-mail verification requirement\") — is the request's author, not its payer: it is never charged. It hears the same 409s as a payer while nothing is payable and then, where a payer would be charged, 403 verification_required with {continuation: {kind: verification, url}} (PaymentVerificationContinuation — the role operations' shape for the same concept): the web payment-verification entry for this request, /verify with the pay page as its next step (group=1 on a grouped request). Hand that URL to the person who owns the request's e-mail address; they prove the inbox there, accept the Engagement Terms and pay in the browser. Nothing is locked or written and no engagementAcceptance is read from the grant. Afterwards poll GET /mandates/{id}: from the first funded status on the grant is 401 (5 Nov 2026).\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "apiKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    },
    {
      "creatorGrant": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "engagementAcceptance"
          ],
          "properties": {
            "token": {
              "type": "string"
            },
            "payerType": {
              "type": "string",
              "enum": [
                "individual",
                "company"
              ],
              "description": "Explicit invoice recipient. Overrides the request choice or saved account preference. When neither exists, omission answers 400 billing_choice_required. Does not save an account preference."
            },
            "companyBilling": {
              "$ref": "#/components/schemas/CompanyBillingInput",
              "description": "Required for company billing unless complete details are already saved on the request or account. Refused with payerType individual."
            },
            "engagementAcceptance": {
              "$ref": "#/components/schemas/EngagementAcceptance",
              "description": "The envelope's engagementOffer, echoed back verbatim (GET /mandates/{id} with the client key). Missing, stale or altered → 409 engagement_acceptance_required."
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "An existing open Checkout session being reused (mode stripe_checkout with checkoutUrl). Branch on `mode`, never on the status code: a retry returns the same session with 200 where the first attempt was 201.\n",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PayResponse"
          }
        }
      }
    },
    "201": {
      "description": "New session — mode stripe_checkout (checkoutUrl) or mode dev (the client MandateEnvelope, already 'accepted').",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PayResponse"
          }
        }
      }
    },
    "400": {
      "description": "validation — malformed JSON, token or payerType, or incomplete/invalid companyBilling; billing_choice_required — choose Individual or Company when no explicit request/account choice exists."
    },
    "401": {
      "description": "Bad token or no verified session for the recipient, a client credential of another owner, or a creatorGrant of another request or of a request already funded.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Two refusals share the status. A client credential: insufficient_scope or terms_acceptance_required, as KeyForbidden — nothing ran. The creatorGrant (or the creator cookie beside the token) once the quote is payable: verification_required WITH the continuation — the web payment-verification entry described above; nothing locked, written or paid (5 Nov 2026).\n",
      "content": {
        "application/json": {
          "schema": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Error"
              },
              {
                "$ref": "#/components/schemas/PaymentVerificationContinuation"
              }
            ]
          }
        }
      }
    },
    "404": {
      "description": "Unknown mandate."
    },
    "409": {
      "description": "illegal_transition — not payable in this status (\"Cannot pay a mandate in status 'submitted'\"), or a member of a multi-language request (\"Pay the complete quote together.\" while a sibling is payable, \"Your translator is confirming the complete quote. We’ll let you know when it is ready.\" while a sibling is still awaiting the professional — use POST /request-groups/{id}/pay); no_payable_quote (rate still pending); engagement_acceptance_required (missing or stale engagementAcceptance); or payment_attempt_pending — an earlier attempt could not yet be verified at Stripe (late webhook, provider timeout); retry in a few minutes rather than creating a second charge."
    },
    "413": {
      "$ref": "#/components/responses/JsonBodyTooLarge"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    },
    "503": {
      "description": "payments_not_configured — exposed host without STRIPE_SECRET_KEY; the dev fallback is refused there."
    }
  },
  "x-credential-roles": [
    "client"
  ],
  "operationId": "postMandatesIdPay",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/case-fileDownload the mediation case file (PDF; HTML fallback).

One chronology of messages, status events and document exchanges for a delivery that was REFERRED to THIDE (TD, 1 Sep) — the same rows the referred views render. Exists only once acceptance.referredAt is set; before that the case does not exist and the route answers 409. Without ?token=, the professional's signed-in Studio browser (its thide_portal session) also authorises the download of its own work; a ?token= always decides as a client link.

{
  "summary": "Download the mediation case file (PDF; HTML fallback).",
  "description": "One chronology of messages, status events and document exchanges for a delivery that was REFERRED to THIDE (TD, 1 Sep) — the same rows the referred views render. Exists only once acceptance.referredAt is set; before that the case does not exist and the route answers 409. Without ?token=, the professional's signed-in Studio browser (its thide_portal session) also authorises the download of its own work; a ?token= always decides as a client link.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "application/pdf attachment (text/html when the PDF renderer is unavailable).",
      "content": {
        "application/pdf": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        },
        "text/html": {
          "schema": {
            "type": "string"
          }
        }
      }
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "409": {
      "description": "Not referred — no case file exists (code not_referred)."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdCase_file",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/questionsRead the question thread.

The relay travels by e-mail in both directions, but the thread is persisted and readable — without this the relay is write-only over the API: an agent can ask a question and never see the answer, because the reply lands in a human mailbox. The same rows also ride on the MandateEnvelope. The thread is the request's CONVERSATION: on a multi-language request every part shares it, so messages[].mandateId may name a sibling part (the path id is only the entry point).

{
  "summary": "Read the question thread.",
  "description": "The relay travels by e-mail in both directions, but the thread is persisted and readable — without this the relay is write-only over the API: an agent can ask a question and never see the answer, because the reply lands in a human mailbox. The same rows also ride on the MandateEnvelope. The thread is the request's CONVERSATION: on a multi-language request every part shares it, so messages[].mandateId may name a sibling part (the path id is only the entry point).\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "{messages: [{id, mandateId, from, message, relayed, at}], count} — oldest first.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "messages": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/QuestionMessage"
                }
              },
              "count": {
                "type": "integer"
              }
            },
            "required": [
              "messages",
              "count"
            ]
          }
        }
      }
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdQuestions",
  "tags": [
    "Resources"
  ]
}
POST/mandates/{id}/questionsRelay a question between client and translator (no in-app chat — e-mail relay).

API parity for the web question boxes. Body {message (1–4000 characters after trimming), token?} as JSON, or multipart/form-data with the same fields plus repeatable `attachment` file parts — reference material (a glossary, an earlier translation): at most 5 files, 20 MiB each, 50 MiB per message, within 30 files / 200 MiB per conversation, in the deliverable formats (.docx .doc .odt .pdf .txt .md .csv .xlsx .pptx .xml and images). Files are named in the relay mail and downloaded on THIDE; they are never documents of the request. Direction derives from authentication: a client caller (token with its verified session or creator grant, or a client credential) relays TO the professional; a professional credential relays TO the client. Responds {relayed, from, to, message} — the stored row with its attachments as views. Metered at 10 messages per 10 minutes per request and 30 per 10 minutes per IP (429 rate_limited with Retry-After).

{
  "summary": "Relay a question between client and translator (no in-app chat — e-mail relay).",
  "description": "API parity for the web question boxes. Body {message (1–4000 characters after trimming), token?} as JSON, or multipart/form-data with the same fields plus repeatable `attachment` file parts — reference material (a glossary, an earlier translation): at most 5 files, 20 MiB each, 50 MiB per message, within 30 files / 200 MiB per conversation, in the deliverable formats (.docx .doc .odt .pdf .txt .md .csv .xlsx .pptx .xml and images). Files are named in the relay mail and downloaded on THIDE; they are never documents of the request. Direction derives from authentication: a client caller (token with its verified session or creator grant, or a client credential) relays TO the professional; a professional credential relays TO the client. Responds {relayed, from, to, message} — the stored row with its attachments as views. Metered at 10 messages per 10 minutes per request and 30 per 10 minutes per IP (429 rate_limited with Retry-After).\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "message"
          ],
          "properties": {
            "message": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4000
            },
            "token": {
              "type": "string"
            }
          }
        }
      },
      "multipart/form-data": {
        "schema": {
          "type": "object",
          "required": [
            "message"
          ],
          "properties": {
            "message": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4000
            },
            "token": {
              "type": "string"
            },
            "attachment": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "binary"
              },
              "description": "Reference material within the message attachment limits."
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "{relayed: true, from, to, message: the stored thread row}.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "relayed": {
                "const": true
              },
              "from": {
                "type": "string",
                "enum": [
                  "client",
                  "translator"
                ]
              },
              "to": {
                "type": "string",
                "enum": [
                  "client",
                  "translator"
                ]
              },
              "message": {
                "$ref": "#/components/schemas/QuestionMessage"
              }
            },
            "required": [
              "relayed",
              "from",
              "to",
              "message"
            ]
          }
        }
      }
    },
    "400": {
      "description": "validation — message empty after trimming or over 4000 characters."
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "409": {
      "description": "no_translator — the mandate has no professional to relay to yet."
    },
    "413": {
      "description": "payload_too_large — an attachment over 20 MiB, the message’s files over 50 MiB, the multipart body over its cap, or a JSON body over 64 KiB. Nothing was stored or mailed."
    },
    "415": {
      "description": "unsupported_file_type — an attachment outside the deliverable formats. Nothing was stored or mailed."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    },
    "502": {
      "description": "Relay failed (code relay_failed) — a transport failure only; a recipient who switched e-mail updates off answers 200 with relayed=true, since the portal is their channel. The message IS on the thread — it was persisted before the e-mail was attempted, so a retry would duplicate it. Treat as delivered-in-app, not-yet-e-mailed.\n"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "postMandatesIdQuestions",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/acceptRead the delivery-acceptance record (state, clock, comment thread).

The client accepts explicitly, or an untouched delivery is deemed accepted after its recorded acceptance window. Payout timing is separately determined by the frozen checkout agreement. Reading evaluates the deemed clock, so one poll tells the whole truth (including "it just settled"). Returns {status, acceptance: {openedAt, state: pending|commented|referred|accepted, via?: explicit|deemed, acceptedAt?, referredAt?, comments: [{id, by, message, at, attachments?}]} | null, deemedAt: ISO | null, deliveryRevision: string}. New windows end at the end of the third Belgian working day; historical windows retain their recorded policy. A client concern permanently stops automatic acceptance. Neither a reply nor a corrected file restarts it. Corrections are append-only file revisions; acceptance.corrections identifies their old/new document IDs and publication time. Keep deliveryRevision from the reviewed files and send it on accept.

{
  "summary": "Read the delivery-acceptance record (state, clock, comment thread).",
  "description": "The client accepts explicitly, or an untouched delivery is deemed accepted after its recorded acceptance window. Payout timing is separately determined by the frozen checkout agreement. Reading evaluates the deemed clock, so one poll tells the whole truth (including \"it just settled\"). Returns {status, acceptance: {openedAt, state: pending|commented|referred|accepted, via?: explicit|deemed, acceptedAt?, referredAt?, comments: [{id, by, message, at, attachments?}]} | null, deemedAt: ISO | null, deliveryRevision: string}. New windows end at the end of the third Belgian working day; historical windows retain their recorded policy. A client concern permanently stops automatic acceptance. Neither a reply nor a corrected file restarts it. Corrections are append-only file revisions; acceptance.corrections identifies their old/new document IDs and publication time. Keep deliveryRevision from the reviewed files and send it on accept.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "{status, acceptance, deemedAt, deliveryRevision}.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "status": {
                "$ref": "#/components/schemas/MandateStatus"
              },
              "acceptance": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ClientAcceptance"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deliveryRevision": {
                "type": "string"
              },
              "deemedAt": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "status",
              "acceptance",
              "deliveryRevision",
              "deemedAt"
            ]
          }
        }
      }
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdAccept",
  "tags": [
    "Resources"
  ]
}
POST/mandates/{id}/acceptAccept the delivery, comment on it, or refer it to THIDE.

Body {action: 'accept', token?, deliveryRevision?} — the client's explicit acceptance; transitions delivered→settled, evaluates the recorded payout policy, notifies the translator; responds with the MandateEnvelope. {action: 'comment', message (5–4000 chars), token?} — stores a comment on the acceptance thread and relays it by e-mail; a client concern stops automatic acceptance permanently, including after a professional reply. As multipart/form-data the same fields plus repeatable `attachment` file parts — reference material within the limits of POST /questions (5 files, 20 MiB each, 50 MiB per message, 30 files / 200 MiB per conversation, deliverable formats), named in the relay mail and downloaded on THIDE; files with accept or refer are refused (400). deliveryRevision is required once a correction exists and must match the current revision; a stale or missing value returns 409 so the client reviews the new files first. Before any correction it may be omitted or set to original. {action: 'refer', token?} — the client's escalation after a comment round: records the referral, mails THIDE the thread, kills the clock for good; the case then settles only by explicit acceptance or a refund (409 before any comment exists). Auth: the client token with its verified session, or a client credential holding payments; a professional credential may comment but can NEVER accept or refer — both are the client's acts alone (403).

{
  "summary": "Accept the delivery, comment on it, or refer it to THIDE.",
  "description": "Body {action: 'accept', token?, deliveryRevision?} — the client's explicit acceptance; transitions delivered→settled, evaluates the recorded payout policy, notifies the translator; responds with the MandateEnvelope. {action: 'comment', message (5–4000 chars), token?} — stores a comment on the acceptance thread and relays it by e-mail; a client concern stops automatic acceptance permanently, including after a professional reply. As multipart/form-data the same fields plus repeatable `attachment` file parts — reference material within the limits of POST /questions (5 files, 20 MiB each, 50 MiB per message, 30 files / 200 MiB per conversation, deliverable formats), named in the relay mail and downloaded on THIDE; files with accept or refer are refused (400). deliveryRevision is required once a correction exists and must match the current revision; a stale or missing value returns 409 so the client reviews the new files first. Before any correction it may be omitted or set to original. {action: 'refer', token?} — the client's escalation after a comment round: records the referral, mails THIDE the thread, kills the clock for good; the case then settles only by explicit acceptance or a refund (409 before any comment exists). Auth: the client token with its verified session, or a client credential holding payments; a professional credential may comment but can NEVER accept or refer — both are the client's acts alone (403).\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "oneOf": [
            {
              "type": "object",
              "required": [
                "action"
              ],
              "properties": {
                "action": {
                  "const": "accept"
                },
                "token": {
                  "type": "string"
                },
                "deliveryRevision": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "The deliveryRevision from GET …/accept once a correction exists."
                }
              }
            },
            {
              "type": "object",
              "required": [
                "action",
                "message"
              ],
              "properties": {
                "action": {
                  "const": "comment"
                },
                "message": {
                  "type": "string",
                  "minLength": 5,
                  "maxLength": 4000
                },
                "token": {
                  "type": "string"
                }
              }
            },
            {
              "type": "object",
              "required": [
                "action"
              ],
              "properties": {
                "action": {
                  "const": "refer"
                },
                "token": {
                  "type": "string"
                }
              }
            }
          ]
        }
      },
      "multipart/form-data": {
        "schema": {
          "type": "object",
          "required": [
            "action",
            "message"
          ],
          "properties": {
            "action": {
              "const": "comment"
            },
            "message": {
              "type": "string",
              "minLength": 5,
              "maxLength": 4000
            },
            "token": {
              "type": "string"
            },
            "attachment": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "binary"
              },
              "description": "Reference material within the message attachment limits — with a comment only."
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "accept → the MandateEnvelope (settled; client view WITHOUT accessToken — only GET /mandates/{id} echoes the token); comment and refer → {status, acceptance}, the files of a comment on its row as MessageAttachmentView.",
      "content": {
        "application/json": {
          "schema": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MandateEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "$ref": "#/components/schemas/MandateStatus"
                  },
                  "acceptance": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ClientAcceptance"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "status",
                  "acceptance"
                ]
              }
            ]
          }
        }
      }
    },
    "400": {
      "description": "Unknown action / message too short or long."
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "description": "forbidden — a professional credential tried to accept or refer; both are the client's acts alone. insufficient_scope — the credential lacks payments (every action of this route needs it, comments included). terms_acceptance_required — see KeyForbidden."
    },
    "404": {
      "description": "Unknown mandate."
    },
    "409": {
      "description": "Not delivered, or deliveryRevision is stale/missing after a correction. Refresh and review the current files."
    },
    "413": {
      "description": "payload_too_large — a JSON body over 64 KiB; with a comment, an attachment over 20 MiB, the comment’s files over 50 MiB or the multipart body over its cap. Nothing was stored or mailed."
    },
    "415": {
      "description": "unsupported_file_type — a comment’s attachment outside the deliverable formats. Nothing was stored or mailed."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "postMandatesIdAccept",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/legalisationWhat we recommend for this mandate, and what actually applies.

Returns {recommended: {requirement, basis, rationale, confirmWithProfessional}, effective, override, deviates}. requirement is 'none' | 'apostille' | 'consular_legalisation', or null when we decline to answer (no destination, or an EU destination with no documentCategory — cases where a confident answer would be invented).

{
  "summary": "What we recommend for this mandate, and what actually applies.",
  "description": "Returns {recommended: {requirement, basis, rationale, confirmWithProfessional}, effective, override, deviates}. requirement is 'none' | 'apostille' | 'consular_legalisation', or null when we decline to answer (no destination, or an EU destination with no documentCategory — cases where a confident answer would be invented).\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "EffectiveLegalisation.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/EffectiveLegalisation"
          }
        }
      }
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdLegalisation",
  "tags": [
    "Resources"
  ]
}
POST/mandates/{id}/legalisationPropose or confirm the legalisation route.

THIDE recommends, humans decide. Our rule is dated and sourced but still incomplete — the client may know something about their own paperwork that we do not, and the professional is the expert. Body {requirement, reason?}. The direction of authority comes from authentication: a client caller records setBy 'client', a professional credential 'translator'. A client override is a proposal: the professional must explicitly confirm the route before the draft quote can be released, even if they agree with the proposed route. Client input does not replace expert review. An override NEVER erases the recommendation: both are returned, the deviation is audit-logged with what we had advised, and every surface shows that the mandate deviates. The quote is recomputed, because the legalisation line moves with it. Allowed only while the quote has not been sent (status 'submitted' — LEGALISATION_MUTABLE in lib/legalisation-decision.ts, the same rule the studio applies): an override changes what the client owes. Afterwards it is 409 price_locked — a sent quote is final; the professional cannot reprice it either.

{
  "summary": "Propose or confirm the legalisation route.",
  "description": "THIDE recommends, humans decide. Our rule is dated and sourced but still incomplete — the client may know something about their own paperwork that we do not, and the professional is the expert. Body {requirement, reason?}. The direction of authority comes from authentication: a client caller records setBy 'client', a professional credential 'translator'. A client override is a proposal: the professional must explicitly confirm the route before the draft quote can be released, even if they agree with the proposed route. Client input does not replace expert review.\nAn override NEVER erases the recommendation: both are returned, the deviation is audit-logged with what we had advised, and every surface shows that the mandate deviates. The quote is recomputed, because the legalisation line moves with it.\nAllowed only while the quote has not been sent (status 'submitted' — LEGALISATION_MUTABLE in lib/legalisation-decision.ts, the same rule the studio applies): an override changes what the client owes. Afterwards it is 409 price_locked — a sent quote is final; the professional cannot reprice it either.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "requirement"
          ],
          "properties": {
            "requirement": {
              "type": "string",
              "enum": [
                "none",
                "apostille",
                "consular_legalisation"
              ]
            },
            "reason": {
              "type": "string",
              "minLength": 3,
              "maxLength": 500,
              "description": "Shown next to the deviation on both sides."
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "EffectiveLegalisation + status (the mandate status after the decision, always 'submitted' here) + the recomputed quote (client view for a token / client key, studio view for the studio key).",
      "content": {
        "application/json": {
          "schema": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EffectiveLegalisation"
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "$ref": "#/components/schemas/MandateStatus"
                  },
                  "quote": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Quote"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "status",
                  "quote"
                ]
              }
            ]
          }
        }
      }
    },
    "400": {
      "description": "Bad requirement value or too-short reason."
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "409": {
      "description": "price_locked — the quote has already been sent (status is no longer submitted); or price_held — the client has a Checkout page open on the current price (wait until they pay or it expires)."
    },
    "413": {
      "$ref": "#/components/responses/JsonBodyTooLarge"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "postMandatesIdLegalisation",
  "tags": [
    "Resources"
  ]
}
GET/catalogEverything the intake offers, as data — the selection boxes an automator cannot see.

The API twin of the web intake's pickers: language pairs (each marked autoQuoted or not — an ad-hoc pair is orderable, it simply pauses for a rate instead of returning a price), regular vs sworn, the deadline buckets with the exact price modifiers the quote applies, the full ISO destination-country list with its legalisation route, the upload limits and accepted extensions, and the terms that must be accepted. Read this before posting a mandate rather than guessing and learning from a 400. upload.maxFileBytes (104857600), maxFiles (30), and maxTotalFileBytes (209715200) cap RAW documents. maxMultipartBodyBytes (210763776) and maxJsonBodyBytes (280668964) separately cap encoded bodies including framing. The web picker and API accept every supported language except the source as a target (currently ten destinations). Target jobs do not multiply the uploaded-document count. Upstream proxy/CDN caps and timeouts require deployment verification and may reject before this app. PUBLIC since 5 Nov 2026 (TD): no credential needed, like GET /terms — a first request needs no key, and what it may order is readable before it is filed. It carries no client data and no rates in money (the professional's matrix stays behind a professional credential on /pricing). A key that IS presented must be live (401) and under its meter (429); anonymous calls are metered at 120 requests/minute per IP (the shared RateLimited answer, Retry-After). The 200 carries Cache-Control public, max-age=300: the answer is the same for everyone. countries[].legalisation is the route for a SWORN translation sent there, as of today: 'apostille', 'consular_legalisation', or null for EU destinations, where the answer genuinely depends on the document category — send documentCategory to POST /mandates and it is resolved properly. countries[].hagueParty says whether apostilles are accepted there at all.

{
  "summary": "Everything the intake offers, as data — the selection boxes an automator cannot see.",
  "description": "The API twin of the web intake's pickers: language pairs (each marked autoQuoted or not — an ad-hoc pair is orderable, it simply pauses for a rate instead of returning a price), regular vs sworn, the deadline buckets with the exact price modifiers the quote applies, the full ISO destination-country list with its legalisation route, the upload limits and accepted extensions, and the terms that must be accepted. Read this before posting a mandate rather than guessing and learning from a 400.\nupload.maxFileBytes (104857600), maxFiles (30), and maxTotalFileBytes (209715200) cap RAW documents. maxMultipartBodyBytes (210763776) and maxJsonBodyBytes (280668964) separately cap encoded bodies including framing. The web picker and API accept every supported language except the source as a target (currently ten destinations). Target jobs do not multiply the uploaded-document count. Upstream proxy/CDN caps and timeouts require deployment verification and may reject before this app.\nPUBLIC since 5 Nov 2026 (TD): no credential needed, like GET /terms — a first request needs no key, and what it may order is readable before it is filed. It carries no client data and no rates in money (the professional's matrix stays behind a professional credential on /pricing). A key that IS presented must be live (401) and under its meter (429); anonymous calls are metered at 120 requests/minute per IP (the shared RateLimited answer, Retry-After). The 200 carries Cache-Control public, max-age=300: the answer is the same for everyone.\ncountries[].legalisation is the route for a SWORN translation sent there, as of today: 'apostille', 'consular_legalisation', or null for EU destinations, where the answer genuinely depends on the document category — send documentCategory to POST /mandates and it is resolved properly. countries[].hagueParty says whether apostilles are accepted there at all.\n",
  "security": [
    {},
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "responses": {
    "200": {
      "description": "{languages, pairs, kinds, deadlines, countries, documentCategories, upload, quoting, terms}. Cache-Control public, max-age=300.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Catalog"
          }
        }
      }
    },
    "401": {
      "description": "unauthorized — a key was presented that matches no live key. Sending none is fine."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getCatalog",
  "tags": [
    "Resources"
  ]
}
GET/termsThe contracts a client agrees to, with versions and content hashes.

Contracts must be readable before anyone is bound by them. PUBLIC since 31 Oct 2026 (B-03): a first request needs no key (POST /mandates is open) and must accept the current versions, so this index and the text need no credential. A key that IS presented must be live (401) and under its meter (429). The catalog is public too since 5 Nov 2026. requiredForMandate lists the ids POST /mandates demands in acceptedTerms. Each document carries a contentHash (SHA-256 of the body) so a client can tell that cached text is still current.

{
  "summary": "The contracts a client agrees to, with versions and content hashes.",
  "description": "Contracts must be readable before anyone is bound by them. PUBLIC since 31 Oct 2026 (B-03): a first request needs no key (POST /mandates is open) and must accept the current versions, so this index and the text need no credential. A key that IS presented must be live (401) and under its meter (429). The catalog is public too since 5 Nov 2026. requiredForMandate lists the ids POST /mandates demands in acceptedTerms. Each document carries a contentHash (SHA-256 of the body) so a client can tell that cached text is still current.\n",
  "security": [
    {},
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "responses": {
    "200": {
      "description": "{documents: [{id, version, title, audience, status, effectiveDate, summary, contentHash, path}], requiredForMandate: string[]}.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "documents": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TermsSummary"
                }
              },
              "requiredForMandate": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "documents",
              "requiredForMandate"
            ]
          }
        }
      }
    },
    "401": {
      "description": "unauthorized — a key was presented that matches no live key. Sending none is fine."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getTerms",
  "tags": [
    "Resources"
  ]
}
GET/terms/{id}The full text of one contract.

Same access rule as the index route (public since 31 Oct 2026; a presented key must be live). ?format=markdown returns the raw body as text/markdown (what a terminal client wants to print), with x-thide-terms-version and x-thide-terms-hash headers; the default JSON carries the same body plus the metadata. status 'draft' means the text is not in force yet — still in legal review, or final and waiting for its effective date (Platform Terms 1.3, 4 November 2026) — published rather than withheld so nothing is accepted sight-unseen.

{
  "summary": "The full text of one contract.",
  "description": "Same access rule as the index route (public since 31 Oct 2026; a presented key must be live). ?format=markdown returns the raw body as text/markdown (what a terminal client wants to print), with x-thide-terms-version and x-thide-terms-hash headers; the default JSON carries the same body plus the metadata. status 'draft' means the text is not in force yet — still in legal review, or final and waiting for its effective date (Platform Terms 1.3, 4 November 2026) — published rather than withheld so nothing is accepted sight-unseen.\n",
  "security": [
    {},
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "format",
      "schema": {
        "type": "string",
        "enum": [
          "markdown"
        ]
      }
    }
  ],
  "responses": {
    "200": {
      "description": "JSON {id, version, title, audience, status, effectiveDate, summary, contentHash, path, body} — or raw markdown.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TermsDocument"
          }
        },
        "text/markdown": {
          "schema": {
            "type": "string"
          }
        }
      }
    },
    "401": {
      "description": "unauthorized — a key was presented that matches no live key. Sending none is fine."
    },
    "404": {
      "description": "Unknown document id."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getTermsId",
  "tags": [
    "Resources"
  ]
}
GET/mandates/{id}/termsThe contracts THIS mandate was formed under.

Not the same question as /terms (what is on offer now): this answers "what did I actually agree to, and can I still read it?". Each acceptance returns its stored version, contentHash, timestamp and via (web|api). body is the full text when the registry still holds that exact hash, and null otherwise — never a substitute text. supersededByVersion names the newer version when the registry has moved on; the acceptance itself stands, pinned by hash. An empty list means the mandate was not formed on THIDE's terms (created before the gate existed, or mirrored 'direct' work) — not that evidence was lost.

{
  "summary": "The contracts THIS mandate was formed under.",
  "description": "Not the same question as /terms (what is on offer now): this answers \"what did I actually agree to, and can I still read it?\". Each acceptance returns its stored version, contentHash, timestamp and via (web|api). body is the full text when the registry still holds that exact hash, and null otherwise — never a substitute text. supersededByVersion names the newer version when the registry has moved on; the acceptance itself stands, pinned by hash. An empty list means the mandate was not formed on THIDE's terms (created before the gate existed, or mirrored 'direct' work) — not that evidence was lost.\n",
  "security": [
    {
      "clientToken": [],
      "portalSession": []
    },
    {
      "creatorGrant": []
    },
    {
      "apiKey": []
    },
    {
      "studioKey": []
    },
    {
      "keyId": [],
      "apiSecret": []
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "{mandateId, accepted: [{documentId, version, contentHash, acceptedAt, via, title, status, body, supersededByVersion}], count}.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "mandateId": {
                "type": "string"
              },
              "accepted": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/TermsAcceptanceEvidence"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "body": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "supersededByVersion": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "title",
                        "status",
                        "body",
                        "supersededByVersion"
                      ]
                    }
                  ]
                }
              },
              "count": {
                "type": "integer"
              }
            },
            "required": [
              "mandateId",
              "accepted",
              "count"
            ]
          }
        }
      }
    },
    "401": {
      "description": "Bad token / key."
    },
    "403": {
      "$ref": "#/components/responses/KeyForbidden"
    },
    "404": {
      "description": "Unknown mandate."
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    }
  },
  "x-credential-roles": [
    "client",
    "professional"
  ],
  "operationId": "getMandatesIdTerms",
  "tags": [
    "Resources"
  ]
}
GET/client/actions/{actionRef}Read this credential’s content-free action receipt

Requires the same currently valid credential and role that made the claim; no additional read permission is required. There is no cross-credential or owner-wide lookup. Always reconcile the business object after uncertainty. A missing receipt does not establish that no action occurred.

{
  "operationId": "clientReadActionReceipt",
  "tags": [
    "Client Studio"
  ],
  "summary": "Read this credential’s content-free action receipt",
  "security": [
    {
      "keyId": [],
      "apiSecret": []
    },
    {
      "apiKey": []
    }
  ],
  "description": "Requires the same currently valid credential and role that made the claim; no additional read permission is required. There is no cross-credential or owner-wide lookup. Always reconcile the business object after uncertainty. A missing receipt does not establish that no action occurred.",
  "parameters": [
    {
      "in": "path",
      "name": "actionRef",
      "required": true,
      "schema": {
        "type": "string",
        "pattern": "^act_[a-f0-9]{64}$"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Safe action receipt with optional retained browser-review state. No stored response body, raw input, files or provider link is returned.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "Cache-Control": {
          "schema": {
            "const": "private, no-store"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "action"
            ],
            "additionalProperties": false,
            "properties": {
              "action": {
                "$ref": "#/components/schemas/WorkflowActionReceipt"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid operation input, invalid cursor or missing Idempotency-Key.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing, wrong-role, expired, revoked or mixed credentials.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Insufficient permission or required verification/terms.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Missing, foreign, historical without metadata, or expired completed receipt. This is not evidence that execution never happened.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Workflow refusal, changed version, held idempotency key, partial failure or one-time secret already issued. Inspect the code and current state; this status alone does not establish success or safe retry.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "Encoded body or file limits exceeded.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Unsupported content type.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency-Key was reused with different input; use the original encoded request for a retry.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Key or profile request limit reached. Honour Retry-After before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "499": {
      "description": "Request cancelled before this operation started. This does not resolve an earlier uncertain attempt.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "500": {
      "description": "Unknown outcome or operation failure. Read current state before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Required terms, rendering, payments or service configuration is unavailable. Check the error code before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "default": {
      "description": "An additional operation-specific or service error. Inspect the HTTP status and error code, preserve request references, and reconcile current state before retrying an uncertain mutation. Proxies may return a non-JSON body; handle transport and parse failures as uncertain outcomes.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
GET/identity/assignee-workspacesList the verified inbox's existing Subco workspaces

Read-only navigation discovery using the verified inbox session cookie. No query parameters, API credentials or caller-supplied email select an owner. Only active uniquely resolved memberships are returned; no account, token or term acceptance is created. Cross-origin browser calls are rejected. Every response is private, no-store. Following a workspace link still requires its existing inbox, terms and assignment authorization.

{
  "operationId": "identityAssigneeWorkspaces",
  "tags": [
    "Identity"
  ],
  "summary": "List the verified inbox's existing Subco workspaces",
  "description": "Read-only navigation discovery using the verified inbox session cookie. No query parameters, API credentials or caller-supplied email select an owner. Only active uniquely resolved memberships are returned; no account, token or term acceptance is created. Cross-origin browser calls are rejected. Every response is private, no-store. Following a workspace link still requires its existing inbox, terms and assignment authorization.",
  "security": [
    {
      "assigneeSession": []
    }
  ],
  "responses": {
    "200": {
      "description": "The inbox's active workspaces, or an empty list.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "workspaces"
                ],
                "properties": {
                  "workspaces": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "professionalId",
                        "memberId",
                        "professionalName",
                        "href"
                      ],
                      "properties": {
                        "professionalId": {
                          "type": "string"
                        },
                        "memberId": {
                          "type": "string"
                        },
                        "professionalName": {
                          "type": "string"
                        },
                        "href": {
                          "type": "string",
                          "pattern": "^/subco/work/[A-Za-z0-9_-]{1,256}$"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Query parameters are not accepted.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing, invalid or expired verified-inbox session.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-origin browser request refused.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Shared identity IP rate limit reached.",
      "headers": {
        "Retry-After": {
          "description": "Seconds until another request may be attempted.",
          "schema": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Workspace discovery is temporarily unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/challengeRequest an inbox proof

JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls.

{
  "operationId": "identityChallenge",
  "tags": [
    "Identity"
  ],
  "summary": "Request an inbox proof",
  "description": "JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. ",
  "security": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentityChallengeInput"
        }
      }
    }
  },
  "responses": {
    "202": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "step": {
                    "const": "code"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "step",
                  "email"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/verifyVerify the original inbox challenge

JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. The original challenge cookie is mandatory; a code or link from another client cannot create a session.

{
  "operationId": "identityVerify",
  "tags": [
    "Identity"
  ],
  "summary": "Verify the original inbox challenge",
  "description": "JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. The original challenge cookie is mandatory; a code or link from another client cannot create a session. ",
  "security": [
    {
      "identityChallenge": []
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentityVerifyInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "verified": {
                    "const": true
                  },
                  "destination": {
                    "type": "string"
                  }
                },
                "required": [
                  "verified",
                  "destination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "202": {
      "description": "The first step passed and this address has the authenticator app on. No session exists yet; preserve the pending cookie and post the authenticator or recovery code to /identity/second-step.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "verified": {
                    "const": false
                  },
                  "step": {
                    "const": "authenticator"
                  }
                },
                "required": [
                  "verified",
                  "step"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/passwordSign in with e-mail address and password

JSON twin of the sign-in form's password option. The password is the one the address set on its Profile page while signed in. Unknown address, address without a password, wrong password and operator address all answer the same 401; five failures lock the address's password sign-in for 15 minutes (429), and the e-mail code keeps working. Operators sign in by e-mail code only. Preserve cookies between calls. No cross-origin browser calls.

{
  "operationId": "identityPassword",
  "tags": [
    "Identity"
  ],
  "summary": "Sign in with e-mail address and password",
  "description": "JSON twin of the sign-in form's password option. The password is the one the address set on its Profile page while signed in. Unknown address, address without a password, wrong password and operator address all answer the same 401; five failures lock the address's password sign-in for 15 minutes (429), and the e-mail code keeps working. Operators sign in by e-mail code only. Preserve cookies between calls. No cross-origin browser calls. ",
  "security": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentityPasswordInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "verified": {
                    "const": true
                  },
                  "destination": {
                    "type": "string"
                  }
                },
                "required": [
                  "verified",
                  "destination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "202": {
      "description": "The first step passed and this address has the authenticator app on. No session exists yet; preserve the pending cookie and post the authenticator or recovery code to /identity/second-step.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "verified": {
                    "const": false
                  },
                  "step": {
                    "const": "authenticator"
                  }
                },
                "required": [
                  "verified",
                  "step"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/second-stepFinish a sign-in with the authenticator app

Asked after /identity/verify or /identity/password answered 202: post the six digits from the authenticator app, or a recovery code (single use). The pending cookie set by the first step is mandatory, lives ten minutes and works once; a wrong code keeps it, five failures lock this step for 15 minutes (429). No cross-origin browser calls.

{
  "operationId": "identitySecondStep",
  "tags": [
    "Identity"
  ],
  "summary": "Finish a sign-in with the authenticator app",
  "description": "Asked after /identity/verify or /identity/password answered 202: post the six digits from the authenticator app, or a recovery code (single use). The pending cookie set by the first step is mandatory, lives ten minutes and works once; a wrong code keeps it, five failures lock this step for 15 minutes (429). No cross-origin browser calls. ",
  "security": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentitySecondStepInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "verified": {
                    "const": true
                  },
                  "destination": {
                    "type": "string"
                  }
                },
                "required": [
                  "verified",
                  "destination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/credentialsIssue the first role key ID and secret

JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. Idempotency-Key required; unknown outcomes remain held. Credential secrets are shown once and never replayed.

{
  "operationId": "identityCredentials",
  "tags": [
    "Identity"
  ],
  "summary": "Issue the first role key ID and secret",
  "description": "JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. Idempotency-Key required; unknown outcomes remain held. Credential secrets are shown once and never replayed.",
  "security": [
    {
      "portalSession": []
    }
  ],
  "parameters": [
    {
      "in": "header",
      "name": "Idempotency-Key",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentityCredentialsInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "key",
                  "keyId",
                  "secret"
                ],
                "properties": {
                  "key": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "label",
                      "prefix",
                      "credentialVersion",
                      "scopes",
                      "expiresAt",
                      "createdAt",
                      "lastUsedAt",
                      "revokedAt",
                      "rotatedAt"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "prefix": {
                        "type": "string"
                      },
                      "credentialVersion": {
                        "type": "string",
                        "enum": [
                          "legacy",
                          "pair"
                        ]
                      },
                      "scopes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "read",
                            "workflow",
                            "settings",
                            "credentials",
                            "payments",
                            "operator"
                          ]
                        }
                      },
                      "expiresAt": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "lastUsedAt": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      },
                      "revokedAt": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      },
                      "rotatedAt": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      }
                    }
                  },
                  "keyId": {
                    "type": "string"
                  },
                  "secret": {
                    "type": "string",
                    "description": "Shown once. Store securely; never place in chat, URLs or logs."
                  }
                }
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
GET/identity/termsInspect terms for the verified inbox
{
  "operationId": "identityTermsRead",
  "tags": [
    "Identity"
  ],
  "summary": "Inspect terms for the verified inbox",
  "security": [
    {
      "portalSession": []
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "token",
      "required": true,
      "schema": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]{1,256}$"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Current inbox-authorized terms data.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "accepted": {
                    "type": "boolean"
                  },
                  "documents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "version",
                        "title",
                        "audience",
                        "status",
                        "effectiveDate",
                        "summary",
                        "body",
                        "contentHash"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "audience": {
                          "type": "string",
                          "enum": [
                            "client",
                            "professional"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "in_force"
                          ]
                        },
                        "partnerApplicable": {
                          "type": "boolean"
                        },
                        "effectiveDate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "summary": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        },
                        "contentHash": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "accepted",
                  "documents"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/termsAccept current subcontractor terms before the first key

JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. Idempotency-Key required; unknown outcomes remain held. Credential secrets are shown once and never replayed.

{
  "operationId": "identityTerms",
  "tags": [
    "Identity"
  ],
  "summary": "Accept current subcontractor terms before the first key",
  "description": "JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. Idempotency-Key required; unknown outcomes remain held. Credential secrets are shown once and never replayed.",
  "security": [
    {
      "portalSession": []
    }
  ],
  "parameters": [
    {
      "in": "header",
      "name": "Idempotency-Key",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentityTermsInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "accepted": {
                    "const": true
                  }
                },
                "required": [
                  "accepted"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
GET/identity/nominationInspect nomination for the verified inbox
{
  "operationId": "identityNominationRead",
  "tags": [
    "Identity"
  ],
  "summary": "Inspect nomination for the verified inbox",
  "security": [
    {
      "portalSession": []
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "token",
      "required": true,
      "schema": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]{1,256}$"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Current inbox-authorized nomination data.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "professionalName": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "translation",
                      "review",
                      "legalisation",
                      "invoicing"
                    ]
                  },
                  "pair": {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string"
                      },
                      "target": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "source",
                      "target"
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "regular",
                      "sworn"
                    ]
                  },
                  "lineCount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "volume": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "enum": [
                          "Characters",
                          "Characters excl. spaces",
                          "Words",
                          "Document pages",
                          "Lines"
                        ]
                      },
                      "count": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "label",
                      "count"
                    ]
                  },
                  "offerCents": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "deadlineBucket": {
                    "$ref": "#/components/schemas/Mandate/properties/deadlineBucket"
                  },
                  "assignedAt": {
                    "type": "string"
                  },
                  "documents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fileName": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "fileName"
                      ]
                    }
                  }
                },
                "required": [
                  "professionalName",
                  "role",
                  "pair",
                  "kind",
                  "lineCount",
                  "volume",
                  "offerCents",
                  "deadlineBucket",
                  "assignedAt",
                  "documents"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/nominationAccept or decline the invitation after inbox proof

JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. Idempotency-Key required; unknown outcomes remain held. Credential secrets are shown once and never replayed.

{
  "operationId": "identityNomination",
  "tags": [
    "Identity"
  ],
  "summary": "Accept or decline the invitation after inbox proof",
  "description": "JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. Idempotency-Key required; unknown outcomes remain held. Credential secrets are shown once and never replayed.",
  "security": [
    {
      "portalSession": []
    }
  ],
  "parameters": [
    {
      "in": "header",
      "name": "Idempotency-Key",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentityNominationInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string"
                  }
                },
                "required": [
                  "destination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/identity/signoutClear the API cookie session

JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls.

{
  "operationId": "identitySignout",
  "tags": [
    "Identity"
  ],
  "summary": "Clear the API cookie session",
  "description": "JSON-only identity workflow sharing the UI inbox proof and cookie session. Preserve cookies between calls. No cross-origin browser calls. ",
  "security": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentitySignoutInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Identity result. Preserve Set-Cookie values; issued secrets are shown only once.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "signedOut": {
                    "const": true
                  }
                },
                "required": [
                  "signedOut"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid input or missing Idempotency-Key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing inbox proof or verification failed.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Cross-site request, missing required terms or unavailable profile.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Invitation or profile unavailable to this verified inbox.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Changed state, pending operation or one-time secret already issued.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "JSON input exceeds 16 KiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Use application/json.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency key belongs to different input.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Rate limited; back off before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Challenge delivery or identity service unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
GET/client/operationsDiscover operations available to this credential
{
  "operationId": "clientDiscoverOperations",
  "tags": [
    "Client Studio"
  ],
  "summary": "Discover operations available to this credential",
  "security": [
    {
      "keyId": [],
      "apiSecret": []
    },
    {
      "apiKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Role and the scoped operation catalog, including input and result schemas.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowCatalog"
          }
        }
      }
    },
    "400": {
      "description": "Invalid operation input, invalid cursor or missing Idempotency-Key.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing, wrong-role, expired, revoked or mixed credentials.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Insufficient permission or required verification/terms.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Unknown operation or resource unavailable to this identity.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Workflow refusal, changed version, held idempotency key, partial failure or one-time secret already issued. Inspect the code and current state; this status alone does not establish success or safe retry.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "Encoded body or file limits exceeded.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Unsupported content type.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency-Key was reused with different input; use the original encoded request for a retry.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Key or profile request limit reached. Honour Retry-After before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "499": {
      "description": "Request cancelled before this operation started. This does not resolve an earlier uncertain attempt.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "500": {
      "description": "Unknown outcome or operation failure. Read current state before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Required terms, rendering, payments or service configuration is unavailable. Check the error code before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "default": {
      "description": "An additional operation-specific or service error. Inspect the HTTP status and error code, preserve request references, and reconcile current state before retrying an uncertain mutation. Proxies may return a non-JSON body; handle transport and parse failures as uncertain outcomes.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
POST/client/operationsExecute one explicit role operation
{
  "operationId": "clientExecuteOperation",
  "tags": [
    "Client Studio"
  ],
  "summary": "Execute one explicit role operation",
  "security": [
    {
      "keyId": [],
      "apiSecret": []
    },
    {
      "apiKey": []
    }
  ],
  "parameters": [
    {
      "in": "header",
      "name": "Idempotency-Key",
      "required": false,
      "description": "Required for every mutation. Reuse only with the identical encoded request body. Unknown outcomes remain held; one-time secrets are never replayed. Read operations do not require it.",
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/clientCommand"
        }
      },
      "multipart/form-data": {
        "schema": {
          "oneOf": [
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "referral.messages"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "referral.send"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "message": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                      }
                    },
                    "required": [
                      "mandateId",
                      "message"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.create"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "subject": {
                        "type": "string"
                      },
                      "requestedDate": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 4000
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "nl",
                          "en",
                          "fr",
                          "de",
                          "es",
                          "it",
                          "pt",
                          "ru",
                          "zh",
                          "uk",
                          "ro"
                        ]
                      },
                      "targetLanguages": {
                        "minItems": 1,
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "nl",
                            "en",
                            "fr",
                            "de",
                            "es",
                            "it",
                            "pt",
                            "ru",
                            "zh",
                            "uk",
                            "ro"
                          ]
                        }
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "regular",
                          "sworn"
                        ]
                      },
                      "machineTier": {
                        "type": "boolean"
                      },
                      "alsoMachine": {
                        "type": "boolean"
                      },
                      "destination": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2
                      },
                      "issuingCountry": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2
                      },
                      "documentCategory": {
                        "type": "string",
                        "enum": [
                          "civil_status",
                          "diploma",
                          "notarial",
                          "commercial",
                          "other"
                        ]
                      },
                      "docPairs": {
                        "minItems": 1,
                        "maxItems": 30,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "source": {
                              "type": "string",
                              "enum": [
                                "nl",
                                "en",
                                "fr",
                                "de",
                                "es",
                                "it",
                                "pt",
                                "ru",
                                "zh",
                                "uk",
                                "ro"
                              ]
                            },
                            "targets": {
                              "minItems": 1,
                              "maxItems": 10,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "nl",
                                  "en",
                                  "fr",
                                  "de",
                                  "es",
                                  "it",
                                  "pt",
                                  "ru",
                                  "zh",
                                  "uk",
                                  "ro"
                                ]
                              }
                            },
                            "kind": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "regular",
                                    "sworn",
                                    "machine"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "alsoMachine": {
                              "type": "boolean"
                            },
                            "destination": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 2,
                                  "maxLength": 2
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "targetKinds": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "nl",
                                  "en",
                                  "fr",
                                  "de",
                                  "es",
                                  "it",
                                  "pt",
                                  "ru",
                                  "zh",
                                  "uk",
                                  "ro"
                                ]
                              },
                              "additionalProperties": {
                                "type": "string",
                                "enum": [
                                  "regular",
                                  "sworn",
                                  "machine"
                                ]
                              }
                            },
                            "targetAlsoMachine": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "nl",
                                  "en",
                                  "fr",
                                  "de",
                                  "es",
                                  "it",
                                  "pt",
                                  "ru",
                                  "zh",
                                  "uk",
                                  "ro"
                                ]
                              },
                              "additionalProperties": {
                                "type": "boolean"
                              }
                            },
                            "targetDestinations": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "nl",
                                  "en",
                                  "fr",
                                  "de",
                                  "es",
                                  "it",
                                  "pt",
                                  "ru",
                                  "zh",
                                  "uk",
                                  "ro"
                                ]
                              },
                              "additionalProperties": {
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 2
                              }
                            }
                          },
                          "required": [
                            "source",
                            "targets"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "countJobs": {
                        "maxItems": 30,
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[A-Za-z0-9_-]{43}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "fileNames": {
                        "minItems": 1,
                        "maxItems": 30,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255,
                          "pattern": "^[^\\\\/\\u0000-\\u001f]+$"
                        }
                      },
                      "acceptTerms": {
                        "type": "boolean"
                      },
                      "platformTermsClaim": {
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "version": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "contentHash": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "id",
                            "version",
                            "contentHash"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "subject"
                    ],
                    "additionalProperties": false
                  }
                },
                "file": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "attachment": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "intake.terms"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input",
                "file"
              ],
              "properties": {
                "operation": {
                  "const": "count.start"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                },
                "file": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "count.get"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "ticket": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{43}$"
                      }
                    },
                    "required": [
                      "ticket"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "count.cancel"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "ticket": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{43}$"
                      }
                    },
                    "required": [
                      "ticket"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "requests.list"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "screen": {
                        "default": "requests",
                        "description": "Requests shows open quote decisions; Jobs shows work that has been funded. Grouped work can appear in both views. archive selects the chosen view’s archive.",
                        "type": "string",
                        "enum": [
                          "requests",
                          "jobs"
                        ]
                      },
                      "archive": {
                        "default": false,
                        "type": "boolean"
                      },
                      "q": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "status": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^[^,\\r\\n]{0,100}(?:,[^,\\r\\n]{0,100}){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "from": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*(?:,(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "to": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*(?:,(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^(?:\\s*(?:machine|regular|sworn))?\\s*(?:,(?:\\s*(?:machine|regular|sworn))?\\s*){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "month": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}$"
                      },
                      "sort": {
                        "type": "string",
                        "enum": [
                          "reference",
                          "status",
                          "date",
                          "deadline"
                        ]
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "asc",
                          "desc"
                        ]
                      },
                      "language": {
                        "type": "string",
                        "enum": [
                          "en",
                          "nl"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "requests.export"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "screen": {
                        "default": "requests",
                        "description": "Requests shows open quote decisions; Jobs shows work that has been funded. Grouped work can appear in both views. archive selects the chosen view’s archive.",
                        "type": "string",
                        "enum": [
                          "requests",
                          "jobs"
                        ]
                      },
                      "archive": {
                        "default": false,
                        "type": "boolean"
                      },
                      "q": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "status": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^[^,\\r\\n]{0,100}(?:,[^,\\r\\n]{0,100}){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "from": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*(?:,(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "to": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*(?:,(?:\\s*(?:nl|en|fr|de|es|it|pt|ru|zh|uk|ro))?\\s*){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^(?:\\s*(?:machine|regular|sworn))?\\s*(?:,(?:\\s*(?:machine|regular|sworn))?\\s*){0,31}$",
                        "description": "Comma-separated choices: OR within this field; AND across fields on the same item. Whitespace and duplicate choices are ignored; empty choices clear the filter. At most 32 entries, 2048 characters."
                      },
                      "month": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}$"
                      },
                      "sort": {
                        "type": "string",
                        "enum": [
                          "reference",
                          "status",
                          "date",
                          "deadline"
                        ]
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "asc",
                          "desc"
                        ]
                      },
                      "language": {
                        "type": "string",
                        "enum": [
                          "en",
                          "nl"
                        ]
                      },
                      "mandateIds": {
                        "maxItems": 1000,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        }
                      }
                    },
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.get"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.reprice"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "deadlineBucket": {
                        "type": "string",
                        "enum": [
                          "rush_1_3d",
                          "week_1",
                          "month_1"
                        ]
                      }
                    },
                    "required": [
                      "mandateId",
                      "deadlineBucket"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.paymentOffer"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "group": {
                        "default": false,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.pay"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "anyOf": [
                      {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "properties": {
                          "mandateId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "companyName": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "vatNumber": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "address": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "street": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "postalCode": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "city": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "country": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "payerType": {
                            "type": "string",
                            "enum": [
                              "individual",
                              "company"
                            ]
                          },
                          "rememberPayerType": {
                            "type": "boolean"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "bancontact",
                              "ideal",
                              "card",
                              "sepa"
                            ]
                          },
                          "savedMethod": {
                            "type": "string",
                            "pattern": "^pm_[A-Za-z0-9]+$"
                          },
                          "group": {
                            "type": "boolean"
                          },
                          "engagementAccepted": {
                            "type": "boolean",
                            "const": true
                          },
                          "gateAck": {
                            "type": "boolean",
                            "const": true
                          },
                          "engagementAcceptance": {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "contentHash": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "payoutTiming": {
                                "type": "string",
                                "enum": [
                                  "delivery-v1",
                                  "acceptance-v1"
                                ]
                              },
                              "items": {
                                "minItems": 1,
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "mandateId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200
                                    },
                                    "quoteId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200
                                    },
                                    "quoteHash": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "totalCents": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "mandateId",
                                    "quoteId",
                                    "quoteHash",
                                    "totalCents"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "version",
                              "contentHash",
                              "items"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "mandateId",
                          "engagementAccepted",
                          "gateAck",
                          "engagementAcceptance"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "properties": {
                          "mandateId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "companyName": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "vatNumber": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "address": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "street": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "postalCode": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "city": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "country": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "payerType": {
                            "type": "string",
                            "enum": [
                              "individual",
                              "company"
                            ]
                          },
                          "rememberPayerType": {
                            "type": "boolean"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "bancontact",
                              "ideal",
                              "card",
                              "sepa"
                            ]
                          },
                          "savedMethod": {
                            "type": "string",
                            "pattern": "^pm_[A-Za-z0-9]+$"
                          },
                          "group": {
                            "type": "boolean"
                          },
                          "engagementAccepted": {
                            "type": "boolean",
                            "const": true
                          },
                          "gateAck": {
                            "type": "boolean",
                            "const": true
                          },
                          "engagementAcceptance": {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "contentHash": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "payoutTiming": {
                                "type": "string",
                                "enum": [
                                  "delivery-v1",
                                  "acceptance-v1"
                                ]
                              },
                              "items": {
                                "minItems": 1,
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "mandateId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200
                                    },
                                    "quoteId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200
                                    },
                                    "quoteHash": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "totalCents": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "mandateId",
                                    "quoteId",
                                    "quoteHash",
                                    "totalCents"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "version",
                              "contentHash",
                              "items"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "mandateId"
                        ],
                        "additionalProperties": false
                      }
                    ],
                    "description": "The authenticated credential selects the input contract. Current authority plus H policy accepts a human handoff without personal proof fields; preserved legacy credentials require the original input. Supplied fields are validated in either contract."
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.paymentStatus"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.billing"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.question"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "message": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                      }
                    },
                    "required": [
                      "mandateId",
                      "message"
                    ],
                    "additionalProperties": false
                  }
                },
                "attachment": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.accept"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "anyOf": [
                      {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "properties": {
                          "mandateId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "deliveryRevision": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "required": [
                          "mandateId",
                          "deliveryRevision"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "properties": {
                          "mandateId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "deliveryRevision": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "required": [
                          "mandateId"
                        ],
                        "additionalProperties": false
                      }
                    ],
                    "description": "The authenticated credential selects the input contract. Current authority plus H policy accepts a human handoff without personal proof fields; preserved legacy credentials require the original input. Supplied fields are validated in either contract."
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.acceptance"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.correction"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "message": {
                        "type": "string",
                        "minLength": 5,
                        "maxLength": 4000
                      }
                    },
                    "required": [
                      "mandateId",
                      "message"
                    ],
                    "additionalProperties": false
                  }
                },
                "attachment": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.refer"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.caseFile"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "language": {
                        "type": "string",
                        "enum": [
                          "en",
                          "nl"
                        ]
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.decline"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "request.upgrade"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "documents.list"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "billingOnly": {
                        "default": false,
                        "type": "boolean"
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "cursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024,
                        "pattern": "^[A-Za-z0-9_-]+$"
                      }
                    },
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "document.download"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "documentId": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{1,200}$"
                      }
                    },
                    "required": [
                      "mandateId",
                      "documentId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "attachment.download"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "attachmentId": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{1,200}$"
                      }
                    },
                    "required": [
                      "mandateId",
                      "attachmentId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "documents.archive"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "deliveryOnly": {
                        "type": "boolean"
                      },
                      "documentIds": {
                        "minItems": 1,
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        }
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "settings.get"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "settings.payer"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "defaultPayerType": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "individual",
                              "company"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "defaultPayerType"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "settings.business.activate"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "settings.details"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "companyName": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "vatNumber": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "address": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "street": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "country": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "clear": {
                        "type": "boolean",
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "settings.name"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "clientName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "clientName"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "settings.language"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "language": {
                        "type": "string",
                        "enum": [
                          "en",
                          "nl"
                        ]
                      }
                    },
                    "required": [
                      "language"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "settings.notifications"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "emailNotifications": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "emailNotifications"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "account.move"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "step": {
                            "type": "string",
                            "const": "request"
                          },
                          "newEmail": {
                            "type": "string",
                            "maxLength": 254
                          }
                        },
                        "required": [
                          "step",
                          "newEmail"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "step": {
                            "type": "string",
                            "const": "confirm"
                          },
                          "newEmail": {
                            "type": "string",
                            "maxLength": 254
                          },
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 20
                          }
                        },
                        "required": [
                          "step",
                          "newEmail",
                          "code"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "step": {
                            "type": "string",
                            "const": "complete"
                          },
                          "newEmail": {
                            "type": "string",
                            "maxLength": 254
                          },
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 20
                          },
                          "ticket": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "step",
                          "newEmail",
                          "code",
                          "ticket"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "paymentMethods.list"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "paymentMethods.setup"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "paymentMethods.manage"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "paymentMethodId": {
                        "type": "string",
                        "pattern": "^pm_[A-Za-z0-9]+$"
                      },
                      "intent": {
                        "type": "string",
                        "enum": [
                          "default",
                          "remove"
                        ]
                      }
                    },
                    "required": [
                      "paymentMethodId",
                      "intent"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "profile.get"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "profile.image.get"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input",
                "image"
              ],
              "properties": {
                "operation": {
                  "const": "profile.image.set"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                },
                "image": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "profile.image.remove"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "counterparty.image.get"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "mandateId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "target": {
                        "type": "string",
                        "enum": [
                          "counterparty",
                          "assignment"
                        ]
                      }
                    },
                    "required": [
                      "mandateId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "credentials.list"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {},
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "credentials.create"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "scopes": {
                        "minItems": 1,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "read",
                            "workflow",
                            "settings",
                            "credentials",
                            "payments",
                            "operator"
                          ]
                        }
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "string",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "label"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "credentials.rotate"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "keyId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "keyId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "credentials.revoke"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "keyId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "keyId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "callbacks.save"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "keyId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048
                      }
                    },
                    "required": [
                      "keyId",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "callbacks.rotate"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "keyId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "keyId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            {
              "type": "object",
              "required": [
                "operation",
                "input"
              ],
              "properties": {
                "operation": {
                  "const": "callbacks.test"
                },
                "input": {
                  "type": "string",
                  "description": "JSON encoding of this operation input schema.",
                  "contentMediaType": "application/json",
                  "contentSchema": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "keyId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "keyId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          ]
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Operation data or explicit continuation. Binary download operations return the file directly with its actual Content-Type; inspect Content-Disposition for an available filename. request.caseFile may return PDF or HTML fallback. A provider continuation never establishes payment capture.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        },
        "Content-Disposition": {
          "description": "When supplied by a download operation, the attachment filename.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/clientResult"
          }
        },
        "application/octet-stream": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        },
        "application/pdf": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        },
        "text/html": {
          "schema": {
            "type": "string"
          }
        },
        "text/csv": {
          "schema": {
            "type": "string"
          }
        },
        "*/*": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    },
    "400": {
      "description": "Invalid operation input, invalid cursor or missing Idempotency-Key.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "401": {
      "description": "Missing, wrong-role, expired, revoked or mixed credentials.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "403": {
      "description": "Insufficient permission or required verification/terms.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "404": {
      "description": "Unknown operation or resource unavailable to this identity.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "409": {
      "description": "Workflow refusal, changed version, held idempotency key, partial failure or one-time secret already issued. Inspect the code and current state; this status alone does not establish success or safe retry.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "413": {
      "description": "Encoded body or file limits exceeded.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "415": {
      "description": "Unsupported content type.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "422": {
      "description": "Idempotency-Key was reused with different input; use the original encoded request for a retry.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "429": {
      "description": "Key or profile request limit reached. Honour Retry-After before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "499": {
      "description": "Request cancelled before this operation started. This does not resolve an earlier uncertain attempt.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "500": {
      "description": "Unknown outcome or operation failure. Read current state before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "503": {
      "description": "Required terms, rendering, payments or service configuration is unavailable. Check the error code before retrying.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    },
    "default": {
      "description": "An additional operation-specific or service error. Inspect the HTTP status and error code, preserve request references, and reconcile current state before retrying an uncertain mutation. Proxies may return a non-JSON body; handle transport and parse failures as uncertain outcomes.",
      "headers": {
        "X-Request-Id": {
          "description": "Server-minted reference for this dispatch, including refused or replayed requests. Keep it for support; it is not proof of a business outcome.",
          "schema": {
            "type": "string"
          }
        },
        "X-Action-Ref": {
          "description": "Opaque reference to this credential’s durable action receipt, only when that metadata exists. Historical records may omit it. A receipt is not proof of business completion.",
          "schema": {
            "type": "string",
            "pattern": "^act_[a-f0-9]{64}$"
          }
        },
        "Idempotent-Replayed": {
          "description": "Present when the idempotency executor returns or replays a recorded mutation response. A replay does not execute the action again.",
          "schema": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "Retry-After": {
          "description": "When present, wait this many seconds before another attempt. A delay never authorizes a fresh idempotency key for an uncertain action.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkflowError"
          }
        }
      }
    }
  }
}
GET/client/openapi.jsonPublic generated contract for this role
{
  "operationId": "clientOpenApi",
  "tags": [
    "Client Studio"
  ],
  "summary": "Public generated contract for this role",
  "security": [],
  "responses": {
    "200": {
      "description": "OpenAPI 3.1 contract.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/RoleOpenApiDocument"
          }
        }
      }
    }
  }
}