Chat API reference ​
The whole contract, chat-api.yaml (OpenAPI 3.1), rendered from the file at build time. One page per tag and one per operation are linked from the sidebar.
The only interface between the chat surface (web/) and the orchestrator (ADR 0009: the UI is swappable). Everything a user sees in a thread is derived from the thread's append-only event log (an Event, below); the UI renders it, it never invents state.
Authentication (ADR 0033): the orchestrator is an OAuth2 resource server behind oauth2-proxy. With auth.mode: jwt the identity is the Authorization: Bearer <JWT> the proxy forwards (or a client's own token), validated against the issuer's keys; a request without a valid token gets 401 with WWW-Authenticate: Bearer, and 503 (Retry-After) while the keys cannot be fetched (fail closed, and /readyz with it). With the default auth.mode: proxy_header the orchestrator trusts X-Auth-Request-Email set by the proxy and rejects requests without it with 401. Local development may set AUTH_DEV_USER to inject a fixed identity (proxy_header only); it must be refused when unset.
DPoP (ADR 0054, RFC 9449): when auth.dpop is configured a request may carry Authorization: DPoP <token> and exactly one DPoP proof instead, for a token bound to the client's key (cnf.jkt). The proof is typ dpop+jwt, ES256 or EdDSA, signed by the public jwk of its header, with htm the method, htu the public URL without query and fragment (one of auth.dpop.publicOrigins and the request's path), iat within 60 seconds past and 5 ahead, a jti not seen within that window, and ath the hash of the token. A token that is bound to a key is refused as a Bearer. A refusal is 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA" (the proof) or DPoP error="invalid_token", algs="ES256 EdDSA" (the token, its binding, or a bound token sent as a bearer); a request with no credential gets both Bearer realm="orchestrator" and DPoP algs="ES256 EdDSA". Without auth.dpop the DPoP scheme is refused and nothing else changes. getPublicAuth says where a browser signs in.
Authorization (ADR 0033, config.md): who a person is says what they may do. The roles of the credential (the token's roles claim) map, by auth.roles, to the permissions agent.read, agent.invoke, thread.read, thread.write, thread.share, thread.delete, artifact.read, admin, tools.user.add and prompts.share (the last two granted to no role by default); a role the configuration does not define grants nothing, and a person with no defined role gets auth.defaultRole. getMe says what the caller's roles grant. Nobody reads another person's thread (ADR 0039): every permission over threads is over the caller's own, for every role, admin included, which is operational and gives no access to what people wrote. The answers, everywhere below: 404 for a thread that is not the caller's (it is the answer for one that does not exist, so existence never leaks); 403 for a permission their roles lack (code: forbidden, whatever is asked for, so it says nothing of what exists), for an agent their roles do not name, and, for a person whose roles grant nothing at all, for every operation but getMe (code: no_access). A Thread carries its owner, the caller's own address.
Sharing (ADR 0040): the one way a person reads another person's thread is a link its owner made. shareThread, rotateThreadShare and unshareThread are the owner's (thread.share, except taking a link down, which needs only ownership); getSharedThread and getSharedArtifact are for a signed-in reader of internal (or public) links, getPublicSharedThread and getPublicSharedArtifact for anybody, outside the identity layer, for public links only, with Authorization ignored, rate limited (429 with Retry-After), Cache-Control: no-store and X-Robots-Tag: noindex, nofollow. Every way a link can fail to be a readable one is the same 404, with the same body: an unknown token, a bad MAC, a private or revoked thread, a cap that was lowered, a file that is not the thread's. A reader is read-only and never sees the owner's address (the owner is "the owner").
Deleting (ADR 0043): deleteThread erases the caller's own thread, the threads made from it by an edit, their files and their links. It needs thread.delete, which is not thread.write (a person who may only read may still erase their own data), and is refused with a 409 thread_active while the thread works.
People's own MCP servers (ADR 0046): createUserToolServer and updateUserToolServer need tools.user.add, which no role holds by default; listUserToolServers, listToolServers and deleteUserToolServer do not, so a person whose permission was taken away still sees what they added and can remove it. Another person's server is a 404, whatever the caller's roles, and every route is a 404 in a deployment that has the feature off (userToolServers.enabled). A request body that carries a secret is write-only: the secret of createUserToolServer and updateUserToolServer is the token or the key of a server, and is in no response, error, log line or event; a response says whether a credential is kept (hasCredential) and, for a typed key of 12 characters or more, its last four characters (last4). These bodies are read without echoing a value, so even a malformed one never quotes what it held. The URL of a server is the person's own and is shown back to them (so that they can edit it); it can hold a secret in its path, so these answers are never cached.
A person's prompt library (ADR 0070, prompts-v1.md): listPrompts, createPrompt, getPrompt, updatePrompt, deletePrompt and renderPrompt. A prompt is its owner's; a write that leaves it shared with a role needs prompts.share, which no role holds by default and admin does not imply; unsharing and deleting need nothing. Another person's prompt, and a shared prompt the caller's roles are outside of, are a 404, the answer for an id that never existed; an audience member reads and renders a shared prompt and never learns its author. A prompt is in no thread, fork or export.
Interaction (start a thread, send a message, answer a question, follow a thread live) is AG-UI (ADR 0012): the /agui/* operations below, with the mapping, the connect binding and the vymalo.* schemas in agui.md. Their request and event schemas are the vendored AG-UI 1.0 JSON Schema, referenced by file. The thread list, thread details, cancel, the agent list and health stay REST.
Removed: the legacy REST interaction operations (createThread, postMessage, listEvents, streamEvents) were deprecated on 2026-09-29 and removed on 2026-09-30 (ADR 0012). ORCH_SURFACES=chat-api is now a startup error. No operation returns an Event any more; the Event schemas below describe the append-only log that AG-UI projects, which the goldens under examples/ pin.
Servers
Who the caller is, and what their roles let them do
The caller's identity (user is the key of what they own: the e-mail, lower-cased), the roles that count (the roles of the credential that auth.roles defines, or auth.defaultRole when none is), what those roles grant (permissions, each with its scope where it has one) and the agents agent.read and agent.invoke are about (["*"] for every agent; these are the patterns of the roles' agents, and do not say the audience of an agent the platform's registry lists, which listAgents does: it is filtered by it). A client uses it to show what its person may do and to hide what they may not; it is never a check: the orchestrator enforces every request whatever a client shows. It is the one operation that answers a person whose roles grant nothing (roles and permissions are then empty), so that a client can say why every other operation is a 403. Never cached.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The caller
Samples
Where a browser signs in
What the web needs to sign a person in by itself (ADR 0054, decision 7): the token issuer, the web's public OAuth client at it, and the scope to ask for. The orchestrator says it (auth.browser, and auth.jwt.issuer), so that a static export of the web needs no configuration of its own. Outside the identity layer: no credential is read (an Authorization header is ignored), because the person is not signed in yet; behind the same rate limit as the other public routes. A 404 when the deployment has not configured it, which the web reads as "the edge's cookie signs people in", as before. Nothing in the answer is secret: a public client has none. Cache-Control: no-store.
Responses
Where to sign in
Samples
What the caller used in a month, priced
The caller's own usage in one UTC calendar month, from the usage ledger of the people (ADR 0065): the tokens their threads used, per provider and model, and the time the commands of their runs used in a sandbox, per shape of the sandbox, with a price on each line and a priced total. There is no owner or user parameter and none will be: the route answers for the authenticated person and for nobody else, whatever their roles (as getMe does; a person whose roles grant nothing reads their own usage too). Another key in the query is a 400. The answer is never cached.
What is counted. A task (an agent's A2A task in a thread) counts once: its latest model_usage_total replaces its counts, and while it has none its model_usage calls add up (usage-v1.md). A task is counted in the UTC month of the latest event that changed it, whole, so a task that crosses a month end moves into the later month when its next event arrives and the figure of a month that has ended is not final while a task of it is open. The usage of a thread outlives the thread: erasing a thread does not remove it. Months older than usage.retentionMonths (24 by default, the current month one of them) are removed by a sweep and read as empty.
How it is priced (usage.prices of the configuration, in integers, no floating point: money is millionths of the currency unit, written with exactly six decimals). The table is the current one: changing it re-prices every month, and prices says which table priced this answer (sha256: and 16 hex digits of its canonical form; null with no table). A model line costs (inputTokens - cachedInputTokens) * input + cachedInputTokens * cachedInput + outputTokens * output per million tokens, divided once by 1 000 000 and rounded half up; cached tokens are a part of the input (capped at it), tokens written to a cache are input tokens, and reasoning tokens are output tokens: none is a charge of its own. A line matches the table's entry for the same provider (a line with none matches an entry with none) and the same model, exactly. A sandbox line costs hours * (cores * cpuCoreHour + gib * gibHour) with hours = milliseconds / 3 600 000, cores = cpuMillis / 1000 and gib = memoryBytes / 2^30, one exact fraction rounded half up; a shape that lacks cpuMillis or memoryBytes (the pod asked for none) has no price.
A line with no price is said so and is never counted as free. price is null for a model the table does not price (or any model, when there is no table), for a sandbox shape the table does not price or that has no CPU or memory request, and for a line whose arithmetic would overflow; unmeasured lists the tasks whose commands ran where the sandbox is not measured (local, devcontainer), which are never priced. total.amount is the sum of the priced lines, and total.complete is true only when no line is unpriced and nothing is unmeasured (a month with no usage at all is complete, at 0.000000); total.unpriced says what is missing. A client that shows the total shows it as "at least" when complete is false.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
The UTC calendar month, YYYY-MM (a year from 0001 and a month from 01 to 12). The current UTC month by default. A month the ledger holds nothing for (in the future, or older than the retention) is an empty, complete answer, not an error
"2026-10""^[0-9]{4}-(0[1-9]|1[0-2])$"Responses
The caller's month
Samples
Agents the user can target
Only the agents the caller may read: a role of theirs grants agent.read over the agent (auth.roles) and, for an agent the platform's registry lists, its audience lets them in (ADR 0045): the registry item's audience holds "*", or one of the values of the caller's roles claim, or a role of theirs holds admin. A registry agent with no audience is therefore for administrators only; the deployment's own agents (source: static) have no audience. So this list, and not the patterns of getMe's agents (which cannot say an audience), is what a client offers.
The agents the deployment lists (AGENTS_FILE, source: static) and, when it reads one, the agents of the platform's registry (source: registry, ADR 0022). The list is read now, on every request: an agent added to the registry shows on the next request, and one it removed is gone. For each, the orchestrator reads the live agent card; releases is present only when the card advertises the release-channels extension (ADR 0008). Listed in display order, the static agents first; the first is the default target, which clients preselect. An agent whose card cannot be read stays in its place. A registry that cannot be read lists none of its agents (fail closed) and the static agents stay.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
Agent list
Samples
Whether each source of agents could be read
How each source of the agent list answered on a read made now (ADR 0022): the deployment's own list (static, always ok) and, when the deployment reads one, the platform's registry (platform). A client reads it beside listAgents to say that the list is incomplete: a registry that cannot be read lists none of its agents (fail closed), and listAgents alone cannot tell "the platform has none" from "the platform cannot be reached". No agent card is read, and neither a URL nor a credential is in the answer. Never cached. It is about the agent list, so it takes agent.read.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
One status per source, in the order the sources are read
Samples
What an agent can do (AG-UI AgentCapabilities)
The shape is the spec's AgentCapabilities; retrieval is ours (agui.md). The agent card is read on every request and never cached (ADR 0008); a card that cannot be read in time gives the smaller document (identity with the name only, no custom). custom[<access-tier/v1 URI>] (https://agents.vymalo.com/a2a/extensions/access-tier/v1) is {tiers, default} while the card lists that extension with well-formed params (ADR 0061): tiers lowest first, each of plan, edits, auto, bypass at most once, and default one of them, plus maxTier, the highest tier the person asking may use of this agent (over the roles that let them invoke it; absent when none caps it); the web draws its tier chip from it. custom[<commands/v1 URI>] (https://agents.vymalo.com/a2a/extensions/commands/v1) is {commands: [{name, description, argumentHint?}]} while the card lists that extension with well-formed params (ADR 0079, commands-v1.md): the agent's own prompt templates, sorted by name and each once, and the web draws its / menu from it. A command has no inbound member: it is the text of the message the person sends (/name <arguments>), which the orchestrator sends as it stands.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
Capabilities
Samples
The public subset of the orchestrator's configuration, for the web
The ui section of the configuration file (config.md, ADR 0034): every key with its effective value, defaults filled in, and nothing else of the file. Behind the identity layer like every /api/* route (401 without an identity). It changes only when the process restarts. A client treats a missing key as its default and ignores a key it does not know, so the section grows additively.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The public configuration
Samples
Tools
MCP servers: the ones the deployment offers and the ones a person adds, with their authorization.
The MCP servers a person may attach to a conversation
The servers the deployment offers for attaching (ADR 0024, the toolServers section of config.md), in the order the deployment lists them, then the person's own (ADR 0046), sorted by name: what the picker shows. Neither a URL nor a header nor a credential is in it, nor the allow-list of a server's tools, nor its timeout: the orchestrator calls the server for the agent and holds what it needs. icon is a data: URI the screen draws as it is; an icon at a URL is never offered, and a client never fetches one (open question 38). agents says which agents the server may be attached for, and is absent when it may be attached for every agent: a thread whose agent is not listed is refused (putThreadTools, 422). An empty list is a deployment with nothing to attach. Never cached. It takes thread.write, as attaching does.
A server of the person's own has own: true, a status and, unless it is ready, a reason; a deployment's has none of the three, and in a deployment with the feature off the answer is exactly what it was. ready is a connected server; needs_auth is one that wants a key or an authorization from the person (a call to action, not an error); unavailable is one that is not offered for now, for a reason that clears with its cause. The status is the definition's state and the deployment's rules and asks the credential broker for nothing: a grant that ended is marked by the broker when it learns it, and by the relay when the broker says the credential ended or the server answers 401 or 403, so a server whose token ran out is ready here until then. A ready server of the person's own is attached with putThreadTools (a u- id); one that is not is refused there with a 422 whose code says which kind of reason it is. When a definition of the person's does not read back their own servers are left out of this list, the deployment's stay, and listUserToolServers says why. The same when the store of definitions cannot be read now (it is down): the picker does not fail for it, because it is how the deployment's servers are attached too and they do not depend on the person's definitions; the person's own are missing until the store is back, and listUserToolServers answers 503.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The servers, the deployment's in its order and then the person's own
Samples
The person's own MCP servers, with what each is to them now
The caller's own servers (ADR 0046), sorted by name, each with the URL they typed, the shape of its authentication (never a secret), its state, the status and reason the picker shows and the revision an edit sends back. Needs no permission of its own (tools.user.add gates changes, not reading what one added); another person's servers are not here, for any role. limit is the most one person holds (8) and kinds the kinds of authentication this deployment accepts: all four (none, bearer, api_key, oauth2) where it keeps credentials, and only none where it keeps none (it has no secrets section) (orch_app::user_tool_kinds, orchestrator/crates/app/src/user_tools.rs).
status is the definition's state and the deployment's rules, with the first of these that holds: unavailable / not_permitted when the caller's roles lack tools.user.add; unavailable / egress_refused when today's egress lists refuse the server's address; unavailable / broker_down when the server wants a credential and this deployment keeps none; otherwise ready for connected, and needs_auth for added (not_connected), needs_reauth (reauthorize) and revoked (disconnected). It asks the broker for nothing: no token is refreshed for a listing.
When a definition of the caller's does not read back, the store fails the listing as a whole: the answer is 200 with no servers and an error (unreadable), because the other servers are not lost and none of the deployment's depends on this. Each server can still be deleted by its id (deleteUserToolServer reads nothing of the row); the answer cannot name the damaged one, and the orchestrator's log does (one warning per damaged row, by its id). A store that is down is a 503. Never cached. 404 when the feature is off.
Client recipe: the person's own servers (what the web's "My tool servers" page does; a client needs nothing else, and the server enforces every step, so a client only offers what the server would accept).
- Whether to offer the screen.
getMeliststools.user.addfor a person whose roles hold it. It does not say whether the deployment has the feature on: a holder in a deployment with it off gets a 404 from this route, which the screen says in words ("this deployment does not let people add servers") and offers nothing under. A person without the permission still reads their servers here and deletes them (deleteUserToolServerneeds none); the screen says that their roles do not let them add or change one, and offers only Delete. - Add. Offer the
kindsof this answer and no others (a deployment that keeps no credentials lists onlynone).POST{name, url, auth}and, forbearerorapi_key,secret; anapi_keyalso names itsauth.header, anoauth2its optionalscopesandclientId. The answer is the server as listed: show itsstatus, and foroauth2(needs_auth,not_connected) the Connect step below. Hold at mostlimitservers: when the list is that long the client does not offer Add, and the server's 409too_many_serversis the race only. Thesecretis typed once, kept nowhere (not in storage, a URL or a log), cleared when the request is sent, and never filled in from an answer: no answer holds one. - Change.
PATCHtakes any non-empty combination ofname,url,authandsecret, and therevisionof the row as listed (orchestrator/crates/app/src/user_tools.rs,edit_user_tool_server; an edit that names none of the first four is a 400). A client sends only what differs from the row the person opened the form on, with that row'srevision(a form that is open while the list is read again keeps its own revision, so a stale edit is a 409 and never overwrites a newer change). What each does:name, or theheaderof anapi_key, is written and the credential kept;secretalone (the kind must bebearerorapi_key, else a 400) re-keys it and the server isconnected, which also brings aneeds_reauthorrevokedone back; a newurl, a newauth.kind, otherscopesor anotherclientIdforgets the credential first (the server isadded, orconnectedif the kind isnone), and asecretin the same request (kindbearerorapi_key) is then kept for the new definition and the server isconnected; any other combination is those effects together. A client says before it sends that a move forgets the credential. Delete:DELETEthe id; it takes no revision, and a 404 answering it means the server is already gone, which is what was asked. A 409stale_revisionis not to be retried: read the list again and let the person decide again. - Connect (an
oauth2server that isneeds_auth; and anoauth2server that is not, to authorize it again with another account or a wider scope, which the server allows):POST.../authorizewith no body. Show the person where they are being sent, before anything opens, and openauthorizeUrlonly when it parses, ishttps:(orhttp:on a loopback host, for a development authorization server) and has no user information;javascript:,data:, a relative or a malformed link is never opened, and the client says the server gave a link that cannot be opened. The orchestrator takes the authorization endpoint from the authorization server's own RFC 8414 metadata and judges its shape (https, a public host, no fragment:orchestrator/crates/credential-broker/src/discovery.rs,found_in), not that it is on the issuer's host, so the client shows the host ofauthorizeUrlitself as the destination and, when it differs from theissuer's, names both. Open it in a browser the client cannot lose control of: a link the person clicks (target="_blank", no opener, no referrer) on the web, the system browser on the desktop, an in-app tab on mobile. A client cannot know that a window it opened stayed open (a pop-up blocker returns the same as success), so it says "waiting for you to finish signing in", never that a window opened, and offers Check now and Open the sign-in page again (authorizeUserToolServeragain: a later call ends the earlier flow). It never logs or keeps the URL. The browser comes back tofinishUserToolAuthorization, which no client calls. The client learns the outcome by reading this list again: when the person returns to the app (the window regains focus; the web reads at most once in a quarter second, so a focus and a visibility change together are one read) and on the person's request.readyis done; anything else afterexpiresAtis "not finished; connect again". A 429rate_limitedcarriesRetry-After. - Attach. The picker is
listToolServers: the person's own servers haveown: true. Offer areadyone like any other and send the whole set withputThreadTools. One that is notreadyis not offered for attaching:needs_authsays what to do (give a key, or Connect, on the screen above:ToolServerdoes not say which, so a client takes the kind from this list'sauth.kindby id),unavailablesays itsreason. A 422tool_server_needs_authortool_server_unavailablefromputThreadToolsis the race only. - Errors, by
code(a client chooses its words from the status and thecode, and showsdetailonly where it is a person's own words: a 400's, which never quotes a value): 400url_refused(the address is refused:detailsays why for a person); 403forbidden(the permission is gone) orno_access; 404 (the server is gone, or the feature is off: read the list); 409too_many_servers,stale_revision; 422credentials_not_kept(add, change and authorize),egress_refusedandoauth_not_configured(authorizeUserToolServeronly: add and change answer a refused address as the 400url_refused,orchestrator/crates/app/src/user_tools/authorize.rs); 429rate_limited; 503broker_down,authorization_unavailable, or nocode(the server is being changed: waitRetry-Afterand try again). After any failed write whose outcome is unknown (a 500, a 503, a lost connection) the client reads this list again: a write runs to its end on the server whether or not the client waits.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The person's servers
Samples
Add an MCP server of one's own
Adds a server for the caller (ADR 0046). Needs tools.user.add, which no role holds by default. Everything is checked before anything is written: the name (1 to 80 characters, one line), the URL (https, a host, no user information, query or fragment, at most 2 KiB, and the deployment's egress lists: a refusal is a 400 url_refused whose detail is the guard's reason for a person, never the precise rule and never an address), the header of an api_key (not one the orchestrator owns: Authorization, Host, Content-Type, Mcp-*, ...), the scopes and the client id of an oauth2, and the secret (8 to 4096 printable ASCII characters, none at either end a space; 8 is the shortest the relay can take out of what a server says back without redacting ordinary words, so a shorter secret is a 400, ADR 0046 slice 5a review).
none: nosecret. The server isconnectedat once.bearerandapi_key: thesecretis required, the token or the key. The definition is writtenadded, the secret goes to the credential broker, and the definition is replacedconnectedwith the reference it gave. If the broker cannot keep the secret the definition is taken back: the answer is a 503broker_down, the server is gone and no place of the eight is spent. The add runs to its end on the server whether or not the client waits: a client that hangs up, or the API's own timeout (30 s, which answers 503 and stops waiting), ends the response and not the add. Two things still leave a server behind: the take-back itself failing (the definitions' store is down at that moment), and the process stopping in the middle. The server is thenadded(needs_auth,not_connected), holds its place, and its owner gives it a key or deletes it.oauth2: nosecret. The server is storedaddedand hasstatus: needs_auth,reason: not_connected; the person authorizes it withauthorizeUserToolServer, and the browser comes back tofinishUserToolAuthorization, which makes itconnected.
A deployment with no secrets section keeps no credentials: only none can be added (422 credentials_not_kept). At most 8 servers per person: the ninth is a 409 too_many_servers.
secret is write-only: it is in no response, error or log line (see the description of this API).
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The server, as the listing shows it
Samples
Delete an MCP server of one's own, and forget its credential
Deletes the caller's server (ADR 0046). Needs no tools.user.add: a person whose permission was taken away can still remove what they added and free the places they hold. Deleting is "revoke, then delete": the credential broker forgets the credential (and revokes it at the authorization server where it can) first, and a failure of that aborts the delete with the server still there, so a person tries again (503 broker_down); a server that wants no credential has none to revoke. A deployment that keeps no credentials cannot revoke and does not try: the definition is deleted, which a person must always be able to do. A definition that does not read back is deleted by its id too, its credential, if any, revoked first. The delete too runs to its end on the server whether or not the client waits, so a request that is dropped between the revoke and the delete still deletes. Nothing records the delete in a thread: a thread that had the server attached keeps the id. A second DELETE is a 404.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The server is deleted and its credential forgotten
Samples
Change an MCP server of one's own, or give it a new key
Changes the caller's server (ADR 0046). Needs tools.user.add. The members are name, url, auth, secret and revision, at least one of the first four; a value is checked as createUserToolServer checks it, before anything is read or written.
| The change | What happens |
|---|---|
name, or the header of an api_key |
The definition is replaced. The credential is kept: it is bound to the URL, the kind and, for OAuth, the scopes and the client, not to a name or a header. |
secret, nothing else of the table below |
The secret goes to the broker (only if the server still has the revision that was just read), then the definition is replaced connected with the new reference. Re-keys a bearer or api_key server, and brings a needs_reauth or revoked one back. |
url, the kind, the scopes (as a set) or the clientId of an oauth2 |
The credential was issued for the old ones, so the definition is replaced added with no credential first (a compare-and-swap on the revision: a write that fails, or a race that is lost, has revoked nothing), and then the broker revokes the credential. A revoke that fails is a 503 broker_down and leaves the server added, ready for a key; what the broker still holds is not named by the server and is not lent. With a secret for a bearer or api_key, the broker then keeps it for the new definition and the server is connected. A change to none makes it connected. |
| nothing that differs | Nothing is written and the revision does not change. |
revision is the one listUserToolServers gave: when the server changed since (the broker marked a grant that ended, another request edited it), the answer is 409 stale_revision and nothing is written; read it again and decide again. The one exception is a new key: the broker keeps it in place of the old one before the definition is written (and only if the server still has the revision just before), so a writer that gets in within those milliseconds can leave the new key kept (and used) beside the 409 when the server still has a credential; a key kept for a server that the other writer moved, which then has none, is forgotten. Once the change has written the definition its revision is spent: a later conflict is read again and the change finished, never a 409 over a change that was made. Without a revision the change is made to the server as it is now (read again, up to three times, when the broker wrote in between; 503 after). A deployment that keeps no credentials refuses a change that would need the broker (a new URL or kind for a server that holds a credential, a kind that wants one): 422 credentials_not_kept; the person deletes the server instead. A change runs to its end on the server whether or not the client waits (as the add does): a client that hangs up, or the API's own timeout, ends the response and not the change; the list says what was done. secret is write-only.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The server as it is now
Samples
Start the OAuth authorization of an MCP server of one's own
Starts the authorization code flow with PKCE of one of the caller's oauth2 servers (ADR 0046, slice 4c). Needs tools.user.add, a deployment that keeps credentials and has an address for the OAuth callback (userToolServers.oauth.callbackUrl, or server.publicUrl). There is no request body (one is not read).
The credential broker discovers the server's authorization server (the protected resource metadata of RFC 9728, then the authorization server's metadata of RFC 8414; it refuses one that does not offer PKCE S256), registers a client if it must, and keeps the PKCE verifier; the orchestrator keeps only state → (the caller, this server, until expiresAt). The answer is where to send the person: the caller's client opens authorizeUrl in a browser (the web in the page, the desktop in the system browser, mobile in an in-app tab) and shows issuer, the authorization server a stranger's MCP server chose, next to the button. The state is inside authorizeUrl and is not given beside it. When the person has consented, the authorization server sends the browser to the orchestrator's callback (finishUserToolAuthorization), which needs no session; the client then learns the new status from listToolServers or listUserToolServers (ready when it worked).
A server that is already connected can be authorized again (another account, a wider scope): the grant is replaced when the callback finishes, and nothing is written before. A later call for the same server ends the earlier one: its state is no longer one. Nothing of the definition is written by this operation.
Rate limited per person: ten calls a minute, in each process of the orchestrator (a burst of ten, then one more every six seconds). Every call counts, a refused one too. 429 with Retry-After.
What the answer and the authorization server see. authorizeUrl is a link anybody can hand to somebody else, and the callback finds the person by the state and not by a session, so whoever opens it and consents completes the flow of the person who began it. The consent page is built from the client (userToolServers.oauth.clientName, the orchestrator's own name), the redirect URI, the resource (the server's URL) and the scopes; nothing that names the owner, the server's id or the name the owner gave it is sent to an authorization server or in this answer. Deployments should keep tools.user.add to roles they trust, list the authorization servers and MCP hosts they trust in userToolServers.egress.allow, and show issuer before the person consents (ADR 0046, "Amended 2026-10-15, slice 4c review", departure 125).
A name that does not resolve to a public address. A URL whose name resolves to a private or reserved address is the 422 egress_refused; one that does not resolve is the 503 authorization_unavailable. The two answers tell the person who typed the URL a little about what a name resolves to; that is accepted, given the rate limit above.
Cache-Control: no-store: authorizeUrl carries the state and the PKCE challenge.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
Where to send the person
Samples
Where the browser comes back to after a person authorizes a server of their own
The redirect_uri of the OAuth authorization of a person's own MCP server (ADR 0046, slice 4c). Outside the identity layer: the browser that comes back is the system browser on the desktop and the in-app tab on mobile and carries neither the app's bearer token nor the web's cookie (ADR 0047), so no credential is read (an Authorization header or a cookie is ignored) and the person is found by the state alone: state → (who began, which server, until when), kept when the flow began and taken once. The edge must let a GET of this path through to the orchestrator with no sign-in (the dev stack's and the chart's edges do, since 2026-11-14, and nothing else under /api/user-tool-servers; the chart still renders no userToolServers values: see the rollout steps of the ADR).
The authorization server's redirect is read for code, state, iss (RFC 9207) and error, and nothing else (error_description is never read). A parameter that is one of the four and appears twice makes the request invalid and spends nothing. Then, whatever the outcome from the first callback that finds a pending state on, the state is spent: a callback with error (the person declined), with no code, whose iss the broker refuses (a mix-up), whose code the authorization server refuses, or that cannot be finished now, is over, and the person begins again (authorizeUserToolServer). Otherwise the broker exchanges the code (with the PKCE verifier and the resource), keeps the grant, and the server is made connected. The work runs to its end on the server whether or not the browser waits.
The answer is a small HTML page with fixed text: nothing of the request (not the code, the state, the iss, the error, the server's name or URL, nor the person) is in it. It carries Content-Security-Policy: default-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none' (no script and no style), Referrer-Policy: no-referrer, Cache-Control: no-store, X-Content-Type-Options: nosniff, X-Frame-Options: DENY and X-Robots-Tag: noindex, nofollow. The query is never logged. The page says whether the person can return to the app; the app learns the new status from listToolServers.
HEAD is a 405: a prefetch that asked for the headers must not spend the state. Rate limited with the other public routes, under a key of its own (the Client ID Metadata Document has another, so a flood of one cannot limit the other): a limited request is answered with the same kind of page (429, Retry-After, fixed words, the headers above) and its state is not spent, because it never reached the handler. A callback that takes longer than the API's request timeout is answered with the page "could not be finished" (503) and the same headers; the work runs on to its end.
Parameters
Query Parameters
The authorization code (a secret until it is exchanged). Absent with error
The state of the authorization (a bearer value; it finds the person and the server)
The issuer identifier of the authorization server that answered (RFC 9207), passed to the broker as it came
An OAuth error code: the person declined, or the authorization server refused. Its text is not read
Responses
The server is connected; the page says the person can return to the app
Samples
The orchestrator's OAuth client, as an authorization server fetches it
The Client ID Metadata Document of this orchestrator (ADR 0046, slice 4c; draft-ietf-oauth-client-id-metadata-document): the client_id the broker sends to an authorization server that says it supports such documents is the URL of this document, so the server fetches it instead of registering a client. The path is the one of userToolServers.oauth.clientMetadataUrl, an https URL with a path on the origin of the OAuth callback; /oauth/client-metadata.json is the path this contract uses as its example. It is served only while that key is set and credentials are kept, and is a 401 (the identity layer's, as for any path nothing serves) otherwise. The edge must route this path to the orchestrator and let a GET through with no sign-in: the fetcher is an authorization server.
The document says: client_id (the URL, byte for byte as the broker sends it), client_name (userToolServers.oauth.clientName), redirect_uris (the callback and nothing else: the browser always comes back to the orchestrator), grant_types (authorization_code, refresh_token), response_types (code) and token_endpoint_auth_method: none (a public client with PKCE). It holds nothing secret and is made once at startup. Outside the identity layer; rate limited with the other public routes, under a key of its own (not the callback's); cacheable for five minutes.
Responses
The document
Samples
Search the caller's own threads by the words of their titles, descriptions and messages
The caller's own threads, and nobody else's (ADR 0039, ADR 0068): what it finds is always a subset of what listThreads lists for the same archived and branches, for every role (an administrator finds their own too). Another person's thread is never a hit, by its title or by its content. The permission is thread.read. A POST, though it is a safe read that writes nothing: the query is a person's words, and they must not be in a URL, a proxy's access log or a trace. The media type is exactly application/json (a parameter such as charset is allowed; application/problem+json and application/json-seq are not): any other is a 415. The checks run in one order, so two errors never leave a client guessing: 401, 429, 403, 415, then the body's shape (400 bad_request: one JSON object, only the five members, each of its type, none twice, no null), q (400 query_empty, query_too_long), limit's range, archived, branches, the cursor (400 bad_cursor), and last the store (503). The vectors of requests.json hold every case.
Every rule is in thread-search-v1.md, with vectors: what a word is, how it is folded (Café, cafe and CAFÉ are one word; cœur is coeur), how the query is read, when a document matches (every term is the start of one word of one title, one description or one message), what is searched (titles, descriptions, a person's messages and an agent's final answers; not working text, reasoning, steps, tool results or file names), how the snippet is cut and its offsets, and the order. A second client reads that page and gets the same threads, snippets and order as this server.
Order: rank descending (2: the title matches, 1: the description, 0: only messages), then the thread's id descending (the newest created first). A page that is read later differs from an earlier one only when a thread was renamed, deleted or written to in between.
Client recipe (the server enforces every rule above; a client only offers the box):
- If
getConfighas nosearch, offer no box. - Debounce about 250 ms, cancel the request in flight when the text changes, and drop an answer that is not for the latest text.
- Send
{"q": text}; do not trim, fold or bound it yourself. Draw each result withthread.title, and each hit'ssnippet.textsplit atmatches(UTF-16 code unit offsets) into plain and marked runs, with an ellipsis wherecutStartorcutEnd. Never interpret the text as markup. SaymessageHitsbeyond the hits shown.query.termssays what was searched for. - A message hit opens the thread at its
seq(getThreadHistorywithsince=<seq>, as for a#m-<seq>link); a title or description hit opens the thread as usual. - For more, send the same request with
cursorset tonext, untilnextis absent. - On 429 wait
Retry-After; on 503 say that the search is unavailable and offer to try again.
A query that keeps no term (a, !!) is a 200 with terms: [] and no result.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
One page of results
Samples
The caller's own team presets, as summaries
A person's saved teams (ADR 0074 decision 13, teams-v1.md). Presets are each person's own: nobody lists or reads another's. Summaries only (memberCount, no charter, no roles), ordered by id, bytewise. held is how many presets the caller owns. nextCursor is the id of the last preset of the page, sent back as cursor. Never cached. If getConfig has no teams, offer none.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
The nextCursor of the page before: a team id; anything else is 400 bad_cursor
Responses
One page of summaries
Samples
Save a team preset of one's own
Saves a preset (teams-v1.md). Every member's agent must be one the caller may use (agent.invoke and the agent's audience, ADR 0045): an agent that is not, or that nobody lists for them, is 422 member_agent_refused with at: members.<i>.agentId, and the answer never says which of the two it was. The checks run in one order: 401, 403 no_access, 415, the shape (400 bad_request), the values (400 with a code and at), the agents (422), and last the store (409 name_taken, then too_many_teams).
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
Saved
Samples
One of the caller's team presets
A preset that is not the caller's is 404, the answer for an id that never existed.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The preset
Samples
Replace a team preset
Replaces the whole preset: the body is revision (the one the last read gave) and every member of TeamInput. Checks, in order: 401, 403 no_access, 415, the shape (400), 404, 409 stale_revision, the values (400), the agents (422 member_agent_refused), then 409 name_taken. A body that changes nothing writes nothing and keeps the revision.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The preset as saved
Samples
Delete one of the caller's team presets
Deletes it. A thread a preset started keeps its own copy (team_formed), so deleting a preset changes no conversation. With revision the preset must still be at it.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
"^[1-9][0-9]{0,18}$"Responses
Deleted
Samples
The caller's own prompts and the prompts shared with them, as summaries
A person's prompt library (ADR 0070, prompts-v1.md): the prompts the caller owns and the ones shared with a role of theirs. It needs no permission of its own. Summaries only: no body and no variables (variableCount says how many), so the answer is small; getPrompt has the whole. Ordered by id, bytewise, not by name: a client sorts for display. scope is all (the default: the caller's own, and the shared ones), mine or shared (the caller's own are left out). held is how many prompts the caller owns, whatever the scope. A page holds at most limit (100); nextCursor is there when more follow, and is sent back as cursor (a position, never a capability: it is the id of the last prompt of the page before). A shared prompt has no audience, no owner and no created time: it never names its author. Never cached.
Client recipe: using a prompt. (1) If getConfig has no prompts, offer no library. (2) List, and page with nextCursor until it is absent. (3) getPrompt for the one chosen. (4) Draw its variables as a Choices form with the client's own catalog renderer and collect the catalog's answer (answers); a client that cannot draw a kind of question does not offer the prompt. With no variables send answers: []. (5) renderPrompt with the answers and the revision; a 409 stale_revision means read the prompt again. (6) Put the text in the message box for the person to edit, and send it as an ordinary message: nothing here sends it. Draw a shared prompt's words as plain text, never as Markdown or HTML.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
all (the default), mine or shared; anything else is 400 bad_scope
"all""mine""shared""all"The nextCursor of the page before: a prompt id; anything else is 400 bad_cursor
Responses
One page of summaries
Samples
Save a prompt of one's own
Saves a prompt (prompts-v1.md): name (^[a-z0-9][a-z0-9-]{0,31}$, unique for the caller), title, description?, body (text with {{id}} references; \{{ writes {{), variables? (questions of the UI catalog, version 8, without show and without the type images: every one declared and used) and audience? (role values; "*" only alone; empty is private). Sharing needs prompts.share (no role holds it by default, admin included): a request whose audience is not empty without it is 403 forbidden, before the values are read. The checks run in one order (the vectors of requests.json and prompts.json hold them): 401, 403 no_access, 415, the shape (400 bad_request), 403 forbidden, the values (400 bad_name, bad_title, bad_description, bad_body, bad_reference, bad_variable, undeclared_variable, unused_variable, bad_audience, each with at and, for a reference, offset in UTF-16 code units), and last the store (409 name_taken, then too_many_prompts). The media type is exactly application/json, and the body at most 64 KiB. The caller holds at most 100. The text of a body, a title and an answer is in no log.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The prompt as saved
Samples
One prompt, with its body and variables
The caller's own prompt, or one shared with a role of theirs. Anything else is 404, the same answer as for an id that never existed: another person's private prompt, a shared prompt the caller's roles are outside of (an administrator included: admin reads no prompt that is not its own), an unshared one. A shared prompt's view has own: false and no audience. An id that is not p- and 12 characters of [a-z0-9] is 400 bad_request. Never cached.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The prompt
Samples
Delete a prompt of one's own
Deletes the caller's own prompt. Needs no prompts.share: a person can always withdraw what they shared. With ?revision=N (optional) it is 409 stale_revision when the prompt changed since. Another person's prompt, a shared one and an absent one are all 404. Nothing of a thread is touched: a prompt is in no thread.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
The revision the caller last read; when it is there and the prompt has another, 409 stale_revision. Not ^[1-9][0-9]{0,18}$ is 400 bad_request
Responses
Deleted
Samples
Change a prompt of one's own, or share it, or take its share back
Changes the caller's own prompt. revision is required (the one the last read gave) and at least one other member must follow: a member given replaces the whole member (variables is the whole list, audience the whole set). The checks run in this order: 401, 403 no_access, 415, the shape (400 bad_request), 404 (the prompt is not the caller's: another person's, shared with them, or not there), 403 forbidden (the resulting audience is not empty and the caller lacks prompts.share: a person who lost it can still send audience: [], and nothing that leaves a share in place), 409 stale_revision (the prompt changed since the revision), then the values of the whole prompt as it would be (the codes of createPrompt), and last 409 name_taken. A request that changes nothing writes nothing and keeps the revision. A write is one statement.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The prompt as it is now
Samples
Fill a prompt's variables and get the text, without sending anything
Substitutes the person's answers into the prompt's body and returns the text. It writes nothing: no message is sent, no thread is touched, and the answer is in no log. Allowed for the caller's own prompts and for the ones shared with them. answers is the Choices answer to the prompt's variables: one entry per variable, once each, in variable order, {id, values, other?, text?}; a prompt has no free box, so a note is refused. Every rule is in prompts-v1.md with vectors: a choice renders as its label, several as the labels in option order joined by ", ", a text verbatim, confirm as yes or no, a number, a scale point and a date as sent, a rank as 1. A; 2. B; an optional variable left alone renders as the empty string (its default is never used); nothing is trimmed and a value is never read again for references. The text is at most 32,768 bytes (422 rendered_too_long, decided before anything is built). With revision the prompt must still be at it (409 stale_revision: read it again). An answer that does not fit is 422 invalid_answer with the first refusal: question (a variable's id, or * for the whole answer) and rule (unknown, unexpected, required, too_many, too_few, not_offered, repeated, out_of_order, too_long, grammar, below_min, above_max, off_step, not_a_permutation). The checks run in one order: 401, 403 no_access, 415, the shape (400 bad_request), 404, 409, 422.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The text
Samples
Threads
Threads and what a person does to them: list, read, rename, arrange, fork, cancel, export, delete and helper sessions.
Operations
List the caller's threads, newest first or in their own order
The caller's own threads, and nobody else's: there is no listing of another person's threads or of everyone's, for any role (ADR 0039). A request that carries an owner parameter, whatever its value, is a 400 (owner is not supported (ADR 0039)); until 2026-10-03 it was the administrators' way to list others' threads.
Order (ADR 0042). recent (the default) is a flat list, id descending (ids sort by creation). rail is the order the person made of their list: the threads of the list's own level (the ones with no nestedUnder), the pinned first, then the rest, each by the place arrangeThread gave it (a new thread is on top; ties newest first), then the archived ones by when they were archived, newest first; and each is followed by the threads nested under it, newest first. With rail, limit counts the threads of the list's own level, so a page never splits a block, and before is the id of the last of them. before names a thread of the caller's: an unknown one, another person's, one nested under another (with rail) or one the archived filter does not list as a block (with rail) has no page after it: an empty list.
Archived. exclude (the default) leaves the archived out: with rail, a block archived by its parent goes with it, and a child archived alone is left out of its parent's block; with recent, each row by its own state. only lists the archived: with rail, the archived threads of the list's own level, each with all its children, and the threads archived while their parent is not, each on its own; with recent, the archived rows. include lists everything: with rail, the archived blocks last. Until 2026-10-03 the list had no archived threads, so the default changes nothing for a client that never archives.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
110050Cursor: thread id to page before
include: list the threads made by an edit of a message too (ADR 0029). Without it they are left out: an edit is a branch of a conversation the list already shows (listBranches says where its siblings are), and limit counts the threads listed. A thread made by "fork from here" is a conversation of its own and is always listed.
"include"recent (the default): newest first, flat. rail: the person's own order, blocks of a thread and the threads nested under it (ADR 0042)
"recent""rail""recent"exclude (the default): the threads that are not archived. only: the archived ones. include: all of them
"exclude""only""include""exclude"Responses
Threads
Samples
One thread
A thread the caller may read: their own. Another person's is a 404, the answer for one that does not exist, whatever the caller's roles (ADR 0039). A thread that is shared has share, with the link (url), and the response is then Cache-Control: no-store.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
Thread
Samples
Delete a thread, and erase it
Deletes the caller's thread and every thread made from it by an edit, transitively (an edit is a branch of the conversation that the list does not show, so deleting only the visible one would leave copies the person can no longer see or erase), and erases them (ADR 0043):
- the log, the outbox, the agent binding, the watches and the timers are deleted, in one transaction;
- the share goes with the row: every link to the thread, a signed-in reader's and a public one, is a 404 from that moment, and a stream open on it, the owner's or a reader's, ends (the client reconnects and is told the thread is not found);
- the files of the thread and of its edits are erased from the artifact store right after, or within a sweep of the orchestrator's workers when the store is down (the answer does not wait for a sweep: the log is gone, and so is anything that referred to a file);
- forks are kept: a fork is a conversation of its own (
forkedFromhas nothreadIdany more) and, when it was nested under the deleted thread, takes its place in the caller's list, in the section (pinned, archived) and the order it had.
A thread that works is refused, 409 thread_active: it is queued, working or verifying, or an agent its job asked is still running (the same goes for an edit of it). Deleting would cascade the unsent request to stop the agent away, and the agent would go on working, perhaps pushing to a repository. Stop it (cancelThread), wait for a terminal state on the stream (stopping is a request, not a state: the thread ends when the agent reports it), and delete it. A blocked thread, which waits for the person, can be deleted.
Needs thread.delete and the thread to be the caller's, not thread.write. A deployment can withhold it (a legal hold, for instance); the people of such a role are erased by the operator. What stays out of reach, and is not promised away: the A2A agent's own store of its context, the model provider that saw the conversation, backups until they expire and, in a build that hosts an agent in-process, the agent's journal rows for the context. A second DELETE is a 404.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The thread, and its edits, are deleted: their log is gone, their links are 404, their files are erased or on their way
Samples
Rename a thread, write its description, or set its default model and reasoning effort
Changes what a person writes about the thread, in any state of the thread, finished ones included (a title and a description label the conversation, not a job). At least one of four members is given:
title: the thread's new title. Trimmed, then one line of 1 to 200 characters with no control character. A rename is logged as athread_titledevent (source: user) and is final: nothing else replaces a title a person wrote. Renaming to the title the thread has from the person already writes nothing.description: the thread's description (ADR 0035): what the conversation is about now, in a sentence or two. Trimmed, then one line of 0 to 500 characters with no control character; an empty one clears it. It is logged as athread_describedevent (source: user) and is final, an empty one included: the model is never asked for this thread's description again, and one it had in flight is dropped. Writing the description the thread has from the person already writes nothing.modelandreasoningEffort(ADR 0086,model-pick-v1.md): the thread's default pick, what a message that names none is sent with (a message's own pick wins, then the thread's, then the agent's own default). A model alias, or one ofnone,minimal,low,medium,high,xhigh,max;nullclears it, and a member that is absent is left as it is. It is checked when it is set against the thread's agent's live card, so a choice the agent does not offer is a 422 (model_not_offered,reasoning_not_offered, withoffered) and nothing is written; it is checked again whenever a message resolves to it. It is a setting of the thread row: no event records it, and a fork or an export does not copy it. The answer then carries the default as it is now inmodelandreasoningEffort.
All are checked before any is written, so a 400 changes nothing. A member other than these four is a 400, so that a client that thinks it can change more learns it cannot. The caller's own threads only (thread.write): someone else's is a 404 indistinguishable from one that does not exist, whatever the caller's roles. Everything else about the thread is as getThread says.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The thread, with what was changed
Samples
Pin, archive, move or eject a thread in the caller's list
Changes how the caller's own list shows one thread (ADR 0042): a change of the thread's row, written to no event of its log (the log is the conversation, which a fork copies, an export carries and the readers of a share see: none of them sees or inherits it), so version, updatedAt and the thread's events do not change. At least one member is given, and an unknown one is a 400:
pinned:truepins the thread and puts it on top of the pinned;falseunpins it and puts it on top of the rest. Pinning a thread that is pinned writes nothing.archived:truearchives the thread (it leaves the listlistThreadsgives by default and is listed witharchived=only),falsebrings it back in the place it had. Archiving does not touch a share: the link keeps working, andsharestays on the thread.nested:falseejects a thread nested under another (a fork made nested under its parent): it becomes a thread of the list's own level, right after the block it left (on top of the unpinned when that block is pinned or archived). ItsforkedFromis untouched: ejecting is display grouping, not history. A thread that is not nested has nothing to eject.nested: trueis a 422: nesting a thread by moving it is not built.place: where a thread of the list's own level goes among the caller's:"top"(on top of its section),{"before": id}or{"after": id}(right before, or right after, that thread). The server makes the place; a client never sends a key. The anchor must be a thread of the caller's that is on the list's own level, not archived and not the thread itself, else 422bad_anchor; a client that gets it reads the list again. Withnested: falsethe place is where the ejected thread goes. A thread nested under another is not pinned and not placed: 422nested_row(eject it first, or givenested: falsewith the place).
Changing a row to the state it already has is a 200 that writes nothing. Two arrangements at once may leave two threads of one place: they are ordered newest first, and nothing errors. It needs the thread to be the caller's and thread.read, not thread.write: it changes nothing in the conversation and nobody else sees it, the way taking a share down needs only ownership. Another person's thread is a 404 indistinguishable from one that does not exist, whatever the caller's roles.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The thread as it is now, with pinned, archived and nestedUnder where they hold
Samples
Set the MCP servers attached to a thread
Sets the whole set of MCP servers attached to the thread, in any state of the thread, finished ones included (a thread is a conversation: the set applies to the next message sent to the agent). servers lists the ids, from listToolServers, that should be attached afterwards. What differs from what the thread has is logged as a tools_attached and a tools_detached event (attributed to the person); the same set writes nothing and is still a 200, so the call is idempotent. The agent is told the attached servers it may use (attached of the thread-tools/v1 message) and finds their tools on the thread's endpoint; an agent whose card does not list thread-tools/v1 gets nothing, which a client says before the person sends (the capabilities document).
Anyone who may act on the thread (thread.write) may attach, the servers the deployment offers for the thread's agent (their agents), and the servers the thread's owner added themselves (ADR 0046, ids that start with u-, listUserToolServers) that are ready. A person's server has no agents list. A server the thread has already is not checked again: a deployment that stopped listing it, or a server of the person's that needs a new key, leaves the thread its attachment, and a person can detach it. Attaching asks the credential broker for nothing. A thread that is not the caller's is a 404 indistinguishable from one that does not exist, whatever their roles. Attaching a server the thread does not have is for the agent that will use it, so it takes agent.invoke for the thread's agent, its audience included (ADR 0045): for a thread whose agent the caller may no longer use, which is read-only for them, it is a 403. Keeping the servers the thread has, or taking them off, is not attaching and is still theirs.
A server of the person's that is not ready is a 422 with a code a client acts on: tool_server_needs_auth when the person has something to do (the server has no key or authorization yet, its key or authorization ended, it was disconnected: the picker's needs_auth), and tool_server_unavailable when a cause outside them has to clear (they lack tools.user.add, today's egress lists refuse the server, the deployment keeps no credentials: the picker's unavailable). The detail names the id and says why in words. A server that is not the caller's own, one that does not exist, a malformed u- id and a deployment that has people's own servers off are all the same 422, with no code and the sentence of an unknown id, so the answer does not say whether somebody else has a server by that id.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The set after the change
Samples
The whole thread as one JSON file, to share with a developer
Everything the orchestrator holds about the thread, as a versioned ThreadExport document: the thread, its full job ledger (the gate, the attempt, the pushed commit, what each source said), the agent binding and the complete event log. Every card and line of the chat is derived from that log. Authorised exactly like getThread (thread.read): a thread the caller may not read is a 404 indistinguishable from one that does not exist.
The response is an attachment (Content-Disposition: attachment; filename="thread-<id>.json") and is never cached. It contains what the people and the agents wrote in the thread (messages, artifacts, findings, CI summaries) and the owner's e-mail address (thread.owner, and the actor of the owner's messages); it holds no credential the orchestrator uses (no bearer token, webhook secret or database URL is ever in the log). Read it before sharing it: a person can paste anything into a chat.
Client recipe: Export Markdown. The same document is the input of the Markdown file of thread-markdown-v1.md: a client writes it from this response, with no other request, so that every client writes the same file. Only what this export holds is written, and not a step's input or output. A share link has no export route, so a reader of a link cannot make that file (a gap the page names).
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Header Parameters
The build of the web that asks, as the web sends it (NEXT_PUBLIC_BUILD_REVISION, the commit its image was built from): written into the file as versions.web.revision (ADR 0053). 1 to 64 characters of letters, digits and ._+-; anything else, or no header, is written as unknown. It authorises nothing and is the caller's word.
64"^[A-Za-z0-9._+-]{1,64}$"Responses
The thread export
Samples
Cancel the thread's running work (A2A tasks/cancel on the target)
On a child thread ({ADR}) it stops the round the helper session is working on (CancelTask of that round): a kept-open session goes idle and takes the next message, any other session closes with the round.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
Cancellation requested; the outcome arrives as events
Samples
Close the helper session of a child thread
Asks the agent to close the session this child thread (ADR 0072, child-sessions-v1.md section 6): an idle session closes at once, a working one when its round ends, and with cancel: true its round is stopped first. The thread's owner only (thread.write; another person, an administrator included, gets 404). The request is asynchronous: the answer says what the orchestrator knows after it, and the outcome is the child's child_session_state event. A session that is closed already, or whose close was asked with the same or a stronger cancel, answers 202 and writes nothing.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
Close asked
Samples
Start a helper session from a thread
A person starts a helper session of the thread's agent (ADR 0072, child-sessions-v1.md section 4): text is round 1's prompt, which the parent's model does not read. The thread's owner only (thread.write, and agent.invoke on the thread's agent). Asynchronous: the answer is 202 with the request's id, written before anything is sent to the agent; the outcome is the parent's child_session_start_ended event, opened with the child thread or failed with the agent's own words (reason, untrusted), which cover what only the agent can refuse: its limit of open sessions, of rounds working at once, of rounds per session. The text of a start that fails is not kept: a client keeps the draft until the outcome arrives. The request's id makes a repeat safe: the same id again answers 202 and writes nothing. At most 4 starts of one thread may wait for their outcome.
Every refusal below is decided before anything is written. The helper sessions of a child thread are never started from it, and the card is read live (a card that stops offering the extension, or does not list the helper, refuses).
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
Start asked; the outcome arrives as child_session_start_ended in this thread's log
Samples
Fork a thread from a point, or branch it by editing a message
Makes a new thread that begins as a copy of this one (ADR 0029): the parent's events up to a cut, with the same seq, then a thread_forked event, then the new thread's own. The parent is not changed. The fork has its own A2A context, the parent's title (a person's rename of the parent stays theirs in the fork), the deployment's gate for its agent, and the same owner.
after(aseq): fork from here. The cut is the end of the turn that holds that event: the last event before the next message or action of a person, or the end of the log. The fork isdone, a finished job: its next message starts the next job and is sent to its agent with the earlier conversation in front of it. A turn that is still going on (the thread isqueued,workingorverifying, and nothing follows the event) cannot be copied: 409,code: turn_open. Withtarget, this is also "continue with another agent".afterwithtext(andmessageId): the fork is made with its first message (ADR 0042, decision 8). The copy,thread_forked, the message and the next job's start are one transaction, as for a new thread, so the fork isqueuedat once and its agent is told the conversation it continues together with the message; nothing exists if any part is refused. This route carries no mentions and no UI catalog: the AG-UI run (runAgent,forwardedProps["vymalo.fork"]) does, and is what the web sends. A repeat with the sameid, the sameafterand the same message answers the fork it made (200) and writes no second message; the sameidwith another message or cut is a 409.replace(theseqof a person's message) with the newtext: edit. The cut is the event before that message, which may be 0; the fork then holds the new message, the next job's start and its delegation to the agent, and isqueued. The thread is a branch of the one it was made from: it is left out oflistThreadsunless asked for, andlistBranchesfinds its siblings. A conversation holds at most 256 threads, its first thread and the threads made from it this way: the 256th edit is a 409.
Regenerate the last answer is an edit with the same words; the server has no route of its own for it (ADR 0029, amended 2026-11-14). A client does this:
- Take the person's message that began the newest turn and
POST{id, replace: <its seq>, text: <its words, unchanged>, messageId}. Send notierand nolocale: the server then keeps the replaced message's tier and interface locale (below). The answer is a new version of that message:listBranchesfinds it, and the client goes to the new thread. idandmessageIdare new UUIDs for each regenerate and the same ones for a retry after a failure (a lost response, a 5xx), so a retry never makes a second thread; the next regenerate, of the same message too, mints new ones.- Do not offer it when the client can see, from what the API gives it, that the edit would lose something: the thread is
queued,workingorverifying(the turn is not over); the thread isblockedwith a question open (the edit would drop it); the newest turn did not begin with a message of a person but with a form answer (ui_action, thevymalo.actionactivity: there is no message to replace); the message mentioned agents (vymalo.mentionsin itsSTARTmetadata: an edit carries none); the message was sent while the agent worked (vymalo.delivery,steerorinterrupt: the turn also holds the agent's earlier work, which an edit of that message keeps, so it is not "again"); the caller holds nothread.write(getMe); or the thread is read through a share link (the owner's routes are a 404 to a reader).
The server enforces only the caller's thread.write (403), ownership (404, a share link's reader included), that replace is a message of a person (422) and the tier rules below. Everything else in step 3 is the client's courtesy: a request that ignores it is accepted. The seq of a person's message is the resume point (SSE id:) of the last frame of that message in the stream (agui.md).
tier (ADR 0061, access-tier-v1.md) is the access tier of the message the fork carries, one of plan, edits, auto, bypass, read as forwardedProps["vymalo.tier"] is; it goes with text. An edit that names none is sent under the tier of the message it replaces, lowered to what the caller's roles allow and the agent's live card honours (422 this agent no longer lists access tiers or has no tier at or below ... when it cannot be kept). A first message that names none, from a caller with a role cap, is sent under the highest tier the agent offers that is not above the lower of its default and the cap, as for a new thread.
target names the agent and release the fork talks to (the parent's when absent), validated as for a new thread: an agent the caller's audience leaves out (ADR 0045) is a 400 "unknown agent" in the words, and with the shape, of one that is not listed. id is a UUID the caller chose for the new thread: a repeat of the request with the same id answers the fork it made (200) and writes nothing; the id of another thread is a 409. The caller's own threads only; someone else's is a 404.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The fork this request's id named, made by an earlier request
Samples
The messages of a thread that have other versions
The conversation this thread is a branch of (ADR 0029): threads made from one another by an edit of a message. points are the messages of this thread that have other versions, in the order they come, each with every version (the original first, then the edits in the order they were made) and which of them is this thread's, so that a client can show ‹ 2 / 3 › under the message and move between the threads. Everything of a thread up to its cut is its parent's, so it shows the parent's versions there. A thread made by "fork from here" is not a version of anything: it starts a conversation of its own. root is the thread the conversation started from. A thread that was never edited has no points. Authorised like getThread.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The branches
Samples
A file an agent handed over, from the artifact store
The content of a file of the thread (ADR 0032): the file of an artifact event, href of the projected artifact on the owner's streams and pages (a reader of a share link is given getSharedArtifact's or getPublicSharedArtifact's route as the href, ADR 0040). sha256 is the content's hash in 64 lowercase hexadecimal digits, and the file belongs to the thread in the path: no thread reaches another's by hash. Authorised by the permission artifact.read (ADR 0033) over the thread: the thread's owner, and nobody else (ADR 0039). Another person's thread, a thread that does not exist, a hash the thread holds no file for, a hash that is not 64 lowercase hex digits and a deployment with no artifact store are all the same 404; a caller whose roles hold no artifact.read gets a 403 (code: forbidden), whatever they ask for.
The body is streamed from the store. Content-Type is the type the worker kept (it sniffed it: an image whose bytes disagree with its declared type is application/octet-stream) for a preview type, and application/octet-stream for every other type (a kept text/javascript or text/css is never sent as one: the web allows scripts and styles of its own origin). A request whose Sec-Fetch-Dest is script, worker, sharedworker, serviceworker, style or object is a 403 (code: forbidden) before the file is opened; the shared routes do the same.
- Inline (no
download, ordownload=0): only for the preview types,image/png,image/jpeg,image/gif,image/webp,image/svg+xml,text/plainandapplication/json(the last two with; charset=utf-8), withContent-Disposition: inline; filename="…". An SVG is sanitized first (orch-svg-clean: no script, noforeignObject, no external reference, no event handler); one that is larger than 2 MiB or cannot be sanitized is sent as an attachment instead. Every other type is an attachment only. - Download (
download=1):Content-Disposition: attachment; filename="…", the original bytes. The file name is the agent's, cleaned: one name with no path, no control or direction character, a printable ASCII fallback infilenameand the real name asfilename*=UTF-8''…(RFC 6266, RFC 5987); a file without a usable name isartifact-<8 hex digits of the hash>.
Every response, inline or not, carries X-Content-Type-Options: nosniff, Content-Security-Policy: default-src 'none'; img-src 'self' data:; style-src 'unsafe-inline'; sandbox, Cache-Control: private, max-age=31536000, immutable (the URL is the content's hash) and ETag: "<sha256>".
A redirect (ADR 0058, A1, amendment of 2026-10-14). When the deployment sets artifacts.s3.downloads: redirect (off by default: the web fetches a file with fetch, whose connect-src does not list the files host) and the artifact store can presign, the answer is 302 with Location set to a presigned GET on artifacts.s3.publicEndpoint, valid for artifacts.s3.presignTtlSecs (300 by default), and Cache-Control: private, no-store. It comes after every check above, which are unchanged and run first: a refusal is never a redirect, and a file the store does not hold is the same 404. The file is not read to be redirected. The URL carries three signed query members, so the holder cannot change them: response-content-disposition (inline for a preview type without download, else attachment, both with the cleaned name as above), response-content-type (the kept type for a preview type, application/octet-stream for every other) and response-cache-control (private, max-age=<lifetime>). The bytes, and X-Content-Type-Options, Content-Security-Policy and the CORS headers, are the files host's: none of them is on the 302. An SVG without download is never redirected: it is sanitized and streamed as above; with download=1 it is redirected like any download. A store that cannot presign, and artifacts.s3.downloads: stream (the default), stream as above. If the URL cannot be signed the answer is a 5xx problem (503 for a store that is unavailable, 500 for a fault of the deployment), never the bytes.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
1 (or true) sends the file as an attachment; 0, false or absent shows a preview type inline. Any other value is a 400.
"0""1""false""true"Responses
The file
Samples
A file of a shared thread, for a signed-in reader
A file of the thread a link names (ADR 0040): needs artifact.read as well as thread.read, and the file must be one the thread's own log names, found among the newest 1000 artifact events of the thread (a file named only by an older one is the same 404 through a link; the owner's getArtifact still serves it). Sent as getArtifact sends a file (sanitised SVG, nosniff, the sandboxing Content-Security-Policy, an attachment unless it is a preview type) except that it is Cache-Control: no-store, not the immutable cache of the owner's files, so a revoked file is not kept by the reader's browser.
With artifacts.s3.downloads: redirect it answers 302 as getArtifact does, with two differences: the response is Cache-Control: no-store (the rule of everything served through a link), and the presigned URL lives at most 60 seconds (min(artifacts.s3.presignTtlSecs, 60), and its response-cache-control says so), so a link that is taken down stops serving a file within a minute. A URL already issued cannot be recalled: S3 has no revoke.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
"0""1""false""true"Responses
The file
Samples
A file of a public shared thread, for anybody
As getSharedArtifact, for anybody, and only when sharing.public.files is on (otherwise the one 404). The file must be one the thread's log names, among its newest 1000 artifact events. Cache-Control: no-store. With artifacts.s3.downloads: redirect it answers 302 to a presigned GET that lives at most 60 seconds, as getSharedArtifact does.
Parameters
Query Parameters
"0""1""false""true"Responses
The file
Samples
Share a thread by a link, or change who may read it
Shares one of the caller's threads (ADR 0040): internal (signed-in people who have the link) or public (anybody who has it), read-only for them. A first share draws a nonce; a widening or a narrowing keeps it, so the link is the same. The same visibility as the thread has is the current link and writes nothing. Logged as a thread_shared event, in the commit that sets the thread's row. Needs thread.share, over the caller's own thread, within the deployment's cap (sharing.mode).
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The link
Samples
Take a link down
Stops sharing: the thread is private again, the nonce is gone, so the old link is a 404 from that moment and a stream open on it ends; sharing again makes a new link, a revoked one never comes back. Logged as a thread_unshared event. Needs only ownership: it is never refused for the deployment's cap or for a missing thread.share, so an owner can always take a link down. A thread that is not shared is left as it is: 204.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The thread is private
Samples
A new link for a shared thread
Draws a new nonce, so the old link is a 404 from now on and the thread stays shared at the visibility it had (ADR 0040). Logged as a thread_shared event with a new nonce_sha256. Needs thread.share, over the caller's own thread.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The new link
Samples
A shared thread, for a signed-in reader
The thread a link names, as a signed-in person is given it (ADR 0040): the reader projection, with no owner, no parent and no tools. Served when the thread is effectively internal or public. Needs thread.read at any scope (the link is the grant): no role, admin included, reads a thread through it that the link does not name, and a reader acts on nothing. The thread's events come by connectSharedThread. A reader who is the thread's owner is told so (isOwner). Never cached.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The shared thread
Samples
A public shared thread, for anybody
The thread a link names, for anybody (ADR 0040): no identity, no cookie, and an Authorization or identity header is ignored (the orchestrator does not run the authenticator here, and the edge strips them). Served only when the thread is effectively public; an internal link is a 404. It is the reader projection of a public reader: step input and output and files are not in what follows unless the deployment's sharing.public says so, and the owner's address never is. Rate limited per link and in all (a 404 costs the shared bucket more, so guessing tokens is throttled): 429 with Retry-After. Cache-Control: no-store, X-Robots-Tag: noindex, nofollow.
Responses
The shared thread
Samples
Run an agent (AG-UI 1.0 HTTP + SSE binding)
The standard AG-UI run endpoint (ADR 0012, agui.md). Creates a thread (the consumer mints threadId, a UUID), sends a message, answers an interrupt (resume), sends the user's action on an A2UI surface (forwardedProps.a2uiAction.userAction, ADR 0013) or attaches to a run already in the log (a retry with the same runId). The response streams the AG-UI events of that run, from RUN_STARTED to RUN_FINISHED or RUN_ERROR, then ends; closing it never cancels the run.
A run whose threadId names no thread may create it as a fork with forwardedProps["vymalo.fork"] = {from, after} (ADR 0042, decisions 8 and 9, agui.md): the parent's events up to the end of the turn that holds after, thread_forked and the run's message are one transaction, and the response is the run that message opens, from its RUN_STARTED, nothing of the copied turns. It needs thread.write on from (the caller's own thread, else 404) and agent.invoke on the run's agentId, which may be another agent than the parent's; vymalo.mentions and vymalo.uiCatalog apply to the message, and it is a 400 together with vymalo.gate or vymalo.tools (a fork has the deployment's gate and its parent's tools). The member is read on a run that creates the thread; a thread that exists already answers it only when it is the fork the same request made (the same from, after and runId, the same person's): the replay, which attaches to the run and writes nothing, so a resend after a lost response is safe. Any other existing thread is a 409.
A run that carries a message may name the access tier the agent works under for it with forwardedProps["vymalo.tier"] (plan, edits, auto or bypass, ADR 0061, access-tier-v1.md, agui.md). It is read on every run (a member that is not one of the four words is a 400), checked against the person's role cap (auth.roles.<role>.maxTier: 422) and the thread's agent's live card (422 when it does not honour the tier, 503 when it cannot be read) before anything is written, and never silently dropped; it is logged on the user_message (tier), shown on the message's TEXT_MESSAGE_START metadata (vymalo.tier) and sent to the agent only while its card still honours it. A message that names none is not always sent as plain A2A: a person whose roles cap the tier for this agent is given the highest tier the agent offers that is not above the lower of its default and the cap (422 when it offers none), an answer to a blocked job or an action on a surface continues the tier of the job, lowered to the cap and the card, and a person with no cap who names none is sent the message it always was. What the message was sent under is what the log says. The tiers an agent honours, and the highest the person may pick of that agent, are in getAgentCapabilities; maxTier of getMe is a hint.
A run that carries a message may also pick the model and the reasoning effort the agent answers with, with forwardedProps["vymalo.model"] (an alias the agent's card offers: 1 to 64 characters of a-z0-9._-) and forwardedProps["vymalo.reasoningEffort"] (none, minimal, low, medium, high, xhigh or max), ADR 0086, model-pick-v1.md. Each is read on every run (a value that is not one is a 400). A pick is not a hint: the message's own pick wins, then the thread's default (patchThread), then the agent's own default, and the result is checked against the thread's agent's live card before anything is written: a choice the card does not list is a 422 with code: model_not_offered or code: reasoning_not_offered and offered, the list the card offers (empty when it lists none), and nothing is written; a card that cannot be read is a 503. The resolved pick is logged on the user_message (pick: {model?, reasoningEffort?}, omitted when none), so a redelivery, a fork's first message, an edit and an export carry it; it is sent to the agent only while its card still offers it, and an agent that answers InvalidParams leaves the message undelivered, never retried without the pick.
On a child thread (ADR 0072) the run is a message to the helper session: with the session idle it is the helper's next round, with a round working and vymalo.send: steer a steer into it, with the round waiting for the person (blocked) the answer to it. A Stop & send (vymalo.send: interrupt) is allowed only for a kept-open session. A message that mentions agents is refused (a helper cannot ask other agents). What only the agent can refuse (its limit of rounds working at once, of rounds per session) ends the job with error carrying the agent's own words.
Every rejection is decided before the first stream byte and is a problem response; nothing was written. Cancel a run with cancelThread.
A message over the person's role's messages_per_minute (auth.roles.<role>.limits.messagesPerMinute, ADR 0081, decisions 2 and 4) is refused before anything is written and before any agent is asked: 429 with Retry-After (the whole seconds until the oldest message of the last minute leaves it) and a problem that names the limit and its value: code: over_limit, limit: messages_per_minute, inUse (the messages the minute holds) and max (the role's value). The count is the person's user_message events of the last minute, read from the log, so every replica counts the same and a restart loses nothing; a role that sets no limit, and a deployment that sets none, refuses nothing.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
The run's events (text/event-stream); frames carry id: on resume points
Samples
Follow a thread (AG-UI, our connect extension)
Our documented extension of the AG-UI transport (agui.md): replay the thread's events as AG-UI runs, then follow it live across runs, with keepalive comments at least every 15 s. Last-Event-ID (the id: of the last frame the client holds, a log seq) resumes after that point on any replica; absent or empty replays the whole thread. A cursor beyond the last seq waits for new events. mode=run closes the stream after the active run's terminal event, or right after the replay when no run is open. Closing the stream never cancels a run.
The stream ends after the deployment's lifetime (60 s by default, ADR 0082), whatever credential it was opened with: the shortest of the token's expiry plus its leeway, an hour, and the lifetime. Ending is the ordinary path, not an error: nothing leaves the log, and a client that reopens the stream with the last id: it saw is shown every later event exactly once.
Where the log ends. A frame carries an id: (a resume point) and some events have no frame, so a log can end in events (thread_shared, thread_unshared, ui_catalog) that no id: names. When the replay has reached the thread's last event and the last id: written is below it, and after any later event that has no frame, the stream writes the seq of the last event it has read as an id: with no data:: a block the SSE parsing rules dispatch no event for, so a client that does not know of it reads the stream as before, and one that does knows it holds the thread's lastSeq. It is a valid Last-Event-ID, never written while a text message of the log is open, and never to a client that holds the head already.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Header Parameters
Resume after this seq: the id of the last frame the client holds
"^[0-9]*$"Query Parameters
run: close after the active run; absent: follow across runs until the lifetime ends the stream
"run"Responses
The thread's events (text/event-stream); frames carry id: on resume points
Samples
Follow a shared thread, read-only (AG-UI), for a signed-in reader
connectThread for a thread a link names (ADR 0040, agui.md): the connect stream over the reader projection, replayed from the start or from Last-Event-ID and then followed, so what the owner writes after sharing is shown too. It starts no run and takes no input. The stream ends when the link is taken down, replaced by a new one, or narrowed below internal, at the token's expiry, and at the deployment's lifetime like every stream (an hour at most, ADR 0082); a reader whose stream ended at its lifetime reopens it with its last id:, and one whose link was revoked gets the 404. The href of a kept file in its frames is getSharedArtifact's route, and where the log ends is told as connectThread tells it (an id: with no data:), which for this thread is usually the share itself.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Header Parameters
"^[0-9]*$"Query Parameters
"run"Responses
The shared thread's events (text/event-stream), Cache-Control: no-store, no-transform
Samples
Follow a public shared thread, read-only (AG-UI), for anybody
connectSharedThread for anybody, outside the identity layer, for a thread served as public, over the public projection. Rate limited like getPublicSharedThread, and each open stream holds one of the link's stream permits (5 per link and 50 in all, by default): 429 when they are taken. It ends at the deployment's lifetime, like any stream (an hour at most, ADR 0082), and the reader reopens it with its last id:. The href of a kept file in its frames is getPublicSharedArtifact's route, and where the log ends is told as connectThread tells it.
Parameters
Header Parameters
"^[0-9]*$"Query Parameters
"run"Responses
The shared thread's events (text/event-stream)
Samples
A page of a thread's history, from its newest settled turn back (AG-UI frames, our extension)
A finite read of the same projection connectThread streams (history.md, ADR 0059): a whole number of settled chains of runs, as one JSON document, so that a client opens a long thread at its end and loads older turns when the person scrolls up, instead of replaying the whole log. With none of the query parameters it is the newest ui.history.pageTurns turns; before goes back from a point, since back to an event, after is a catch-up. The page's end is a settled point: Last-Event-ID: <end> on connectThread gives the rest, with no run to reopen, and says the chain still open in full. The frames are a replay's, never live text. The presence of ui.history in getConfig says this route exists.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
An event of the chain the caller holds the page of, normally the start of its oldest page: the answer is the turns that precede the chain that holds it. A value beyond the log counts as absent. Not with after
1How many turns, 1 to server.history.maxTurns (default ui.history.pageTurns). Not with since or after
1Go back at least to the chain that holds this event, never beyond maxTurns turns or maxPageBytes. Inclusive: the event itself is in the page, with the rest of its turn in front of it (a page starts at a turn's first event, so it may start earlier than since), unless a limit stops it first. A hit's seq opens the thread with it. Not with limit or after
1A catch-up: the settled chains after the chain that holds this event, to the newest settled point (at most maxTurns turns). The answer has anchor. Not with limit, since or before
1Responses
A page; Cache-Control: no-store
Samples
A page of a shared thread's history, for a signed-in reader
getThreadHistory for a thread a link names (ADR 0040): the same pages over the reader projection, read-only. Cache-Control: no-store and X-Robots-Tag: noindex, nofollow.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
1111Responses
A page
Samples
A page of a public shared thread's history, for anybody
getSharedThreadHistory for anybody, outside the identity layer, for a thread served as public, over the public projection. Rate limited like getPublicSharedThread, and holds one of the link's stream permits for as long as it folds, as an open connectPublicSharedThread does (5 per link and 50 in all, by default): a page costs a full fold, and the permit is what bounds how many run at once. 429 when they are taken.
Parameters
Query Parameters
1111Responses
A page