{"openapi":"3.1.0","info":{"title":"THIDE Subco Studio API","version":"1.2","description":"Subco Studio operations. Authenticate using x-thide-key-id AND x-thide-secret for this profile, or its legacy key header. GET /assignee/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"}}}]}}}},"assigneeCommand":{"oneOf":[{"title":"Draft List","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"draft.list"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId"],"additionalProperties":false}},"description":"List private prepared files for an owned assignment. Drafts are not published documents.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Draft Save","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"draft.save"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedDraftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt"],"additionalProperties":false}},"description":"Privately prepare one file. Replacing it requires its current expectedDraftId.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"file","required":true}]},{"title":"Draft Remove","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"draft.remove"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}},"description":"Remove the exact current private draft revision.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Draft Check","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"draft.check"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}},"description":"Run advisory checks on the exact saved file; unavailable checks stay unconfirmed.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Draft Download","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"draft.download"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}},"description":"Download an owned private draft; recheck assignment and draft revision after reading.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Submission Submit Prepared","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"submission.submit-prepared"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId","expectedUpdatedAt"],"additionalProperties":false}},"skipDeliveryChecks":{"type":"boolean"}},"required":["anchorId","items"],"additionalProperties":false}},"description":"Publish the complete request using exact stored draft and job revisions, without uploading again. Checks may explicitly be skipped; this never records successful checks.","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":"jobs.list"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]}},"additionalProperties":false},{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]},"archive":{"type":"string","enum":["0","1"]}},"required":["section","archive"],"additionalProperties":false}]}},"description":"List assigned requests and jobs. Supply section and archive (0 active, 1 history) for the exact Studio view; omitting archive retains all matching work. Requests history shows accepted assignments; Jobs history follows approved-work archiving.","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":"jobs.export"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]}},"additionalProperties":false},{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]},"archive":{"type":"string","enum":["0","1"]}},"required":["section","archive"],"additionalProperties":false}]}},"description":"Export selected assigned work using Studio CSV formatting. Supply section and archive for the same active/history selection as jobs.list; omitting archive retains all matching work.","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":"job.get"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId"],"additionalProperties":false}},"description":"Inspect current assignment, review state, source and submitted files.","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":128},"documentId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","documentId"],"additionalProperties":false}},"description":"Download an authorized source or own submission; authorization is rechecked after reading.","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":128},"attachmentId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","attachmentId"],"additionalProperties":false}},"description":"Download reference material the professional attached to a message in this subcontractor’s own assignment conversation; authorization is rechecked after reading. Client-side files are never served here.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Assignment Decide","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"assignment.decide"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"accept":{"type":"boolean"},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","maxLength":4000},"message":{"type":"string","maxLength":4000}},"required":["mandateId","role","assignedAt","accept"],"additionalProperties":false}},"description":"Confirm a single assignment only when it is the complete pending request. A decline requires a reason.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Request Decide","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"request.decide"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"decisions":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128},"accept":{"type":"boolean"},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","maxLength":4000}},"required":["mandateId","role","assignedAt","expectedUpdatedAt","accept"],"additionalProperties":false}},"message":{"type":"string","maxLength":4000}},"required":["anchorId","decisions"],"additionalProperties":false}},"description":"Confirm every pending assignment in one request against exact versions. Each decline needs a reason; an optional message accompanies the confirmation.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Submission Submit Request","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"submission.submit-request"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","expectedUpdatedAt"],"additionalProperties":false}}},"required":["anchorId","items"],"additionalProperties":false}},"description":"Publish the complete prepared request atomically. Copy fresh assignment/job versions; repeated files match items in order. Results are advisory checks for professional review.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"files","required":true,"multiple":true}]},{"title":"Submission Create","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"submission.create"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt"],"additionalProperties":false}},"description":"Submit one file or correction for professional review, as exactly one multipart part named work.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"work","required":true}]},{"title":"Messages List","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"messages.list"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","assignmentAt"],"additionalProperties":false}},"description":"Read this subcontractor’s conversation across currently assigned translations in the mandate.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Messages Send","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"messages.send"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128},"message":{"type":"string","minLength":1,"maxLength":4000}},"required":["mandateId","assignmentAt","message"],"additionalProperties":false}},"description":"Send a message in the active assignment conversation. Reference material travels as repeated multipart `attachment` parts within the message bounds.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[{"field":"attachment","multiple":true}]},{"title":"Messages Mark","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"messages.mark"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128},"at":{"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))$"},"unread":{"default":false,"type":"boolean"}},"required":["mandateId","assignmentAt","at"],"additionalProperties":false}},"description":"Mark a conversation read or unread at an observed timestamp.","x-required-scope":"workflow","x-required-scopes":["workflow"],"x-read-only":false,"x-uploads":[]},{"title":"Terms Get","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"terms.get"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},"description":"Read the current subcontractor terms, their versions, hashes and acceptance state.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"x-uploads":[]},{"title":"Terms Accept","type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"terms.accept"},"input":{"anyOf":[{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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":["documents"],"additionalProperties":false},{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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}}},"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 subcontractor terms for the person to review and personally accept the actual current documents. This call records no acceptance. documents is optional for this handoff; supplied values remain validated. Read terms.get afterward.","x-required-scope":"settings","x-required-scopes":["settings"],"x-read-only":false,"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 subcontractor profile preferences; financial records remain professional-owned.","x-required-scope":"read","x-required-scopes":["read"],"x-read-only":true,"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":"Set the same persistent language preference as Subco Studio.","x-required-scope":"settings","x-required-scopes":["settings"],"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":"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":[]}]},"assigneeResult":{"anyOf":[{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["drafts"],"properties":{"drafts":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","mandateId","role","assignedAt","fileName","mimeType","sizeBytes","createdAt","download"],"properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"role":{"enum":["translation","legalisation"]},"assignedAt":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string"},"download":{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.download"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}}}}}}}}},"x-operation":"draft.list"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","mandateId","role","assignedAt","fileName","mimeType","sizeBytes","createdAt","download"],"properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"role":{"enum":["translation","legalisation"]},"assignedAt":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string"},"download":{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.download"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}}}}}},"x-operation":"draft.save"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["removed"],"properties":{"removed":{"const":true}}}},"x-operation":"draft.remove"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["draftId","mandateId","fileName","findings","checksUnavailable"],"properties":{"draftId":{"type":"string"},"mandateId":{"type":"string"},"fileName":{"type":"string"},"findings":{"type":"array","items":{"type":"object","required":["code","level","message"],"properties":{"code":{"type":"string"},"level":{"enum":["warn","note"]},"message":{"type":"string"}}}},"checksUnavailable":{"type":"boolean"},"unresolvedPages":{"type":"array","items":{"type":"integer"}}}}},"x-operation":"draft.check"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/AssigneeBatchSubmissionResult"}},"x-operation":"submission.submit-prepared"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"jobs":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/AssigneeJob"},{"type":"object","required":["updatedAt","internalReference","section"],"properties":{"updatedAt":{"type":"string","format":"date-time"},"internalReference":{"type":"string","deprecated":true,"description":"Legacy subcontractor-owned reference. Use reference for the professional-assigned display reference."},"section":{"type":["string","null"],"enum":["requests","jobs",null]}}}]}}},"required":["jobs"]}},"x-operation":"jobs.list"},{"type":"object","required":["data"],"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/AssigneeJob"},{"type":"object","required":["updatedAt","internalReference","section"],"properties":{"updatedAt":{"type":"string","format":"date-time"},"internalReference":{"type":"string","deprecated":true,"description":"Legacy subcontractor-owned reference. Use reference for the professional-assigned display reference."},"section":{"type":["string","null"],"enum":["requests","jobs",null]}}}]}},"x-operation":"job.get"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}},"x-operation":"assignment.decide"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}},"x-operation":"request.decide"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/AssigneeBatchSubmissionResult"}},"x-operation":"submission.submit-request"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/AssigneeSubmissionResult"}},"x-operation":"submission.create"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"professionalId":{"type":"string"},"memberId":{"type":"string"},"assignmentAt":{"type":"string"},"message":{"type":"string"},"at":{"type":"string"},"from":{"type":"string","enum":["professional","subcontractor"]},"kind":{"type":"string","enum":["message","accepted","rejected","submitted_for_review","changes_requested","approved"]},"memberName":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","fileName","mimeType","sizeBytes","download"],"properties":{"id":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"download":{"type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"attachment.download"},"input":{"type":"object","additionalProperties":false,"required":["mandateId","attachmentId"],"properties":{"mandateId":{"type":"string"},"attachmentId":{"type":"string"}}}}}}}}},"required":["id","mandateId","professionalId","memberId","assignmentAt","message","at","from"]}}}}},"x-operation":"messages.list"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}},"x-operation":"messages.send"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}},"x-operation":"messages.mark"},{"type":"object","required":["data"],"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"]}},"x-operation":"terms.get"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}},"x-operation":"terms.accept"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"language":{"type":"string"}},"required":["name","email","language"]}},"x-operation":"settings.get"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}},"x-operation":"settings.language"},{"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":["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":{"/assignee/jobs":{"get":{"summary":"List assigned jobs","description":"Current translation/legalisation assignments for this member, including pending acceptance. Machine-tier work and jobs outside accepted, in_progress, translated, delivered or settled are excluded.\n","security":[{"assigneeKey":[]},{"keyId":[],"apiSecret":[]}],"responses":{"200":{"description":"Assigned jobs.","content":{"application/json":{"schema":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/AssigneeJob"}}}}}}},"401":{"description":"unauthorized — missing, mixed, revoked or wrong-owner credentials; inactive member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/KeyForbidden"},"404":{"description":"not_found — unknown endpoint, job outside current assignment scope or unavailable document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"internal — the request could not be completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-credential-roles":["assignee"],"operationId":"getAssigneeJobs","tags":["Subco Studio"]}},"/assignee/jobs/{id}":{"get":{"summary":"Read an assigned job","description":"Same assignment scope as the list. A job outside that scope is indistinguishable from a missing job.\n","security":[{"assigneeKey":[]},{"keyId":[],"apiSecret":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Assigned job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssigneeJob"}}}},"401":{"description":"unauthorized — missing, mixed, revoked or wrong-owner credentials; inactive member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/KeyForbidden"},"404":{"description":"not_found — unknown endpoint, job outside current assignment scope or unavailable document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"internal — the request could not be completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-credential-roles":["assignee"],"operationId":"getAssigneeJobsId","tags":["Subco Studio"]}},"/assignee/jobs/{id}/documents/{documentId}":{"get":{"summary":"Download an allowed work document","description":"Requires an accepted assignment. Only source documents and this member's uploads matching the current accepted assignment are available. Assignment access is checked again after the bytes are read. Returns an attachment with its MIME type, a contact-redacted filename, nosniff and Cache-Control no-store.\n","security":[{"assigneeKey":[]},{"keyId":[],"apiSecret":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Document bytes.","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"unauthorized — missing, mixed, revoked or wrong-owner credentials; inactive member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/KeyForbidden"},"404":{"description":"not_found — unknown endpoint, job outside current assignment scope or unavailable document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"internal — the request could not be completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-credential-roles":["assignee"],"operationId":"getAssigneeJobsIdDocumentsDocumentId","tags":["Subco Studio"]}},"/assignee/jobs/{id}/decision":{"post":{"summary":"Confirm the complete pending subcontractor request","description":"Prepare choices privately, then confirm every current pending role for this member in this request with decisions[]. The URL id is the request anchor and must belong to the caller. Copy assignedAt and updatedAt from GET /assignee/jobs. Declines require a non-whitespace declineReason. An optional message is shared with the professional in the same atomic commit. Stale, incomplete or foreign scopes fail without recording any decision or message. JSON body ceiling is 4 MiB. The legacy role/assignedAt/action body remains available only when one pending role constitutes the complete request; it also requires a decline reason.\n","security":[{"assigneeKey":[]},{"keyId":[],"apiSecret":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["decisions"],"properties":{"decisions":{"type":"array","minItems":1,"maxItems":200,"items":{"$ref":"#/components/schemas/AssigneeDecision"}},"message":{"type":"string","maxLength":4000}}},{"type":"object","required":["role","assignedAt","action"],"properties":{"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","format":"date-time"},"action":{"type":"string","enum":["accept","decline"]},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","minLength":1,"maxLength":4000},"message":{"type":"string","maxLength":4000}},"allOf":[{"if":{"properties":{"action":{"const":"decline"}}},"then":{"required":["declineReason"]}}]}]}}}},"responses":{"200":{"description":"Complete request confirmed; the legacy response has accepted, while the batch response has confirmed mandate IDs.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["accepted"],"properties":{"accepted":{"type":"boolean"}}},{"type":"object","required":["confirmed"],"properties":{"confirmed":{"type":"array","items":{"type":"string"}}}}]}}}},"400":{"description":"invalid_body — malformed JSON or multipart data, or invalid decision fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized — missing, mixed, revoked or wrong-owner credentials; inactive member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/KeyForbidden"},"404":{"description":"not_found — unknown endpoint, job outside current assignment scope or unavailable document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"work_conflict — stale assignment, closed job, unaccepted work or invalid upload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"too_large — the request body exceeds its transport ceiling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"internal — the request could not be completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-credential-roles":["assignee"],"operationId":"postAssigneeJobsIdDecision","tags":["Subco Studio"]}},"/assignee/jobs/{id}/submissions":{"post":{"summary":"Submit subcontractor work for professional review","description":"Prepare files locally, then send items (a JSON string of AssigneeDeliverySelection) and one repeated files field per item, in the same order. The URL id is the owned request anchor. Every outstanding accepted role must have a supplied file or a current submission not awaiting correction. All supplied files publish atomically; stale, incomplete, foreign or duplicate selections fail without partial publication. Each file is at most 100 MiB, at most 200 files and 200 MiB total; multipart ceiling is 201 MiB. Automatic checks and Studio notification follow publication; the form field skipDeliveryChecks=1 skips the checks (each report then says checksUnavailable: true), and the professional still reviews every file. The legacy one-file work/kind/assignedAt format is retained when it satisfies the complete-request rule; otherwise it returns work_conflict (409). This does not deliver to the client. A batch returns reports; legacy returns findings and checksUnavailable. After an uncertain result, fetch current jobs and files before retrying; consumed revisions are rejected rather than republished.\n","security":[{"assigneeKey":[]},{"keyId":[],"apiSecret":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"oneOf":[{"type":"object","required":["items","files"],"properties":{"items":{"type":"string","description":"JSON-encoded AssigneeDeliverySelection array."},"files":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"string","format":"binary"}}}},{"type":"object","required":["work"],"properties":{"kind":{"type":"string","enum":["translation","legalisation"],"default":"translation"},"translationAssignedAt":{"type":"string","format":"date-time","description":"Required when kind is translation (including the default)."},"legalisationAssignedAt":{"type":"string","format":"date-time","description":"Required when kind is legalisation."},"work":{"type":"string","format":"binary"}},"oneOf":[{"required":["translationAssignedAt"],"properties":{"kind":{"const":"translation"}}},{"required":["kind","legalisationAssignedAt"],"properties":{"kind":{"const":"legalisation"}}}]}]}}}},"responses":{"201":{"description":"Work saved for review, with advisory findings and check availability.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AssigneeSubmissionResult"},{"$ref":"#/components/schemas/AssigneeBatchSubmissionResult"}]}}}},"400":{"description":"invalid_body — malformed JSON or multipart data, or invalid decision fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized — missing, mixed, revoked or wrong-owner credentials; inactive member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/KeyForbidden"},"404":{"description":"not_found — unknown endpoint, job outside current assignment scope or unavailable document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"work_conflict — stale assignment, closed job, unaccepted work or invalid upload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"too_large — the request body exceeds its transport ceiling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"malware_detected — the virus scan refused a file; nothing was stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"internal — the request could not be completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"scanner_unavailable — no virus-scan verdict on an exposed host; nothing was stored, retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-credential-roles":["assignee"],"operationId":"postAssigneeJobsIdSubmissions","tags":["Subco Studio"]}},"/assignee/actions/{actionRef}":{"get":{"operationId":"assigneeReadActionReceipt","tags":["Subco Studio"],"summary":"Read this credential’s content-free action receipt","security":[{"keyId":[],"apiSecret":[]},{"assigneeKey":[]}],"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"}}}}}}},"/assignee/operations":{"get":{"operationId":"assigneeDiscoverOperations","tags":["Subco Studio"],"summary":"Discover operations available to this credential","security":[{"keyId":[],"apiSecret":[]},{"assigneeKey":[]}],"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":"assigneeExecuteOperation","tags":["Subco Studio"],"summary":"Execute one explicit role operation","security":[{"keyId":[],"apiSecret":[]},{"assigneeKey":[]}],"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/assigneeCommand"}},"multipart/form-data":{"schema":{"oneOf":[{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.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":{"mandateId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId"],"additionalProperties":false}}}},{"type":"object","required":["operation","input","file"],"properties":{"operation":{"const":"draft.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":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedDraftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt"],"additionalProperties":false}},"file":{"type":"string","format":"binary"}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.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":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.check"},"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":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.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":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"submission.submit-prepared"},"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":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId","expectedUpdatedAt"],"additionalProperties":false}},"skipDeliveryChecks":{"type":"boolean"}},"required":["anchorId","items"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"jobs.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","anyOf":[{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]}},"additionalProperties":false},{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]},"archive":{"type":"string","enum":["0","1"]}},"required":["section","archive"],"additionalProperties":false}]}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"jobs.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","anyOf":[{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]}},"additionalProperties":false},{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]},"archive":{"type":"string","enum":["0","1"]}},"required":["section","archive"],"additionalProperties":false}]}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"job.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":128}},"required":["mandateId"],"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":128},"documentId":{"type":"string","minLength":1,"maxLength":128}},"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":128},"attachmentId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","attachmentId"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"assignment.decide"},"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":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"accept":{"type":"boolean"},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","maxLength":4000},"message":{"type":"string","maxLength":4000}},"required":["mandateId","role","assignedAt","accept"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"request.decide"},"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":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"decisions":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128},"accept":{"type":"boolean"},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","maxLength":4000}},"required":["mandateId","role","assignedAt","expectedUpdatedAt","accept"],"additionalProperties":false}},"message":{"type":"string","maxLength":4000}},"required":["anchorId","decisions"],"additionalProperties":false}}}},{"type":"object","required":["operation","input","files"],"properties":{"operation":{"const":"submission.submit-request"},"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":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","expectedUpdatedAt"],"additionalProperties":false}}},"required":["anchorId","items"],"additionalProperties":false}},"files":{"type":"array","items":{"type":"string","format":"binary"}}}},{"type":"object","required":["operation","input","work"],"properties":{"operation":{"const":"submission.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":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt"],"additionalProperties":false}},"work":{"type":"string","format":"binary"}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"messages.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":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","assignmentAt"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"messages.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":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128},"message":{"type":"string","minLength":1,"maxLength":4000}},"required":["mandateId","assignmentAt","message"],"additionalProperties":false}},"attachment":{"type":"array","items":{"type":"string","format":"binary"}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"messages.mark"},"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":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128},"at":{"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))$"},"unread":{"default":false,"type":"boolean"}},"required":["mandateId","assignmentAt","at"],"additionalProperties":false}}}},{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"terms.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":"terms.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":{"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":["documents"],"additionalProperties":false},{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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}}},"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":"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.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":"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":"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}}}}]}}}},"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/assigneeResult"}},"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"}}}}}}},"/assignee/openapi.json":{"get":{"operationId":"assigneeOpenApi","tags":["Subco 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":"draft.list","title":"Draft List","description":"List private prepared files for an owned assignment. Drafts are not published documents.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId"],"additionalProperties":false},"response":{"type":"object","required":["drafts"],"properties":{"drafts":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","mandateId","role","assignedAt","fileName","mimeType","sizeBytes","createdAt","download"],"properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"role":{"enum":["translation","legalisation"]},"assignedAt":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string"},"download":{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.download"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}}}}}}}},"uploads":[]},{"operation":"draft.save","title":"Draft Save","description":"Privately prepare one file. Replacing it requires its current expectedDraftId.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedDraftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt"],"additionalProperties":false},"response":{"type":"object","additionalProperties":false,"required":["id","mandateId","role","assignedAt","fileName","mimeType","sizeBytes","createdAt","download"],"properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"role":{"enum":["translation","legalisation"]},"assignedAt":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string"},"download":{"type":"object","required":["operation","input"],"properties":{"operation":{"const":"draft.download"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false}}}}},"uploads":[{"field":"file","required":true}]},{"operation":"draft.remove","title":"Draft Remove","description":"Remove the exact current private draft revision.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false},"response":{"type":"object","required":["removed"],"properties":{"removed":{"const":true}}},"uploads":[]},{"operation":"draft.check","title":"Draft Check","description":"Run advisory checks on the exact saved file; unavailable checks stay unconfirmed.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false},"response":{"type":"object","required":["draftId","mandateId","fileName","findings","checksUnavailable"],"properties":{"draftId":{"type":"string"},"mandateId":{"type":"string"},"fileName":{"type":"string"},"findings":{"type":"array","items":{"type":"object","required":["code","level","message"],"properties":{"code":{"type":"string"},"level":{"enum":["warn","note"]},"message":{"type":"string"}}}},"checksUnavailable":{"type":"boolean"},"unresolvedPages":{"type":"array","items":{"type":"integer"}}}},"uploads":[]},{"operation":"draft.download","title":"Draft Download","description":"Download an owned private draft; recheck assignment and draft revision after reading.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId"],"additionalProperties":false},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"submission.submit-prepared","title":"Submission Submit Prepared","description":"Publish the complete request using exact stored draft and job revisions, without uploading again. Checks may explicitly be skipped; this never records successful checks.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","draftId","expectedUpdatedAt"],"additionalProperties":false}},"skipDeliveryChecks":{"type":"boolean"}},"required":["anchorId","items"],"additionalProperties":false},"response":{"$ref":"#/components/schemas/AssigneeBatchSubmissionResult"},"uploads":[]},{"operation":"jobs.list","title":"List Requests and Jobs","description":"List assigned requests and jobs. Supply section and archive (0 active, 1 history) for the exact Studio view; omitting archive retains all matching work. Requests history shows accepted assignments; Jobs history follows approved-work archiving.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]}},"additionalProperties":false},{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]},"archive":{"type":"string","enum":["0","1"]}},"required":["section","archive"],"additionalProperties":false}]},"response":{"type":"object","properties":{"jobs":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/AssigneeJob"},{"type":"object","required":["updatedAt","internalReference","section"],"properties":{"updatedAt":{"type":"string","format":"date-time"},"internalReference":{"type":"string","deprecated":true,"description":"Legacy subcontractor-owned reference. Use reference for the professional-assigned display reference."},"section":{"type":["string","null"],"enum":["requests","jobs",null]}}}]}}},"required":["jobs"]},"uploads":[]},{"operation":"jobs.export","title":"Export Requests and Jobs","description":"Export selected assigned work using Studio CSV formatting. Supply section and archive for the same active/history selection as jobs.list; omitting archive retains all matching work.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]}},"additionalProperties":false},{"type":"object","properties":{"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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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":"^[^,\\r\\n]{0,10}(?:,[^,\\r\\n]{0,10}){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","items","status","date","deadline"]},"direction":{"type":"string","enum":["asc","desc"]},"ids":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"section":{"type":"string","enum":["requests","jobs"]},"archive":{"type":"string","enum":["0","1"]}},"required":["section","archive"],"additionalProperties":false}]},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"job.get","title":"Open Request or Job","description":"Inspect current assignment, review state, source and submitted files.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId"],"additionalProperties":false},"response":{"allOf":[{"$ref":"#/components/schemas/AssigneeJob"},{"type":"object","required":["updatedAt","internalReference","section"],"properties":{"updatedAt":{"type":"string","format":"date-time"},"internalReference":{"type":"string","deprecated":true,"description":"Legacy subcontractor-owned reference. Use reference for the professional-assigned display reference."},"section":{"type":["string","null"],"enum":["requests","jobs",null]}}}]},"uploads":[]},{"operation":"document.download","title":"Document Download","description":"Download an authorized source or own submission; authorization is rechecked after reading.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"documentId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","documentId"],"additionalProperties":false},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"attachment.download","title":"Attachment Download","description":"Download reference material the professional attached to a message in this subcontractor’s own assignment conversation; authorization is rechecked after reading. Client-side files are never served here.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"attachmentId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","attachmentId"],"additionalProperties":false},"response":{"type":"string","format":"binary"},"uploads":[]},{"operation":"assignment.decide","title":"Assignment Decide","description":"Confirm a single assignment only when it is the complete pending request. A decline requires a reason.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"accept":{"type":"boolean"},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","maxLength":4000},"message":{"type":"string","maxLength":4000}},"required":["mandateId","role","assignedAt","accept"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false},"uploads":[]},{"operation":"request.decide","title":"Request Decide","description":"Confirm every pending assignment in one request against exact versions. Each decline needs a reason; an optional message accompanies the confirmation.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"decisions":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128},"accept":{"type":"boolean"},"internalReference":{"type":"string","maxLength":160},"declineReason":{"type":"string","maxLength":4000}},"required":["mandateId","role","assignedAt","expectedUpdatedAt","accept"],"additionalProperties":false}},"message":{"type":"string","maxLength":4000}},"required":["anchorId","decisions"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false},"uploads":[]},{"operation":"submission.submit-request","title":"Submission Submit Request","description":"Publish the complete prepared request atomically. Copy fresh assignment/job versions; repeated files match items in order. Results are advisory checks for professional review.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"anchorId":{"type":"string","minLength":1,"maxLength":128},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128},"expectedUpdatedAt":{"type":"string","minLength":1,"maxLength":128},"draftId":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt","expectedUpdatedAt"],"additionalProperties":false}}},"required":["anchorId","items"],"additionalProperties":false},"response":{"$ref":"#/components/schemas/AssigneeBatchSubmissionResult"},"uploads":[{"field":"files","required":true,"multiple":true}]},{"operation":"submission.create","title":"Submission Create","description":"Submit one file or correction for professional review, as exactly one multipart part named work.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["translation","legalisation"]},"assignedAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","role","assignedAt"],"additionalProperties":false},"response":{"$ref":"#/components/schemas/AssigneeSubmissionResult"},"uploads":[{"field":"work","required":true}]},{"operation":"messages.list","title":"Messages List","description":"Read this subcontractor’s conversation across currently assigned translations in the mandate.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128}},"required":["mandateId","assignmentAt"],"additionalProperties":false},"response":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mandateId":{"type":"string"},"professionalId":{"type":"string"},"memberId":{"type":"string"},"assignmentAt":{"type":"string"},"message":{"type":"string"},"at":{"type":"string"},"from":{"type":"string","enum":["professional","subcontractor"]},"kind":{"type":"string","enum":["message","accepted","rejected","submitted_for_review","changes_requested","approved"]},"memberName":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","fileName","mimeType","sizeBytes","download"],"properties":{"id":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"download":{"type":"object","additionalProperties":false,"required":["operation","input"],"properties":{"operation":{"const":"attachment.download"},"input":{"type":"object","additionalProperties":false,"required":["mandateId","attachmentId"],"properties":{"mandateId":{"type":"string"},"attachmentId":{"type":"string"}}}}}}}}},"required":["id","mandateId","professionalId","memberId","assignmentAt","message","at","from"]}}}},"uploads":[]},{"operation":"messages.send","title":"Messages Send","description":"Send a message in the active assignment conversation. Reference material travels as repeated multipart `attachment` parts within the message bounds.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128},"message":{"type":"string","minLength":1,"maxLength":4000}},"required":["mandateId","assignmentAt","message"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false},"uploads":[{"field":"attachment","multiple":true}]},{"operation":"messages.mark","title":"Messages Mark","description":"Mark a conversation read or unread at an observed timestamp.","scope":"workflow","additionalScopes":[],"readOnly":false,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mandateId":{"type":"string","minLength":1,"maxLength":128},"assignmentAt":{"type":"string","minLength":1,"maxLength":128},"at":{"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))$"},"unread":{"default":false,"type":"boolean"}},"required":["mandateId","assignmentAt","at"],"additionalProperties":false},"response":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false},"uploads":[]},{"operation":"terms.get","title":"Terms Get","description":"Read the current subcontractor terms, their versions, hashes and acceptance state.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"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"]},"uploads":[]},{"operation":"terms.accept","title":"Terms Accept","description":"Open THIDE subcontractor terms for the person to review and personally accept the actual current documents. This call records no acceptance. documents is optional for this handoff; supplied values remain validated. Read terms.get afterward.","scope":"settings","additionalScopes":[],"readOnly":false,"input":{"anyOf":[{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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":["documents"],"additionalProperties":false},{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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}}},"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":{"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":["documents"],"additionalProperties":false},"description":"Record explicit acceptance of the exact current subcontractor documents."},"currentHumanHandoff":{"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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}}},"additionalProperties":false},"description":"Open THIDE subcontractor terms for the person to review and personally accept the actual current documents. This call records no acceptance. documents is optional for this handoff; supplied values remain validated. Read terms.get afterward.","when":"Credential has current authority and operation policy.mode is H."}},"response":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false},"uploads":[]},{"operation":"settings.get","title":"Settings Get","description":"Read subcontractor profile preferences; financial records remain professional-owned.","scope":"read","additionalScopes":[],"readOnly":true,"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"response":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"language":{"type":"string"}},"required":["name","email","language"]},"uploads":[]},{"operation":"settings.language","title":"Settings Language","description":"Set the same persistent language preference as Subco Studio.","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"}},"required":["saved"],"additionalProperties":false},"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":"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":[]}]}