{"openapi":"3.1.0","info":{"title":"Purser Cloud API","version":"1.7.0","description":"Everything a company's finance runs on, in one place: invoices, documents, suppliers, payments, the ledger and its reports. Test money only until a company goes live."},"servers":[{"url":"https://purser-try.max-31b.workers.dev"}],"tags":[{"name":"Company","description":"The company's books, read-only for read keys: invoices, documents, suppliers, payments, the transactions register, the ledger and its reports; and the owner's settings."},{"name":"Engine (payments)","description":"The company's engine (test money): propose an invoice's payment (read + propose); approving is a signed-in person's passkey only, never a key."},{"name":"Access","description":"Who may do what: passkey sign-in, sessions, API keys (read, sync, admin, propose) and people."},{"name":"AI agents (MCP, OAuth)","description":"Purser as a remote MCP server for AI clients, its connector tokens and its OAuth sign-in."},{"name":"Discovery","description":"Machine-readable descriptions: this document, the A2A Agent Card and the API reference page."},{"name":"Platform","description":"The platform operator's routes (the platform admin token)."},{"name":"Hands-on demo","description":"The hands-on demo's own routes (/try): a visitor's test company, for a day, test money."},{"name":"Site","description":"Icons and pages."}],"x-purser-safety":"A key reads (read) and files an invoice's payment for the CFO's approval (propose). No key approves: approving needs the approve scope, a signed-in CFO's (an owner's only in a company with no CFO), and their passkey over the exact terms (POST /v1/engine/proposals/{id}/approve refuses every key).","components":{"responses":{"BadRequest":{"description":"A request that does not fit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Not found (also: another company's object)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Invoice":{"type":"object","required":["id","version"],"additionalProperties":true,"description":"A supplier invoice as the company's records hold it (the runner's or the engine's copy, versioned).","properties":{"id":{"type":"string","description":"Like AP-0004"},"version":{"type":"integer"},"vendor":{"type":"string"},"invoice_no":{"type":"string"},"due_date":{"type":"string","description":"YYYY-MM-DD"},"currency":{"type":"string"},"total":{"type":"string","description":"A decimal amount, like 1309.00"},"status":{"type":"string"}}},"InvoiceDetail":{"allOf":[{"$ref":"#/components/schemas/Invoice"},{"type":"object","properties":{"earlier_versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer"},"replaced_at":{"type":"string"}}}}}}]},"InvoicePage":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Invoice"}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send as cursor for the next page; null on the last page"}}},"Proposal":{"type":"object","required":["id","kind","status","terms_sha256"],"additionalProperties":true,"description":"A payment proposal: the exact terms the CFO's passkey signs. PENDING_APPROVAL waits for the CFO; only their passkey moves it on.","properties":{"id":{"type":"string","description":"Like P-0009"},"kind":{"type":"string"},"status":{"type":"string","description":"PENDING_APPROVAL, APPROVED, EXECUTED, FAILED, REJECTED or EXPIRED"},"terms_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"challenge":{"type":"string","description":"What the CFO's passkey signs over the terms"},"facts":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}],"minItems":2,"maxItems":2},"description":"[label, value] pairs a person reads"},"warnings":{"type":"array","items":{"type":"string"}}}},"ProposalAnswer":{"type":"object","required":["proposal"],"properties":{"proposal":{"$ref":"#/components/schemas/Proposal"}}},"ProposeAnswer":{"type":"object","required":["proposal"],"additionalProperties":true,"description":"The filed proposal. Nothing is paid until the CFO approves these exact terms with their passkey, except within a pay-alone limit the CFO set (off unless set), which `alone` then names.","properties":{"proposal":{"$ref":"#/components/schemas/Proposal"},"alone":{"type":"object"},"settled":{"anyOf":[{"type":"object"},{"type":"null"}]}}},"EngineInvoice":{"type":"object","required":["id","status","payable","vendor","currency","total"],"additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string"},"status_words":{"type":"string"},"payable":{"type":"boolean","description":"Whether a payment can be proposed now"},"vendor":{"type":"string"},"invoice_no":{"type":"string"},"currency":{"type":"string"},"total":{"type":"string"},"due_date":{"type":"string"},"findings":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}}}},"proposal":{"anyOf":[{"$ref":"#/components/schemas/Proposal"},{"type":"null"}]}}},"EngineInvoices":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EngineInvoice"}}}},"Me":{"type":"object","required":["tenant","kind","scopes"],"additionalProperties":true,"properties":{"tenant":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"language":{"type":"string"}}},"kind":{"type":"string","enum":["key","session"]},"scopes":{"type":"array","items":{"type":"string","enum":["read","sync","admin","propose"]}},"role":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"Error":{"type":"object","required":["error","code"],"properties":{"error":{"type":"string","description":"What went wrong, for a person"},"code":{"type":"string","enum":["bad_request","unauthorized","forbidden","not_found","method_not_allowed","conflict","too_large","unsupported_media_type","unprocessable","rate_limited","internal","upstream","step_up_required"],"description":"Stable, for a program"}}}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key (pck_...; scopes read, sync, admin, propose; never approve) or a passkey session (pcs....; its role's scopes: a CFO's carry approve, docs/security/roles.md)"},"platformAdmin":{"type":"http","scheme":"bearer"}}},"paths":{"/v1/health":{"get":{"operationId":"getHealth","tags":["Company"],"summary":"For an uptime monitor: whether the database and the document store answer, the version, the mail waiting in all, and whether any security alarm was raised in the last 24 hours (security.ok: false when one was, or when the database does not answer; how many and which rule only in the platform operator's security log); 503 when something is down.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/status":{"get":{"operationId":"getCompanyStatus","tags":["Company"],"summary":"Where the company stands, for its owners: the last push from the runner, the mail queue, today's mail quota, the runner's alert codes and the webhook (never its secret).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/health/report":{"post":{"operationId":"reportRunnerHealth","tags":["Company"],"summary":"The runner reports its health: alert codes and severities (their words are dropped). Alerts raised or cleared since the last report go to the company's webhook.","security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/integrations":{"get":{"operationId":"getIntegrations","tags":["Company"],"summary":"Where the company's accounting links stand (Moneybird): not_connected, connected or attention, the last sync, what was sent, what failed and what waits for a person; from the runner's ERP sync results in the audit log, never a credential.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/webhook":{"get":{"operationId":"getWebhook","tags":["Company"],"summary":"The company's alert webhook (its URL and delivery state; never its secret).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"setWebhook","tags":["Company"],"summary":"Set the alert webhook (https, a public host name); returns the signing secret once. Events are signed: x-purser-signature t=<seconds>,v1=<HMAC-SHA256 hex of t.body>. A session needs a fresh passkey assertion (x-purser-step-up); every owner is told; a webhook it replaces gets webhook.replaced first; the new one hears nothing before active_from (24 hours by default) unless a second owner confirms it (POST /v1/alerts/pending/{id}/confirm).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always for a session: a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"operationId":"removeWebhook","tags":["Company"],"summary":"Remove the alert webhook; it gets webhook.removed first, and every owner is told. A session needs a fresh passkey assertion.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always for a session: a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/evidence-sink":{"get":{"operationId":"getEvidenceSink","tags":["Company"],"summary":"The company's evidence sink (Settings, Security): the S3-compatible bucket outside Purser's account that receives every new audit checkpoint and every security event, one signed JSON object each under a content-addressed key, never overwritten. Where it writes, how many objects, the last status; never a secret. { sink: null } when none is set.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"setEvidenceSink","tags":["Company"],"summary":"Set the company's evidence sink: { endpoint (https origin), bucket, region, prefix, access_key_id, secret_access_key }, credentials that may only PUT under the prefix, ideally to an Object Lock bucket in an account Purser has no part in. Answers the objects' signing secret once (HMAC-SHA256 over each object; the bucket's secret is never answered). A signed-in owner after a fresh passkey assertion, never a key; every owner is told; it writes nothing before active_from (24 hours by default) unless a second owner confirms it (POST /v1/alerts/pending/evidence.main/confirm).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"operationId":"removeEvidenceSink","tags":["Company"],"summary":"Remove the company's evidence sink (what it holds stays in the bucket). A signed-in owner after a fresh passkey assertion; every owner is told.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/security/settings":{"get":{"operationId":"getSecuritySettings","tags":["Access"],"summary":"The company's security settings: step_up, whether sensitive settings ask for the passkey again after five minutes (\"Ask again before sensitive changes\"; off by default).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"setSecuritySettings","tags":["Access"],"summary":"Switch \"Ask again before sensitive changes\" on or off: { step_up: boolean }. A signed-in owner, after a fresh passkey assertion (x-purser-step-up; the sign-in alone does not count), whatever the setting; never a key. Recorded in the security events and told to every owner.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/alerts":{"get":{"operationId":"getAlertSettings","tags":["Company"],"summary":"Approval alerts (Settings, Alerts): who hears that a payment waits for the CFO's Face ID and on which channel (e-mail, Slack, Teams, the signed webhook), targets masked, and the latest deliveries with their status. An alert only tells; nothing in it approves.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/alerts/targets":{"post":{"operationId":"addAlertTarget","tags":["Company"],"summary":"Add an alert target: { channel: email | slack | teams, target } (an address, or a Slack or Teams webhook URL). A signed-in owner after a fresh passkey assertion (x-purser-step-up; the sign-in alone does not count); never a key. Every owner is told; the target hears nothing before active_from (24 hours by default) unless a second owner confirms it (POST /v1/alerts/pending/{id}/confirm). Answers the target masked.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/alerts/targets/{id}":{"delete":{"operationId":"removeAlertTarget","tags":["Company"],"summary":"Remove an alert target (a signed-in owner after a fresh passkey assertion). The removed target is told on its own channel, and every owner is told.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/alerts/pending/{id}/confirm":{"post":{"operationId":"confirmPendingTarget","tags":["Company"],"summary":"A second owner confirms a new or changed alert target (alert.<id>), chat hook (chat.slack, chat.teams), the signed webhook (webhook.main) or the evidence sink (evidence.main) before its wait ends: it hears from now on. A signed-in owner after a fresh passkey assertion, never the owner who made the change (409) and never a key. Every owner is told. GET /v1/alerts lists what waits (pending).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/chat-hooks":{"get":{"operationId":"listChatHooks","tags":["Company"],"summary":"Slack and Teams (Settings): whether the company's Slack and Teams incoming webhooks are set (their host only, never the URL), and each one's delivery state. Purser posts approval.needed, payment.paid and books.closed there; a message only tells and links to Purser Cloud, it never approves.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/chat-hooks/{product}":{"post":{"operationId":"setChatHook","tags":["Company"],"summary":"Set the company's Slack (product slack: https://hooks.slack.com/services/...) or Teams (product teams: a Teams Workflow's webhook URL) incoming webhook: { url }. A signed-in owner after a fresh passkey assertion; never a key. Every owner is told, a hook it replaces is told, and the new one hears nothing before active_from (24 hours by default) unless a second owner confirms it. Answers the host only.","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"operationId":"removeChatHook","tags":["Company"],"summary":"Remove the company's Slack or Teams webhook (a signed-in owner after a fresh passkey assertion); the hook is told first, and every owner is told.","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, with a fresh passkey assertion (x-purser-step-up); the sign-in alone does not count","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/chat-hooks/{product}/test":{"post":{"operationId":"testChatHook","tags":["Company"],"summary":"Post one test message to the company's Slack or Teams webhook now, so the owner sees it arrive: { delivered, status } (the status Slack or Teams answered; 0 when nothing answered). A working test switches a hook that was off back on.","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/airwallex/account":{"get":{"operationId":"getAirwallexAccount","tags":["Company"],"summary":"The company's Airwallex account opened through Purser as a platform: its id and onboarding status (created, pending, action_required, active, refused, dormant, closed); whether the cloud offers it at all.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"openAirwallexAccount","tags":["Company"],"summary":"Open the company's Airwallex account through Purser (a signed-in owner, who agreed to Airwallex's terms first). One per company.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/airwallex/binding":{"get":{"operationId":"getAirwallexBinding","tags":["Company"],"summary":"The company's binding to its own Airwallex account, signed by Purser's platform key for an hour: the runner pays only from the account in it, only while it is active. 404 while there is none.","security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/airwallex/onboarding-link":{"post":{"operationId":"createAirwallexOnboardingLink","tags":["Company"],"summary":"Airwallex's hosted onboarding link for the company's checks, made for the signed-in owner and short-lived; never stored.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/airwallex/webhook":{"post":{"operationId":"receiveAirwallexAccountEvent","tags":["Company"],"summary":"Airwallex's account.* webhooks (signed: x-timestamp, x-signature): the onboarding status of an account opened through Purser.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/airwallex/account/refresh":{"post":{"operationId":"refreshAirwallexAccount","tags":["Company"],"summary":"Read the onboarding status of the company's Airwallex account from Airwallex now (for a late or missed webhook); only its id and status are kept.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect":{"get":{"operationId":"listConnectedAccounts","tags":["Company"],"summary":"The accounts the company connected by OAuth (Airwallex, Moneybird): status, the Airwallex account id, scopes and when; never a token.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect/{provider}/start":{"post":{"operationId":"startConnect","tags":["Company"],"summary":"Start connecting the company's own account (airwallex or moneybird) for the signed-in owner: returns the provider's sign-in and consent URL (state, and PKCE where the provider takes it).","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect/{provider}/callback":{"get":{"operationId":"connectCallback","tags":["Company"],"summary":"Where the provider sends the owner's browser back: forwards the code and state to the console (in the address's fragment), where the signed-in owner finishes the connection. Stores nothing.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect/{provider}/finish":{"post":{"operationId":"finishConnect","tags":["Company"],"summary":"Finish connecting: the signed-in owner who started it sends the code and state back; Purser exchanges the code with the provider and keeps the tokens sealed for this company only.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect/{provider}/token":{"get":{"operationId":"getConnectAccessToken","tags":["Company"],"summary":"For the company's own runner (a sync key): a short-lived access token for the company's connected account, refreshed when needed. Every call for this company then uses it; it is never for another company.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect/{provider}":{"delete":{"operationId":"disconnectAccount","tags":["Company"],"summary":"Disconnect: Purser removes the company's tokens at once (Moneybird: revoked at Moneybird too). Airwallex documents no revocation for apps: the owner also removes Purser in Airwallex's settings.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect/xero/bills":{"post":{"operationId":"pushBillsToXero","tags":["Company"],"summary":"Send the company's supplier invoices that its connected Xero organisation does not hold yet to Xero as DRAFT bills (a signed-in owner): { from?, to? } (issue days). Each invoice goes once; at most 25 a push. Purser never authorises, pays or marks a bill paid in Xero: a person approves each draft there. Answers { pushed, already, failed, remaining }.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connect/airwallex/webhook":{"post":{"operationId":"receiveAirwallexPartnerEvent","tags":["Company"],"summary":"Airwallex's partner_connection.disconnected webhook (signed: x-timestamp, x-signature): the connections of the accounts it names end.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/openapi.json":{"get":{"operationId":"getOpenApi","tags":["Discovery"],"summary":"This API, as OpenAPI 3.1.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/openapi.read.json":{"get":{"operationId":"getReadOpenApi","tags":["Discovery"],"summary":"The read API alone (every GET a read-scoped key may call), as OpenAPI 3.1.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/export/csv/{format}/{kind}":{"get":{"operationId":"exportCsv","tags":["Company"],"summary":"Supplier invoices (kind bills: xero, quickbooks, exact) or ledger journals (kind journals: xero, exact) as a CSV file in that product's import columns; from and to (days) narrow it. A format export, not a live integration: the file is imported by a person.","parameters":[{"name":"format","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connections/mine":{"get":{"operationId":"listMyConnections","tags":["Company"],"summary":"Your connections: every way this company is connected (API keys, MCP, the signed webhook, Slack, Teams, approval alerts, the e-mail inbox, Airwallex, Moneybird, Xero, QuickBooks Online, Exact Online, and the signed-in person's Google, Microsoft and Apple sign-in), each connected, not_connected (the company switches it on itself in Settings) or not_available (the platform has not configured it). Never a secret.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/connections":{"get":{"operationId":"listConnections","tags":["Company"],"summary":"Every connection Purser has to other systems, what each does, its label (live, sandbox, testnet, format export, built and not tested live) and its guide; the payment rails, which move money only under the CFO's limits or Face ID, listed apart.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/admin/companies":{"get":{"operationId":"getV1AdminCompanies","tags":["Platform"],"summary":"The companies on this cloud for the platform operator: each one's Airwallex account and status, the supplier payouts that moved and those waiting, and Purser's fees taken, from what the runners pushed (never a key or an account number).","security":[{"platformAdmin":[]}],"x-purser-needs":"platform","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/admin/security-log":{"get":{"operationId":"getV1AdminSecurityLog","tags":["Platform"],"summary":"The cloud's security event log for the platform operator, newest first (kind, since, limit up to 500): sign-ins and their failures, refusals, rate-limit hits, the admin's actions, key, passkey and policy changes, webhook signature failures, tamper alarms and the alarms they raised. Ids and networks only; never a secret.","security":[{"platformAdmin":[]}],"x-purser-needs":"platform","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/admin/tenants":{"post":{"operationId":"postV1AdminTenants","tags":["Platform"],"summary":"Create a company and its first owner; returns the owner's API key once.","security":[{"platformAdmin":[]}],"x-purser-needs":"platform","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/admin/tenants/{id}/recovery":{"post":{"operationId":"postV1AdminTenantsByIdRecovery","tags":["Platform"],"summary":"An owner lost their passkey. The first of two platform admins, after checking out of band who asks: { owner_id, check } (check: video_call, in_person or phone_callback). Answers 202 with the request (a day long, one open per owner); no key is issued until a second, different named admin key approves it. The legacy admin token takes no part. The company's webhook and security events record it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"platformAdmin":[]}],"x-purser-needs":"platform","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/admin/tenants/{id}/recovery/{request}/approve":{"post":{"operationId":"postV1AdminTenantsByIdRecoveryByRequestApprove","tags":["Platform"],"summary":"The second platform admin approves an owner's recovery request: a named admin key other than the one that asked, while the request is open. Only then is the one-time recovery key issued for that owner, good for one day and one passkey enrolment of that owner; redeemed, the owner's old passkeys and sessions end, and a new approval key they enrol cools off before it approves. One open recovery per company; the company's webhook and security events record both admins.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"request","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"platformAdmin":[]}],"x-purser-needs":"platform","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/recovery":{"get":{"operationId":"listRecoveries","tags":["Access"],"summary":"The company's owner recoveries that can still be stopped: each request waiting for its second platform admin (awaiting_second_admin) or approved with its one-day recovery key not redeemed yet (issued_not_redeemed); who asked, how the owner was checked, until when. An owner, or an approver whose own approval key is past its cooling-off; never a key.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/recovery/{request}/cancel":{"post":{"operationId":"cancelRecovery","tags":["Access"],"summary":"Cancel an owner recovery from inside the company, after a fresh passkey assertion (x-purser-step-up): a request still waiting for its second admin can no longer be approved; an issued recovery key not redeemed yet is revoked, with any invite it started. An owner, or an approver whose own approval key is past its cooling-off; never a key. Every owner and the webhook are told. Answers { cancelled, owner_id, was, recovery_key_revoked }; 409 when it can no longer be stopped here (expired, cancelled or redeemed: a recovered approval key cools off, and POST /v1/engine/passkeys/{credential}/revoke stops it).","parameters":[{"name":"request","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/challenge":{"post":{"operationId":"startSignIn","tags":["Access"],"summary":"Start a passkey sign-in: a one-time challenge for the company.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/login":{"post":{"operationId":"signIn","tags":["Access"],"summary":"Finish a passkey sign-in; returns a 15-minute session token.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/enrol":{"post":{"operationId":"enrolPasskey","tags":["Access"],"summary":"Enrol a person's passkey with the single-use enrolment an owner started: the new passkey signs the enrolment's secret.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/invite":{"post":{"operationId":"readInvite","tags":["Access"],"summary":"What an invite is for, from its secret: the company's address and name and the person; nothing is used up.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/guest":{"post":{"operationId":"signInAsGuest","tags":["Access"],"summary":"Try as guest: a read-only session (viewer, 15 minutes) for the demo company, made from demo data (no real money, no real company); no passkey, no e-mail.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/oidc":{"get":{"operationId":"listSignInProviders","tags":["Access"],"summary":"Which sign-in providers this cloud offers besides the passkey (google, microsoft, apple), for the sign-in page. A person links one to their own membership first (Settings, while signed in with the passkey); a sign-in with it reads only.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/oidc/{provider}/start":{"post":{"operationId":"startOidcSignIn","tags":["Access"],"summary":"Start signing in to a company with a linked Google, Microsoft or Apple account: { tenant }. Answers the provider's URL (state, nonce, PKCE where documented) and a browser secret the page keeps until it finishes.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/oidc/{provider}/callback":{"get":{"operationId":"oidcCallback","tags":["Access"],"summary":"Where Google or Microsoft sends the browser back: forwards the code and state to the console (in the address's fragment, which no server sees), where the page that started it finishes. Stores nothing.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/oidc/apple/callback":{"post":{"operationId":"appleOidcCallback","tags":["Access"],"summary":"Where Apple posts the browser back (response_mode form_post): forwards the code and state to the console's fragment, as the GET callback does. Stores nothing; the ID token Apple posts along is not used (the code is exchanged and its token checked).","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/oidc/{provider}/finish":{"post":{"operationId":"finishOidcSignIn","tags":["Access"],"summary":"Finish signing in with a linked account: { code, state, browser_secret }. Answers a 15-minute read-only session (read_only: true) for the person the account is linked to; 401 when it is linked to no one in that company.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/me/identities":{"get":{"operationId":"listMyIdentities","tags":["Access"],"summary":"The signed-in person's own linked sign-in accounts (Google, Microsoft, Apple: provider, verified e-mail if the provider gave one, when linked) and which providers this cloud offers.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/me/identities/{provider}/start":{"post":{"operationId":"startIdentityLink","tags":["Access"],"summary":"Link your own Google, Microsoft or Apple account to your membership: signed in with your passkey, checked again in the last five minutes (step-up). Answers the provider's URL and a browser secret. The link then signs you in to read only.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/me/identities/{provider}/finish":{"post":{"operationId":"finishIdentityLink","tags":["Access"],"summary":"Finish linking: { code, state, browser_secret } from the page that started it, for the signed-in person who started it.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/me/identities/{provider}":{"delete":{"operationId":"unlinkIdentity","tags":["Access"],"summary":"Unlink your own Google, Microsoft or Apple account: it signs you in no more.","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/step-up/start":{"post":{"operationId":"startStepUp","tags":["Access"],"summary":"Start a fresh passkey check for sensitive settings (a signed-in person only): a one-time challenge for five minutes.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/step-up":{"post":{"operationId":"finishStepUp","tags":["Access"],"summary":"Finish the passkey check: { challenge_id, credential_id, assertion } signed with the signed-in person's own passkey. Answers a step-up token for five minutes, bound to this session; send it as x-purser-step-up on sensitive settings.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/logout":{"post":{"operationId":"signOut","tags":["Access"],"summary":"Sign out: every session of the signed-in person ends.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/sessions":{"get":{"operationId":"listSessions","tags":["Company"],"summary":"The signed-in person's active sessions: when each began, until when, the browser and the network it signed in from; the current one marked. Never a token.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/sessions/{id}":{"delete":{"operationId":"endSession","tags":["Company"],"summary":"End one of the signed-in person's sessions: its token stops at once; the others keep working.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/me":{"get":{"operationId":"getMe","tags":["Access"],"summary":"Who is calling: the company, and the key's scopes or the person's role; approves says why a person may approve (cfo, or owner_without_cfo: an owner of a company with no CFO), null when they may not.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"Who is calling","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/company":{"post":{"operationId":"updateCompany","tags":["Company"],"summary":"Change the company's display name (its address, the slug, stays) or the pages' language for everyone (nl or en).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/me/language":{"post":{"operationId":"setMyLanguage","tags":["Access"],"summary":"The signed-in person's own language for the pages (nl or en), or null to follow the company's.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/invoices":{"get":{"operationId":"listInvoices","tags":["Company"],"summary":"Supplier invoices; filter by status, due_from, due_to; paginated (limit, cursor).","parameters":[{"name":"status","in":"query","required":false,"description":"ready, paid, held, ...","schema":{"type":"string"}},{"name":"due_from","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"due_to","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 200 (default 50)","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"next_cursor of the page before","schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"A page of invoices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/invoices/{id}":{"get":{"operationId":"getInvoice","tags":["Company"],"summary":"One invoice, with its earlier versions.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"One invoice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/invoices/{id}/document":{"get":{"operationId":"getInvoiceDocument","tags":["Company"],"summary":"The invoice's document, as received.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/vendors":{"get":{"operationId":"listVendors","tags":["Company"],"summary":"Suppliers; paginated.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/payments":{"get":{"operationId":"listPayments","tags":["Company"],"summary":"Payments; paginated.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/transactions":{"get":{"operationId":"listTransactions","tags":["Company"],"summary":"The transactions register: every money movement on every rail, newest first; filter by rail, currency, from, to, reconciliation, moved; paginated (limit, cursor).","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/transactions/summary":{"get":{"operationId":"getTransactionSummary","tags":["Company"],"summary":"Totals per currency (money that moved only) and the checks: unreconciled, without approval, without booking or proof; the same filters.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/transactions/export.csv":{"get":{"operationId":"exportTransactionsCsv","tags":["Company"],"summary":"The register as CSV, the same filters; one line per movement.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/transactions/{id}":{"get":{"operationId":"getTransaction","tags":["Company"],"summary":"One movement, with its earlier versions.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/ledger/entries":{"get":{"operationId":"listLedgerEntries","tags":["Company"],"summary":"Ledger entries with their lines; filter by from, to; paginated.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/reports/{name}":{"get":{"operationId":"getReport","tags":["Company"],"summary":"trial, pnl, balance, vat (?quarter=2026Q4), payables, receivables: computed from the ledger.","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/agents":{"get":{"operationId":"listAgents","tags":["Company"],"summary":"The company's agents from its own records: job, Claude model, what each may and may not do, card limits as issued, rails, status and newest decisions with who decided. Read only.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/authority-map":{"get":{"operationId":"getAuthorityMap","tags":["Company"],"summary":"Who may pay what, per agent, as the runner last pushed it (null before the first push). Read only.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/treasury":{"get":{"operationId":"getTreasury","tags":["Company"],"summary":"Cash & FX as the runner last pushed it (null before the first push): cash per currency against the CFO's floors, the 13-week forecast (a forecast, not a promise of cash), the FX exposure with the advisor's decision and the conversions it filed for the CFO's passkey. Test money. Read only: nothing here approves or converts.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/receivables":{"get":{"operationId":"getReceivables","tags":["Company"],"summary":"Receivables as the runner last pushed them (null before the first push): invoices by number and amount, the payments matched to them, the payments waiting for a person, aged debtors and the reminder steps (drafts a person sends). No customer or payer name. Test money. Read only.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/compliance":{"get":{"operationId":"getCompliance","tags":["Company"],"summary":"The runner's compliance evidence in short, as it last pushed it (null before the first push): per framework how many requirements have evidence in the last 30 days, no records, documentation only or gaps; per control its records; the gaps. Counts only. Read only.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/cards":{"get":{"operationId":"listCards","tags":["Company"],"summary":"The agents' live Airwallex sandbox cards (test money): for each agent its card's last four digits (never the full number or the CVV), live status, limits against the CFO policy, and its newest authorizations with their ids; whether card actions are on (admin switch awx_cards) and today's caps.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/cards/scope":{"get":{"operationId":"getCardScope","tags":["Company"],"summary":"Whether the Airwallex sandbox key may use Issuing: { issuing: ok | forbidden | no_key | no_gateway | unavailable }. One read of Airwallex a minute at most, for everyone; no card data.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/cards/edge/latest":{"get":{"operationId":"getLatestCardEdgeTest","tags":["Company"],"summary":"The newest one-cent-over test at the Airwallex sandbox: an agent's card at its limit L, then L + 0.01, with Airwallex's own answers (approved or declined with its reason code), their ids and times. The run record docs/runs keeps; sandbox, test money, the card's last four digits only. 404 when none has run.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/cards/actions":{"post":{"operationId":"requestCardAction","tags":["Company"],"summary":"Ask for a card action (a signed-in owner): { kind: issue | freeze | unfreeze | limits | test, agent }. Answers the exact action as signed text, its SHA-256 and the passkey challenge (that hash). Nothing reaches Airwallex before POST /v1/cards/actions/{id}/sign.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/cards/actions/{id}/sign":{"post":{"operationId":"signCardAction","tags":["Company"],"summary":"Sign a card action with your own passkey (a signed-in owner): { credential_id, assertion } over the action's challenge. The action then runs once at the Airwallex sandbox (test money); the same signed action again answers what it did. Answers { status: done | failed, card or tx, reason }.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner-rails":{"get":{"operationId":"getPartnerRails","tags":["Company"],"summary":"T:0 at every payment and the agents' payment tokens: each settled payment's T:0 entry (its T:0 id, GL account, cost centre, agent and terms hash), the reconcile check of T:0 against the rails, and each agent's token (its id and last four, never the token) with its mandate, status, uses and refusals. From the company's own records when it has them, else the recorded live sandbox run, labelled. Also whether Apple Wallet passes are configured.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/agents/{id}/wallet-pass":{"get":{"operationId":"getAgentWalletPass","tags":["Company"],"summary":"The agent card as an Apple Wallet pass (application/vnd.apple.pkpass): the agent's name, its card's limits and last four, its status. Only when the owner configured passes (PASS_TYPE_ID, TEAM_ID and the signing certificate); 404 otherwise or for an agent without a card.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/agents/{id}/wallet-pass/link":{"post":{"operationId":"createWalletPassLink","tags":["Company"],"summary":"A link to the agent card's Apple Wallet pass that works for 5 minutes without a header (for Safari's Add to Apple Wallet). 404 when passes are not configured or the agent has no card.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/wallet-pass/{link}":{"get":{"operationId":"getWalletPassByLink","tags":["Company"],"summary":"An agent card's Apple Wallet pass by the 5-minute link POST /v1/agents/{id}/wallet-pass/link made (signed; nothing else is needed). 404 when the link is wrong or past its time, or passes are not configured.","parameters":[{"name":"link","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/card-design":{"get":{"operationId":"getCardDesign","tags":["Company"],"summary":"The company's card design for the Agents page: its colour, initials or a small logo, and a designed preset per agent; cosmetic only. Also whether this caller may save it (an owner or admin, never the demo company's guest).","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"setCardDesign","tags":["Company"],"summary":"Save the company's card design: { color (#rrggbb or null), initials (1 to 3 of A-Z, 0-9, or null), logo (a PNG, JPEG or WebP data URL of at most 48 KB, or null), styles ({agent: preset}) }. Cosmetic only: it changes no limit, card or payment. Anything not valid is dropped. Not for the demo company.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/negotiation/recorded":{"get":{"operationId":"getRecordedNegotiation","tags":["Company"],"summary":"The Sourcing agent's recorded negotiation for the Agents page: an early-payment discount with a simulated supplier's agent, four turns written in advance (not a live model call), each checked by the CFO's rails in code now; the turn the rails refuse says why.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/agents/{id}/phone-card/link":{"post":{"operationId":"createPhoneCardLink","tags":["Company"],"summary":"A link to a read-only view of the agent's card for a phone (its name, last four, limits, spent and status; no way to act), working for 7 days, and its QR code as SVG. The body may carry the design the console shows ({ styles, color, initials }; cosmetic). 404 for an agent the company's records do not name.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/tokenisation":{"get":{"operationId":"getTokenisation","tags":["Company"],"summary":"Tokenisation as the records hold it: the invoice token on Alta testnet (mint, finance, settle), the agents' Airwallex cards and the Visa credential via Airi, each labelled as its record labels it.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/airwallex-live/{view}":{"get":{"operationId":"getAirwallexLiveView","tags":["Company"],"summary":"The live Airwallex tab, read-only, from the Airwallex sandbox (test money) through the site Worker's gateway: balances, accounts, financial, rates, transfers, beneficiaries, issuing, calls, events (the webhooks Airwallex sent the site, signature verified: type, object id and time only), or reconcile (Purser's ledger of the recorded awx-1 run against Airwallex's financial transactions). Each answer says when it was read, or why the sandbox is unavailable.","parameters":[{"name":"view","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/books/bookings":{"get":{"operationId":"listBookings","tags":["Company"],"summary":"For each supplier invoice, the ledger entries that book it (its accrual and its payment).","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/books/invoices/{id}/journal":{"get":{"operationId":"getInvoiceJournal","tags":["Company"],"summary":"The ledger entries that book one supplier invoice, with their lines.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/dashboard":{"get":{"operationId":"getDashboard","tags":["Company"],"summary":"The start screen in one answer, every figure counted from the company's own rows: cash in and out by day, spend by who started it, approvals per week, invoices by state, and the newest decisions in words.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/insights":{"get":{"operationId":"getInsights","tags":["Company"],"summary":"Payables at a glance: open, due, overdue, waiting, blocked, spend per supplier.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/documents/{sha256}":{"get":{"operationId":"getDocument","tags":["Company"],"summary":"A document the company holds, by its SHA-256 (the export lists them).","parameters":[{"name":"sha256","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/sync":{"post":{"operationId":"pushSync","tags":["Company"],"summary":"The runner's push: vendors, invoices, documents, payments, the transactions register, ledger entries, audit rows. Idempotent. Never passkeys.","security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/sync/state":{"get":{"operationId":"getSyncState","tags":["Company"],"summary":"Where the cloud's copy stands: the heads of the audit and ledger chains, and the documents it holds.","security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/mail/forwarding-confirmations":{"get":{"operationId":"listForwardingConfirmations","tags":["Company"],"summary":"Gmail's forwarding confirmation codes that reached the company's Purser address in the last seven days (code and Gmail address only), for the owner who is setting up forwarding from Gmail.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/mail":{"get":{"operationId":"listMail","tags":["Company"],"summary":"Inbound e-mail waiting for the runner; paginated (limit, cursor).","security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/mail/{id}/raw":{"get":{"operationId":"getRawMail","tags":["Company"],"summary":"One inbound e-mail, raw (RFC 822).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/mail/{id}/done":{"post":{"operationId":"markMailDone","tags":["Company"],"summary":"The runner filed (done) or refused an inbound e-mail.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["sync"]}],"x-purser-needs":"sync","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/audit/checkpoint-keys":{"get":{"operationId":"listCheckpointKeys","tags":["Company"],"summary":"The public keys that sign the company's audit checkpoints in Purser Cloud's engine (raw, base64url): since 30 Nov each checkpoint is hybrid, signed with Ed25519 and ML-DSA-65 (FIPS 204), and both keys are listed, each with its algorithm, key id and when it was first seen: with the audit.checkpoint events the company's signed webhook receives, enough to check its ledger outside Purser (npm run verify-audit -- --trust <Ed25519 key>,<ML-DSA-65 key>). Public by nature; empty while checkpoints are off.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/security/events":{"get":{"operationId":"listSecurityEvents","tags":["Access"],"summary":"What happened to the company's access: owner recoveries, staged exports and their downloads (newest last).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/keys":{"get":{"operationId":"listApiKeys","tags":["Access"],"summary":"The company's API keys (never their secrets); paginated (limit, cursor).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"createApiKey","tags":["Access"],"summary":"A new API key; returned once.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"type":"array","items":{"type":"string","enum":["read","sync","admin","propose"]}},"expires_in_days":{"type":"integer","minimum":1,"maximum":365}},"required":["name","scopes"],"additionalProperties":false}}}},"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/keys/{id}":{"delete":{"operationId":"revokeApiKey","tags":["Access"],"summary":"Revoke an API key.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/users":{"get":{"operationId":"listUsers","tags":["Access"],"summary":"The company's people and their roles; paginated (limit, cursor).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"addUser","tags":["Access"],"summary":"Add a person (owner, cfo, accountant, viewer); they then enrol a passkey with an enrolment an owner starts.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/users/{id}/enrolment":{"post":{"operationId":"startPasskeyEnrolment","tags":["Access"],"summary":"Start a person's passkey enrolment: a single-use secret for 30 minutes (an owner's passkey: a signed-in owner only, once any owner has one). Also returns the invite link (the secret after the #, so opening it sends the secret to no server) and its QR code as SVG.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/users/{id}/passkeys":{"get":{"operationId":"listUserPasskeys","tags":["Access"],"summary":"A person's passkeys (their ids and when each was enrolled).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/users/{id}/passkeys/{credential}":{"delete":{"operationId":"removeUserPasskey","tags":["Access"],"summary":"Remove a passkey (a signed-in owner only): it signs in no more, and the person's sessions end. Never the last owner passkey.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"credential","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/users/{id}/erase":{"post":{"operationId":"eraseUser","tags":["Access"],"summary":"Erase a person's personal data (bookkeeping records are kept for 7 years).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/export":{"get":{"operationId":"exportCompany","tags":["Company"],"summary":"Everything the cloud holds for the company; documents listed, each fetched from /v1/documents/{sha256}. Needs admin and read.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/export/staged":{"post":{"operationId":"stageExport","tags":["Company"],"summary":"Build the company's export into the store in parts (one at a time, kept a day); returns a 15-minute, single-use signed link to its manifest, which needs no key: manifest_link (a bare URL and the x-purser-export-link header to send, for a program) or manifest_url (the same signature in the query, for a browser). Needs admin and read.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/export/staged/{id}":{"get":{"operationId":"getStagedExport","tags":["Company"],"summary":"A staged export's state, with a fresh 15-minute link to its manifest while it is ready. Needs admin and read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/export/download/{id}/{part}":{"get":{"operationId":"downloadExportPart","tags":["Company"],"summary":"One part (or the manifest) of a staged export, by its signed link (no key): the signature in the x-purser-export-link header, or in the query; each link is good once, for 15 minutes. The manifest carries a signed link per part.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"part","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/close":{"post":{"operationId":"closeCompany","tags":["Company"],"summary":"Close the company's account: access ends; records are kept for a 30-day grace period, then purged (to archive the books seven years, offboard with archive_years: 7).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/offboarding":{"post":{"operationId":"offboardCompany","tags":["Company"],"summary":"Offboard the company after its export (docs/privacy/retention.md): a signed-in owner, passkey checked in the last five minutes, names the staged export they downloaded and types the company's address. The account closes; names become pseudonyms, e-mails, passkeys, sessions, keys and message targets go; the bookkeeping is kept for a 30-day grace period, or archived seven years when the body says archive_years: 7 (the company's instruction, recorded), then purged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","minLength":1,"maxLength":80},"export_id":{"type":"string","minLength":1,"maxLength":80},"archive_years":{"type":"number","const":7}},"required":["confirm","export_id"],"additionalProperties":false}}}},"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"always: a signed-in owner, passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine":{"get":{"operationId":"getEngineStatus","tags":["Engine (payments)"],"summary":"Where the company's engine stands: the mode (test_money: it pays on a stand-in bank), the approval passkey, the stand-in bank's balances, and whether the audit and ledger chains verify. 404 on every /v1/engine route when the cloud runs no engine.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/documents":{"post":{"operationId":"uploadDocument","tags":["Engine (payments)"],"summary":"Upload a supplier invoice to the engine: { filename (1 to 200 characters), mime?, base64 }, at most 15 MB once decoded. It is filed, read and checked; answers { kind, sha256, invoice }. The same file again answers kind duplicate_document. An owner, an admin key or the AP clerk (the ap scope).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\u0000-\\u001f\\u007f]+$"},"mime":{"type":"string","minLength":1,"maxLength":100},"base64":{"type":"string","minLength":1,"maxLength":22000000}},"required":["filename","base64"],"additionalProperties":false}}}},"security":[{"bearer":["ap"]}],"x-purser-needs":"ap","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/exceptions":{"get":{"operationId":"listExceptions","tags":["Engine (payments)"],"summary":"The exceptions queue: every invoice the engine holds (blocked, needs review, needs a new supplier), due date first, with its reason codes (the checks' finding codes), whether one concerns the bank details, the work people did on it (notes, call-backs asked for and recorded, who and when) and the last call-back recorded on a number on file; { items }. Reads only.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices/{id}/notes":{"post":{"operationId":"addInvoiceNote","tags":["Engine (payments)"],"summary":"Add a note to a held invoice (a session only; the ap scope: an owner or the AP clerk): { text } of 1 to 500 characters. Answers { work }. A note changes nothing else: the invoice stays held.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["ap"]}],"x-purser-needs":"ap","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices/{id}/callback-request":{"post":{"operationId":"requestSupplierCallback","tags":["Engine (payments)"],"summary":"Ask for the supplier to be called back on a number already on file (a session only; the ap scope): { note? } of at most 500 characters, never a number. Answers { work }. It records the request and nothing else.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["ap"]}],"x-purser-needs":"ap","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices/{id}/callback-confirmed":{"post":{"operationId":"confirmSupplierCallback","tags":["Engine (payments)"],"summary":"Record that the supplier confirmed its bank details on a call-back to a number already on file (a session only; the ap scope): { on_file: true } and nothing else; the number itself is never sent nor stored. Answers { work, approves: false }: it records the call-back only, who and when. It approves nothing, releases nothing and changes no payee; the invoice is still paid only on the CFO's passkey.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["ap"]}],"x-purser-needs":"ap","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices":{"get":{"operationId":"listPayableInvoices","tags":["Engine (payments)"],"summary":"The engine's invoices: status, whether it can be paid, what the checks found, and its payment proposal if one was filed; { items }.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"The engine's invoices, with whether each can be proposed and its proposal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineInvoices"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices/{id}/pay":{"post":{"operationId":"proposePayment","tags":["Engine (payments)"],"summary":"File the invoice's payment for approval: answers { proposal } with the exact terms' hash and what the passkey signs; 409 with the engine's reason when it will not (the invoice is held, waiting or paid). Nothing is paid before the approval, except within the company's limit to pay alone (a test company of /try): when the agents and code's checks say pay, code approves the exact terms and the agent pays at once, and the answer adds { alone: { limit, by, why }, settled, airwallex_payout (the Airwallex sandbox transfer of the policy-approved terms, or why the simulated bank alone paid) }. Needs the propose scope (an admin key or an owner covers it); no key approves.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\x21-\\x7e]+$"},"description":"Optional; any unique value, such as a UUID (the SDKs send one on every POST). Per company and key, for 24 hours: the same key with the same method, path and body answers the first answer's status and body again (header Idempotent-Replayed: true) and nothing runs twice; with another body or route, 422; while the first request still runs, 409. A 5xx or 429 is not kept: send the same key again."}],"security":[{"bearer":["propose"]}],"x-purser-needs":"propose","responses":{"200":{"description":"The proposal, filed for the CFO's approval","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposeAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Refused by the engine (the sentence says why), or a request with this Idempotency-Key still running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This Idempotency-Key was used for another request in the last 24 hours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}":{"get":{"operationId":"getProposal","tags":["Engine (payments)"],"summary":"One payment proposal: its status, the hash of its exact terms, the challenge a passkey signs and the facts a person reads; { proposal }.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"The proposal and its status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/bank-file":{"get":{"operationId":"getBankFile","tags":["Engine (payments)"],"summary":"The SEPA credit transfer file (ISO 20022 pain.001.001.09) an approved bank file payment was executed as: { bank_file: { proposal_id, request_id, terms_sha256, msg_id, format, xml, xml_sha256, filed_at } }; 404 when none was filed. Reads only: the file is made once, by execution after the CFO's passkey over the exact terms, and every read returns the same bytes. Purser sends it to no bank; test money only.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/dossier":{"get":{"operationId":"getPaymentDossier","tags":["Engine (payments)"],"summary":"One payment's authorisation dossier, for an auditor or a bank dispute (a proposal's id, or its invoice's): the payee and amount, the exact terms and their hash, who signed them (passkey id and label) and when, the CFO policy in force when filed and signed, the checks that ran and their results, the rail's transfer id and status, the audit rows with the chain head and the latest signed checkpoint, and how to check it offline (npm run dossier -- --verify). Answers { dossier }; ?format=pdf answers it as an A4 PDF. Read only. Test money only.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/passkey/start":{"post":{"operationId":"startApprovalPasskey","tags":["Engine (payments)"],"summary":"Start the approval passkey of the signed-in person (a session only, never a key): the challenge and code of a short enrolment window, the relying party, the person, and the passkeys to exclude. Optional body { add: true }: one more approval key beside the person's own (a security key kept in the company safe, a second device; at most three each), which replaces nothing; without it the new key replaces the one under the person's name. Either way the new key needs an active key's endorsement or a second owner, and cools off before it approves. 409 when the person already holds three.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"add":{"type":"boolean"}},"additionalProperties":false}}}},"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/passkey/finish":{"post":{"operationId":"finishApprovalPasskey","tags":["Engine (payments)"],"summary":"Finish the approval passkey (a session only; the approve scope): { code, credential } with the passkey the browser made for the challenge; it is labelled with the signed-in person's name. Answers { credential_id, how, cooling_until }. The company's first key needs nothing more; while another approval key is active, the first answer is 409 endorsement_required with the challenge (endorse), and the same request again must carry endorsement (an active approval key's assertion over it) or cosign { credential_id, assertion } (another owner's passkey over it); a recovered owner's first new key needs neither. 403 endorsement_refused for a bad one. Such a key approves nothing before cooling_until (72 hours; 0 on a /try test company, said in cooling_note). 409 with the engine's reason when it is refused otherwise.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":32},"credential":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"endorsement":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"cosign":{"type":"object","properties":{"credential_id":{"type":"string","minLength":8,"maxLength":400},"assertion":{"type":"object","properties":{"authenticatorData":{"type":"string","maxLength":4000},"clientDataJSON":{"type":"string","maxLength":8000},"signature":{"type":"string","maxLength":400}},"required":["authenticatorData","clientDataJSON","signature"],"additionalProperties":false}},"required":["credential_id","assertion"],"additionalProperties":false}},"required":["code","credential"],"additionalProperties":false}}}},"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/passkeys/{credential}/revoke":{"post":{"operationId":"revokeApprovalKey","tags":["Engine (payments)"],"summary":"Stop an approval key (a person signed in with their passkey, after a fresh passkey assertion: x-purser-step-up). Another person's key only while it is in its cooling-off (new, added or recovered): the veto, by an owner or by an approver whose own key is past its cooling-off, never by the key's own person; it also cancels that person's recovery that can still be stopped. One's own key (a lost phone) only while keeping another key past its cooling-off. What the key signed that has not run goes back for a new signature (voided). Every owner and the webhook are told. Answers { revoked, person, mode (veto or own), how, voided, recoveries_cancelled }; 403 for a caller who may not, 404 for no such active key, 409 with the reason when the key may not be stopped so.","parameters":[{"name":"credential","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/policy/second-key":{"post":{"operationId":"proposeSecondKeyRule","tags":["Engine (payments)"],"summary":"Propose the CFO's rule for high-risk payments (off by default): { changes: [{ key, to }] } of approval.second_key_eur (an amount or \"\"), approval.second_key_new_payee, approval.second_key_bank_changed, approval.second_key_new_country (on or off). Answers { proposal }, a policy change the CFO approves with Face ID (POST /v1/engine/proposals/{id}/approve); nothing changes before that.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/emergency-stop":{"post":{"operationId":"setEmergencyStop","tags":["Engine (payments)"],"summary":"The CFO's emergency stop (a session only; the approve scope: the CFO, or an owner of a company with no CFO): { on: true } pulls it, { on: false } lifts it. Answers { proposal }, a policy change the CFO approves with the passkey (POST /v1/engine/proposals/{id}/approve); nothing changes before that, and a key cannot ask. Once approved, nothing of this company is paid: proposals are still filed, but every payment executor refuses when it begins and again immediately before each create at the bank (the rail asks too), the agent pays nothing alone and nothing is sent to the Airwallex sandbox. GET /v1/engine says { emergency_stop: { on, since, proposal_id } }; both directions are in the audit log (policy.changed) and told to every owner. 409 when it already stands as asked.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"on":{"type":"boolean"}},"required":["on"],"additionalProperties":false}}}},"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/security-key/start":{"post":{"operationId":"startSecurityKey","tags":["Engine (payments)"],"summary":"Start registering a security key for the signed-in person (a session only): the second key of high-risk payments (USB or NFC, such as a YubiKey), beside their approval passkey, which must exist. Answers the challenge, the user handle, the relying party and the credentials to exclude; the page asks with authenticatorAttachment cross-platform.","security":[{"bearer":["approve"]}],"x-purser-needs":"approve","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/security-key/finish":{"post":{"operationId":"finishSecurityKey","tags":["Engine (payments)"],"summary":"Finish registering the security key (a session only): { credential } as the browser made it; a credential the browser reports as a platform authenticator (Face ID, Touch ID) is refused, and so is one already registered.","security":[{"bearer":["approve"]}],"x-purser-needs":"approve","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/approve":{"post":{"operationId":"approveProposal","tags":["Engine (payments)"],"summary":"Approve a proposal with the approval passkey (a session only; the approve scope: the CFO, or an owner of a company with no CFO): { terms_sha256, credential } with the passkey's signature over the proposal's challenge. Answers { status, message, settled }: only status approved pays (on the stand-in bank), and settled says paid, booked, archived and fed; a signature over other terms is refused and nothing runs. A key still in its cooling-off (new or recovered) is refused: 403 cooling_off with cooling_until, nothing paid, told to the owners.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"terms_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"credential":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["terms_sha256","credential"],"additionalProperties":false}}}},"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/cancel":{"post":{"operationId":"cancelProposal","tags":["Engine (payments)"],"summary":"Cancel an approved payment before it is paid (a session only; the approve scope: the CFO, or an owner of a company with no CFO), typically in the CFO's cancel window after the confirmation on another channel showed terms you did not mean. A batch is cancelled with its lines. Answers { cancelled }; the proposal is closed for good (NEEDS_REAPPROVAL), proposal.cancelled is in the audit log, and every owner is told. 409 with the reason when it is not an approved payment that waits (paid, running, never approved, already cancelled). A key cannot cancel.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/release":{"post":{"operationId":"releaseProposal","tags":["Engine (payments)"],"summary":"Release an approved payment held because the confirmation of what was signed reached no alert target (a session only; the approve scope: the CFO, or an owner of a company with no CFO). It is then paid when its cancel window ends, at once when that has passed, every check asked again. Answers { released, status, settled }; payment.hold_released is in the audit log and every owner is told. 409 with the reason when it is not held. A key cannot release.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/policy/cooldown":{"post":{"operationId":"proposeCancelWindow","tags":["Engine (payments)"],"summary":"Propose the CFO's cancel window (off by default): { minutes } of 0, 5, 10, 15 or 30. With it set, an approved payment waits that long before it is paid, so the CFO can read the confirmation sent to the company's alert targets and cancel it (POST /v1/engine/proposals/{id}/cancel). Answers { proposal }, a policy change the CFO approves with the passkey; nothing changes before that. A session only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"minutes":{"anyOf":[{"type":"number","const":0},{"type":"number","const":5},{"type":"number","const":10},{"type":"number","const":15},{"type":"number","const":30}]}},"required":["minutes"],"additionalProperties":false}}}},"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/retry":{"post":{"operationId":"retryProposal","tags":["Engine (payments)"],"summary":"Try again: an approved payment whose execution failed (the bank was away, say), or that the executor refused before it began (approved while the emergency stop was on, say), is run once more by the executor's own resume path, every check asked again, which never pays twice; so is an approved payment whose cancel window is over (one still in it answers 409 with until when). Answers { status: retried, message, settled } with where things stand; 409 with the engine's reason when there is nothing to retry (paid, never approved, refused).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/airwallex":{"get":{"operationId":"getEngineBanks","tags":["Engine (payments)"],"summary":"Which bank each invoice was planned and paid at (the Airwallex sandbox or the simulated bank, test money either way), with Airwallex's ids: the payee (beneficiary id), the payee's bank check, the quote and conversion for a shortfall, the transfer (id, request_id, status, approval hash), a batch; the caps used today; and the labels of every fallback. { airwallex: { on, why }, caps, invoices, deposits, notes }.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices/{id}/supplier":{"post":{"operationId":"addSupplierFromInvoice","tags":["Engine (payments)"],"summary":"A new supplier from an invoice waiting for one (a session only): { how, street, city, postcode }, how you confirmed the account on a contact you already had. The payee's bank is asked whether the account carries the supplier's name (Airwallex's account verification, or a labelled stand-in), then a payee_add proposal waits for the CFO's passkey; once signed, the supplier is added at the bank (Airwallex: schema, validation, create). Answers { proposal, name_check }; 409 with the reason and the check when it is refused.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"how":{"type":"string","minLength":20,"maxLength":300},"street":{"type":"string","minLength":1,"maxLength":120},"city":{"type":"string","minLength":1,"maxLength":80},"postcode":{"type":"string","minLength":1,"maxLength":20}},"required":["how","street","city","postcode"],"additionalProperties":false}}}},"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/batch":{"post":{"operationId":"proposeBatch","tags":["Engine (payments)"],"summary":"Pay all approved: { invoice_ids } (1 to 20 ready invoices). Each is planned as on its own (its own exact terms, FX for its shortfall only), then one batch proposal over them waits for one passkey signature over the batch's totals and every line. At the Airwallex sandbox the signed batch runs as one batch transfer. Answers { proposal, planned, not_planned }; 409 when none could be planned.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\x21-\\x7e]+$"},"description":"Optional; any unique value, such as a UUID (the SDKs send one on every POST). Per company and key, for 24 hours: the same key with the same method, path and body answers the first answer's status and body again (header Idempotent-Replayed: true) and nothing runs twice; with another body or route, 422; while the first request still runs, 409. A 5xx or 429 is not kept: send the same key again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invoice_ids":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["invoice_ids"],"additionalProperties":false}}}},"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Refused by the engine (the sentence says why), or a request with this Idempotency-Key still running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This Idempotency-Key was used for another request in the last 24 hours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/deposit":{"post":{"operationId":"depositTestMoney","tags":["Engine (payments)"],"summary":"Money in (a session only): { amount } up to 500.00 USD, a deposit on the bank's simulation into the company's USD account (the Airwallex sandbox's deposit simulation, or the simulated bank), recorded once and booked as a payment that names no invoice (held in suspense). Test money. Answers { deposit_id, status, amount, currency, settled }.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\x21-\\x7e]+$"},"description":"Optional; any unique value, such as a UUID (the SDKs send one on every POST). Per company and key, for 24 hours: the same key with the same method, path and body answers the first answer's status and body again (header Idempotent-Replayed: true) and nothing runs twice; with another body or route, 422; while the first request still runs, 409. A 5xx or 429 is not kept: send the same key again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"string","pattern":"^\\d{1,3}\\.\\d{2}$"}},"required":["amount"],"additionalProperties":false}}}},"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Refused by the engine (the sentence says why), or a request with this Idempotency-Key still running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This Idempotency-Key was used for another request in the last 24 hours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/sync":{"post":{"operationId":"syncEngine","tags":["Engine (payments)"],"summary":"Follow the payments, book them, archive and feed the read model again; safe to repeat. Answers where things stand (ledger_entries, vault_added, fed, error).","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/events":{"get":{"operationId":"listEngineEvents","tags":["Engine (payments)"],"summary":"What the engine did, oldest first: ?after=<seq>&limit=<1 to 200>; { items, next }, where next is the seq to ask after. An event carries a short list of fields, never a bank account. 429 slow_down with retry_ms past 2 reads a second per company.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/vault":{"get":{"operationId":"listArchiveFiles","tags":["Engine (payments)"],"summary":"The files of the company's archive as its indexes list them: { files: [{ path, kind, bytes, sha256, added_at }] }.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/vault/file":{"get":{"operationId":"getArchiveFile","tags":["Engine (payments)"],"summary":"One file of the archive, ?path= as the list gives it; 404 for a path the archive's index does not list.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/shadow":{"post":{"operationId":"runShadowMode","tags":["Engine (payments)"],"summary":"Shadow mode, the back-test: past paid supplier invoices as a CSV body (Content-Type: text/csv, at most 2 MB; the columns and their variants: docs/shadow/README.md) replayed oldest first through Purser's checks under the company's CFO policy in force: for each row what Purser would have done (paid alone within the limit, sent to the CFO, held for a person) and why, and a summary (duplicates, IBAN changes, amounts above usual, totals by outcome). ?alone_limit=<EUR amount> or none sets the limit for this replay only. Answers { report }; ?format=md or html answers the report as a page. Code only: no model, no rail, nothing written. A file it cannot read: 400 with the line. Test money only.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/autopilot":{"get":{"operationId":"getAutopilot","tags":["Company"],"summary":"The company's nightly autopilot (the Cron Trigger's first firing each UTC day): each day its engine follows the payments, books and archives, and writes a digest: invoices by status, the overdue ones, payments waiting for an approval, whether both hash chains verify. It never pays. ?limit=<1 to 90> (default 14); { items }, newest first. 404 when the cloud runs no engine.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/stats":{"get":{"operationId":"getStats","tags":["Company"],"summary":"The cloud's own counters per day (UTC), across every company, with no company's id or amount: requests, refused (401, 403), rate_limited (429), errors (5xx), uploads, payments_filed, approvals, engine_refusals. ?days=<1 to 90> (default 14); { metrics, days }, newest first. 404 when the counters are off.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/samples":{"get":{"operationId":"listSampleInvoices","tags":["Engine (payments)"],"summary":"The hands-on demo's sample invoices, in the tray's order: { items: [{ key, title, filename }] }. Each title says what you do, never what the engine will answer. Test invoices (fake).","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/samples/{key}":{"post":{"operationId":"sendSampleInvoice","tags":["Engine (payments)"],"summary":"Send a sample invoice to the engine's inbox, as an upload of its PDF: answers as POST /v1/engine/documents ({ kind, sha256, invoice }); 404 for a key that is not a sample; 400 in the engine's words when it is refused (a test company's limit of 8 documents).","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices/{id}/clear":{"post":{"operationId":"clearInvoiceHold","tags":["Engine (payments)"],"summary":"Sandbox override of a hold (a test company of the hands-on demo only): a possible duplicate by the same total is cleared with the inbox's own person's path (kept per pair and in the audit log), then checked again; nothing is paid before the passkey signs the exact terms. In production a second person would review it. Answers { invoice }; 409 with the engine's reason for any other hold (a number match, an exact duplicate, new bank details, a new supplier: those can only be rejected).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/invoices/{id}/reject":{"post":{"operationId":"rejectInvoice","tags":["Engine (payments)"],"summary":"Reject a held invoice (a test company of the hands-on demo only): the inbox's own rejection, its reason kept; nothing is paid. Answers { invoice }; 409 with the engine's reason when it cannot be rejected (paid, or waiting for the passkey).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/suppliers":{"get":{"operationId":"listSuppliersOnFile","tags":["Engine (payments)"],"summary":"The suppliers the company has on file, as the engine's seed recorded them: { items: [{ key, name, iban, bic }] }. Their IBANs are published test IBANs, not anyone's account.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/compose":{"post":{"operationId":"composeInvoice","tags":["Engine (payments)"],"summary":"Write your own invoice (a test company of the hands-on demo only): { supplier_key, invoice_no, amount (100.00 to 5000.00; written as people write it, such as 1850.00, 1.850,00 or 1k, read as two decimals), issue_date, due_date (YYYY-MM-DD, within 60 days of today), iban (mod 97), and optionally payee_name (the payee's name as printed; the supplier's on file without it), currency (EUR or USD; EUR without it) and note (one line of at most 240 characters, printed as typed) }. It is written in the sample's layout (an enterprise invoice, src/engine/invoicePdf.ts), rendered to a PDF inside the engine and filed through its inbox: answers as POST /v1/engine/documents; a refused field is 400 { code, message, field }.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/terms":{"get":{"operationId":"getProposalTerms","tags":["Engine (payments)"],"summary":"A proposal's exact terms as the passkey signs them: { proposal_id, status, terms, canonical (the canonical JSON), terms_sha256 (its SHA-256, the signature's challenge), approved (whether an approval is stored), expires_at }; 404 for a proposal the company's engine does not hold.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/pay":{"post":{"operationId":"payProposal","tags":["Engine (payments)"],"summary":"Pay with your signature (a test company of the hands-on demo only; at most 8 KB, 30 a company): { terms, credential } with the terms to pay (only amount, currency, beneficiary_name, iban_last4, bic and invoice_no may differ from the signed ones) and the passkey's signature this browser made at the approval. Two layers answer, always both: the product's verifier on that signature over the sent terms, and the executor's own gate asked with the sent terms (inside a transaction that is always rolled back). Only when both say yes is the held payment run, from the stored terms, on the simulated bank (test money). Answers { outcome (paid, refused, paid_once, not_signed, expired, failed), layers, signed_sha256, sent_sha256, changed, transfers_before, transfers_after, sandbox_calls, settled, request_id, airwallex_payout? (when paid: the Airwallex sandbox transfer of the signed payment, or why the simulated bank alone paid) }; 400 when the terms' shape does not fit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["approve"]}],"x-purser-needs":"approve","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/proposals/{id}/payout/simulate":{"post":{"operationId":"simulatePayout","tags":["Engine (payments)"],"summary":"Sandbox: move to PAID (a test company of the hands-on demo only): the Airwallex sandbox transfer of this paid proposal moved by the sandbox's own simulation to SENT, then PAID; no money anywhere. Answers { ok, note (the transfer's id and status), reason? (in_approval: it waits for a person in Airwallex; switched_off; no_transfer; ...) }.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/export":{"get":{"operationId":"exportEngine","tags":["Engine (payments)"],"summary":"Download the company in the product's sync format (purser.cloud-sync/v1): { format, company, made_at, batches }, the batches a runner's push sends (the invoices with their documents, payments, transactions, the ledger and the audit log), as a file. No archive files. At most 5 MB; a test company may download it 5 times.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/engine/export.pdf":{"get":{"operationId":"exportEnginePdf","tags":["Engine (payments)"],"summary":"Download the company's records as an A4 PDF a person reads: a cover with the totals, each invoice with its trail (read, checked, signed with the passkey, paid, booked), the journal, the audit log and the documents' and terms' fingerprints, built from the same records as /v1/engine/export. A test company may download it 5 times.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/books/effect":{"get":{"operationId":"getV1TryBooksEffect","tags":["Hands-on demo"],"summary":"The effect of one invoice on the books (the hands-on demo): { effect: { currency, entries, period, quarter, pnl: { before, after }, vat: { before, after }, vat_notice } | null, t0 }. Computed by the ledger's own report code over the company's posted lines; null until the invoice is in the books. ?invoice_no=&vendor=.","security":[{"bearer":["read"]}],"x-purser-needs":"read","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/scenarios/{seed}":{"get":{"operationId":"getV1TryScenariosBySeed","tags":["Hands-on demo"],"summary":"The scenario a seed picks (the hands-on demo): { seed, id, title, company, files }. The right answer is not here; it comes with the engine's answer when the scenario is played.","parameters":[{"name":"seed","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["read"]}],"x-purser-needs":"read","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"postV1TryScenariosBySeed","tags":["Hands-on demo"],"summary":"Play the scenario a seed picks in your test company: its invoices go through the engine's inbox in order, as uploads (test invoices, fake). Answers { seed, id, title, company, setup (files filed before the last), answer (the engine's answer to the last, as POST /v1/engine/documents), decided: { action, why }, expect: { action, reason } }; 400 in the engine's words when it refuses a file (a test company's limit of 8 documents).","parameters":[{"name":"seed","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/negotiate":{"post":{"operationId":"postV1TryNegotiate","tags":["Hands-on demo"],"summary":"Agents negotiate an early-payment discount on a test invoice (a test company only): Purser's Sourcing agent and a simulated supplier's agent, both Claude, at most 4 signed offers, each checked by the CFO's rails and policy in code. Answers the offers, the outcome (agreed, escalated to the CFO, no deal), the agreement and its SHA-256, and compose. Claude off or capped: the recorded negotiation, labelled. 3 a company.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/negotiate/agreed":{"post":{"operationId":"postV1TryNegotiateAgreed","tags":["Hands-on demo"],"summary":"File a negotiation's agreed (or escalated) terms, { agreement_sha256, compose, turns, invoice_id?, agreement, keys, offers } as negotiated: the agreed invoice, ready to sign, replacing invoice_id's. Only terms this company negotiated, filed once; the signed offers must form one chain, each signed by its agent's key, ending at the offer the agreement names (409 broken_chain otherwise). The agreement and the offers' hashes are kept with the invoice and carried in its proof. Answers { invoice, superseded }.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/start":{"post":{"operationId":"postV1TryStart","tags":["Hands-on demo"],"summary":"Start a test company of your own on Purser's engine (test money, a simulated bank, deleted after 24 hours): { token? } (an event or jury token). With the switch turnstile on, also { turnstile } (the Turnstile widget's token), checked with Cloudflare's siteverify (403 { code: turnstile } when refused). Answers 201 { tenant, session, visitor_token, expires_at, session_expires_at, company, pool, mode }; 429 { code: limit } over a limit; 503 { code: paused } while the demo is paused.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/challenge":{"post":{"operationId":"postV1TryChallenge","tags":["Hands-on demo"],"summary":"The bot check before a start: { required: false } while it is off; else { required: true, challenge, difficulty (leading zero bits of SHA-256), expires_at }. The browser finds a nonce so that SHA-256(challenge + \":\" + nonce) has that many leading zero bits, and sends { proof: { challenge, nonce } } with POST /v1/try/start.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/session":{"post":{"operationId":"postV1TrySession","tags":["Hands-on demo"],"summary":"A fresh 15-minute session for your test company: { tenant_id, visitor_token }. Answers { session, expires_at (the session's end), company_expires_at }; 410 { code: gone } once the company was deleted. Limited per company, never per address.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/admin":{"post":{"operationId":"postV1TryAdmin","tags":["Platform"],"summary":"The hands-on deployment's controls (the platform admin's token): { op: get } the switches and today's counters; { op: set, key, value } one switch within its ceiling; { op: token, pool, until } a new event or jury token, shown once.","security":[{"platformAdmin":[]}],"x-purser-needs":"platform","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/counter":{"get":{"operationId":"getV1TryCounter","tags":["Hands-on demo"],"summary":"The hands-on demo's live counter, counted from its own tallies (no ids, no addresses): { played, caught, signed, without_signature, since, counted_at, line }. without_signature is counted, never typed. Up to about 60 seconds old.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/feedback":{"post":{"operationId":"postV1TryFeedback","tags":["Hands-on demo"],"summary":"Anonymous feedback on the hands-on demo: { choice: useful | unclear | broken, note? (at most 200 characters kept) }. Kept with its hour only: no id, no address, no browser. Never shown back publicly. 3 an hour per network.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/ops":{"get":{"operationId":"getV1TryOps","tags":["Hands-on demo"],"summary":"The owner's read-only page during judging. The page holds no figure; it asks for the admin token and reads POST /v1/try/ops.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"postV1TryOps","tags":["Platform"],"summary":"The owner's read-only aggregates (the platform admin's token): starts and finishes in the last hour and day, errors by kind, p50 and p95 latency (bucket bounds), Claude spend today against the caps, who read the invoices, the switches (tokens as a count), the feedback box. No addresses, no ids.","security":[{"platformAdmin":[]}],"x-purser-needs":"platform","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/stage/stats":{"get":{"operationId":"getV1TryStageStats","tags":["Hands-on demo"],"summary":"Stage mode's wall (the finals): the event pool's counts since a moment (?since=ISO 8601, at most 24 hours back, read to the minute) and the latest steps in plain words, with no company, name, id or address: { live, test_money, since, counted_at, counts: { started, read_by_claude, signed, paid, refused }, ticker: [{ at, kind, text }] }. live false and zeros while the event pool is off (the switch starts off, or no live event token). About 2 seconds old; 120 a minute per address.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/stage/qr":{"post":{"operationId":"postV1TryStageQr","tags":["Hands-on demo"],"summary":"Stage mode's QR code with the presenter's event token: { token } (made with POST /v1/try/admin { op: token, pool: event }). Answers { url_shown, size, d, until }: the QR code's side and path of /try?pool=event#e=<token> on this host, and the token's end; 400 { code: not_event_token } when it is not a live event token. The token is checked by its SHA-256 and kept nowhere.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/try/negotiate/recorded":{"get":{"operationId":"getV1TryNegotiateRecorded","tags":["Hands-on demo"],"summary":"The recorded negotiation (public), labelled, its rails checked live; nothing to sign. ?why=limit|paused|start.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/ask":{"post":{"operationId":"askPurser","tags":["Company"],"summary":"Ask Purser (public, from this site's own pages): one question about Purser, answered by an agent with read-only tools over Purser's public docs (README, llms.txt, docs/) and the demo company's records (made-up data, read only), streamed as one JSON object a line (meta with the passages used, step for each read, source, delta, reset, done with the sources cited). Body { question (at most 600 characters), history? (the conversation's last turns, kept by the browser), attachment? { name, type (PDF, CSV, text, PNG, JPEG, WebP or GIF), data (base64, at most 5 MB) }, context? { kind (the console page: overview, invoices, invoice, transactions, payment, agents, policy, books, audit or proof), id? (the record's id, letters, digits and _.:- only), demo? (the person is in the demo company) } }. Read-only: it cannot pay, approve, change a limit or read a real company's data; such a request, and any instruction aimed at the assistant, is answered by code. Claude (Haiku) only under the hands-on deployment's switches claude and ask and its caps; otherwise the docs answer alone (or code reads the demo company's records), labelled. 6 a minute and ask_per_address_hour an hour per address (429 { code: limit }). Nothing is kept but hourly counts: no question, answer or file.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/claude/connectors":{"get":{"operationId":"listConnectorTokens","tags":["AI agents (MCP, OAuth)"],"summary":"The company's Claude connector tokens (never their secrets): name, whether it may propose payments, when made, when it expires, when last used, whether revoked.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"createConnectorToken","tags":["AI agents (MCP, OAuth)"],"summary":"Make a Claude connector token (a signed-in owner): { name, propose?, expires_in_days? }. It reads the books at /mcp; with propose it also files an invoice's payment for the CFO's approval, which only the CFO's Face ID gives. Returned once; only its hash is kept.","security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/claude/connectors/{id}":{"delete":{"operationId":"revokeConnectorToken","tags":["AI agents (MCP, OAuth)"],"summary":"Revoke a Claude connector token (a signed-in owner): Claude's connection with it, and every access token signed for it, ends at once.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":["admin"]}],"x-purser-needs":"admin","x-purser-step-up":"when the company asks again before sensitive changes: a session's passkey checked in the last five minutes","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/mcp":{"post":{"operationId":"mcp","tags":["AI agents (MCP, OAuth)"],"summary":"Purser as a remote MCP server (Streamable HTTP; JSON answers, no session) for Claude: read the books, and with a token made to propose, file an invoice's payment for the CFO's approval. Never approves or pays. A Claude connector token (or an access token from /oauth/token) as Authorization: Bearer; the demo company's public token reads the demo company.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/mcp/airwallex":{"post":{"operationId":"mcpAirwallex","tags":["AI agents (MCP, OAuth)"],"summary":"The Airwallex sandbox (test money), read only, as a Code Mode MCP server (docs/codemode.md): two tools, search over a small OpenAPI document of the allowed reads and execute running a declarative plan of GET calls. Never writes, pays or converts. A Claude connector token (or an access token from /oauth/token) as Authorization: Bearer; not the demo company's public token.","security":[{"bearer":["read"]}],"x-purser-needs":"read","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect-ai":{"get":{"operationId":"getConnectAiPage","tags":["AI agents (MCP, OAuth)"],"summary":"How to connect each AI client (Claude, ChatGPT, Cursor, VS Code, Gemini CLI, Windsurf) to /mcp: a tab per client with an exact config or a one-click install link.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/favicon.ico":{"get":{"operationId":"getFaviconIco","tags":["Site"],"summary":"Purser's icon (ICO, 32 and 48 px).","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/favicon.svg":{"get":{"operationId":"getFaviconSvg","tags":["Site"],"summary":"Purser's icon (SVG).","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/apple-touch-icon.png":{"get":{"operationId":"getAppleTouchIconPng","tags":["Site"],"summary":"Purser's icon for a home screen (PNG, 180 px).","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/icon.png":{"get":{"operationId":"getIconPng","tags":["Site"],"summary":"Purser's icon (PNG, 512 px): the MCP server's and the OAuth sign-in's.","security":[],"x-purser-needs":"public","x-internal":true,"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/.well-known/oauth-protected-resource":{"get":{"operationId":"getProtectedResourceMetadata","tags":["AI agents (MCP, OAuth)"],"summary":"OAuth protected resource metadata (RFC 9728) for /mcp: this cloud is its authorization server.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"operationId":"getProtectedResourceMetadataForMcp","tags":["AI agents (MCP, OAuth)"],"summary":"The same metadata at the path RFC 9728 derives from /mcp.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/.well-known/oauth-authorization-server":{"get":{"operationId":"getAuthorizationServerMetadata","tags":["AI agents (MCP, OAuth)"],"summary":"OAuth authorization server metadata (RFC 8414): registration, the consent page and the token endpoint; PKCE S256; public clients.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/oauth/register":{"post":{"operationId":"registerOAuthClient","tags":["AI agents (MCP, OAuth)"],"summary":"Dynamic client registration (RFC 7591) for a public client: { redirect_uris, client_name? }; its id is signed, nothing is stored.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/oauth/authorize":{"get":{"operationId":"getOAuthConsent","tags":["AI agents (MCP, OAuth)"],"summary":"The consent page: connect Claude with a connector token made in Purser Cloud, or open the demo company (read only). PKCE S256 required.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"answerOAuthConsent","tags":["AI agents (MCP, OAuth)"],"summary":"The consent page's answer: the form's own token (signed, bound to this request, ten minutes, good once), then a live connector token (or the demo), then back to the client with a one-time code (five minutes).","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/oauth/token":{"post":{"operationId":"getOAuthToken","tags":["AI agents (MCP, OAuth)"],"summary":"A code and its PKCE verifier for an access token (authorization_code, public client). The token names the connector token it was issued for, never its secret; revoking that ends it.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/openapi.json":{"get":{"operationId":"getOpenApiDocument","tags":["Discovery"],"summary":"This API, as OpenAPI 3.1 (the same document as /v1/openapi.json).","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api":{"get":{"operationId":"getApiReference","tags":["Discovery"],"summary":"The API reference: the OpenAPI document as one HTML page (no script).","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/.well-known/agent.json":{"get":{"operationId":"getAgentCard","tags":["Discovery"],"summary":"The A2A Agent Card (Agent2Agent protocol): Purser's skills (read and propose; never approve), its auth scheme and where to call it.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/.well-known/agent-card.json":{"get":{"operationId":"getAgentCardAtNewName","tags":["Discovery"],"summary":"The same A2A Agent Card at the newer well-known name.","security":[],"x-purser-needs":"public","responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}}}}