{"openapi":"3.1.0","info":{"title":"THIDE Client Studio API","version":"1.2","description":"Client Studio operations. Authenticate using x-thide-key-id AND x-thide-secret for this profile, or its legacy key header. GET /client/operations returns only the commands allowed by the supplied credential. A profile may have up to 5 non-revoked keys. All its keys share 120 requests per minute, in addition to the per-key limit of 120 per minute. A 429 response includes Retry-After; no daily quota applies. Every role-operation mutation and every /identity mutation except challenge, verify and signout needs Idempotency-Key; on the resource routes it is optional and honoured for keyed callers on POST /mandates and POST /request-groups/{id}/decision only. Codes, explicit term acceptance, provider verification and document review requirements are enforced equally for the UI and API. Browser-local presentation settings are not business operations. A continuation is not proof of payment or verification completion."},"servers":[{"url":"/api/v1"}],"components":{"securitySchemes":{"assigneeKey":{"type":"apiKey","in":"header","name":"x-thide-assignee","description":"Legacy subcontractor key (thide_asg_…) of an active assignee account. No longer issued since 13 Oct: new subcontractor credentials are keyId + apiSecret, which open the same doors. Only opens that member's current translation/legalisation assignments for the owning professional. Revoked keys and inactive members are refused. Do not send x-thide-key or x-thide-studio alongside it; mixed credentials return 401. Metered at 120 requests/minute per key and per profile. No portal cookie or work token is accepted.\n"},"clientToken":{"type":"apiKey","in":"query","name":"token","description":"Resource locator; requires the recipient's verified portalSession cookie as well."},"portalSession":{"type":"apiKey","in":"cookie","name":"thide_portal","description":"Signed session from the e-mail code flow; must match the mandate"},"studioSession":{"type":"apiKey","in":"cookie","name":"thide_studio","description":"The professional's Studio session, sealed like portalSession by the same e-mail code flow when the challenge was started from the Studio door (since 3 Nov 2026 each workspace has its own cookie, so one browser can hold a client, a Studio and a Subco session at once). Read by Studio pages, exports and browser downloads; never by the client API.\n"},"assigneeSession":{"type":"apiKey","in":"cookie","name":"thide_subco","description":"The subcontractor's Subco Studio session, sealed by the same flow when the challenge was started from /subco or a /m or /n link. Read by the Subco workspace and the assignee-workspaces listing. recipient.\n"},"apiKey":{"type":"apiKey","in":"header","name":"x-thide-key","description":"Legacy client key (thide_cli_…, stored hashed). Settings → API no longer issues these since 13 Oct; existing keys keep working, and a client key-ID/secret pair (keyId + apiSecret) opens exactly the same doors. Authorises what an integrator key does PLUS the owner's own mandates without a ?token= — exactly: GET /mandates/{id}, GET/POST questions, GET/POST accept, GET/POST legalisation, GET terms, document and attachment download, archive, case file, POST pay and POST /request-groups/{id}/pay — and PINS intake: POST /mandates must carry the owner's clientEmail or answers 403 client_email_mismatch. Another owner's mandate answers 401 exactly as a wrong token does. Revoking a key under Settings takes effect on the next request; metered at 120 requests/minute per key and per profile (429 rate_limited). The env list THIDE_API_KEYS (comma-separated) is the bootstrap integrator credential for TD/KSc only — no owner, no per-client access.\n"},"studioKey":{"type":"apiKey","in":"header","name":"x-thide-studio","description":"Legacy professional key (thide_pro_…, stored hashed, revocable). Studio → Settings → API no longer issues these since 13 Oct; existing keys keep working, and a professional key-ID/secret pair opens exactly the same doors. Exactly the studio's own access; metered at 120 requests/minute per key and per profile. The env STUDIO_DEV_KEY is the bootstrap for TD/KSc only and is not production security. SERVER-INTERNAL ONLY, never for integrators: the Studio's own server actions call this API with the bootstrap key plus `x-thide-studio-context`, a short-lived HMAC-signed owner context (lib/studio-api-context.ts) that names which professional the call acts for; it is refused with 401 unless it verifies against the bootstrap secret, and a key created under Settings never needs it (its owner is the key's).\n"},"creatorGrant":{"type":"apiKey","in":"header","name":"x-thide-creator","description":"The creator grant as a bearer (B-03, 31 Oct 2026). POST /mandates returns it ONCE as `creatorGrant` to a caller that presented no client or professional credential — the same signed grant the web form puts in the browser's creator cookie. It opens exactly the request (or multi-language group) it was issued for, on its own (no ?token= beside it), for seven days (the life of the signed document links in the same envelope) and only while that request is unpaid: GET /mandates/{id} (envelope, quote, engagementOffer), GET/POST questions, GET/POST legalisation, GET /mandates/{id}/terms, GET /mandates/{id}/accept, the request's own document and attachment download and archive. From the first funded status on it is 401 everywhere. It proves no inbox and never charges: POST /mandates/{id}/pay and POST /request-groups/{id}/pay answer it 403 verification_required with {continuation: {kind: verification, url}} once the quote is payable (5 Nov 2026) — the web payment-verification entry, where the person who owns the request's inbox proves it and pays — and it never accepts a delivery, opens another request, saved payment methods, keys or the role operations: those take the recipient's verified session or the client's own key. It is not a key: unmetered as one, and the intake meters are unchanged. Keep it like the access token; a lost grant means verifying the inbox to continue.\n"},"keyId":{"type":"apiKey","in":"header","name":"x-thide-key-id","description":"Profile API key ID. Must be accompanied by apiSecret in the same request. Do not mix with legacy credentials."},"apiSecret":{"type":"apiKey","in":"header","name":"x-thide-secret","description":"One-time issued profile secret, stored hashed. Send together with keyId; role, permission, expiry and revocation are enforced."},"identityChallenge":{"type":"apiKey","in":"cookie","name":"thide_login_challenge","description":"HTTP-only challenge cookie issued by identity/challenge. Must be preserved and sent to identity/verify together with the code or link proof."}},"parameters":{"CallbackEvent":{"name":"x-thide-event","in":"header","required":true,"schema":{"type":"string"},"description":"The event name (mandate.<status> | ping)."},"CallbackDelivery":{"name":"x-thide-delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Delivery id — a retry reuses it; treat a repeat as already handled."},"CallbackTimestamp":{"name":"x-thide-timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed; reject if more than 5 minutes from now."},"CallbackSignature":{"name":"x-thide-signature","in":"header","required":true,"schema":{"type":"string"},"description":"\"sha256=\" + hex(HMAC_SHA256(secret, x-thide-timestamp + \".\" + rawBody)). Compare in constant time over the RAW bytes."},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200,"pattern":"^[\\x20-\\x7E]+$"},"description":"Make a retried creation safe (TD, 6 Sep). Any printable-ASCII string up to 200 characters, unique per request (a UUID is ideal); anything else → 400 idempotency_key_invalid. KEYED CALLERS ONLY: the header is scoped to your API key, so the open (keyless) door refuses it with 400 idempotency_requires_key — authenticate with a key (key ID and secret, or a legacy key), or drop the header. Valid 24 h. Same key + the same request (method, path and the RAW body bytes — a retry must resend the IDENTICAL bytes: a multipart body with the same boundary, fixed in your client, or a JSON body; a regenerated boundary is a different body and gets 422, not a replay) → the stored response is replayed with the same status and body and the header `Idempotent-Replayed: true` (a first answer carries `false`). Same key + a different request → 422 idempotency_key_reused. Same key while the first request is still running → 409 idempotency_in_flight (retry in a moment; after 3 minutes an unfinished first request counts as dead and the retry takes over). Stored and replayed: 2xx and the deterministic 4xx (validation, 403, 404, 415…). NOT stored — the retry re-executes: 5xx, a crash, and the transient statuses 408/425/429 (a rate-limit answer is never replayed) — as long as nothing was created. A request that fails AFTER it created something answers 500 partly_processed, and that answer IS stored and replayed: the retry never creates the request a second time. Read the current state (GET /mandates) before deciding what to send next. POST /mandates and POST /request-groups/{id}/decision honour it. Group release replays the response without another notification.\n"}},"responses":{"RateLimited":{"description":"rate_limited — the credential presented (x-thide-key-id with x-thide-secret, or a legacy x-thide-key, x-thide-studio or x-thide-assignee key), or its profile across all its keys, exceeded 120 requests in the last minute. The env bootstrap keys have their own 120/minute bucket each. Nothing ran; wait Retry-After seconds and retry. Every route that accepts a key can answer this, before any other check. Mandate tokens are not key-metered; the intake, archive, question, identity and catalog doors meter per IP, mandate or e-mail instead — and the intake all callers together (100 / 10 min, 5 Nov 2026): a keyless door needs a bound a rotating IP cannot lift.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the oldest request falls out of the window."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"KeyForbidden":{"description":"insufficient_scope — the credential lacks the permission this route needs (info.description, PERMISSIONS: read for a GET; payments for pay, accept, self-bill, refund-referred, release-referred, count and a decline; workflow for any other POST). terms_acceptance_required — the professional has not accepted every document onboarding.get lists (onboarding.get, onboarding.accept); or, where the Engagement Terms are among them, on a quote send only (POST /mandates/{id}/decision action send, POST /request-groups/{id}/decision, quotes.confirm-request), her newest Engagement Terms receipt is not for the version now in force — the message names that version; or the subcontractor has not accepted the subcontractor terms. Nothing ran.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"JsonBodyTooLarge":{"description":"payload_too_large — the JSON body is larger than 64 KiB, declared in Content-Length or counted while streaming. Nothing was parsed or changed.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"AssigneeJob":{"type":"object","description":"Assigned work only. No client contact credentials, prices, invoices, internal professional reference or other subcontractors' uploads. Every response is Cache-Control no-store. Current invitations may inspect source documents; subcontractor uploads remain restricted to the member's accepted assignment revisions. Contact information is redacted from filenames and notes.\n","required":["id","requestId","updatedAt","reference","status","languages","kind","assignments","documents"],"properties":{"id":{"type":"string"},"requestId":{"type":"string","description":"Grouping key for this owned request; only jobs returned to this member belong in a confirmation."},"updatedAt":{"type":"string","format":"date-time","description":"Copy exactly as expectedUpdatedAt when confirming decisions or submitting prepared work."},"reference":{"type":"string","description":"THIDE display reference."},"status":{"type":"string","enum":["accepted","in_progress","translated","delivered","settled"]},"languages":{"type":"object","required":["source","target"],"properties":{"source":{"type":"string"},"target":{"type":"string"}}},"kind":{"type":"string","enum":["regular","sworn"]},"assignments":{"type":"array","items":{"type":"object","required":["role","assignedAt","pendingAcceptance","acceptedAt","review","dueDate"],"properties":{"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","format":"date-time"},"pendingAcceptance":{"type":"boolean"},"acceptedAt":{"type":["string","null"],"format":"date-time"},"dueDate":{"type":["string","null"],"format":"date","description":"The day the professional wants this work back (a civil day, YYYY-MM-DD), set on the assignment; null when none was named."},"review":{"type":["object","null"],"required":["state","documentId","note"],"properties":{"state":{"type":"string","enum":["changes_requested","approved"]},"documentId":{"type":["string","null"]},"note":{"type":["string","null"]}}}}}},"documents":{"type":"array","items":{"type":"object","required":["id","role","kind","fileName","mimeType","sizeBytes","createdAt","download"],"properties":{"id":{"type":"string"},"role":{"type":"string","enum":["source","partner_upload"]},"kind":{"type":["string","null"],"enum":["translation","legalisation",null]},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"download":{"type":"string","description":"Relative download URL; requires the same assignee key."}}}}}},"AssigneeSubmissionResult":{"type":"object","required":["findings","checksUnavailable"],"properties":{"checksUnavailable":{"type":"boolean","description":"True when automatic checks could not complete; never means checks passed."},"findings":{"type":"array","description":"Advisory checks; the file is saved regardless of these findings.","items":{"type":"object","required":["code","level","message"],"properties":{"code":{"type":"string","enum":["language_mismatch","language_undetected","apostille_missing","apostille_not_evidenced","suspiciously_short","unreadable","same_as_source","invoice_amount_mismatch","invoice_credit_note","invoice_type_unverified","invoice_amount_unreadable","invoice_missing"]},"level":{"type":"string","enum":["warn","note"]},"message":{"type":"string"}}}}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable code. The enum below is COMPLETE — apps/web/src/app/api/v1/openapi-parity.test.ts fails when a route emits a code that is not listed here. Grouped: request shape (validation — also an unknown ?status= name on GET /mandates —, terms_not_accepted, terms_acceptance_required, unsupported_file_type, malware_detected — the virus scan refused a document; nothing stored —, payload_too_large, archive_too_large, unknown_lane, unknown_bucket, invoice_required, idempotency_key_invalid, idempotency_requires_key); auth (unauthorized, forbidden, client_email_mismatch, rate_limited, count_capacity — the background reading queue refused the documents: retry after Retry-After, or send smaller batches); lookup (not_found, file_missing, link_expired); state (illegal_transition, no_payable_quote, price_locked, price_held, count_not_applicable, quote_not_releasable, quote_vat_mismatch, no_translator, not_referred, not_refundable, not_releasable, idempotency_key_reused, idempotency_in_flight); payment (payment_attempt_pending, engagement_acceptance_required); invoicing by THIDE (self_billing_disabled, unassigned, issuer_incomplete, self_bill_missing, invoice_unavailable, self_bill_not_issued, self_bill_already_issued, self_bill_already_contested, contest_window_closed, invoice_rejection_unavailable, self_bill_not_rejected, self_bill_not_refunded, own_invoice_not_expected, own_invoice_already_attached, ubl_invalid — the built e-invoice failed the structural check: number allocated, nothing stored, retry after the fix; pdf_unavailable — the PDF renderer is down, nothing numbered or issued, answered with 503 so the caller retries later); Stripe and Recommand webhooks (missing_signature, invalid_signature, stripe_mode_mismatch, stripe_webhook_scope_mismatch, stripe_webhook_configuration, missing_metadata, not_configured; a non-JSON Recommand body is invalid_body); cookie-authenticated browser doors (origin_required, method_not_allowed, unsupported_media_type, verification_required, unavailable); relay (relay_failed); configuration (terms_unavailable, payments_not_configured, scanner_unavailable — no virus-scan verdict on an exposed host; nothing stored, retry later); assignee input/state (invalid_body, too_large, work_conflict); and internal.\n","enum":["archive_too_large","browser_owner_required","client_email_mismatch","commission_review_required","contest_window_closed","count_capacity","count_not_applicable","credential_changed","credential_escalation","credential_inactive","duplicate_label","engagement_acceptance_required","file_missing","forbidden","idempotency_in_flight","idempotency_key_invalid","idempotency_key_reused","idempotency_requires_key","illegal_transition","insufficient_scope","internal","invalid_body","invalid_credential_authority","invalid_expiry","invalid_label","invalid_scopes","invalid_selection","invalid_signature","invoice_pending","invoice_evidence_unavailable","invoice_rejection_unavailable","invoice_required","invoice_unavailable","issuer_incomplete","key_limit_reached","legacy_credential","assistant_connection","link_expired","malware_detected","method_not_allowed","missing_metadata","missing_signature","mixed_credentials","no_payable_quote","no_translator","not_configured","not_found","not_referred","not_refundable","not_releasable","onboarding_incomplete","operator_forbidden","origin_required","own_invoice_already_attached","own_invoice_not_expected","partly_processed","payload_too_large","payment_attempt_pending","payments_not_configured","pdf_unavailable","price_held","price_locked","quote_not_releasable","quote_vat_mismatch","rate_limited","relay_failed","scanner_unavailable","self_bill_already_contested","self_bill_already_issued","self_bill_missing","self_bill_not_issued","self_bill_not_refunded","self_bill_not_rejected","self_billing_disabled","stripe_mode_mismatch","stripe_webhook_configuration","stripe_webhook_scope_mismatch","terms_acceptance_required","terms_not_accepted","terms_unavailable","too_large","ubl_invalid","unassigned","unauthorized","unavailable","unknown_bucket","unknown_lane","unsupported_file_type","unsupported_media_type","billing_change_pending","billing_choice_required","validation","verification_required","verification_unavailable","work_conflict"]},"message":{"type":"string"}}}}},"EngagementAcceptance":{"type":"object","description":"The checkout contract (24 Sep 2026): the Engagement Terms version and content hash plus the exact items being paid, each pinned to its quote snapshot. Served as `engagementOffer` on a CLIENT envelope while the mandate is payable (status 'quoted', real total, no rate pending); posted back verbatim as `engagementAcceptance` on POST /mandates/{id}/pay. For POST /request-groups/{id}/pay merge the `items` of every payable member's offer (version and contentHash are identical across members). The server recomputes the offer under the payment lock and compares the sorted item set, the quote snapshots and the terms version — any difference is 409 engagement_acceptance_required, payoutTiming included: echo the offer exactly.\n","required":["payoutTiming","version","contentHash","items"],"properties":{"payoutTiming":{"type":"string","enum":["delivery-v1","acceptance-v1"],"description":"When the professional's share is released — at the client's acceptance (express or deemed, Platform Terms 9.2; what every checkout is offered since 4 November 2026) or, for the engagements accepted on 3–4 November 2026, at delivery. Part of the agreement; echo it as served."},"version":{"type":"string"},"contentHash":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["mandateId","quoteId","quoteHash","totalCents"],"properties":{"mandateId":{"type":"string"},"quoteId":{"type":"string"},"quoteHash":{"type":"string","description":"SHA-256 of the canonical quote snapshot."},"totalCents":{"type":"integer"}}}}}},"MandateStatus":{"type":"string","description":"The state machine (lib/domain.ts TRANSITIONS). 'cancelled' was legacy-only from 10 Oct 2026 until 4 Nov 2026; since then it is where a sent quote lands when the client declines it or it lapses unpaid after 30 days (Platform Terms 7.1–7.2); a withdrawn quote lands on 'declined'.","enum":["submitted","quoted","paid","declined","accepted","in_progress","translated","delivered","settled","refunded","cancelled"]},"CompanyBillingInput":{"type":"object","description":"The buyer on the invoice. Give the registered address as one `address` line, OR as all four of street, postalCode, city and country — the line is then composed from the parts (country spelt out) and the parts are kept for e-invoicing. A Belgian VAT number (BE prefix, or a bare 10-digit enterprise number) is stored as BE0xxxxxxxxx and refused (400 validation) when its check digits fail; VAT numbers from other countries are stored as typed. enterpriseNumber is the buyer's KBO number (10 digits, check digits verified; must match a Belgian vatNumber).\n","required":["companyName","vatNumber"],"properties":{"companyName":{"type":"string","minLength":1,"maxLength":200},"vatNumber":{"type":"string","minLength":1,"maxLength":200},"enterpriseNumber":{"type":"string","minLength":1,"maxLength":200},"address":{"type":"string","minLength":1,"maxLength":500,"description":"One line; optional when street, postalCode, city and country are all given."},"street":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":80},"country":{"type":"string","description":"ISO 3166-1 alpha-2 (see countries[] in GET /catalog)."}}},"Mandate":{"type":"object","description":"Mandate (domain.ts) as the envelope serialises it. Client reads carry accessToken; professional reads omit clientEmail (and redact client contact data elsewhere) and carry assignments and payouts, which client reads never do. Fields not listed here follow domain.ts; nothing is added without a spec change.\n","required":["id","status","clientName","payerType","pair","kind","deadlineBucket","gdprConsentAt","pretranslationGateAck","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/MandateStatus"},"requestGroupId":{"type":"string","description":"Present on every part of a multi-language request."},"orderReference":{"type":"string","description":"The order reference a human reads (`AEDZ-VNES`): one per request, shared by every part of a multi-language request, unchanged from quote to job to invoice."},"professionalId":{"type":["string","null"],"description":"Live owner; null = explicitly unassigned (routing mode)."},"accessToken":{"type":"string","description":"Client reads only — the bearer credential for this mandate."},"clientEmail":{"type":"string","description":"Client reads only."},"clientName":{"type":"string"},"clientLanguage":{"type":"string","enum":["en","nl"]},"subject":{"type":"string","maxLength":160},"requestedDate":{"type":"string","format":"date","description":"The day the client would like the work by (Platform Terms §1.9 Requested Date), a civil day YYYY-MM-DD; indicative, no price effect. Absent when none was given."},"payerType":{"type":"string","enum":["individual","company"]},"payerTypeExplicit":{"type":"boolean","description":"True only when the request or payment supplied an explicit billing choice; legacy individual defaults do not imply consent."},"companyBilling":{"type":"object","properties":{"companyName":{"type":"string"},"vatNumber":{"type":"string"},"enterpriseNumber":{"type":"string"},"address":{"type":"string"},"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"pair":{"type":"object","required":["source","target"],"properties":{"source":{"type":"string"},"target":{"type":"string"}}},"kind":{"type":"string","enum":["regular","sworn"]},"destinationCountry":{"type":"string"},"issuingCountry":{"type":"string"},"documentCategory":{"type":"string","enum":["civil_status","diploma","notarial","commercial","other"]},"documentCategorySource":{"type":"string","enum":["client","detected","translator"]},"issuingCountrySource":{"type":"string","enum":["client","detected"]},"machineTier":{"type":"boolean"},"upgradedFromMandateId":{"type":"string"},"legalisationOverride":{"type":"object","required":["requirement","setBy","at"],"properties":{"requirement":{"type":"string","enum":["none","apostille","consular_legalisation"]},"setBy":{"type":"string","enum":["client","translator"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time"}}},"deadlineBucket":{"type":"string","enum":["rush_1_3d","week_1","month_1"]},"origin":{"type":"string","enum":["thide","direct"]},"gdprConsentAt":{"type":"string","format":"date-time"},"pretranslationGateAck":{"type":"boolean"},"termsAccepted":{"type":"array","items":{"type":"object","required":["documentId","version","contentHash","acceptedAt","via"],"properties":{"documentId":{"type":"string"},"version":{"type":"string"},"contentHash":{"type":"string"},"acceptedAt":{"type":"string","format":"date-time"},"via":{"type":"string","enum":["web","api"]},"checkout":{"type":"object","description":"Present on the Engagement Terms acceptance recorded at payment.","properties":{"batchId":{"type":"string"},"items":{"type":"array","items":{"type":"object"}}}}}}},"acceptance":{"type":"object","description":"The client's delivery acceptance (see GET /mandates/{id}/accept).","properties":{"openedAt":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["pending","commented","referred","accepted"]},"via":{"type":"string","enum":["explicit","deemed"]},"acceptedAt":{"type":"string","format":"date-time"},"referredAt":{"type":"string","format":"date-time"},"referredBy":{"type":"string","enum":["client","professional","thide"],"description":"Who referred; absent on referrals from before 4 November 2026, all of them the client's."},"comments":{"type":"array","items":{"$ref":"#/components/schemas/AcceptanceComment"}}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"Quote":{"type":"object","description":"Quote (domain.ts); requiresManualRate=true with zeroed amounts for ad-hoc pairs. Since 2026-08-21 thideFeeCents is 7% of subtotalCents (everything ex VAT, legalisation included) and payoutCents = subtotalCents − thideFeeCents. Optional fixedPriceCents / legalisationPriceCents record the professional's own price choices (studio audience only, like thideFeeCents and payoutCents). Optional commissionTax and actualPayoutCents are studio-only: payoutCents remains net before VAT; actualPayoutCents records the quoted transfer after the explicitly configured commission VAT. Legacy quotes do not acquire a tax snapshot retrospectively. Client reads never carry thideFeeCents, payoutCents, commissionTax or actualPayoutCents.\n","required":["id","mandateId","lineCount","ratePerLineCents","translationCents","legalisationCents","legalisationRequirement","legalisationQuotedSeparately","deadlineBucket","urgencyModifier","subtotalCents","vatRate","vatCents","totalCents","requiresManualRate","createdAt"],"properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"charCount":{"type":"integer"},"lineCount":{"type":"integer"},"ratePerLineCents":{"type":"integer","description":"Per billing unit (see GET /pricing)."},"translationCents":{"type":"integer"},"legalisationCents":{"type":"integer"},"legalisationRequirement":{"type":["string","null"],"enum":["none","apostille","consular_legalisation",null]},"legalisationQuotedSeparately":{"type":"boolean","description":"True on the consular route — a real cost this total does NOT include."},"deadlineBucket":{"type":"string","enum":["rush_1_3d","week_1","month_1"],"description":"Retained for stored quotes; the lanes left the UI on 2026-10-31. New quotes carry week_1 with modifier 0."},"urgencyModifier":{"type":"number"},"deliveryDate":{"type":"string","format":"date","description":"The day the professional proposes to deliver by (Platform Terms §1.14 Delivery Date), a civil day YYYY-MM-DD; seeded from requestedDate at first pricing, set with quotes.set-delivery-date until the quote is sent, frozen with the sent quote. Absent when neither side named a day."},"validUntil":{"type":"string","format":"date-time","description":"The instant the sent quote lapses unpaid (Platform Terms 7.1–7.2): the end of the Brussels day 30 days after the latest send recorded on the status log (a quote sent before the release that introduced the validity counts from that release). Present only while a human mandate is quoted; absent on an indicative quote, a machine quote and after payment. Derived, never stored — a re-issued or revised quote starts a fresh period."},"clientEstimate":{"type":"object","description":"Studio audience only. The figures the client sees while the mandate is submitted: THIDE's own computation (intake, automatic count, legalisation ruling), carried unchanged by the professional's draft edits. Client reads get these figures in subtotalCents/vatCents/totalCents/vatRate instead, and never the field itself. Absent on quotes from before migration 0077.","required":["subtotalCents","vatCents","totalCents","vatRate","computedAt"],"properties":{"subtotalCents":{"type":"integer"},"vatCents":{"type":"integer"},"totalCents":{"type":"integer"},"vatRate":{"type":"number"},"computedAt":{"type":"string","format":"date-time"}}},"subtotalCents":{"type":"integer","description":"Ex VAT, urgency included."},"vatRate":{"type":"number"},"vatCents":{"type":"integer"},"totalCents":{"type":"integer","description":"What the client pays."},"thideFeeCents":{"type":"integer","description":"Studio reads only."},"payoutCents":{"type":"integer","description":"Studio reads only."},"actualPayoutCents":{"type":"integer","description":"Studio reads only."},"commissionTax":{"type":"object","description":"Studio reads only."},"requiresManualRate":{"type":"boolean"},"upgradeCreditCents":{"type":"integer","description":"Historical only: the machine fee credited on a human-upgrade quote from before 2026-11-04. No longer granted; a revision prices at full rate and omits it."},"fixedPriceCents":{"type":"integer"},"legalisationPriceCents":{"type":"integer"},"billing":{"type":"object","description":"The billing-unit snapshot this quote was computed with (see GET /pricing)."},"createdAt":{"type":"string","format":"date-time"}}},"DocumentView":{"type":"object","required":["id","role","fileName","mimeType","sizeBytes","createdAt","downloadPath"],"properties":{"id":{"type":"string"},"role":{"type":"string","enum":["source","translation","apostille","invoice","receipt","credit_note","invoice_xml","credit_note_xml","partner_upload","machine_text"],"description":"Client reads never see partner_upload or machine_text; invoice_xml / credit_note_xml are the UBL renderings beside a THIDE-issued PDF (B-01 Phase 2)."},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"charCount":{"type":"integer"},"charCountMethod":{"type":"string","enum":["text_extraction","ocr","manual_override"]},"photoEstimateChars":{"type":"integer"},"version":{"type":"integer","minimum":1,"description":"Revision number for a delivered translation or legalisation file."},"currentVersion":{"type":"boolean","description":"Whether this is the current revision; older revisions remain downloadable through their signed links."},"createdAt":{"type":"string","format":"date-time"},"downloadPath":{"type":"string","description":"Relative and signed; embeds the token for client reads. Never build it by hand."},"download":{"type":"object","description":"Professional command continuation; preserves verified operator selection.","required":["operation","input"],"properties":{"operation":{"const":"document.download"},"input":{"type":"object","required":["mandateId","documentId"],"properties":{"mandateId":{"type":"string"},"documentId":{"type":"string"}}}}}}},"StatusLogEntry":{"type":"object","required":["id","mandateId","from","to","actor","at"],"properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"from":{"oneOf":[{"$ref":"#/components/schemas/MandateStatus"},{"type":"null"}]},"to":{"$ref":"#/components/schemas/MandateStatus"},"actor":{"type":"string","enum":["client","translator","system"]},"actorId":{"type":"string","description":"Studio reads only."},"note":{"type":"string","description":"Studio reads only."},"at":{"type":"string","format":"date-time"}}},"QuestionMessage":{"type":"object","required":["id","mandateId","from","message","relayed","at"],"properties":{"id":{"type":"string"},"mandateId":{"type":"string","description":"May name a sibling part of the same request."},"from":{"type":"string","enum":["client","translator"]},"message":{"type":"string"},"relayed":{"type":"boolean","description":"True when the message reached the other side — by e-mail, or in the portal alone when the recipient switched e-mail updates off (the channel they chose; nothing to retry). False only when the e-mail could not go out; the row is on the thread regardless.\n"},"at":{"type":"string","format":"date-time"},"attachments":{"type":"array","description":"Reference material sent with the message (a glossary, an earlier translation) — present only when there is some. Never a document of the request: not counted, priced, delivered or listed with the documents. Each item's downloadPath is this reader's link.\n","items":{"$ref":"#/components/schemas/MessageAttachmentView"}}}},"MessageAttachmentView":{"type":"object","description":"A file attached to a conversation message. Readable by the parties of that message only; a private professional/subcontractor file is never on a client's view. The storage key and content hash stay on the server.\n","required":["id","fileName","mimeType","sizeBytes","downloadPath"],"properties":{"id":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string","description":"Derived from the accepted extension, never taken from the uploader."},"sizeBytes":{"type":"integer"},"downloadPath":{"type":"string","description":"GET /mandates/{id}/attachments/{attachmentId} — signed (exp+sig, 7-day TTL) with the token for a client reader, header-authorised and token-less for a studio reader, exactly like DocumentView.downloadPath.\n"}}},"Timeline":{"type":"object","description":"Client-visible checkpoints derived from the status.","required":["submitted","accepted","translated","delivered"],"properties":{"submitted":{"type":"boolean"},"accepted":{"type":"boolean"},"translated":{"type":"boolean"},"delivered":{"type":"boolean"}}},"Legalisation":{"type":"object","description":"Both legalisation legs. translation = the route the mandate runs on — an override never erases the recommendation. original = ADVISORY for the client's ORIGINAL document, which answers to the country that ISSUED it (send issuingCountry at intake). Never priced, never gating; null when there is nothing to say (regular work / no destination). Computed live rather than frozen — it is advice, not contract.\n","required":["translation","original"],"properties":{"translation":{"type":"object","required":["recommended","effective","override","deviates"],"properties":{"recommended":{"type":"object","required":["requirement","basis","rationale","confirmWithProfessional"],"properties":{"requirement":{"type":["string","null"],"enum":["none","apostille","consular_legalisation",null]},"basis":{"type":"string","enum":["not_sworn","belgian_domestic_use","eu_regulation_2016_1191","hague_apostille","bilateral_objection","no_treaty","not_modelled","insufficient_input"]},"rationale":{"type":"string"},"confirmWithProfessional":{"type":"boolean"}}},"effective":{"type":["string","null"],"enum":["none","apostille","consular_legalisation",null]},"override":{"type":["object","null"]},"deviates":{"type":"boolean"}}},"original":{"type":["object","null"],"properties":{"requirement":{"type":["string","null"],"enum":["none","apostille","consular_legalisation",null]},"basis":{"type":"string"},"advice":{"type":"string"},"outsideOurReach":{"type":"boolean"}}}}},"MandateEnvelope":{"type":"object","description":"Uniform read shape returned by most endpoints.","required":["mandate","quote","documents","statusLog","timeline","questions","legalisation"],"properties":{"engagementOffer":{"$ref":"#/components/schemas/EngagementAcceptance","description":"CLIENT reads only, and only while the mandate is payable (status 'quoted', a real total, no rate pending). Absent otherwise — its absence is the signal that nothing can be paid yet. Echo it back as `engagementAcceptance` to pay (QUICKSTART §2).\n"},"mandate":{"$ref":"#/components/schemas/Mandate","description":"Including optional subject (client reference, at most 160 characters). Client reads include their own accessToken; professional reads omit client contact credentials. Professional payout records and commission settlement evidence are excluded from all client envelopes, including callbacks.\n"},"quote":{"oneOf":[{"$ref":"#/components/schemas/Quote"},{"type":"null"}],"description":"Null until a quote exists (paused scan, routing mode)."},"documents":{"type":"array","items":{"$ref":"#/components/schemas/DocumentView"},"description":"Includes downloadPath (tokenized for client reads) per document. `role` is one of source, translation, apostille, invoice, receipt, credit_note, invoice_xml, credit_note_xml (the studio-only roles partner_upload and machine_text never appear in a client envelope). invoice_xml / credit_note_xml are the UBL BIS Billing 3.0 renderings of an invoice / credit note THIDE issued in the professional's name (B-01 Phase 2): the same document as the PDF, listed only when the client may see the PDF (delivered). Which rendering is the legal original follows the self-bill's deliveryChannel — 'peppol' makes the XML the original, 'pdf' the PDF, 'pending' is not yet decided. A document without an XML sibling was issued PDF-only; the builder's reason (no Peppol endpoint for a private client or an unregistered company, one-line address, unsupported_vat_regime, vat_regime_mismatch) is recorded in the status log, never as an API error.\n"},"statusLog":{"type":"array","items":{"$ref":"#/components/schemas/StatusLogEntry"},"description":"Append-only; client reads carry no note or actorId."},"timeline":{"$ref":"#/components/schemas/Timeline"},"questions":{"type":"array","description":"The question relay thread, oldest first — so one read of the mandate is the whole picture (status change AND any new answer). relayed=true also when the recipient switched e-mail updates off (the portal is their channel; nothing to retry); relayed=false means the e-mail could not go out but the message is still on the thread. The thread is the whole CONVERSATION of the request (12 Oct 2026): on a multi-language request every part shares one client/professional thread, so a row's mandateId may name a sibling part, not the mandate read. Identical to GET /mandates/{id}/questions, also on callbacks.\n","items":{"$ref":"#/components/schemas/QuestionMessage"}},"legalisation":{"$ref":"#/components/schemas/Legalisation"}}},"MandateList":{"type":"object","required":["items","count"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}},"count":{"type":"integer","description":"items.length — the whole board, one page."}}},"PaymentVerificationContinuation":{"description":"The 403 a creatorGrant gets from the two pay operations once the quote is payable (5 Nov 2026): error.code verification_required and a continuation — the shape the role operations give the same concept (WorkflowError). No money moved, no mode: continuation.url is the web payment-verification entry for the person who owns the request's inbox, /verify with the pay page as its next step; they prove the inbox there with the six-digit code and pay in the browser. A URL alone establishes nothing: poll GET /mandates/{id} afterwards (the grant is 401 from the first funded status on).\n","allOf":[{"$ref":"#/components/schemas/WorkflowError"},{"type":"object","required":["error","continuation"],"properties":{"error":{"type":"object","properties":{"code":{"const":"verification_required"}}},"continuation":{"type":"object","properties":{"kind":{"const":"verification"},"url":{"type":"string","format":"uri"}}}}}]},"PayResponse":{"description":"Branch on `mode`, never on the status code.","oneOf":[{"type":"object","required":["mode","checkoutUrl"],"properties":{"mode":{"const":"stripe_checkout"},"checkoutUrl":{"type":"string","format":"uri"}}},{"allOf":[{"type":"object","required":["mode"],"properties":{"mode":{"const":"dev"}}},{"$ref":"#/components/schemas/MandateEnvelope"}]}]},"GroupPayResponse":{"description":"Branch on `mode`. covered = the members this checkout pays; skipped = members left out and why.","oneOf":[{"type":"object","required":["mode","checkoutUrl","covered","skipped"],"properties":{"mode":{"const":"stripe_checkout"},"checkoutUrl":{"type":"string","format":"uri"},"covered":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"object","required":["id","reason"],"properties":{"id":{"type":"string"},"reason":{"type":"string"}}}}}},{"allOf":[{"type":"object","required":["mode","covered","skipped"],"properties":{"mode":{"const":"dev"},"covered":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"object","required":["id","reason"],"properties":{"id":{"type":"string"},"reason":{"type":"string"}}}}}},{"$ref":"#/components/schemas/MandateEnvelope"}]}]},"GroupDecisionReview":{"type":"object","required":["requestGroupId","quotes"],"properties":{"requestGroupId":{"type":"string"},"quotes":{"type":"array","description":"One per pending human part — the studio envelope plus the exact review tokens to echo.","items":{"allOf":[{"$ref":"#/components/schemas/MandateEnvelope"},{"type":"object","required":["review"],"properties":{"review":{"type":"object","required":["id","updatedAt","fingerprint"],"properties":{"id":{"type":"string"},"updatedAt":{"type":"string"},"fingerprint":{"type":["string","null"],"description":"Null when no quote exists yet."},"exclusionReason":{"type":"string","description":"Present on a part marked \"not offered\" in Studio — echo it verbatim on the POST."}}}}}]}}}},"GroupDecisionResult":{"type":"object","required":["requestGroupId","confirmed"],"properties":{"requestGroupId":{"type":"string"},"confirmed":{"type":"array","items":{"type":"string"},"description":"The mandate ids now 'quoted'; excluded parts are declined and not listed."}}},"CallbackEnvelope":{"type":"object","description":"The body of a callback delivery (see `webhooks` below): the MandateEnvelope GET /mandates/{id} would return to THIS key at send time — a client key gets the client view (its accessToken included), a professional key the studio view — plus three fields: event, deliveryId and at. The `ping` test event sends {event, deliveryId, at, ping: true, keyId} instead.\n","allOf":[{"$ref":"#/components/schemas/MandateEnvelope"},{"type":"object","required":["event","deliveryId","at"],"properties":{"event":{"type":"string","description":"mandate.<status> | ping"},"deliveryId":{"type":"string","description":"Same as x-thide-delivery — retries reuse it, dedupe on it."},"at":{"type":"string","format":"date-time"},"eventStatus":{"type":"string","description":"The mandate status the event announced when it was raised. The rest of the body is built at send time, so a retried mandate.quoted may arrive with mandate.status already 'paid' — eventStatus still says 'quoted'. Absent on ping. Delivery order is not guaranteed: trust statusLog/status, dedupe on deliveryId.\n"}}}]},"TermsSummary":{"type":"object","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"},"contentHash":{"type":"string"},"path":{"type":"string"}},"required":["id","version","title","audience","status","effectiveDate","summary","contentHash","path"]},"TermsDocument":{"allOf":[{"$ref":"#/components/schemas/TermsSummary"},{"type":"object","properties":{"body":{"type":"string"}},"required":["body"]}]},"SelfBill":{"type":"object","properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"professionalId":{"type":"string"},"invoiceNumber":{"type":"string"},"createdAt":{"type":"string"},"issuedAt":{"type":"string"},"invoiceDocumentId":{"type":"string"},"noticeDismissedAt":{"type":"string"},"contestedAt":{"type":"string"},"contestNote":{"type":"string"},"creditNoteNumber":{"type":"string"},"creditNoteIssuedAt":{"type":"string"},"creditNoteDocumentId":{"type":"string"},"ublDocumentId":{"type":"string"},"creditNoteUblDocumentId":{"type":"string"},"status":{"type":"string","enum":["draft","issued"]},"acceptedBy":{"type":"string","enum":["translator"]},"acceptance":{"type":"string","enum":["explicit","tacit"]},"deliveryChannel":{"type":"string","enum":["pending","peppol","pdf"]},"deadlineNotices":{"type":"array","items":{"type":"object","properties":{"sentAt":{"type":"string"},"audience":{"type":"string","enum":["professional","ops"]},"deadline":{"type":"string"},"stage":{"type":"string","enum":["due_soon","overdue"]}},"required":["sentAt","audience","deadline"]}}},"required":["id","mandateId","professionalId","status","createdAt"]},"Extraction":{"type":"object","properties":{"charCount":{"type":["integer","null"]},"method":{"type":"string","enum":["text_extraction","ocr","needs_ocr","manual_override"]},"countPending":{"type":"boolean"},"detectedLanguage":{"type":["string","null"]},"detectedOtherLabel":{"type":["string","null"]},"detectedIssuingCountry":{"type":["string","null"]},"detectedDocumentCategory":{"type":["string","null"]},"languageMismatch":{"type":"boolean"},"files":{"type":"array","items":{"type":"object","properties":{"fileName":{"type":"string"},"charCount":{"type":["integer","null"]},"rawCharCount":{"type":["integer","null"]},"method":{"type":"string","enum":["text_extraction","ocr","needs_ocr","manual_override"]},"detectedLanguage":{"type":["string","null"]},"photoEstimateChars":{"type":["integer","null"]}},"required":["fileName","charCount","method"]}}},"required":["charCount","method","countPending","detectedLanguage","languageMismatch","files"]},"CreatorGrant":{"type":"string","description":"Present when the caller presented no client or professional credential. Send it as x-thide-creator on the reads of this request or group (see securitySchemes.creatorGrant): seven days, until the request is paid. Opaque — do not parse it.\n"},"IntakeResult":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/MandateEnvelope"},{"type":"object","properties":{"extraction":{"$ref":"#/components/schemas/Extraction"},"creatorGrant":{"$ref":"#/components/schemas/CreatorGrant"}},"required":["extraction"]}]},{"type":"object","properties":{"requestGroup":{"type":"object","properties":{"id":{"type":"string"},"count":{"type":"integer"}},"required":["id","count"]},"mandates":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}},"extraction":{"$ref":"#/components/schemas/Extraction"},"creatorGrant":{"$ref":"#/components/schemas/CreatorGrant"}},"required":["requestGroup","mandates","extraction"]}]},"HealthReport":{"type":"object","properties":{"ok":{"type":"boolean"},"migrations":{"type":"object","properties":{"applied":{"type":["string","null"]},"expected":{"type":["string","null"]},"missing":{"type":"array","items":{"type":"string"},"description":"Migration files of this build the store has not applied, oldest first. Present only when there is one."},"unknown":{"type":"array","items":{"type":"string"},"description":"Applied migration files this build does not know (the schema of a newer release under an older build). Present only when there is one."}},"required":["applied","expected"]},"gaps":{"type":"array","items":{"type":"string"}},"scanner":{"type":"object","description":"The malware scanner. off locally (a gap on an exposed host); a configured clamd that does not answer makes ok false, because every upload is then refused.","properties":{"mode":{"type":"string","enum":["clamd","off"]},"reachable":{"type":["boolean","null"],"description":"null when off."},"version":{"type":["string","null"],"description":"clamd's VERSION answer when reachable."}},"required":["mode","reachable","version"]},"error":{"type":"string","enum":["database_unavailable"]}},"required":["ok","migrations","gaps","scanner"]},"ClientAcceptance":{"type":"object","description":"The client's delivery acceptance (see GET /mandates/{id}/accept).","properties":{"openedAt":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["pending","commented","referred","accepted"]},"via":{"type":"string","description":"explicit = the client's Accept; deemed = a window passed; thide = THIDE released a referred delivery after mediation.","enum":["explicit","deemed","thide"]},"reviewFrom":{"type":"string","format":"date-time","description":"Start of the running 3-working-day review window after a new version (two correction rounds, 24 Nov 2026). Absent while the window runs from delivery (openedAt). Messages never move it. After the second round, referral is open from this moment.\n"},"acceptedAt":{"type":"string","format":"date-time"},"referredAt":{"type":"string","format":"date-time"},"referredBy":{"type":"string","enum":["client","professional","thide"],"description":"Who referred; absent on referrals from before 4 November 2026, all of them the client's."},"comments":{"type":"array","description":"The delivery-comment thread, oldest first.","items":{"$ref":"#/components/schemas/AcceptanceComment"}},"refundPending":{"type":"boolean","description":"True while durable refund recovery is pending. Acceptance, comments and corrections are blocked until recovery completes; internal provider identifiers are withheld."}}},"AcceptanceComment":{"type":"object","description":"One delivery comment — the client's concern about delivered work, or the professional's reply — on the acceptance thread. Files sent with it ride the same gate, store and download door as a question's (POST /mandates/{id}/questions), and read as MessageAttachmentView on the acceptance route and on the envelope.\n","required":["id","by","message","at"],"properties":{"id":{"type":"string"},"by":{"type":"string","enum":["client","translator"]},"message":{"type":"string"},"at":{"type":"string","format":"date-time"},"correction":{"type":"boolean","enum":[true],"description":"Present on the client's correction request (request.correction), one of at most two rounds; absent on every other comment."},"attachments":{"type":"array","description":"Reference material sent with the comment — present only when there is some. Each item's downloadPath is this reader's link.","items":{"$ref":"#/components/schemas/MessageAttachmentView"}}}},"EffectiveLegalisation":{"type":"object","required":["recommended","effective","override","deviates"],"properties":{"recommended":{"type":"object","required":["requirement","basis","rationale","confirmWithProfessional"],"properties":{"requirement":{"type":["string","null"],"enum":["none","apostille","consular_legalisation",null]},"basis":{"type":"string","enum":["not_sworn","belgian_domestic_use","eu_regulation_2016_1191","hague_apostille","bilateral_objection","no_treaty","not_modelled","insufficient_input"]},"rationale":{"type":"string"},"confirmWithProfessional":{"type":"boolean"}}},"effective":{"type":["string","null"],"enum":["none","apostille","consular_legalisation",null]},"override":{"type":["object","null"]},"deviates":{"type":"boolean"}}},"Catalog":{"type":"object","properties":{"languages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"label":{"type":"string"}},"required":["code","label"]}},"pairs":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"target":{"type":"string"},"autoQuoted":{"type":"boolean"}},"required":["source","target","autoQuoted"]}},"kinds":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["regular","sworn"]},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label","description"]}},"deadlines":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"priceModifier":{"type":"number"}},"required":["value","label","priceModifier"]}},"countries":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"label":{"type":"string"},"legalisation":{"type":["string","null"],"enum":["none","apostille","consular_legalisation",null]},"hagueParty":{"type":"boolean"}},"required":["code","label","legalisation","hagueParty"]}},"documentCategories":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"upload":{"type":"object","properties":{"maxFileBytes":{"type":"integer"},"maxFiles":{"type":"integer"},"maxTotalFileBytes":{"type":"integer"},"maxMultipartBodyBytes":{"type":"integer"},"maxJsonBodyBytes":{"type":"integer"},"maxCharCount":{"type":"integer"},"acceptedExtensions":{"type":"array","items":{"type":"string"}},"multipleFiles":{"type":"boolean"}},"required":["maxFileBytes","maxFiles","maxTotalFileBytes","maxMultipartBodyBytes","maxJsonBodyBytes","maxCharCount","acceptedExtensions","multipleFiles"]},"quoting":{"type":"object","properties":{"lineLengthChars":{"type":"integer"},"vatRate":{"type":"number"},"currency":{"const":"eur"}},"required":["lineLengthChars","vatRate","currency"]},"terms":{"type":"array","items":{"$ref":"#/components/schemas/TermsSummary"}}},"required":["languages","pairs","kinds","deadlines","countries","documentCategories","upload","quoting","terms"]},"TermsAcceptanceEvidence":{"type":"object","required":["documentId","version","contentHash","acceptedAt","via"],"properties":{"documentId":{"type":"string"},"version":{"type":"string"},"contentHash":{"type":"string"},"acceptedAt":{"type":"string","format":"date-time"},"via":{"type":"string","enum":["web","api"]},"checkout":{"type":"object","description":"Present on the Engagement Terms acceptance recorded at payment.","properties":{"batchId":{"type":"string"},"items":{"type":"array","items":{"type":"object"}}}}}},"WorkflowError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"type":["string","integer"]}},"message":{"type":"string"}},"required":["path","message"]}}},"required":["code","message"]},"data":{"description":"The operation result when a workflow refuses or partly completes; consult the named operation response schema."},"continuation":{"type":"object","properties":{"kind":{"type":"string","enum":["application","provider","verification"]},"url":{"type":"string"}},"required":["kind","url"]},"retainedInput":{"type":"boolean","description":"True only for a retained review with exact original input/files; generic navigation is false."},"preparedAction":{"$ref":"#/components/schemas/PreparedWorkflowReceipt"},"executed":{"type":"boolean","description":"False for a human handoff before the guarded business action executes."},"status":{"type":"string","const":"awaiting_confirmation","description":"A human step is required; follow the application continuation and re-read state. This is not business completion."}},"required":["error"]},"WorkflowCatalog":{"type":"object","properties":{"role":{"type":"string","enum":["client","professional","assignee"]},"operations":{"type":"array","items":{"type":"object","properties":{"operation":{"type":"string"},"title":{"type":"string","description":"Human-readable Studio label; use operation as the stable identifier."},"description":{"type":"string"},"scope":{"type":"string","enum":["read","workflow","settings","credentials","payments","operator"]},"readOnly":{"type":"boolean"},"input":{"type":"object","properties":{},"required":[]},"response":{"type":"object","properties":{},"required":[]},"uploads":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"required":{"type":"boolean"},"multiple":{"type":"boolean"}},"required":["field"]}},"additionalScopes":{"type":"array","items":{"type":"string","enum":["read","workflow","settings","credentials","payments","operator"]}}},"required":["operation","description","scope","input","response"]}}},"required":["role","operations"]},"RoleOpenApiDocument":{"type":"object","properties":{"openapi":{"const":"3.1.0"},"info":{"type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"}},"required":["title","version"]},"paths":{"type":"object","description":"OpenAPI Path Items with generated operation-specific command and response schemas.","additionalProperties":{"type":"object"}},"components":{"type":"object","description":"OpenAPI components including JSON Schemas and security schemes."}},"required":["openapi","info","paths"]},"IdentityChallengeInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":254},"persona":{"default":"client","type":"string","enum":["client","pro","assignee"]},"returnTo":{"type":"string","maxLength":2048},"requestEmail":{"type":"string","maxLength":254}},"required":["email"],"additionalProperties":false},"IdentityVerifyInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}},"required":["id","token"],"additionalProperties":false}]},"IdentityPasswordInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":254},"password":{"type":"string","minLength":1,"maxLength":800},"persona":{"default":"client","type":"string","enum":["client","pro","assignee"]},"returnTo":{"type":"string","maxLength":2048}},"required":["email","password"],"additionalProperties":false},"IdentitySecondStepInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"code":{"type":"string","minLength":6,"maxLength":40}},"required":["code"],"additionalProperties":false},"IdentityCredentialsInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"type":"string","enum":["client","professional","assignee"]},"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"},"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":["role","label"],"additionalProperties":false},"IdentityTermsInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"},"documents":{"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":["token","documents"],"additionalProperties":false},"IdentityNominationInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"},"decision":{"type":"string","enum":["accept","decline"]},"role":{"type":"string","enum":["translation","review","legalisation","invoicing"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"internalReference":{"type":"string","maxLength":160}},"required":["token","decision"],"additionalProperties":false},"IdentitySignoutInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"AssigneeDecision":{"type":"object","required":["mandateId","role","assignedAt","expectedUpdatedAt","accept"],"properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","format":"date-time"},"expectedUpdatedAt":{"type":"string","format":"date-time"},"accept":{"type":"boolean"},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","minLength":1,"maxLength":4000,"description":"Non-whitespace reason required when accept is false; shared with the professional at confirmation."}},"allOf":[{"if":{"properties":{"accept":{"const":false}}},"then":{"required":["declineReason"]}}]},"AssigneeDeliverySelection":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"object","required":["mandateId","role","assignedAt","expectedUpdatedAt"],"properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","format":"date-time"},"expectedUpdatedAt":{"type":"string","format":"date-time"},"draftId":{"type":"string","minLength":1,"maxLength":128,"description":"A file already prepared through the role operations' draft flow, used instead of a new upload for this item."}}}},"AssigneeBatchSubmissionResult":{"type":"object","required":["reports"],"properties":{"reports":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/AssigneeSubmissionResult"},{"type":"object","required":["mandateId","fileName"],"properties":{"mandateId":{"type":"string"},"fileName":{"type":"string"}}}]}}}},"clientCommand":{"oneOf":[{"title":"Referral Messages","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"referral.messages"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Read only your private conversation with THIDE for this referred delivery; frozen participants retain closed history.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Referral Send","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"referral.send"},"input":{"$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}},"description":"Send a private message to THIDE on an open referral. Dedicated persisted retry identity; never accepts/refunds work or contacts providers.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Request Create","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.create"},"input":{"$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}},"description":"Request a quote when the person asks to submit their request. Reviewed Client Write can submit over MCP or HTTP using already accepted current Platform Terms. Draft, missing current terms and legacy MCP connections prepare a private draft and return continuation.url for review and submission in THIDE. A draft is not a submitted request. Do not collect or claim terms acceptance (acceptTerms/platformTermsClaim) for reviewed credentials. Submission requests a quote; it does not accept a quote, pay or accept delivered work. Use only stated choices: I Your reference (subject). II Your documents & languages: original files (.docx, .pdf, .xlsx, .pptx, .csv, .txt, .md, .png, .jpg; up to 30), source and targetLanguages, or docPairs when documents differ. III Type of translation: explicit Regular (kind regular), Certified (kind sworn and destination country), or Machine (machineTier true); alsoMachine adds a Machine draft. IV Optional info: requestedDate and message. V Your contact details: name; email comes from the credential. Write requires an explicit service for every document and target. The draft path prefills only the first docPairs pair; draft.omitted reports remaining choices. Through MCP upload originals as file parts; context attachments follow once the request exists. Direct HTTP submission also supports attachment parts or key-owned countJobs/fileNames in place of file parts. Preserved legacy manual HTTP credentials retain direct creation with acceptTerms and platformTermsClaim.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"file","multiple":true},{"field":"attachment","multiple":true}]},{"title":"Intake Terms","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"intake.terms"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Current Platform Terms text and exact version/hash claims required by request.create.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Upload document","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"count.start"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Queue one file for count/detection; ticket belongs to this client and API key. Upload a file part. Poll count.get until complete.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"file","required":true}]},{"title":"Count Get","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"count.get"},"input":{"$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}},"description":"Read count progress/result for a ticket owned by this key; another key cannot read it.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Count Cancel","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"count.cancel"},"input":{"$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}},"description":"Cancel an unused count ticket owned by this key.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"List Requests and Jobs","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"requests.list"},"input":{"$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}},"description":"List Client Requests or Jobs, including each view’s archive, with the same grouping, filters and sort as Client Studio. Select screen; status filters use the Studio’s canonical English option values regardless of display language. Members are client-redacted envelopes.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Export Requests and Jobs","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"requests.export"},"input":{"$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}},"description":"Download the Client Studio CSV for the same filtered Requests or Jobs view, including either archive. Select screen; status filters use canonical English option values. Optional mandateIds narrows selection; other owners never enter the data.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Open Request or Job","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.get"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Read one owned Request or Job with client-visible documents, conversation, quote and acceptance; evaluates the deemed-acceptance clock for delivered work.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Request Reprice","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.reprice"},"input":{"$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}},"description":"Choose an offered deadline on an indicative human quote. Preserves pricing holds and the shared pricing engine.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Request PaymentOffer","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.paymentOffer"},"input":{"$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}},"description":"Read the exact current single or grouped checkout membership and engagement offer from the payment service. With current credential authority, request.pay opens the person’s THIDE payment review; do not claim their approval by echoing this offer. Reading an offer does not accept terms or start a payment. Preserved legacy credentials keep their authenticated legacy input contract.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Request Pay","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.pay"},"input":{"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."}},"description":"Open THIDE payment review for this owned request. The person reviews the current checkout and Engagement Terms in THIDE or with the provider. This call does not approve terms or charge a payment. Personal approval fields are optional; if supplied they are still validated. Read request.paymentStatus afterward; a continuation is not payment completion.","x-required-scope":"payments","x-required-scopes":["payments"],"x-read-only":false,"x-uploads":[]},{"title":"Request PaymentStatus","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.paymentStatus"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Read the recorded payment status and current client request. Provider redirect completion alone does not establish capture.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Request Billing","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.billing"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Read recorded paid, refunded and retained amounts for owned job parts in the same request, matching the delivery billing overview. Frozen checkout evidence preserves original capture after a recount. Unknown historical VAT splits are null and incomplete history is flagged. Does not settle work or contact providers.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Request Question","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.question"},"input":{"$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}},"description":"Send a client message in the request conversation through the same stored and relayed message service. On delivered work it moves no acceptance clock; a correction request is request.correction. Refused once the delivery is referred to THIDE. Reference material (a glossary, an earlier translation) travels as repeated multipart `attachment` parts within the message bounds; it is named in the relay mail and downloaded on THIDE.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"attachment","multiple":true}]},{"title":"Request Accept","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.accept"},"input":{"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."}},"description":"Open THIDE delivery review for this owned request. The person reviews and accepts the current delivery there. This call does not accept work or release funds. deliveryRevision is optional for the handoff; if supplied it is still validated. Read request.acceptance or request.get afterward.","x-required-scope":"payments","x-required-scopes":["payments"],"x-read-only":false,"x-uploads":[]},{"title":"Request Acceptance","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.acceptance"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Read the public acceptance state, current delivery revision and deemed clock for acceptance/correction/referral.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Request a Correction","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.correction"},"input":{"$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}},"description":"Request a correction on delivered work (two rounds, TD + KR 24 Nov 2026): the only act that stops the 3-working-day review window. Allowed while the window runs, at most twice; the professional then has 3 working days to upload a new version, which starts the window again. A plain message is request.question and moves nothing. Reference material (the page in question, a marked-up copy) travels as repeated multipart `attachment` parts within the message bounds, like request.question; it is named in the relay mail and downloaded on THIDE.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"attachment","multiple":true}]},{"title":"Request Refer","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.refer"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Refer the delivery to THIDE, with the same gate as Client Studio: when the professional sent no new version within 3 working days of a correction request, or after the second correction round. Only the client refers; the conversation then continues through THIDE.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Download Referral Case File","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.caseFile"},"input":{"$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}},"description":"Download the referred delivery’s case file, using the same owner checks and client-visible chronology as Client Studio. Returns PDF, or the route’s HTML fallback when PDF rendering is unavailable. Available only after referral to THIDE.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Request Decline","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.decline"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Decline the sent quote (Platform Terms 7.1): every unpaid quoted part of the request closes as Declined and the professional is told once; nothing financial is recorded. 409 once a payment is in progress or taken, or the quote is no longer sent. The same shared decision as the quote page and POST /mandates/{id}/decline.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Request Upgrade","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.upgrade"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false}},"description":"Upgrade eligible delivered machine work to human translation at full price, reusing the source files; one live upgrade per machine job. Returns the continuation to the resulting request.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Documents List","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"documents.list"},"input":{"$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}},"description":"List client-visible source, delivery and billing documents across owned requests, with revision metadata and authenticated API download paths. Optional limit (1–100) or cursor pages mandate entries by ascending mandateId; page describes live traversal, not a snapshot. Omit both to preserve the complete legacy list.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Document Download","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"document.download"},"input":{"$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}},"description":"Download an owned, client-visible document using the same versioned route and visibility checks as the UI.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Attachment Download","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"attachment.download"},"input":{"$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}},"description":"Download reference material attached to a message of an owned request conversation, through the same signed, owner-checked route as the UI. Private assignment files are never client-visible.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Download Documents ZIP","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"documents.archive"},"input":{"$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}},"description":"Download the same client-visible Documents ZIP as Client Studio; private subcontractor files remain excluded.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Settings Get","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"settings.get"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Read the client profile, notifications and billing details displayed by Settings. Does not expose provider credentials or other owners.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Settings Payer","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"settings.payer"},"input":{"$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}},"description":"Set the explicit payer default for future payments, or null to ask each time. Does not change existing requests, billing details or invoices.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"Settings Business Activate","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"settings.business.activate"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Enable company billing details on the authenticated account without changing any request payer or activating a provider.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"Settings Details","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"settings.details"},"input":{"$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}},"description":"Save reusable company billing details on the authenticated account: company name, VAT number and registered address together. Send clear: true alone to remove them; a call without either is refused and changes nothing. Existing requests, payer choices and invoices remain unchanged. The profile name is settings.name.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"Settings Name","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"settings.name"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientName":{"type":"string","minLength":1,"maxLength":200}},"required":["clientName"],"additionalProperties":false}},"description":"Save the profile name used for future intake.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"Settings Language","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"settings.language"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"language":{"type":"string","enum":["en","nl"]}},"required":["language"],"additionalProperties":false}},"description":"Save the same English/Dutch account preference as the portal without creating a browser cookie.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"Settings Notifications","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"settings.notifications"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"emailNotifications":{"type":"boolean"}},"required":["emailNotifications"],"additionalProperties":false}},"description":"Set routine email notifications; mandatory security, payment and delivery notices retain existing behavior.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"Account Move","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"account.move"},"input":{"$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}]}},"description":"Three-step account email move. request sends a code to the current inbox; confirm verifies it and sends destination proof; complete requires ticket plus destination code. Keys move with the account after both inboxes are proven. An account that signs in with a password or authenticator app is refused here at every step and moves on the website only.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"PaymentMethods List","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"paymentMethods.list"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"List the same saved payment methods as Billing, scoped to the authenticated client customer.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"PaymentMethods Setup","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"paymentMethods.setup"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Start the provider-hosted secure card setup flow. Returns a continuation; card entry and authentication remain with the payment provider.","x-required-scope":"payments","x-required-scopes":["payments"],"x-read-only":false,"x-uploads":[]},{"title":"PaymentMethods Manage","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"paymentMethods.manage"},"input":{"$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}},"description":"Make an owned saved method the default or remove it, using the same provider ownership check as Billing.","x-required-scope":"payments","x-required-scopes":["payments"],"x-read-only":false,"x-uploads":[]},{"title":"Profile Get","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"profile.get"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Read the authenticated Studio profile identity and image availability.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Profile Image Get","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"profile.image.get"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Read the normalized profile image.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Upload picture","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"profile.image.set"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Upload a JPEG, PNG or WebP image up to 2 MB in the image multipart field.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[{"field":"image","required":true}]},{"title":"Profile Image Remove","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"profile.image.remove"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Remove the profile image.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"x-uploads":[]},{"title":"Counterparty Image Get","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"counterparty.image.get"},"input":{"$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}},"description":"Read the counterpart profile image for an owned human request. Professional callers may set target to assignment for the current translation assignee; no account id is accepted. Client access starts when the request becomes a job. Returns 404 if unavailable.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Credentials List","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"credentials.list"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"List your profile API credentials and connected assistants with their permissions. Secrets are never returned.","x-required-scope":"credentials","x-required-scopes":["credentials"],"x-read-only":true,"x-uploads":[]},{"title":"Credentials Create","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"credentials.create"},"input":{"$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}},"description":"Create an API key ID and secret for your profile, with permissions and optional expiry. The secret is returned once; delegation cannot exceed your own permissions or lifetime.","x-required-scope":"credentials","x-required-scopes":["credentials"],"x-read-only":false,"x-uploads":[]},{"title":"Credentials Rotate","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"credentials.rotate"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false}},"description":"Rotate a profile credential secret. Its ID, permissions and expiry remain unchanged; the previous secret stops working immediately.","x-required-scope":"credentials","x-required-scopes":["credentials"],"x-read-only":false,"x-uploads":[]},{"title":"Credentials Revoke","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"credentials.revoke"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false}},"description":"Revoke one of your profile API credentials or disconnect an assistant immediately.","x-required-scope":"credentials","x-required-scopes":["credentials"],"x-read-only":false,"x-uploads":[]},{"title":"Callbacks Save","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"callbacks.save"},"input":{"$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}},"description":"Set or clear a callback URL for an owned readable credential. A changed URL returns its new signing secret once.","x-required-scope":"credentials","x-required-scopes":["credentials"],"x-read-only":false,"x-uploads":[]},{"title":"Callbacks Rotate","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"callbacks.rotate"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false}},"description":"Rotate a callback signing secret, returned once.","x-required-scope":"credentials","x-required-scopes":["credentials"],"x-read-only":false,"x-uploads":[]},{"title":"Callbacks Test","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"callbacks.test"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false}},"description":"Send one signed test event to the stored callback URL.","x-required-scope":"credentials","x-required-scopes":["credentials"],"x-read-only":false,"x-uploads":[]}]},"clientResult":{"anyOf":[{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["caseId","anchorId","memberIds","referredAt","closed","channel","canWrite","messages"],"additionalProperties":false,"properties":{"caseId":{"type":"string"},"anchorId":{"type":"string"},"memberIds":{"type":"array","items":{"type":"string"}},"referredAt":{"type":"string"},"closed":{"type":"boolean"},"channel":{"enum":["client","professional"]},"canWrite":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["id","from","message","at"],"additionalProperties":false,"properties":{"id":{"type":"string"},"from":{"enum":["client","professional","thide"]},"message":{"type":"string"},"at":{"type":"string"}}}}}}},"x-operation":"referral.messages"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","from","message","at"],"additionalProperties":false,"properties":{"id":{"type":"string"},"from":{"enum":["client","professional","thide"]},"message":{"type":"string"},"at":{"type":"string"}}}},"x-operation":"referral.send"},{"type":"object","required":["data"],"properties":{"data":{"anyOf":[{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}}}},{"type":"object","required":["executed","continuation","draft"],"properties":{"executed":{"type":"boolean","const":false},"continuation":{"type":"object","required":["kind","url"],"properties":{"kind":{"type":"string","const":"application"},"url":{"type":"string"}}},"draft":{"type":"object","required":["expiresAt","documents","prefill"],"properties":{"expiresAt":{"type":"string"},"documents":{"type":"array","items":{"type":"object","required":["fileName","sizeBytes","mimeType"],"properties":{"fileName":{"type":"string"},"sizeBytes":{"type":"integer"},"mimeType":{"type":"string"}}}},"prefill":{"type":"object"},"omitted":{"type":"array","items":{"type":"string"}}}},"message":{"type":"string"}}}]}},"x-operation":"request.create"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["documents","platformTermsClaim"],"properties":{"documents":{"type":"array","items":{"type":"object","required":["id","version","contentHash","body"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"contentHash":{"type":"string"},"body":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"}}}},"platformTermsClaim":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","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}}}}},"x-operation":"intake.terms"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["state","completedPages"],"properties":{"ticket":{"type":"string"},"state":{"type":"string","enum":["queued","reading","ready","needs_review","failed","cancelled","expired"]},"completedPages":{"type":"integer"},"totalPages":{"type":"integer"},"detectedLanguage":{"type":"string"},"error":{"type":"string"},"result":{"type":"object","required":["charCount","method"],"properties":{"charCount":{"type":"integer"},"rawCharCount":{"type":"integer"},"method":{"type":"string","enum":["text_extraction","ocr","needs_ocr"]},"detectedLanguage":{"type":["string","null"]},"suggestedLanguage":{"type":["string","null"]},"detectedOtherLabel":{"type":["string","null"]},"detectedIssuingCountry":{"type":["string","null"]},"detectedDocumentCategory":{"type":["string","null"]},"budgetExhausted":{"type":"boolean"},"photoEstimateChars":{"type":"number"},"error":{"type":"string"}}}}}},"x-operation":"count.start"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["state","completedPages"],"properties":{"ticket":{"type":"string"},"state":{"type":"string","enum":["queued","reading","ready","needs_review","failed","cancelled","expired"]},"completedPages":{"type":"integer"},"totalPages":{"type":"integer"},"detectedLanguage":{"type":"string"},"error":{"type":"string"},"result":{"type":"object","required":["charCount","method"],"properties":{"charCount":{"type":"integer"},"rawCharCount":{"type":"integer"},"method":{"type":"string","enum":["text_extraction","ocr","needs_ocr"]},"detectedLanguage":{"type":["string","null"]},"suggestedLanguage":{"type":["string","null"]},"detectedOtherLabel":{"type":["string","null"]},"detectedIssuingCountry":{"type":["string","null"]},"detectedDocumentCategory":{"type":["string","null"]},"budgetExhausted":{"type":"boolean"},"photoEstimateChars":{"type":"number"},"error":{"type":"string"}}}}}},"x-operation":"count.get"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"count.cancel"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["groups","conversations"],"properties":{"groups":{"type":"array","items":{"type":"object","required":["id","representativeId","reference","status","createdAt","members"],"properties":{"id":{"type":"string"},"representativeId":{"type":"string"},"reference":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"totalItems":{"type":"integer"},"itemNumbers":{"type":"object","additionalProperties":{"type":"integer"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}}}}},"conversations":{"type":"array","items":{"type":"object","required":["key","memberIds","incomingAt"],"properties":{"key":{"type":"string"},"memberIds":{"type":"array","items":{"type":"string"}},"incomingAt":{"type":"array","items":{"type":"string"}}}}}}}},"x-operation":"requests.list"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/MandateEnvelope"}},"x-operation":"request.get"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"blocked":{"type":"string","enum":["checkout_open","unavailable"]},"request":{"$ref":"#/components/schemas/MandateEnvelope"}}}},"x-operation":"request.reprice"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["group","engagementOffer","members","terms"],"properties":{"group":{"type":"boolean"},"engagementOffer":{"$ref":"#/components/schemas/EngagementAcceptance"},"members":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}},"terms":{"$ref":"#/components/schemas/TermsDocument"}}}},"x-operation":"request.paymentOffer"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"request.pay"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["request","payment"],"properties":{"request":{"$ref":"#/components/schemas/MandateEnvelope"},"payment":{"type":["object","null"],"required":["id","status","amountCents","currency"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer"},"currency":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"x-operation":"request.paymentStatus"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["memberIds","paidAmounts","refundedAmounts","retainedAmounts","fundedAmounts","paidCents","refundedCents","retainedCents","fundedCents","historyComplete"],"properties":{"memberIds":{"type":"array","items":{"type":"string"}},"paidAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"refundedAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"retainedAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"fundedAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"paidCents":{"type":"integer"},"refundedCents":{"type":"integer"},"retainedCents":{"type":"integer"},"fundedCents":{"type":"integer"},"historyComplete":{"type":"boolean"}}}},"x-operation":"request.billing"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"request.question"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/MandateEnvelope"}},"x-operation":"request.accept"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["request","deliveryRevision"],"properties":{"request":{"$ref":"#/components/schemas/MandateEnvelope"},"deliveryRevision":{"type":"string"}}}},"x-operation":"request.acceptance"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"request.correction"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/MandateEnvelope"}},"x-operation":"request.refer"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/MandateEnvelope"}},"x-operation":"request.decline"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"request.upgrade"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["items"],"properties":{"page":{"type":"object","additionalProperties":false,"required":["limit","nextCursor","hasMore","order"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"nextCursor":{"type":["string","null"]},"hasMore":{"type":"boolean"},"order":{"const":"mandateId:asc"}}},"items":{"type":"array","items":{"type":"object","required":["mandateId","documents"],"properties":{"mandateId":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/DocumentView"}}}}}}}},"x-operation":"documents.list"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["email","clientName","language","emailNotifications","openCount","companyBilling","businessBillingEnabled","defaultPayerType"],"properties":{"email":{"type":"string"},"clientName":{"type":"string"},"language":{"type":"string","enum":["en","nl"]},"emailNotifications":{"type":"boolean"},"businessBillingEnabled":{"type":"boolean"},"defaultPayerType":{"type":["string","null"],"enum":["individual","company",null]},"openCount":{"type":"integer"},"companyBilling":{"type":["object","null"],"properties":{"companyName":{"type":"string"},"vatNumber":{"type":"string"},"address":{"type":"string"},"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}}}}},"x-operation":"settings.get"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"settings.payer"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"settings.business.activate"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"settings.details"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"settings.name"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"settings.language"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"settings.notifications"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["step"],"properties":{"step":{"type":"string","enum":["idle","code","confirm"]},"newEmail":{"type":"string"},"ticket":{"type":"string"},"done":{"type":"boolean"},"error":{"type":"string"}}}},"x-operation":"account.move"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["available","methods"],"properties":{"available":{"type":"boolean"},"methods":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["card","sepa_debit","other"]},"label":{"type":"string"},"expires":{"type":"string"},"last4":{"type":"string"},"expMonth":{"type":"integer"},"expYear":{"type":"integer"},"isDefault":{"type":"boolean"}}}}}}},"x-operation":"paymentMethods.list"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"paymentMethods.setup"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}}},"x-operation":"paymentMethods.manage"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"hasImage":{"type":"boolean"}},"required":["code","name","email","hasImage"]}},"x-operation":"profile.get"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"const":true}},"required":["saved"]}},"x-operation":"profile.image.set"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"const":true}},"required":["saved"]}},"x-operation":"profile.image.remove"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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"}}}}}}},"x-operation":"credentials.list"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["key","keyId","secret"],"properties":{"key":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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."}}}},"x-operation":"credentials.create"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["key","keyId","secret"],"properties":{"key":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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."}}}},"x-operation":"credentials.rotate"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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"}}}},"x-operation":"credentials.revoke"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["keyId"],"properties":{"keyId":{"type":"string"},"url":{"type":["string","null"]},"secret":{"type":"string","description":"New callback HMAC signing secret, shown once."},"secretKept":{"type":"boolean"}}}},"x-operation":"callbacks.save"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["keyId"],"properties":{"keyId":{"type":"string"},"url":{"type":["string","null"]},"secret":{"type":"string","description":"New callback HMAC signing secret, shown once."},"secretKept":{"type":"boolean"}}}},"x-operation":"callbacks.rotate"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["keyId"],"properties":{"keyId":{"type":"string"},"ok":{"type":"boolean"},"httpStatus":{"type":"integer"}}}},"x-operation":"callbacks.test"},{"type":"object","required":["continuation"],"properties":{"continuation":{"type":"object","required":["kind","url"],"properties":{"kind":{"type":"string","enum":["application","provider","verification"]},"url":{"type":"string"}}}}}]},"PreparedWorkflowReceipt":{"type":"object","additionalProperties":false,"required":["id","actionRef","phase","outcome","expiresAt"],"description":"Retained review and browser action state, separate from the immutable initial API receipt. Contains no original input or file metadata. A review URL requires the current owning browser session.","properties":{"id":{"type":"string"},"actionRef":{"type":"string","pattern":"^act_[a-f0-9]{64}$"},"operation":{"type":"string"},"phase":{"type":"string","enum":["awaiting_review","executing","completed","rejected","expired"]},"outcome":{"type":"string","enum":["recorded","refused","unknown"]},"expiresAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string","format":"uri","description":"Present only while the retained review is available. It grants no access by itself."},"result":{"type":"object","additionalProperties":false,"properties":{"mandateId":{"type":"string"},"revision":{"type":"string"},"documentId":{"type":"string"},"status":{"type":"string"},"confirmed":{"type":"integer"}}}}},"WorkflowActionReceipt":{"type":"object","additionalProperties":false,"description":"Content-free receipt available only to the same currently valid credential and role. completed means the response was recorded, not that the business action succeeded. A pending receipt remains held after expiresAt. Completed receipts expire after the idempotency retention window.","required":["actionRef","firstRequestId","operation","role","status","outcome","createdAt","expiresAt"],"properties":{"actionRef":{"type":"string","pattern":"^act_[a-f0-9]{64}$"},"firstRequestId":{"type":"string"},"operation":{"type":"string"},"role":{"type":"string","enum":["client","professional","assignee"]},"mandateId":{"type":"string","description":"Present only when repository-owned metadata records it."},"status":{"type":"string","enum":["pending","completed"]},"outcome":{"type":"string","enum":["recorded","refused","unknown"],"description":"recorded: a 2xx response was stored, possibly only a continuation or preparation. refused: a recorded 4xx receipt; inspect actual state. unknown: pending, partial, one-time-secret or uncertain response. None proves the resulting business state."},"preparedAction":{"$ref":"#/components/schemas/PreparedWorkflowReceipt"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"responseStatus":{"type":"integer","minimum":100,"maximum":599},"code":{"type":"string","description":"Only a known safe error code is returned; messages, bodies, links and tokens are omitted."}}}}},"webhooks":{"mandate.submitted":{"post":{"summary":"A request was created. Keys with a callback on either side receive it — the professional's keys and the client key under the request's e-mail (the creator already holds the response; treat its own submission as a confirmation).","parameters":[{"$ref":"#/components/parameters/CallbackEvent"},{"$ref":"#/components/parameters/CallbackDelivery"},{"$ref":"#/components/parameters/CallbackTimestamp"},{"$ref":"#/components/parameters/CallbackSignature"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered — anything else is retried on the ladder above."}}}},"mandate.quoted":{"post":{"summary":"The quote was confirmed and sent — the client can pay. Also fires for the machine tier's auto-release.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.paid":{"post":{"summary":"Escrow funded (the Stripe webhook drove quoted→paid).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.accepted":{"post":{"summary":"The professional accepted the paid job.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.declined":{"post":{"summary":"The professional refused the request (pre- or post-payment; a refund follows when escrow was funded).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.in_progress":{"post":{"summary":"Work started.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.translated":{"post":{"summary":"The translation is done and being finalised.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.delivered":{"post":{"summary":"Files delivered — the envelope's documents carry the downloadPaths; the acceptance clock runs.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.settled":{"post":{"summary":"Accepted (explicitly or deemed) — escrow released.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.refunded":{"post":{"summary":"Escrow refunded (a decline after payment, or a mediation outcome).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"mandate.cancelled":{"post":{"summary":"A sent, unpaid quote ended without payment: the client declined it (POST /mandates/{id}/decline, request.decline) or it lapsed at the end of the Brussels day 30 days after it was sent. The status log of the mandate carries which of the two as its note. Raised since 4 Nov 2026; not raised for a quote the professional withdrew (that is mandate.declined).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackEnvelope"}}}},"responses":{"2XX":{"description":"Delivered."}}}},"ping":{"post":{"summary":"The \"Send a test event\" button under a key — body {event, deliveryId, at, ping = true, keyId}; signed like every other delivery; never retried.\n","responses":{"2XX":{"description":"The tile shows the HTTP status you answer."}}}}},"paths":{"/mandates":{"post":{"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"]}},"/request-groups/{id}/pay":{"post":{"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"]}},"/mandates/{id}":{"get":{"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"]}},"/mandates/{id}/documents/{docId}":{"get":{"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"]}},"/mandates/{id}/attachments/{attachmentId}":{"get":{"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"]}},"/mandates/{id}/documents/archive":{"get":{"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"]}},"/mandates/{id}/decline":{"post":{"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"]}},"/mandates/{id}/pay":{"post":{"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"]}},"/mandates/{id}/case-file":{"get":{"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"]}},"/mandates/{id}/questions":{"get":{"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":{"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"]}},"/mandates/{id}/accept":{"get":{"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":{"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"]}},"/mandates/{id}/legalisation":{"get":{"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":{"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"]}},"/catalog":{"get":{"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"]}},"/terms":{"get":{"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"]}},"/terms/{id}":{"get":{"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"]}},"/mandates/{id}/terms":{"get":{"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"]}},"/client/actions/{actionRef}":{"get":{"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"}}}}}}},"/identity/assignee-workspaces":{"get":{"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"}}}}}}},"/identity/challenge":{"post":{"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"}}}}}}},"/identity/verify":{"post":{"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"}}}}}}},"/identity/password":{"post":{"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"}}}}}}},"/identity/second-step":{"post":{"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"}}}}}}},"/identity/credentials":{"post":{"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"}}}}}}},"/identity/terms":{"post":{"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":{"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"}}}}}}},"/identity/nomination":{"post":{"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"}}}}}},"get":{"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"}}}}}}},"/identity/signout":{"post":{"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"}}}}}}},"/client/operations":{"get":{"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":{"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"}}}}}}},"/client/openapi.json":{"get":{"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"}}}}}}}},"x-thide-operations":[{"operation":"referral.messages","title":"Referral Messages","description":"Read only your private conversation with THIDE for this referred delivery; frozen participants retain closed history.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"type":"object","required":["caseId","anchorId","memberIds","referredAt","closed","channel","canWrite","messages"],"additionalProperties":false,"properties":{"caseId":{"type":"string"},"anchorId":{"type":"string"},"memberIds":{"type":"array","items":{"type":"string"}},"referredAt":{"type":"string"},"closed":{"type":"boolean"},"channel":{"enum":["client","professional"]},"canWrite":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["id","from","message","at"],"additionalProperties":false,"properties":{"id":{"type":"string"},"from":{"enum":["client","professional","thide"]},"message":{"type":"string"},"at":{"type":"string"}}}}}},"uploads":[]},{"operation":"referral.send","title":"Referral Send","description":"Send a private message to THIDE on an open referral. Dedicated persisted retry identity; never accepts/refunds work or contacts providers.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","required":["id","from","message","at"],"additionalProperties":false,"properties":{"id":{"type":"string"},"from":{"enum":["client","professional","thide"]},"message":{"type":"string"},"at":{"type":"string"}}},"uploads":[]},{"operation":"request.create","title":"Request Create","description":"Request a quote when the person asks to submit their request. Reviewed Client Write can submit over MCP or HTTP using already accepted current Platform Terms. Draft, missing current terms and legacy MCP connections prepare a private draft and return continuation.url for review and submission in THIDE. A draft is not a submitted request. Do not collect or claim terms acceptance (acceptTerms/platformTermsClaim) for reviewed credentials. Submission requests a quote; it does not accept a quote, pay or accept delivered work. Use only stated choices: I Your reference (subject). II Your documents & languages: original files (.docx, .pdf, .xlsx, .pptx, .csv, .txt, .md, .png, .jpg; up to 30), source and targetLanguages, or docPairs when documents differ. III Type of translation: explicit Regular (kind regular), Certified (kind sworn and destination country), or Machine (machineTier true); alsoMachine adds a Machine draft. IV Optional info: requestedDate and message. V Your contact details: name; email comes from the credential. Write requires an explicit service for every document and target. The draft path prefills only the first docPairs pair; draft.omitted reports remaining choices. Through MCP upload originals as file parts; context attachments follow once the request exists. Direct HTTP submission also supports attachment parts or key-owned countJobs/fileNames in place of file parts. Preserved legacy manual HTTP credentials retain direct creation with acceptTerms and platformTermsClaim.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"anyOf":[{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}}}},{"type":"object","required":["executed","continuation","draft"],"properties":{"executed":{"type":"boolean","const":false},"continuation":{"type":"object","required":["kind","url"],"properties":{"kind":{"type":"string","const":"application"},"url":{"type":"string"}}},"draft":{"type":"object","required":["expiresAt","documents","prefill"],"properties":{"expiresAt":{"type":"string"},"documents":{"type":"array","items":{"type":"object","required":["fileName","sizeBytes","mimeType"],"properties":{"fileName":{"type":"string"},"sizeBytes":{"type":"integer"},"mimeType":{"type":"string"}}}},"prefill":{"type":"object"},"omitted":{"type":"array","items":{"type":"string"}}}},"message":{"type":"string"}}}]},"uploads":[{"field":"file","multiple":true},{"field":"attachment","multiple":true}]},{"operation":"intake.terms","title":"Intake Terms","description":"Current Platform Terms text and exact version/hash claims required by request.create.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","required":["documents","platformTermsClaim"],"properties":{"documents":{"type":"array","items":{"type":"object","required":["id","version","contentHash","body"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"contentHash":{"type":"string"},"body":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"}}}},"platformTermsClaim":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","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}}}},"uploads":[]},{"operation":"count.start","title":"Upload document","description":"Queue one file for count/detection; ticket belongs to this client and API key. Upload a file part. Poll count.get until complete.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","required":["state","completedPages"],"properties":{"ticket":{"type":"string"},"state":{"type":"string","enum":["queued","reading","ready","needs_review","failed","cancelled","expired"]},"completedPages":{"type":"integer"},"totalPages":{"type":"integer"},"detectedLanguage":{"type":"string"},"error":{"type":"string"},"result":{"type":"object","required":["charCount","method"],"properties":{"charCount":{"type":"integer"},"rawCharCount":{"type":"integer"},"method":{"type":"string","enum":["text_extraction","ocr","needs_ocr"]},"detectedLanguage":{"type":["string","null"]},"suggestedLanguage":{"type":["string","null"]},"detectedOtherLabel":{"type":["string","null"]},"detectedIssuingCountry":{"type":["string","null"]},"detectedDocumentCategory":{"type":["string","null"]},"budgetExhausted":{"type":"boolean"},"photoEstimateChars":{"type":"number"},"error":{"type":"string"}}}}},"uploads":[{"field":"file","required":true}]},{"operation":"count.get","title":"Count Get","description":"Read count progress/result for a ticket owned by this key; another key cannot read it.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"object","required":["state","completedPages"],"properties":{"ticket":{"type":"string"},"state":{"type":"string","enum":["queued","reading","ready","needs_review","failed","cancelled","expired"]},"completedPages":{"type":"integer"},"totalPages":{"type":"integer"},"detectedLanguage":{"type":"string"},"error":{"type":"string"},"result":{"type":"object","required":["charCount","method"],"properties":{"charCount":{"type":"integer"},"rawCharCount":{"type":"integer"},"method":{"type":"string","enum":["text_extraction","ocr","needs_ocr"]},"detectedLanguage":{"type":["string","null"]},"suggestedLanguage":{"type":["string","null"]},"detectedOtherLabel":{"type":["string","null"]},"detectedIssuingCountry":{"type":["string","null"]},"detectedDocumentCategory":{"type":["string","null"]},"budgetExhausted":{"type":"boolean"},"photoEstimateChars":{"type":"number"},"error":{"type":"string"}}}}},"uploads":[]},{"operation":"count.cancel","title":"Count Cancel","description":"Cancel an unused count ticket owned by this key.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"requests.list","title":"List Requests and Jobs","description":"List Client Requests or Jobs, including each view’s archive, with the same grouping, filters and sort as Client Studio. Select screen; status filters use the Studio’s canonical English option values regardless of display language. Members are client-redacted envelopes.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"object","required":["groups","conversations"],"properties":{"groups":{"type":"array","items":{"type":"object","required":["id","representativeId","reference","status","createdAt","members"],"properties":{"id":{"type":"string"},"representativeId":{"type":"string"},"reference":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"totalItems":{"type":"integer"},"itemNumbers":{"type":"object","additionalProperties":{"type":"integer"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}}}}},"conversations":{"type":"array","items":{"type":"object","required":["key","memberIds","incomingAt"],"properties":{"key":{"type":"string"},"memberIds":{"type":"array","items":{"type":"string"}},"incomingAt":{"type":"array","items":{"type":"string"}}}}}}},"uploads":[]},{"operation":"requests.export","title":"Export Requests and Jobs","description":"Download the Client Studio CSV for the same filtered Requests or Jobs view, including either archive. Select screen; status filters use canonical English option values. Optional mandateIds narrows selection; other owners never enter the data.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"request.get","title":"Open Request or Job","description":"Read one owned Request or Job with client-visible documents, conversation, quote and acceptance; evaluates the deemed-acceptance clock for delivered work.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"$ref":"#/components/schemas/MandateEnvelope"},"uploads":[]},{"operation":"request.reprice","title":"Request Reprice","description":"Choose an offered deadline on an indicative human quote. Preserves pricing holds and the shared pricing engine.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","properties":{"blocked":{"type":"string","enum":["checkout_open","unavailable"]},"request":{"$ref":"#/components/schemas/MandateEnvelope"}}},"uploads":[]},{"operation":"request.paymentOffer","title":"Request PaymentOffer","description":"Read the exact current single or grouped checkout membership and engagement offer from the payment service. With current credential authority, request.pay opens the person’s THIDE payment review; do not claim their approval by echoing this offer. Reading an offer does not accept terms or start a payment. Preserved legacy credentials keep their authenticated legacy input contract.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"object","required":["group","engagementOffer","members","terms"],"properties":{"group":{"type":"boolean"},"engagementOffer":{"$ref":"#/components/schemas/EngagementAcceptance"},"members":{"type":"array","items":{"$ref":"#/components/schemas/MandateEnvelope"}},"terms":{"$ref":"#/components/schemas/TermsDocument"}}},"uploads":[]},{"operation":"request.pay","title":"Request Pay","description":"Open THIDE payment review for this owned request. The person reviews the current checkout and Engagement Terms in THIDE or with the provider. This call does not approve terms or charge a payment. Personal approval fields are optional; if supplied they are still validated. Read request.paymentStatus afterward; a continuation is not payment completion.","scope":"payments","additionalScopes":[],"readOnly":false,"input":{"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."},"x-thide-input-contracts":{"legacy":{"input":{"$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},"description":"Pay with the same billing, group checkout, saved-card and verification gates as the portal. Choose payerType explicitly, or reuse a deliberate choice on this request or a saved defaultPayerType from settings.get. rememberPayerType requires the settings scope and saves this choice for future requests only after checkout validation. Echo engagementAcceptance and acknowledge the pretranslation gate explicitly. A saved card is never charged through this operation: savedMethod returns the client's own pay page as an application continuation (an absolute URL), where the person confirms with Pay — for a single request that page offers the saved cards; a group checkout (group true) uses the secure hosted checkout without saved cards. On that path payerType, rememberPayerType and the company fields have no effect: the person chooses them on the page. A checkout or 3DS continuation is not payment success; poll request.paymentStatus."},"currentHumanHandoff":{"input":{"$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":"Open THIDE payment review for this owned request. The person reviews the current checkout and Engagement Terms in THIDE or with the provider. This call does not approve terms or charge a payment. Personal approval fields are optional; if supplied they are still validated. Read request.paymentStatus afterward; a continuation is not payment completion.","when":"Credential has current authority and operation policy.mode is H."}},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"request.paymentStatus","title":"Request PaymentStatus","description":"Read the recorded payment status and current client request. Provider redirect completion alone does not establish capture.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"type":"object","required":["request","payment"],"properties":{"request":{"$ref":"#/components/schemas/MandateEnvelope"},"payment":{"type":["object","null"],"required":["id","status","amountCents","currency"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"amountCents":{"type":"integer"},"currency":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}},"uploads":[]},{"operation":"request.billing","title":"Request Billing","description":"Read recorded paid, refunded and retained amounts for owned job parts in the same request, matching the delivery billing overview. Frozen checkout evidence preserves original capture after a recount. Unknown historical VAT splits are null and incomplete history is flagged. Does not settle work or contact providers.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"type":"object","required":["memberIds","paidAmounts","refundedAmounts","retainedAmounts","fundedAmounts","paidCents","refundedCents","retainedCents","fundedCents","historyComplete"],"properties":{"memberIds":{"type":"array","items":{"type":"string"}},"paidAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"refundedAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"retainedAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"fundedAmounts":{"type":"object","required":["subtotalCents","vatCents","totalCents"],"properties":{"subtotalCents":{"type":["integer","null"]},"vatCents":{"type":["integer","null"]},"totalCents":{"type":"integer"}}},"paidCents":{"type":"integer"},"refundedCents":{"type":"integer"},"retainedCents":{"type":"integer"},"fundedCents":{"type":"integer"},"historyComplete":{"type":"boolean"}}},"uploads":[]},{"operation":"request.question","title":"Request Question","description":"Send a client message in the request conversation through the same stored and relayed message service. On delivered work it moves no acceptance clock; a correction request is request.correction. Refused once the delivery is referred to THIDE. Reference material (a glossary, an earlier translation) travels as repeated multipart `attachment` parts within the message bounds; it is named in the relay mail and downloaded on THIDE.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[{"field":"attachment","multiple":true}]},{"operation":"request.accept","title":"Request Accept","description":"Open THIDE delivery review for this owned request. The person reviews and accepts the current delivery there. This call does not accept work or release funds. deliveryRevision is optional for the handoff; if supplied it is still validated. Read request.acceptance or request.get afterward.","scope":"payments","additionalScopes":[],"readOnly":false,"input":{"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."},"x-thide-input-contracts":{"legacy":{"input":{"$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},"description":"Accept delivered work using the current delivery revision from request.acceptance. Uses the shared package-aware acceptance service."},"currentHumanHandoff":{"input":{"$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":"Open THIDE delivery review for this owned request. The person reviews and accepts the current delivery there. This call does not accept work or release funds. deliveryRevision is optional for the handoff; if supplied it is still validated. Read request.acceptance or request.get afterward.","when":"Credential has current authority and operation policy.mode is H."}},"response":{"$ref":"#/components/schemas/MandateEnvelope"},"uploads":[]},{"operation":"request.acceptance","title":"Request Acceptance","description":"Read the public acceptance state, current delivery revision and deemed clock for acceptance/correction/referral.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"type":"object","required":["request","deliveryRevision"],"properties":{"request":{"$ref":"#/components/schemas/MandateEnvelope"},"deliveryRevision":{"type":"string"}}},"uploads":[]},{"operation":"request.correction","title":"Request a Correction","description":"Request a correction on delivered work (two rounds, TD + KR 24 Nov 2026): the only act that stops the 3-working-day review window. Allowed while the window runs, at most twice; the professional then has 3 working days to upload a new version, which starts the window again. A plain message is request.question and moves nothing. Reference material (the page in question, a marked-up copy) travels as repeated multipart `attachment` parts within the message bounds, like request.question; it is named in the relay mail and downloaded on THIDE.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[{"field":"attachment","multiple":true}]},{"operation":"request.refer","title":"Request Refer","description":"Refer the delivery to THIDE, with the same gate as Client Studio: when the professional sent no new version within 3 working days of a correction request, or after the second correction round. Only the client refers; the conversation then continues through THIDE.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"$ref":"#/components/schemas/MandateEnvelope"},"uploads":[]},{"operation":"request.caseFile","title":"Download Referral Case File","description":"Download the referred delivery’s case file, using the same owner checks and client-visible chronology as Client Studio. Returns PDF, or the route’s HTML fallback when PDF rendering is unavailable. Available only after referral to THIDE.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"request.decline","title":"Request Decline","description":"Decline the sent quote (Platform Terms 7.1): every unpaid quoted part of the request closes as Declined and the professional is told once; nothing financial is recorded. 409 once a payment is in progress or taken, or the quote is no longer sent. The same shared decision as the quote page and POST /mandates/{id}/decline.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"$ref":"#/components/schemas/MandateEnvelope"},"uploads":[]},{"operation":"request.upgrade","title":"Request Upgrade","description":"Upgrade eligible delivered machine work to human translation at full price, reusing the source files; one live upgrade per machine job. Returns the continuation to the resulting request.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":200}},"required":["mandateId"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"documents.list","title":"Documents List","description":"List client-visible source, delivery and billing documents across owned requests, with revision metadata and authenticated API download paths. Optional limit (1–100) or cursor pages mandate entries by ascending mandateId; page describes live traversal, not a snapshot. Omit both to preserve the complete legacy list.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"object","required":["items"],"properties":{"page":{"type":"object","additionalProperties":false,"required":["limit","nextCursor","hasMore","order"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"nextCursor":{"type":["string","null"]},"hasMore":{"type":"boolean"},"order":{"const":"mandateId:asc"}}},"items":{"type":"array","items":{"type":"object","required":["mandateId","documents"],"properties":{"mandateId":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/DocumentView"}}}}}}},"uploads":[]},{"operation":"document.download","title":"Document Download","description":"Download an owned, client-visible document using the same versioned route and visibility checks as the UI.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"attachment.download","title":"Attachment Download","description":"Download reference material attached to a message of an owned request conversation, through the same signed, owner-checked route as the UI. Private assignment files are never client-visible.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"documents.archive","title":"Download Documents ZIP","description":"Download the same client-visible Documents ZIP as Client Studio; private subcontractor files remain excluded.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"settings.get","title":"Settings Get","description":"Read the client profile, notifications and billing details displayed by Settings. Does not expose provider credentials or other owners.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","required":["email","clientName","language","emailNotifications","openCount","companyBilling","businessBillingEnabled","defaultPayerType"],"properties":{"email":{"type":"string"},"clientName":{"type":"string"},"language":{"type":"string","enum":["en","nl"]},"emailNotifications":{"type":"boolean"},"businessBillingEnabled":{"type":"boolean"},"defaultPayerType":{"type":["string","null"],"enum":["individual","company",null]},"openCount":{"type":"integer"},"companyBilling":{"type":["object","null"],"properties":{"companyName":{"type":"string"},"vatNumber":{"type":"string"},"address":{"type":"string"},"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}}}},"uploads":[]},{"operation":"settings.payer","title":"Settings Payer","description":"Set the explicit payer default for future payments, or null to ask each time. Does not change existing requests, billing details or invoices.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"settings.business.activate","title":"Settings Business Activate","description":"Enable company billing details on the authenticated account without changing any request payer or activating a provider.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"settings.details","title":"Settings Details","description":"Save reusable company billing details on the authenticated account: company name, VAT number and registered address together. Send clear: true alone to remove them; a call without either is refused and changes nothing. Existing requests, payer choices and invoices remain unchanged. The profile name is settings.name.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"settings.name","title":"Settings Name","description":"Save the profile name used for future intake.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientName":{"type":"string","minLength":1,"maxLength":200}},"required":["clientName"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"settings.language","title":"Settings Language","description":"Save the same English/Dutch account preference as the portal without creating a browser cookie.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"language":{"type":"string","enum":["en","nl"]}},"required":["language"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"settings.notifications","title":"Settings Notifications","description":"Set routine email notifications; mandatory security, payment and delivery notices retain existing behavior.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"emailNotifications":{"type":"boolean"}},"required":["emailNotifications"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"account.move","title":"Account Move","description":"Three-step account email move. request sends a code to the current inbox; confirm verifies it and sends destination proof; complete requires ticket plus destination code. Keys move with the account after both inboxes are proven. An account that signs in with a password or authenticator app is refused here at every step and moves on the website only.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$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}]},"response":{"type":"object","required":["step"],"properties":{"step":{"type":"string","enum":["idle","code","confirm"]},"newEmail":{"type":"string"},"ticket":{"type":"string"},"done":{"type":"boolean"},"error":{"type":"string"}}},"uploads":[]},{"operation":"paymentMethods.list","title":"PaymentMethods List","description":"List the same saved payment methods as Billing, scoped to the authenticated client customer.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","required":["available","methods"],"properties":{"available":{"type":"boolean"},"methods":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["card","sepa_debit","other"]},"label":{"type":"string"},"expires":{"type":"string"},"last4":{"type":"string"},"expMonth":{"type":"integer"},"expYear":{"type":"integer"},"isDefault":{"type":"boolean"}}}}}},"uploads":[]},{"operation":"paymentMethods.setup","title":"PaymentMethods Setup","description":"Start the provider-hosted secure card setup flow. Returns a continuation; card entry and authentication remain with the payment provider.","scope":"payments","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"paymentMethods.manage","title":"PaymentMethods Manage","description":"Make an owned saved method the default or remove it, using the same provider ownership check as Billing.","scope":"payments","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","properties":{"saved":{"type":["boolean","integer"]},"sent":{"type":"boolean"},"name":{"type":"string"},"error":{"type":"string"},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}}}},"uploads":[]},{"operation":"profile.get","title":"Profile Get","description":"Read the authenticated Studio profile identity and image availability.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"hasImage":{"type":"boolean"}},"required":["code","name","email","hasImage"]},"uploads":[]},{"operation":"profile.image.get","title":"Profile Image Get","description":"Read the normalized profile image.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"profile.image.set","title":"Upload picture","description":"Upload a JPEG, PNG or WebP image up to 2 MB in the image multipart field.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"const":true}},"required":["saved"]},"uploads":[{"field":"image","required":true}]},{"operation":"profile.image.remove","title":"Profile Image Remove","description":"Remove the profile image.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"const":true}},"required":["saved"]},"uploads":[]},{"operation":"counterparty.image.get","title":"Counterparty Image Get","description":"Read the counterpart profile image for an owned human request. Professional callers may set target to assignment for the current translation assignee; no account id is accepted. Client access starts when the request becomes a job. Returns 404 if unavailable.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$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},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"credentials.list","title":"Credentials List","description":"List your profile API credentials and connected assistants with their permissions. Secrets are never returned.","scope":"credentials","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","additionalProperties":false,"required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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"}}}}}},"uploads":[]},{"operation":"credentials.create","title":"Credentials Create","description":"Create an API key ID and secret for your profile, with permissions and optional expiry. The secret is returned once; delegation cannot exceed your own permissions or lifetime.","scope":"credentials","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","additionalProperties":false,"required":["key","keyId","secret"],"properties":{"key":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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."}}},"uploads":[]},{"operation":"credentials.rotate","title":"Credentials Rotate","description":"Rotate a profile credential secret. Its ID, permissions and expiry remain unchanged; the previous secret stops working immediately.","scope":"credentials","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false},"response":{"type":"object","additionalProperties":false,"required":["key","keyId","secret"],"properties":{"key":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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."}}},"uploads":[]},{"operation":"credentials.revoke","title":"Credentials Revoke","description":"Revoke one of your profile API credentials or disconnect an assistant immediately.","scope":"credentials","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false},"response":{"type":"object","additionalProperties":false,"required":["id","kind","label","prefix","credentialVersion","scopes","expiresAt","createdAt","lastUsedAt","revokedAt","rotatedAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["api","assistant"],"description":"Assistant connections are managed automatically; they can be revoked but have no usable API secret to rotate or callback to configure."},"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"}}},"uploads":[]},{"operation":"callbacks.save","title":"Callbacks Save","description":"Set or clear a callback URL for an owned readable credential. A changed URL returns its new signing secret once.","scope":"credentials","additionalScopes":[],"readOnly":false,"input":{"$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},"response":{"type":"object","additionalProperties":false,"required":["keyId"],"properties":{"keyId":{"type":"string"},"url":{"type":["string","null"]},"secret":{"type":"string","description":"New callback HMAC signing secret, shown once."},"secretKept":{"type":"boolean"}}},"uploads":[]},{"operation":"callbacks.rotate","title":"Callbacks Rotate","description":"Rotate a callback signing secret, returned once.","scope":"credentials","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false},"response":{"type":"object","additionalProperties":false,"required":["keyId"],"properties":{"keyId":{"type":"string"},"url":{"type":["string","null"]},"secret":{"type":"string","description":"New callback HMAC signing secret, shown once."},"secretKept":{"type":"boolean"}}},"uploads":[]},{"operation":"callbacks.test","title":"Callbacks Test","description":"Send one signed test event to the stored callback URL.","scope":"credentials","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","minLength":1,"maxLength":128}},"required":["keyId"],"additionalProperties":false},"response":{"type":"object","additionalProperties":false,"required":["keyId"],"properties":{"keyId":{"type":"string"},"ok":{"type":"boolean"},"httpStatus":{"type":"integer"}}},"uploads":[]}]}