HTTP API
The HTTP API serves every operation of Auto Runtime. It covers playbooks, function and workflow definitions, runs and their history, and requests. It also covers events, analytics and the tool servers a playbook's functions may use. This page lists every route with its fields, limits and errors.
The MCP endpoints serve the same operations as tools. A definition's type is reasoning, lookup, interaction, prediction, computation, generation or workflow.
Requests and access
Send requests to the server's address, such as https://auto.example.com, the PUBLIC_URL of a team's runtime, with a credential.
- Org routes begin at
/v1/orgs/{org}. Playbook routes begin at/v1/orgs/{org}/playbooks/{playbook}. - Send the credential, an API key or a signed-in person's token, as
Authorization: Bearer <key>. Keep credentials out of prompts and source documents. - A server in local mode asks for no credential. The Sign-in and token reference gives the rules the server applies to credentials.
- Send command bodies as UTF-8 JSON with
Content-Type: application/json, at most 1 MiB and 64 KiB: a run's input of 1 MiB and the rest of the request. Compressed bodies are not accepted. - Query parameters are for
GETandDELETErequests, which take no body. A field may be supplied in only one place.
Each API key belongs to one org and has permissions for a set of playbooks:
| Permission | Lets the caller |
|---|---|
org:read | Read the org's playbooks and connections, list models and providers, search the org's tool servers, read the org's activity and mark it seen, make, read and resolve the org's own comments, and list the members and who holds which role |
org:write | Create, update and retire playbooks, add, reconnect and remove connections, set which playbooks may use one, and, for a person whose role lets them, give or take away a role |
playbook:read | Read definitions, runs, history, events, requests and analytics, search and read tools, make, read and resolve comments, and transcribe a recording |
playbook:write | Create, change, retire or run a function or workflow, cancel a run, send or publish an event, answer a request and call a tool |
playbook:run | Run a function or workflow, cancel a run, send or publish an event and answer a request. playbook:write includes it |
Each route table below names the permission a route needs.
When the server sends telemetry, every response except that of /health carries its trace id in the x-trace-id header. A request with a W3C traceparent header continues the caller's trace.
The OpenAPI document, the guides and the API catalog
| Method and route | Returns |
|---|---|
GET /v1/openapi.json | The OpenAPI 3.1.1 document of this API |
GET /v1/guides/{guide} | One guide, as text/markdown |
GET /.well-known/api-catalog | The API catalog of this server, as application/linkset+json |
GET /health | Whether the server is up |
GET /debug | A page of everything an agent receives over MCP |
These five need no key, and neither does content at a signed address, whose signature is its credential. Where sign-in is on, the protected resource metadata needs no key either. It is served at /.well-known/oauth-protected-resource and under the path of each MCP endpoint. Where the runtime signs people in at an https PUBLIC_URL, the client metadata document, by which Auto names its own client when a person connects a provider by consent, needs no key either. It is served at /oauth/client.json.
The OpenAPI document
The server builds the document when it starts, from its operations: the same operations its routes and its MCP tools serve.
- Each operation appears once. Its
operationIdis the operation's name, withsearch_in_orgfor the org'ssearch,make_comment_in_org,list_comments_in_org,resolve_comment_in_organdreopen_comment_in_orgfor the org's own comments,list_models_in_orgfor the org'slist_models, andlist_generation_models_in_orgfor the org'slist_generation_models. Its summary is its title. Its tag names the resource it acts on. - Its description is its MCP tool's description. An operation served only over HTTP has no tool, so its description is its own: the nine routes of Studio's connection page,
read_link,approve,choose_way,choose_provider,create_service_account,give_credential,give_client,startandfinish;get_connection,test_connection,set_connection_playbooks,set_connection_account_type,set_connection_signing_secret,remove_connection_signing_secretandlist_providers;get_run_history,get_playbook_analytics,render_page,render_playbook_pageandvalidate;show_workflow_design,agree_workflow_designandget_workflow_design;show_event_to_send;make_commentandmake_comment_in_org, andreopen_commentandreopen_comment_in_org;list_org_changes,list_playbook_changes,list_activityandmark_activity_seen;list_role_assignments,assign_roleandunassign_role, and, where the runtime signs people in,invite_admin,resend_invitation,revoke_invitation,set_member_role,remove_member,get_enrolmentandset_enrolment;transcribeandget_voice;get_content, the route of content at a signed address; andget_license,activate_allocationandreport_allocation. - Its input is in the path, and in the query string of a
GET. A command, or a query routed byPOSTsuch asvalidate, takes it in the JSON body. - Its schemas are JSON Schema 2020-12. Each has its own
$idunderhttps://on.auto/schemas/runtime/, with its definitions inside it. - Each problem an operation can return is listed under its status.
- The server URL is the relative
/v1, so the document stays valid behind any host.
A client library can be generated from the document, and a gateway that accepts OpenAPI documents can add the runtime from it. The document of the release these pages describe is published at https://on.auto/runtime-openapi.json, so a client library can be generated without running a server.
The guides
GET /v1/guides/{guide} returns one of the guides that the MCP endpoints serve as guide://{guide}, with the same text. The guides say where an agent starts and what the words mean, give the format of each definition type and the filters of every template, and hold the recipes for common tasks. The OpenAPI document lists their names. Each guide has its own path. So the server treats an unknown guide name like any other path it does not serve: without a key, the response is 401.
The API catalog
GET /.well-known/api-catalog returns a linkset in the API catalog profile. It lists the API at /v1, described by the OpenAPI document and documented by each guide with its title, and the API's status at /health.
- Every address is absolute. It is based on
PUBLIC_URLwhen that is set, and otherwise on the origin the request arrived at. - Behind a proxy, that origin is the scheme and host the server itself receives. The server reads no
X-Forwarded-*header. - Responses for the catalog,
HEADincluded, carryLink: <…/.well-known/api-catalog>; rel="api-catalog".GET /healthcarries the same relation, so a client given only the health address can find the catalog, and from there the document and the guides.
Caching
The document, the guides and the catalog change only when a new release of the server is deployed or the server is configured again.
- Each carries a strong
ETagof its bytes andCache-Control: public, max-age=300. - Each responds with
304and no body when the request'sIf-None-Matchnames its tag, a list that includes it, or*. HEADreturns their headers without the body./healthis never cached: it responds withCache-Control: no-store.
Content at a signed address
This route serves the bytes a playbook keeps by their digest at an address the runtime signs. The address carries its own credential, so a person or a browser can follow it without a key.
| Method and route | Returns |
|---|---|
GET /v1/orgs/{org}/playbooks/{playbook}/content/{sha256}?sig={sig} | The content's bytes, with the media type it was kept with |
sha256is the SHA-256 of the bytes, in lowercase hex.untilis present only on the address of an asset that expires,?until={until}&sig={sig}: the time the asset expires, in whole seconds since 1970-01-01T00:00:00Z. Past it, the address is refused. An address withoutuntilworks for as long as the playbook keeps the content.sigis the runtime's signature of the org, the playbook, the digest anduntil, if the address has one, under a key the runtime keeps for itself.- Anyone with the address can read the content, so share it only with people who may see it.
- The runtime signs an address only on an
httpsorigin or onlocalhost,127.0.0.1or[::1], as it does for links to Studio. - An asset a generation function made has its address in the output of its run, and
get_assetanswers the same address when it reads the asset, as it does for an image a tool answered a run. - The response carries
Content-Type,Content-LengthandCache-Control: private, max-age={seconds}: the seconds the address has left, or a year for an address withoutuntil. - The route takes no key and makes no
Origincheck.HEADreturns the headers without the bytes, and any other method gets405. - Every response of this route carries
Cross-Origin-Resource-Policy: cross-origin, so a page on another origin can embed the bytes in animg,audioorvideoelement. Every other route answerssame-origin. - Every response of this route carries a
Content-Security-Policywithsandbox, so HTML or SVG content opened at the address runs no script and submits no form. An image still displays. - Every response with the content carries
Accept-Ranges: bytes, so anaudioorvideoelement can seek. ARangeof one range,bytes={first}-{last}orbytes={first}-to the end, counted from 0, returns206with that part, itsContent-Range: bytes {first}-{last}/{size}and the part's size asContent-Length. A range that runs past the end stops at the last byte. - Any other
Range, such as several ranges, a suffix such asbytes=-500, or a range whose last byte comes before its first, returns the whole content with200. - A part is checked against its length only, since the digest is of the whole content. Read the whole content to check its digest.
| Case | Response |
|---|---|
The time in until has passed | 403 forbidden, "The address to this content expired at {time}; ask for a new one" |
The signature is not for this org, playbook, digest and time, or until or sig is missing | 403 forbidden, "The address is not one this runtime signed for this content" |
| The playbook holds no content under the digest, such as content it no longer keeps | 404 not_found, "The playbook holds no content under this digest" |
The Range starts at or past the end of the content | 416 range_not_satisfiable, with Content-Range: bytes */{size} |
Playbooks
These routes are relative to /v1/orgs/{org}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
create_playbook | POST /playbooks | org:write | playbook, name, optional description |
list_playbooks | GET /playbooks | org:read or playbook:read | Optional include_retired |
get_playbook | GET /playbooks/{playbook} | org:read | Playbook id in path |
update_playbook | PUT /playbooks/{playbook} | org:write | At least one of name, description and page |
retire_playbook | POST /playbooks/{playbook}/retire | org:write | Playbook id in path |
restore_playbook | POST /playbooks/{playbook}/restore | org:write | Playbook id in path |
render_playbook_page | POST /playbooks/{playbook}/render | playbook:read | Playbook id in path |
| Field | Rule |
|---|---|
playbook | The id: 3 to 48 lowercase letters, digits and hyphens, beginning with a letter |
name | 1 to 100 characters, stored without the whitespace around it; it cannot be all whitespace |
description | At most 2,000 characters, stored without the whitespace around it |
page | The playbook's page as YAML text, at most 65,536 bytes, or null to remove it |
Each operation returns the playbook, with its id, name, description, status (active or retired), created_at, created_by, the caller who created it, by id and name, updated_at and, once retired, retired_at. get_playbook and update_playbook add page: { source } for a playbook with a page. list_playbooks returns them in playbooks, and create_playbook returns the playbook's page in Studio as studio too (Links to Studio).
list_playbooks of an org with no playbook yet, active or retired, to a caller who may act on every playbook of the org and holds org:write, also returns welcome: words the agent relays to the person, on what a playbook is, three ways to start and what Studio shows, ending with the link to Studio's home. The welcome of a new organization quotes them. A caller who may only read, or who acts on some playbooks alone, gets the empty list and no welcome, and an org with a playbook returns none to anyone.
list_playbookslists the playbooks the caller may access. It leaves out retired ones unlessinclude_retiredasks for them. It also accepts a key with onlyplaybook:read, so a key that may only read inside some playbooks can find them.- A key limited to a list of playbooks can create only a playbook whose id is on that list.
update_playbookchanges the fields it is given and keeps the others. Apageis checked as Saving a page sets out, with its issues under/page, and recorded asplaybook_page_saved. An update that changes nothing records nothing.render_playbook_pagerenders the playbook's page now and answers{ page: { runs, standing } }, both where the page hasdata(The preview).- A retired playbook keeps its id: no other playbook can take it.
restore_playbookbrings the playbook back, active, with its definitions, page and history as they were. Restoring a playbook that is not retired succeeds and changes nothing. - A retired playbook stays readable:
get_playbookreads it,include_retiredlists it, and its definitions, runs and history remain readable. Commands inside it returnconflictwith the kindretired. Retiring it again succeeds and changes nothing.
| Case | Response |
|---|---|
create_playbook with an id the org has or had | conflict |
update_playbook of a retired playbook | conflict |
get_playbook, update_playbook, retire_playbook or restore_playbook of an id the org does not have | not_found |
render_playbook_page of a playbook without a page | not_found |
| A change that meets another change to the org's playbooks at the same moment | conflict; send it again |
Links to Studio
create_playbook, create_definition, update_definition and run_definition return studio, the page in Studio of what they made or ran: the playbook's, the definition's in its playbook, and the playbook's Ledger with the run chosen. A comment carries one too, to the place it is about. The link opens the Studio the runtime names: /studio/ on its own origin where it serves Studio, and the Studio host, STUDIO_ORIGIN, otherwise. It names the runtime the request reached as server, its PUBLIC_URL where it signs people in, such as https://studio.on.auto/?server=https%3A%2F%2Fruntime.example.com&src=agent&playbook=briefs&ledger=&run=0199a3c4-7d2e-7c1a-9b3f-2f1e0d9c8b7a.
A run's place is ledger, which is empty, then run, its id.
A definition's place is its type and its name, as reasoning=summarize-brief, then definition, its definition_id, then because, created from create_definition and updated from update_definition, and version, the version the call answers: reasoning=summarize-brief&definition=019a7e3c-4d2b-7c1a-9b3f-2f1e0d9c8b7a&because=updated&version=3. An update_definition that changes nothing records no version, so its link has no because and names the version that stands. The link names no install. Where the runtime's own address is neither https nor on this computer, Studio would not open it, so studio is left out, and the welcome ends without a link.
A comment's studio, which each comment carries, opens its address and shows the comment beside it. It opens a place rather than announcing what an agent made, so it has no src and no because. It carries server where the other links do, then the parameters Studio's own address takes, each URL-encoded: one for each segment of the address, and ledger before a run's. They come in this order, and only those the address has:
| Parameter | What it names |
|---|---|
playbook | The playbook, for a thing of a playbook |
settings | The page of Settings, for a thing of the organization's other than org itself: the page org/settings/<page> names, connections for a connection and members for a member |
<type>=<name> | The definition, by its type and its name, as the other links name it: workflow=close-the-week or computation=total-spend |
version | The definition's version |
step | The step of a workflow, its reference without its leading /: step=do%2F1%2Freview |
ledger | The playbook's Ledger, empty, where Studio shows a run, its events and its request |
run | The run chosen in the Ledger, for a run, an event of a run, a block of its result and a request |
event | The event of the run |
block | The place of a block of the run's result, from 1 |
comment | The comment's id, always |
So a comment on a step opens https://studio.on.auto/?server=https%3A%2F%2Fruntime.example.com&playbook=finance&workflow=close-the-week&version=4&step=do%2F1%2Freview&comment=019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f, one on an event of a run …&playbook=finance&ledger=&run=<run id>&event=<event id>&comment=<id>, and one on the playbook …&playbook=finance&comment=<id>. Studio reads a resolved comment with open=false, so its link opens it too.
A part adds no parameter: a comment on a part opens the page of its thing, and Studio finds the part there by the comment's address and shows it with the comment. A comment of the organization's own opens:
- on
org, Studio's home:…?server=…&comment=<id>; - on a page of Settings, Settings at that page:
…&settings=billing&comment=<id>; - on a connection, Settings at Connections, with the connection's row:
…&settings=connections&comment=<id>; - on a member, Settings at Members, with the member's row:
…&settings=members&comment=<id>.
Models
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_models | GET /v1/orgs/{org}/models | org:read | Optional provider |
list_models | GET /v1/orgs/{org}/playbooks/{playbook}/models | playbook:read | Optional provider |
list_generation_models | GET /v1/orgs/{org}/generation-models | org:read | Optional kind |
list_generation_models | GET /v1/orgs/{org}/playbooks/{playbook}/generation-models | playbook:read | Optional kind |
list_models lists the models a reasoning function may name. It answers the same at the org's route and at a playbook's. provider is a provider prefix of 1 to 32 lowercase letters, digits or hyphens, starting with a letter. The result is the same over HTTP and MCP; Model information describes its fields, aliases, wildcard entries and incomplete lists.
list_generation_models lists the models a generation function may name, with the gateways it names them through. It answers the same at the org's route and at a playbook's, since the catalogue is the server's. kind is image, audio or video. Generation models describes its result.
Voice
A person can speak a comment rather than type it. Studio records what they say and sends it to the runtime, which has it written out by the voice model its settings name. These two routes are served over HTTP alone; no MCP tool serves them. They are relative to /v1/orgs/{org}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
transcribe | POST /voice/transcriptions | playbook:read | audio, type and seconds |
get_voice | GET /voice | playbook:read | None |
get_voice answers { model }: the voice model as the runtime's settings name it, such as openai/whisper-1, or null where none is set. A client offers voice only where it answers a model. A runtime that answers 404 to it predates voice and has none.
transcribe takes:
audio, the recording, in base64;type, its media type:audio/webm,audio/ogg,audio/mp4oraudio/wav;seconds, how long the recording is, as the caller measured it: a whole number from 1 to 120.
The body is held to the runtime's 1 MiB and 64 KiB, as every body is, which holds two minutes of speech recorded as Opus. The runtime sends the recording to the voice model, as Voice model sets out, and answers 200 with { text }, the transcription as the model gave it, without the white space around it. A recording in which the model heard nothing answers an empty text.
A transcription is a model call, not a run: it starts no run, is in no playbook's history, and the runtime's meter does not count it. It is recorded on the organization's ledger, on a stream of its own, org/<org>/voice/<id>, id the transcription's, with at and by, who asked:
| Fact | When | Fields |
|---|---|---|
voice_transcribed | The model answered | id, the transcription's id, a UUIDv7 the runtime gives it; model, the voice model as the settings name it; type, audio_bytes and seconds, the recording's media type, its size and its length as the caller gave it; text_characters, the length of the text answered; cost_usd, what the gateway answered in the entry's cost_header, or null |
voice_refused | The call reached the model and failed, or the model or its gateway refused it | id, model, type, audio_bytes and seconds, as above, and because, the kind of the failure, as When a model call fails names it |
The text itself is never recorded, nor the recording. A request refused before the model is called, for its input or since no voice model is set, records nothing. A gateway that meters the organization's calls may refuse a call with a 402 before the model is called; transcribe answers it in the gateway's own words, as the table below says.
POST /v1/orgs/acme/voice/transcriptions
Authorization: Bearer <key>
Content-Type: application/json
{ "audio": "GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQRChYEC…", "type": "audio/webm", "seconds": 6 }{ "text": "Flag any entry over ten thousand dollars for Priya before the week closes." }| Case | Response |
|---|---|
| No voice model is set | unavailable, "This runtime has no voice model" |
| A body over 1 MiB and 64 KiB | 413 content_too_large |
An audio that is empty or not base64 | invalid_input at /audio |
A type other than the four above | invalid_input at /type |
A seconds left out, or not a whole number from 1 to 120 | invalid_input at /seconds |
| The model or its gateway refuses the call, fails or does not answer in time | As a reasoning function's model call (When a model call fails), by its kind, and in the gateway's own words only where its entry sets expose_provider_messages |
The gateway refuses the call with a 402 of credits_exhausted or account_closed | conflict of that kind, with its resolve_at and because where the gateway gives them; nothing is recorded |
The gateway refuses the call with a 402 of meter_unavailable or model_not_offered | unavailable of that kind; nothing is recorded |
Any other 402 | unavailable, "<provider> could not serve the request (HTTP 402); try again later", recorded as voice_refused with because provider_unavailable |
Reasoning functions
These routes are relative to /v1/orgs/{org}/playbooks/{playbook}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
create_definition | POST /definitions/reasoning | playbook:write | name, source, diagram, optional overview |
list_definitions | GET /definitions/reasoning | playbook:read | Optional include_retired |
get_definition | GET /definitions/reasoning/{name} | playbook:read | Name in path; optional render and sample_output |
update_definition | PUT /definitions/reasoning/{name} | playbook:write | source, diagram, optional overview |
pause_definition | POST /definitions/reasoning/{name}/pause | playbook:write | Optional reason |
resume_definition | POST /definitions/reasoning/{name}/resume | playbook:write | Name in path |
retire_definition | POST /definitions/reasoning/{name}/retire | playbook:write | Name in path |
restore_definition | POST /definitions/reasoning/{name}/restore | playbook:write | Name in path |
prepare_run | GET /definitions/reasoning/{name}/prepared-run | playbook:read | Optional input, checked against the input schema |
run_definition | POST /definitions/reasoning/{name}/run | playbook:write or playbook:run | Optional input, optional UUID run_id |
render_page | POST /definitions/reasoning/{name}/render | playbook:read | Optional sample_output or run_id |
get_run | GET /runs/{run_id} | playbook:read | Run id in path |
The source is a reasoning function document. These rules apply to the definitions of every type:
- A name follows the playbook id rule: 3 to 48 lowercase letters, digits and hyphens, beginning with a letter.
- A name is unique within its type and playbook. A retired definition keeps its name, so no other definition takes it.
- A source document may be at most 65,536 UTF-8 bytes.
- Changing a document, its overview or its diagram creates a version. Updating it with identical source and diagram, and the same overview or none, records no change.
- A run uses the latest version.
- A definition's
statusisactive,pausedorretired. - A paused definition starts no runs:
run_definitionof it is refused withconflictof the kindpaused, a workflow step that calls it ends the runrejectedwithinvalid_inputand words that say the function is paused, as a step that calls a retired function does, its triggers start nothing, and the runs already going finish. It can still be read, listed and updated, and an update keeps it paused. Pausing changes neither its version nor itsupdated_at, and it carriespaused_at,paused_by, the caller who paused it byidandname, and thereasongiven, 1 to 1,024 characters, until it is resumed. - A resumed definition is
activeagain and runs as before. Pausing a paused definition, or resuming an active one, succeeds and records nothing, so both are safe to retry. - A retired definition can be read, but cannot be edited, run, paused or resumed: those are refused with
conflictof the kindretired. It carriesretired_atuntilrestore_definitionbrings it back, with its page and its history, at its version: it comes backpaused, withpaused_atandpaused_bythe caller who restored it, and runs again once resumed. Restoring is refused withconflictwhere the playbook already keeps as many definitions of the type as it may, as creating one is. Retiring a retired definition, or restoring one that is not retired, succeeds and records nothing. - A definition carries its
input_schemaandoutput_schemawhere its document declares them. A reasoning function, a computation function or a workflow whoseoutput.shapenames an output shape has the shape's schema as itsoutput_schema, and the shape's name asdetails.shape, such as"details": { "shape": "series" }. A prediction function has theseriesshape so, since its questions answer a series, and a generation function theassetshape.detailsis left out otherwise.list_definitionsshows both too.
A definition names the caller who created it as created_by, by id and name, and keeps it across its versions.
create_definition, update_definition, get_definition, pause_definition, resume_definition, retire_definition and restore_definition return the definition with its overview, its diagram and its used_by; list_definitions leaves all three out. get_definition of a definition with a page also has page (Pages). create_definition and update_definition return its page in Studio as studio too (Links to Studio).
overviewis Markdown its author gives besidesourcefor the person who runs the business: why the definition exists, what it does and how it fits, in one to three short paragraphs. It holds 1 character to 16,384 UTF-8 bytes. The version keeps it as written, and an update that leaves it out keeps the overview saved. A definition saved without one has none.diagramis how a function works as a picture, which Auto Studio draws under the overview. Everycreate_definitionandupdate_definitionof a function gives it, as one of two choices: Mermaid source of a flowchart or a state diagram, whose first line isflowchart,graphorstateDiagram, optionally with a direction such asTD, in at most 8,192 UTF-8 bytes; or the wordnone, when a picture would add nothing. Since Auto Studio draws it at full size in a column, a diagram reads best top to bottom, asflowchart TDor a state diagram, in three to eight nodes, each a few plain words for the person who runs the business rather than an expression or code. The version keeps it as given. A version saved before functions took one has none.used_bylists the definitions of the playbook, active or paused, that use this one, read from the playbook each time the definition is returned, and is left out when none does. Each gives itstype, itsnameand itsrelation:callsfor a workflow whoserun_definitionsteps call it, with thosesteps, each itsnumber, its place among the workflow's tasks in the order of its document, and itsname; orreadsfor a lookup function that reads its runs.
The interaction function approve-brief that a workflow calls in two steps is returned with this used_by, shown here without its other fields:
{
"used_by": [
{
"type": "workflow",
"name": "briefing",
"relation": "calls",
"steps": [
{ "number": 1, "name": "send" },
{ "number": 3, "name": "again" }
]
}
]
}A save is refused for its diagram in these cases, and nothing is saved:
| Case | Response |
|---|---|
A function saved without diagram | invalid_input at /diagram: Say whether this reasoning function has a diagram: give diagram as Mermaid source of a flowchart or a state diagram, or the word none when a picture would add nothing |
A diagram that is neither a flowchart or state diagram nor none, or over 8,192 bytes | invalid_input at /diagram, which names the two choices or the bound |
A workflow saved with diagram | invalid_input at /diagram: A workflow takes no diagram, since Auto Studio draws a workflow from its steps; leave diagram out |
Lookup functions
Lookup functions use the operations of reasoning functions, with lookup in place of reasoning in each route, such as POST /definitions/lookup and POST /definitions/lookup/{name}/run. The source is a lookup function document. Names, document size, versions and retirement follow the rules for reasoning functions.
Saving a definition asks the tool server it names for its tools, and a run finishes within the request that starts it, its output what the tool returned at read.
| Case | Response |
|---|---|
A save whose tool is marked acts or carries no mark, or names a server or tool not offered | invalid_input under /source, at the line of call |
| A save while the tool server cannot be asked for its tools | unavailable, naming the server; nothing is saved |
A run whose tool its server no longer marks reads | unavailable with the kind tool_not_read_only; nothing sent |
| A run whose call was sent and could not finish | unavailable with the kind tools_unfinished |
Interaction functions
Interaction functions use the operations of reasoning functions, with interaction in place of reasoning in each route, such as POST /definitions/interaction and POST /definitions/interaction/{name}/run. The source is an interaction function document. Names, document size, versions and retirement follow the rules for reasoning functions.
A save is refused as invalid_input when the document names no way to reach its party, as How a request reaches its party sets out:
- A request that names no
deliveris refused, and its issue names the connections whose tools can send a request and read its replies, anddeliver: agent. - A notification takes no answer, so no agent holds it: it goes through a connection. One that names no tool, or names
deliver: agent, is refused, and its issue names the connections whose tools can send it.
A run responds with 200, status: started and its run_id. It then waits until its request is answered, expires or is cancelled. A function that calls a tool finishes within the request instead: its output is the tool's result, or it ends in one of the endings its format lists.
| Case | Response |
|---|---|
A to, a message or an argument that renders a value that is not text, or more bytes than a request or a call may hold, a to that renders empty or with a control character, or a deliver.with argument the function cannot render | conflict with the kind unworkable |
A to, a message or a call argument that reads a variable the input does not have, or whose render stops past what a render may take or at a filter that refuses the value | invalid_input |
| A server or a tool the playbook may not use | unavailable with the kind tool_not_offered |
| The playbook has as many open requests as the runtime allows | unavailable with the kind requests_full |
The requests of a playbook have two routes of their own, and a third where goals are kept, relative to /v1/orgs/{org}/playbooks/{playbook}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_interactions | GET /interactions | playbook:read | Optional to, type, function, limit, cursor and, where goals are kept, dismissed |
answer_interaction | POST /runs/{run_id}/answer | playbook:write or playbook:run | Run id in path; answer and an optional claimed_for |
dismiss_goal_thing | PUT /goals/{goal}/things/{id}/dismissed | playbook:write | Goal and thing id in path; an optional dismissed, false to restore the thing |
Listing open requests
list_interactions returns interactions, the playbook's open requests newest first, with has_more and next_cursor. They are the requests of interaction functions. An answered request leaves the list. Anyone who may read the playbook sees each request's party and message, just as they see a run's input.
tokeeps only the requests to one party.typekeeps only those from one type of function.functionkeeps only those from functions of one name. A name is unique within its type, sofunctionwithtypenames one function.- Where goals are kept, a request that a dismissal of a thing of a goal set aside is left out while the thing stays dismissed, and so is a dismissed thing in a request's
about.dismissed=includelists them too, each such request withdismissed: thegoalandidof the thing, when it was dismissed and the id of who dismissed it.
Each request has these fields:
| Field | Contents |
|---|---|
run_id | The run that asked, which answer_interaction takes |
type | The type of the function that asked |
function | The name of the function that asked |
version | The version of the function that asked |
to | The party the request goes to |
delivery | The server and tool the request is sent through, or null for a request held for an agent |
message | The message of the request |
takes_answer | true for a question, false for a notification |
answer_schema | The JSON Schema an answer must match, as the request recorded it when it was asked; null for a notification |
requested_at | When the request was made, in ISO 8601 UTC |
expires_at | When the request expires unanswered, in ISO 8601 UTC |
attempts | The delivery attempts made so far |
conversation | The conversation the playbook reads replies in, or null |
answerer | The party whose reply counts, or null |
reply_refusals | How many replies from the answerer the playbook refused |
standing | held_for_an_agent, to_deliver, delivering, delivered, retrying, undelivered, or cancelling once a cancel of its run was asked |
answer_interaction checks the answer_schema the request recorded. That holds even after the function has a newer version, whose output_schema is the one get_definition shows. A schema may be up to 64 KiB as JSON, so a page of 100 requests can contain up to 6.25 MiB of schemas. A smaller limit keeps a page smaller.
Answering a request
answer_interaction takes the run's run_id, an answer and an optional claimed_for:
answermust match the request's answer schema, and may be at most 64 KiB as JSON.claimed_fornames whom the caller says it is answering for, in at most 256 bytes. The runtime never checks it.
It records the answer on the run as one fact, request_answered, and returns that fact:
| Field | Contents |
|---|---|
run_id | The run that asked |
answer_id | The id of the fact |
answer | The answer |
claimed_for | Whom the caller says it is answering for, when given |
answered_by | The caller who answered, by id and name; for a run answered by a reply, the playbook |
reply | For a run answered by a reply, that reply's identity |
answered_at | When the answer was recorded |
The run takes the answer within about a second (the server checks waiting runs every second by default), as Answering a request explains.
- A run of an interaction function succeeds with the answer as its
output, which reaches a workflow that waits for it.
| Case | Response |
|---|---|
| An answer that does not match | invalid_input with pointers under /answer; the request stays open |
| The same answer again | The fact the run took |
| A different answer, an answer to a request that has ended or whose run was asked to cancel, or an answer to a notification | conflict |
| A run the playbook does not have | not_found |
A request nobody answers
When nobody answers a request before it expires, its run ends rejected, with the reason unanswered and the kind expired. A notification that could not be delivered ends with the kind undelivered. A request with the same run id and input then returns that ending as a 410 problem of the type https://on.auto/problems/unanswered. How a run ends lists every ending.
Dismissing a thing a request is about
dismiss_goal_thing dismisses a thing of a goal for everyone in the organization, by the goal and id a request's about gives. It records who dismissed it and up to ten open requests waiting on it then, which leave list_interactions and the activity unless they are asked with dismissed=include. A request asked about the thing later restores the thing: the runtime records that itself, as the playbook, and the thing and its requests are listed again. It answers and cancels nothing: those requests still wait until they are answered or expire, and the thing is judged when it is due as before. dismissed: false restores the thing, and its requests are listed again. Dismissing a dismissed thing, or restoring one that is not, records nothing.
Computation functions
Computation functions use the operations of reasoning functions, with computation in place of reasoning in each route, such as POST /definitions/computation and POST /definitions/computation/{name}/run. The source is a computation function document. Names, document size, versions and retirement follow the rules for reasoning functions.
A run finishes within the request that starts it. Saving a definition checks its program, and refuses each problem under /source with its line.
| Case | Response |
|---|---|
| A ready checker does not finish the check within 2 seconds of the server's wall-clock time | invalid_input; nothing is saved |
| A save finds no checker ready | busy (503); nothing is saved, and the same call may be tried again after Retry-After |
| The program cannot produce its output for the input | conflict with the kind unworkable |
A program cannot produce its output when it:
- raised an error;
- returned a value JSON cannot represent, or an output larger than an eighth of a run's memory as JSON (see Runs and results);
- did more work or used more memory than a run allows.
The same input gives the same unworkable result again, unless the program reads the clock. Change the definition or the input rather than retrying.
Pages
Give every workflow and function its page, which presents its results (Page format). A save without one is accepted, and over MCP its summary says the definition has no page yet, where the summary has room for it. The page is the page key of the definition's document, so create_definition and update_definition save it with the rest of source, and a save that changes only the page is a new version like any other. The playbook's page is saved by update_playbook.
get_definitionaddspage, withrunsandstandingwhere the page has them, andget_runof a run of the definition addspage.result.list_definitionsshows nothing of a page.render_page,POST /definitions/{type}/{name}/render, renders the page now, withpage.resultandpage.runs, over the definition's latest run or over an optional JSON body{ "sample_output": … }. It needsplaybook:read, and is refused withnot_foundfor a definition without a page andconflictfor a retired one.- Given
{ "run_id": … }in place ofsample_output,render_pageanswers the page as it stood when that run ended:page.result, andpage.runsandpage.standingover the views folded again up to the run's last event. A run still going renders over the views as they stand. - The replay reads at most 10 pages of up to 1,000 records. Past that,
page.standing.stateisout_of_reachandpage.runsis a line that says so. - A run the playbook does not have is refused with
not_found, and a run of another definition withinvalid_input. See As of a run. - Retiring a definition retires its page with it.
See What reads render.
Prediction functions
Prediction functions use the operations of reasoning functions, with prediction in place of reasoning in each route, such as POST /definitions/prediction and POST /definitions/prediction/{name}/run. The source is a prediction function document. Names, document size, versions and retirement follow the rules for reasoning functions.
- A playbook may have at most 32 prediction functions, active or paused.
- A question finishes within the request that asks it, and the runtime's forecaster makes the prediction. A question such as
{ "series": "north", "horizon": 1 }answers a series whoseobservedline holds the last periods of the dataset and whosepredictedline holds the period asked, with itsvalue,lowandhigh; withouthorizonit holds every horizon the function names. The run'srecordholds themethodthe forecaster used, thecoverageand thehistoryit backtested. The input and the output has every field, and A question an answer in full. - A series whose history is too short to forecast from is refused as
conflictwith the kindhistory_too_short, itsdetailnaming the periods it has and the periods it needs. get_definitionadds the dataset'sstanding.
Generation functions
Generation functions use the operations of reasoning functions, with generation in place of reasoning in each route, such as POST /definitions/generation and POST /definitions/generation/{name}/run. The source is a generation function document. Names, document size, versions and retirement follow the rules for reasoning functions. A run's output is the asset it made, with an address that lasts 15 minutes from the end of the run.
It finishes within the request that starts it, unless the provider finishes the generation later, as it does a video: then run_definition returns the run started, as A generation the provider finishes later sets out. The catalogue names the models that produce video. How a run ends lists its endings.
The assets of a playbook have an operation of their own, relative to /v1/orgs/{org}/playbooks/{playbook}, which reads an asset again with an address signed as it is read:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
get_asset | GET /assets/{id} | playbook:read | Asset id in path |
| Field | Value |
|---|---|
id | The asset's id, as the output of the run that made it gives it, or the result of the tool call that answered it |
media_type, bytes | The media type and the size of its bytes |
sha256 | The SHA-256 of its bytes, in lowercase hex |
model | The model that made it, or null where no model made it, such as an image a tool answered |
kept_at | When the playbook kept it |
expires_at | When it expires, or null if it has no expiry or its expiry is already recorded |
expired_at | When its expiry was recorded, or null while it is kept |
expired | true from the moment the asset expires, whether or not its expiry is recorded yet |
content_removed | true once its content was removed, which happens when it expires and nothing else of the playbook holds the same bytes |
address, address_until | A signed address its bytes are read at without a key, and the time it stops working: when the asset expires, or null for an asset with no expiry. Both are null once the asset expires, and where the runtime signs no address |
| Case | Response |
|---|---|
An id that is no UUID | invalid_input at /id |
No asset of the playbook has the id, an asset of another playbook among them | not_found, "There is no such asset in this playbook" |
Workflows
These routes are relative to /v1/orgs/{org}/playbooks/{playbook}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
create_definition | POST /definitions/workflow | playbook:write | name, source, optional overview |
list_definitions | GET /definitions/workflow | playbook:read | Optional include_retired |
get_definition | GET /definitions/workflow/{name} | playbook:read | Name in path; optional render and sample_output |
update_definition | PUT /definitions/workflow/{name} | playbook:write | source, optional overview |
pause_definition | POST /definitions/workflow/{name}/pause | playbook:write | Optional reason |
resume_definition | POST /definitions/workflow/{name}/resume | playbook:write | Name in path |
retire_definition | POST /definitions/workflow/{name}/retire | playbook:write | Name in path |
run_definition | POST /definitions/workflow/{name}/run | playbook:write or playbook:run | Optional input, optional UUID run_id |
render_page | POST /definitions/workflow/{name}/render | playbook:read | Optional sample_output or run_id |
get_run | GET /runs/{run_id} | playbook:read | Run id in path |
cancel_run | POST /runs/{run_id}/cancel | playbook:write or playbook:run | Optional reason |
send_run_event | POST /runs/{run_id}/events | playbook:write or playbook:run | event with type, and optional id, source, subject and data |
list_queued_starts | GET /definitions/workflow/{workflow}/queued-starts | playbook:read | Name in path; optional limit and cursor |
A saved workflow
The source is a workflow document. Names, document size, versions, pausing and retirement follow the rules for reasoning functions.
- A saved workflow has the
media_typeapplication/yaml. - A workflow takes no
diagram, and one given is refused: Auto Studio draws a workflow from its steps, with the words Describing steps sets out. - Its
description,input_schemaandoutput_schemacome from the document, theoutput_schemafrom itsoutput.shapewhere it names one, withdetails.shape. - A workflow whose document has a
schedulealso hastriggers, inget_definitionandlist_definitions. They are the triggers its schedule names, in the order it names them.
| Trigger field | Contents |
|---|---|
kind | event, cron or every |
reference | /schedule/on, /schedule/cron or /schedule/every |
filters | For an event trigger: its filters, each with its reference, type and attributes |
expression | For a cron trigger: its expression |
time_zone | For a cron trigger whose schedule names one: its time zone; without it, UTC |
milliseconds | For an every trigger: its period |
A paused workflow's triggers start nothing: a time its schedule names and an event its trigger matches while it is paused are not run, and resuming it makes up none of them, so its next run is at the first time or event after it was resumed. A version saved while it is paused takes over its triggers as any version does, and starts nothing until it is resumed.
get_definition of a workflow adds standing: queued, how many of its runs are queued to start, and next_queued_start, the earliest time the next of them can start, in ISO 8601 UTC, or null when none is queued.
get_definition of an active workflow with triggers adds triggers_since: the id of the record that saved its current version. From that record on, every run its triggers start is a run of this version. triggers_since is one id for the whole workflow. A trigger that a later version left unchanged continues from the record that first saved it in that form, which triggers_since does not show.
A workflow's design
A person agrees the design of a workflow before any of its functions or the workflow itself is saved. agree_workflow_design, POST /workflow-designs/agreed under playbook:write, takes the workflow's name, as a definition name, and its source, the workflow document as the person saw it, and records their yes. It saves no function or workflow.
- It records one fact,
workflow_design_agreed, with thename, thesource, who agreed it,agreed_by, andfrom_a_fragment: truewhere the person said yes in a fragment of Auto in the chat. Each yes is a fact of its own. list_playbook_eventsshows it, asworkflow_design_agreed, with thename,agreed_byand the size of the document,source_bytes, so the playbook's Ledger shows who agreed which design and when. Itstypedoes not offer it as a filter.- It answers the design and the yes:
name,source,agreedwithatandby, the person'sidandname, andfrom_a_fragmentwhere it applies.
show_workflow_design, POST /workflow-designs/shown under playbook:read, takes the same name and source, checks only that the source is YAML with a document and a do list, and answers them with calls, the functions its steps call by call: run_definition, each once, saved or not; it saves and records nothing. An agent calls it, as a tool listed only to a client that shows Auto's interface in the chat, to show the person the design before it writes any function or workflow.
get_workflow_design, GET /workflow-designs/agreed under playbook:read, reads the design agreed last, whole, in the same shape: of the workflow name names, or of any workflow of the playbook without it. It is refused as not_found where the person agreed none.
Running a workflow
run_definitionreturns200as soon as the run begins, with itsrun_idandstatus: started. A run that ended before its first wait returns how it ended.- Read the run with
get_rununtil its status issucceeded,rejectedorfailed. - Read its steps with
get_run_history, which contains oneworkflow_input_appliedevent for each input the run took (see Run history and playbook events). - While the runtime is stopping,
run_definitionreturnsunavailable; try again shortly.
A workflow runs once for each run_id. Retrying under a run id says what a request with the id of an earlier run returns.
Queued starts
A workflow's event trigger starts at most 60 runs of it a minute. A start past that is queued for a later minute, up to 1,000 of them, as Triggers sets out. list_queued_starts lists the queued starts a page at a time, in the order they come due, each with:
| Field | Contents |
|---|---|
run_id | The id the run has once it starts |
event | The event it starts for: its id, type, source, subject and time, without its data |
due | The earliest time it can start, in ISO 8601 UTC |
attempts | How many times it tried to start and failed |
The answer also gives status, the workflow's status: active, paused or retired.
A start leaves the list when it starts, or when it is refused. A queued start is refused if its workflow is paused when it comes due. One that tried to start and failed is tried again in the next minute, so it moves behind the starts due before then. limit is 1 to 100, and 20 when left out, and cursor is the next_cursor of the page before. A name that no workflow of the playbook has is refused as not_found. A cursor that list_queued_starts did not give is refused as invalid_input.
Sending an event to a run
send_run_event delivers an event to a run that is still started. It returns the run_id and the delivered event, with these filled in:
id, which the runtime makes when you leave it out;source, which is/callers/and your caller id when you leave it out;time, when it was sent.
| Part of the event | Limit |
|---|---|
| The whole event | 256 KiB as JSON |
type, id | 256 characters each |
source | A URI reference such as /ledger/eu, as for a published event; 1,024 characters |
subject | 1,024 characters |
data | Nests at most 510 levels deep, so that the run can keep the whole event in a list |
A run accepts an event with a given id only once, so a request can be retried with the same id.
| Case | Response |
|---|---|
| A type or source the runtime reserves for its own facts, as listed under Publishing events | invalid_input |
Text a published event may not contain: a control character, a lone surrogate or a noncharacter, or a type, id or subject with no character other than a space | invalid_input |
| The playbook has no running workflow with that run id, including one that has ended | not_found |
| The run cannot take the event at that moment, such as while the runtime is stopping | unavailable; try again shortly |
Cancelling a run
cancel_run needs playbook:write or playbook:run. It cancels:
- a workflow run that is still
started; - the run of a reasoning function that is still
started, whether its client is there or gone; - the run of an interaction function whose request waits.
It takes an optional reason, 1 to 1,024 characters with no control character. The run keeps it as the detail of its ending; without one, the detail says who asked.
- The request is recorded on the run at once, whichever server takes it.
cancel_runreturns200with the run as it stands: stillstarted, or alreadyrejectedfor a reasoning run the server that took the request was running. - Within a moment the run stops its tasks and cancels each run it waits for.
- It ends
rejectedwith the reasoncancelledand the kindrequested. Read it withget_run.
A reasoning run its client started is stopped at once in the server where it is going, each call it has in flight ended as interrupted; so is one a workflow's step started when its workflow cancels it. One a workflow's step started that cancel_run cancels, or one going in another server, stops before its next model call or tool call, so it may go on for as long as one call of it may take: a call it already sent still answers and its answer is recorded, and a run whose last model call answers ends with that answer. Either way, the run records the spending of its model calls so far, and no call of it is left started without an end. A reasoning run whose server stopped before the run met the cancel is ended cancelled by the server that runs the workflows once the lease of its attempt is handed over or lapses, or sooner by a request with its run_id, or the workflow that started it, asking for it again.
Asking again before the run has ended records nothing more.
| Case | Response |
|---|---|
| The playbook has no run with that id | not_found |
| The run has ended | conflict |
| The run ends within the request that started it | conflict |
These runs end within the request that started them, so they cannot be interrupted from outside:
- the run of a computation function;
- the run of an interaction function that calls a tool;
- a prediction function's question.
When the request that started one is lost, the run stays started until the workflow that waited for it cancels it, at its step's deadline or because it ended first. A cancel made once the run has been quiet for longer than it may take ends it rejected with the reason cancelled and the cancel's kind, a tool call it left unanswered ended as interrupted, and its detail says whether that call may have changed something. One made sooner is recorded alone, and a later cancel of the run ends it the same way.
A cancelled run's rejection names the kind of its cancellation:
| Kind | The run was cancelled because |
|---|---|
requested | someone allowed to change the playbook asked, with cancel_run |
deadline | the workflow that waited for it ran out of time |
overrun | it ran as long as a workflow may run |
parent_ended | the workflow that waited for it ended first, or the branch that waited for it lost a race |
Runs and results
A run records its run_id, type, name, definition_version, status, timestamps and started_by, the caller who started it, by id and name. A run a trigger started, and each run its workflow's steps start, has acts_for, the id of the person it acts for, such as person:user_7kLm2: whoever saved or restored the version the trigger runs, where that was a person (When a trigger applies). It grants the run nothing, and a run without it acts for its caller where that is a person. A successful run includes output, and a rejected run includes a rejection. get_run also returns the detailed record and, where the run's definition has a page, page.result, the run as that page shows it (Pages). run_definition returns the run in Studio as studio (Links to Studio). A run that a workflow's step started has within, which names that step. Its run_id is the workflow's run, and its step is the step's reference without its leading /, such as do/1/review. The called_by of the run's events says which call of the step it answered (Event fields). A run that no step started has no within. A run whose output takes an output shape says it as output_shape, such as "output_shape": "series" on a question to a prediction function; a run of a definition that declares no shape has none.
The rejection of a workflow run that a step's uncaught error ended also has cause: the step and how its work ended, in codes, which the rejection's detail says in words.
step: the step's reference without its leading/, aswithinnames one.run_id: the run the step's call started, when it called a definition. A run the meter refused before it started was never recorded, so this id may name no run.status:rejected,failedorunreachable, as the call answered, ortimed_out, when the step'stimeoutor its call's deadline passed first.reason,kindandbecause: withrejected, those of the run the step started, or, where that run is a workflow a step of its own ended, those of the run that ended it, so a step that called a workflow whose function was paused namespaused.
The workflow run's own reason is that of the step's error, so a run that a paused function ended is invalid_input, and its cause has the reason conflict and the kind paused.
Most runs finish within the request that starts them. These runs finish later, so run_definition returns them started, unless one ended before its first wait:
- a workflow's run, whose
recordis empty while it is in progress; - an interaction function's run that asks a person, or that sends a notification through a tool;
- a generation function's run that waits for a generation the provider finishes later.
Read such a run again with get_run until its status is succeeded, rejected or failed. A cancelled run is rejected with the reason cancelled. Workflows and runs explains how a run waits and ends.
| What | Limit |
|---|---|
| Input | 1 MiB as encoded JSON, as much as the output and the record take together, nesting at most 512 levels deep, as deep as a workflow can hold a value. A deeper one returns invalid_input at /input |
| Output and record together | 1 MiB (1,048,576 bytes) as JSON. Past it, some types return the output with its largest parts kept as assets, as the table below says |
These limits apply independently of the request-body limit.
A run's output and its record share that 1 MiB. Each type of definition makes room for its record in its own way, so the largest output differs by type:
| Type | Largest output |
|---|---|
| Reasoning | What leaves room for the record. The record keeps less of the prompt to fit; an answer that leaves too little room ends conflict, unworkable |
Interaction or lookup with call | Past 1 MiB less the run's record, the output is still returned: its largest parts are kept as assets, and the output holds each one's reference in its place |
| Computation | An eighth of the run's memory as JSON. Past 1 MiB less the run's record, the largest parts are kept as assets, as for a call |
| Workflow | 1,048,574 bytes; a larger output ends the run conflict with the kind oversized |
A reasoning or computation function's output past its bound ends the run conflict with the kind unworkable. A part that a run would keep as an asset, but that is larger than the runtime keeps of one file or would take the playbook's assets past their total, ends the run conflict with the kind oversized. Each format page repeats the bound for its type.
Retrying under a run id
run_definition takes an optional run_id, a UUID. Supply one to retry a request without doing the work twice, or to read the run later. The runtime keeps one run under each id.
A request that reuses an id for another definition or another input returns conflict. A request with the same definition and input gets what the run under that id recorded:
| The run under that id | A request with the same id and input |
|---|---|
| Succeeded | Returns the recorded output; nothing runs again |
Was rejected as invalid_input | Returns the same rejection |
| Was cancelled | Returns its cancellation, cancelled (409) |
| Went unanswered | Returns unanswered (410), as A request nobody answers says |
| Still waits: a workflow run or an interaction function's request | Returns the run as it stands, still started, and starts nothing |
Has no final result: it ended unavailable, conflict or failed, or it is started without waiting, such as after an interruption | Runs the definition again, as a new attempt. The attempt may use the latest version, and records the one it used. A started run of a reasoning function goes on from what it recorded instead |
The last row has three exceptions.
A workflow runs once for its id. A request with the id of a workflow run that ended without a final result returns conflict with the kind unworkable, once its input passes the workflow's input schema, which is checked first. Its detail says to use a new run id.
A started run of a reasoning function is never started a second time: a request with its id goes on from what the run recorded, at the version it started with, or returns conflict with the kind taken while the run may still be running in another server. A reasoning run performed again gives the rule, and what a model call or a tool call without an answer becomes.
A run that may have called a tool is never attempted again under its id once it ended. That is a run of a lookup function, of a reasoning function with tools, or of an interaction function with call:
- A run that recorded a tool call and ended without a final result returns
conflictwith the kindtools_called. When every tool it called is markedreads, the rejection addsbecause: "only_read", and its words say nothing was changed. - A run of a lookup function, or of an interaction function with
call, that is stillstartedreturnstools_calledtoo, even before its first recorded call, since it may still be in progress. - A run that ended before its first call, for example with
tool_not_offeredortool_server_failed, runs again like any other.
After tools_called, read what the run called with get_run_history, and check its effects outside the playbook. Then start a new run under a new id, which calls the tools again. When a tool-calling run cannot finish gives the endings that come before it, tools_unfinished and effect_unknown.
A workflow step that calls a function meets the same rules when the server performs the step again, for example after a restart. A reasoning function's run goes on at once from what it recorded, since the workflow host knows the server before it stopped. An interaction function's run that may have called its tool raises tools_called in the workflow; see When the function's run does not succeed.
The runtime records one final result for each run id. That does not mean an external effect happened only once.
A reasoning run performed again
A run is not interrupted by its client going away; only the server stopping cuts it off, and that leaves it to be performed again from what it recorded. A run a workflow's step started goes on within that step: it stops when the step's server stops or hands its workflows to another server, and the server that runs the workflow then goes on with it. Nothing limits how many runs go on after their clients went away: each is bounded as any run is, and its client started it.
cancel_run cancels a run that is still started, whether its client is there or gone. How soon the run stops depends on what started it and which server takes the cancel:
- A run its client started stops at once when the server running it takes the cancel, and each call it has in flight ends as
interrupted. A run a workflow's step started stops the same way when that workflow cancels it. - A run going in another server, or a run a workflow's step started that
cancel_runcancels, stops before its next model call or tool call. A call it already sent still records its answer, and a run whose last model call answers ends with that answer.
Every cancelled run records the spending of its model calls so far. One that does not end with an answer ends rejected with the reason cancelled; see Cancelling a run.
A run that is still started is never started a second time. run_definition with its run_id goes on with it from what it recorded, at the version it started with, and answers when the run ends. The workflow host does the same for the calls its workflows wait on, once a server starts again after one stopped.
A run is told to be still running by its events alone. Every model call and every tool call has a bound: the model call's limit under Limits on time and failures, and the server's bound of a tool call, 30 seconds. The two together are longer than any gap between two events of a run that is still going. A run whose last event is newer than that may still be running, so a request for it is refused as conflict with the kind taken, saying the run is still running, and makes no second attempt. Once its last event is older, the attempt that wrote it has ended, and the request goes on with the run. The age of the last event is read from the database's clock, so two servers that share a database need not agree on the time. The workflow host, which knows the server it replaces stopped, goes on at once. In the server where the run is going, a request for it waits for it to end and is given what it recorded, so two requests for one run in one server make one attempt of it, and a client that sends a request twice is answered once. Each model call and each tool call is numbered, and an event is recorded only under the next number, or as the end of a call that is still open, so of two attempts that go on at once, from two servers too, the second stops at its first event, before it calls anything, and no call is ever started a second time.
The run goes on from its events and the content it kept, and reads them before it does anything else: it takes its prompt from what its first model call kept and does not render the template again, and an ending it meets before its first call, such as a tool server that cannot be opened yet, names the tools it called and records the spending of its model calls, as every other ending does.
- The bound of a run that calls tools, 10 minutes, counts from its start.
- A model call that was answered is not made again. A model call started without an answer ends as
interruptedand is made again from the same messages, under the next number. - When the last model call asked for tool calls, each call that has an answer gives the model that answer again, rebuilt from what the run kept, and a call that failed gives the model its failure. A call without an answer ends as
interrupted, and is made again when the tool is markedreads. The calls made before count toward the run's count as its history records them, and a step that asked past a limit ends the run as the limit does, calling nothing. - A call without an answer of a tool not marked
readsis not made again, since it may already have changed something outside the playbook, and neither is any other call of the same step without an answer, even one of a tool markedreads. Each ends asinterrupted, and the run ends asconflict, kindeffect_unknown, withbecause: "call_outcome_unknown". - A call of a tool the run no longer offers, because its tool server changed while the run was stopped, is not sent. The model is told so and goes on.
- A model call that failed ends the run as that failure did, and a run whose cancel was asked ends cancelled, neither calling anything.
- A run that kept no content, because a tool server of the run has
record_content: false, cannot go on. Each of its calls without an answer ends asinterrupted, so every call it started has an end, and the run ends asunavailablewithbecause: "restarted_without_content", or, once it called a tool, astools_unfinishedoreffect_unknownwith thatbecause; see When a tool-calling run cannot finish.
A run that has ended is never performed again in this way; Retrying under a run id gives the rule.
Publishing events
publish_event records an event in a playbook, such as a month closed in a ledger or a deal won in a CRM.
| Operation | Method and route | Permission | Input |
|---|---|---|---|
publish_event | POST /v1/orgs/{org}/playbooks/{playbook}/events | playbook:write or playbook:run | event |
The body contains event, a CloudEvents 1.0 event:
| Attribute | Required | Contents | Limit |
|---|---|---|---|
source | Yes | Where the event comes from, a URI reference such as /ledger/eu or https://acme.example/ledger | 1,024 characters |
type | Yes | What happened, such as com.acme.ledger.month-closed | 256 characters |
id | No | Unique among the events of its source; the runtime makes one when you leave it out | 256 characters |
time | No | When it happened, in RFC 3339 such as 2026-10-01T09:00:00Z; when it is left out, the runtime uses the time it records the event | |
subject | No | What the event is about within its source | 1,024 characters |
specversion | No | 1.0 | |
datacontenttype, dataschema | No | The media type of data, such as application/json, and the absolute URI of a schema it follows | 256 characters for datacontenttype, 1,024 for dataschema |
data | No | Any JSON value | Nests at most 510 levels |
- The event, with its id and time filled in, may be at most 240 KiB as JSON.
datanests at most 510 levels deep, so that a run can keep the event in a list. A deeper one returnsinvalid_inputat/event/data.- Any other attribute is an extension, and an event may have at most 32. Its name is 1 to 20 lowercase letters and digits. Its value is a string, a boolean or an integer from -2,147,483,648 to 2,147,483,647, and it is kept as given.
show_event_to_send, POST /v1/orgs/{org}/playbooks/{playbook}/shown-events under playbook:read, takes the same event and refuses it as publish_event refuses it, but records nothing and answers the event. An agent calls it, as a tool listed only to a client that shows Auto's interface in the chat, to show the person an event it would send by hand, with the workflows it starts, so they check it before anything is sent; the person's Send in the chat then calls publish_event.
As CloudEvents requires:
- no attribute but
data, an extension's included, may contain a control character, a lone surrogate or a noncharacter; strings insidedataare not checked for them; id,typeandsubjectneed a character that is not a space;datacontenttypeis a media type;- a
timehas a second of 60 only at the end of a day in UTC.
POST /v1/orgs/acme/playbooks/finance/events
Content-Type: application/json
{
"event": {
"source": "/ledger/eu",
"type": "com.acme.ledger.month-closed",
"id": "2026-09",
"subject": "september",
"data": { "region": "eu", "revenue": 120000 }
}
}It returns 200 with the event's id and time, and recorded_at, when the playbook recorded it:
{ "id": "2026-09", "time": "2026-10-01T09:00:00.000Z", "recorded_at": "2026-10-01T09:00:00.000Z" }list_playbook_events shows each published event as an event_published event. A published event starts the workflows whose event trigger matches it, and reaches the runs listening for its type.
Publishing the same event again
A playbook keeps one event for each source and id, so a request can be retried with the same id.
- Publishing the same event again records nothing, and returns the first
id,timeandrecorded_at. - A retry that leaves out
timeis the same event. - A retry that gives a
timeto an event first published without one is the same event too. It returns the time the runtime filled in the first time, not the one the retry gave. - Times are compared as instants, so
2026-10-01T10:59:00+02:00is the same time as2026-10-01T08:59:00Z. - A leap second counts as the first second of the next day, so
2016-12-31T23:59:60Zis the same time as2017-01-01T00:00:00Z. - A different event with the same
sourceandidreturnsconflict. - Without an
id, every request records a new event.
What the runtime keeps for itself
Some types, sources and attributes are reserved for what the runtime records itself. An event that uses one returns invalid_input:
| Reserved | Names | Refused at |
|---|---|---|
| Types | Every type the playbook's events show and every fact the playbook's capabilities declare, listed below | /event/type |
| Sources | Those beginning /runs/, /definitions/, /callers/ or /connections/ | /event/source |
| Attributes | causationid, correlationid, caller, definitionversion, depth, calldepth, calledby, triggerkind, triggerreference, automatic and own | /event/ and the attribute's name |
The reserved types are run_started, run_deferred, attempt_resumed, run_succeeded, run_rejected, run_failed, run_cancel_requested, tool_call_started, tool_call_answered, tool_call_failed, model_call_started, model_call_answered, model_call_failed, request_answered, delivery_started, delivery_succeeded, delivery_failed, delivery_refused, reply_refused, answer_set, telling_started, telling_succeeded, telling_failed, replies_read, reading_failed, interaction_requested, asset_kept, asset_expired, asset_content_removed, definition_created, definition_updated, definition_retired, definition_paused, definition_resumed, playbook_page_saved, event_published, workflow_input_applied, step_started, step_waiting, step_finished, step_failed, step_skipped and reaction_refused.
A run of a reasoning function also records each call of its model: model_call_started, then model_call_answered with the tool calls the model asked for, or model_call_failed with because. A reasoning function's model calls gives their fields.
The reserved attributes are the ones the playbook gives its own events; see What an event holds. So a published event cannot claim a cause, a caller or a depth it does not have.
Run history and playbook events
These routes are relative to /v1/orgs/{org}/playbooks/{playbook}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_runs | GET /runs | playbook:read | Optional type, name, status, steps, limit and cursor |
get_run_history | GET /runs/{run_id}/history | playbook:read | Run id in path; optional order, limit and cursor |
list_playbook_events | GET /events | playbook:read | Optional type, since, run_id, order, limit and cursor |
get_event | GET /events/{event_id} | playbook:read | Event id in path |
A retired playbook stays readable: these reads work on it, while every change to it is refused with conflict. The playbook's own creation, changes and retirement are not playbook events; get_playbook shows them.
Listing runs
list_runs returns runs, newest first by when each run first started.
- A listed run has the fields
get_runreturns, withoutoutput,recordand the detail and issues of a rejection. - A rejection shows its
reason, withkindandbecausewhen the function gave them, and thecauseof a workflow run a step ended. statuskeeps only the runs whose status isstarted,succeeded,rejectedorfailed.typeandnamekeep only the runs of one definition.steps: falseleaves out the runs that a workflow's step started. Left out,stepsistrue, and those runs are listed among the others, each with itswithin.
A run's history
get_run_history returns the events of one run in the order the playbook recorded them, oldest first unless order is desc. Each event comes after the event that caused it. The events are the facts the runtime recorded about the run: each start and how it ended. A run that does not exist in the playbook returns not_found.
Runs that use tools (a lookup function's, a reasoning function's, and an interaction function's that calls a tool) also record each call:
tool_call_started, withread_only: truewhen the tool's mark isreads, andconnection_idbesideserverwhen the server is a connection a person added;- then
tool_call_answeredwhen the tool answered, withis_errorwhen its result is an error of its own; - or
tool_call_failedwhen it never answered, withbecause:arguments_refused,server_failure,timed_out,cancelled,too_largewhen the tool's result was larger than one call may return, orinterruptedfor a call still open when its attempt ended, because the run was cancelled or its server stopped; see Cancelling a run and A reasoning run performed again.
The run of an interaction function records its request and its deliveries. Each delivery attempt starts with delivery_started and ends with delivery_succeeded, delivery_failed or delivery_refused.
| Event | Shows |
|---|---|
interaction_requested | The delivery, the party, the size of the message and the expiry |
delivery_started | The tool, the connection's connection_id where its server is one, and the size and digest of its arguments |
delivery_succeeded | Where the request landed and where its replies are read |
delivery_failed | because, including too_large for a result larger than one call may return, and retry_after_ms when the server asked for a delay |
delivery_refused | because, too_large or unworkable |
request_answered | The answer the run took, claimed_for and, for a reply, its identity |
reply_refused | Each refused reply's identity, never its words |
answer_set | The parts of the answer a click on a button set, and who clicked |
Each of the three endings of an attempt also shows the size and digest of the tool's result, when there was one. That result is the run's output, which its run_succeeded shows.
A reasoning function's model calls
A run calls its model one call at a time. Each call adds two events to the run's history, appended as they happen:
model_call_started, recorded before the call is sent. It has the call'snumber, counted from 1 across the run, themodelasked for,tools_offered, andmessages_bytes, the size of the messages the call adds to the conversation: the prompt for the first call, the answers of the tools for a later one, and for the last step of a run that called tools, the conversation told again in one message.- Then one of:
model_call_answered, when the model answered:finish_reasonandraw_finish_reason,usage,cost_usdwhere the gateway answered a cost,response_id,duration_ms,request_bytes, the size of the request the call sent,response_bytes, the model asresolved_modelandanswered_model, the provider'swarnings,tool_calls, one for each tool call the model asked for, with itscall_id, thetoolandserverit names, and the digest of its arguments,output_mode: describedwhere the call told the model the schema of a JSON answer in its instructions, as through a gateway without structured outputs, orportablewhere it sent the provider the portable form of the schema and read the answer back, andrepairwhere a JSON answer that missed its schema was asked for once more:outcome: repaired, the first answer'sissues, and the second request'susage,cost_usdandduration_ms. The call's ownusage,cost_usd,duration_msandrequest_bytesare then those of both requests. It recordsschema_refusalwhere the provider refused the request that gave it the schema, with HTTP 400 or 422, and the answer was asked for with the schema in the instructions:outcome: described, and the refused request'sstatusandduration_ms.model_call_failed, when it did not:because(cancelled,content_refused,credentials_rejected,definition_invalid,interrupted,model_not_allowed,output_invalid,provider_not_configured,provider_unavailable,rate_limited,request_too_longortimed_out), theprovider, the failure message asdetail,duration_ms, and, where they apply, theusageandcost_usdof an answer the run could not use,finish_reason,retry_after_ms, the provider's own words, the issues it named,output_mode,describedwhere the answer it could not use was asked for in the instructions orportablewhere it was asked for in the portable form, andrepairwhere that answer missed its schema:outcome: invalidwith the first answer'sissuesand the second request'susage,cost_usdandduration_mswhen it was asked for once more and missed it again,outcome: failedwithbecause, how the second request failed, such asprovider_unavailable, the first answer'sissuesandduration_mswhen that request failed, oroutcome: skippedwithbecause,input_tokens,context_windowortime, when the run had too little room left to ask; andschema_refusalwhere the provider refused the request that gave it the schema:outcome: describedwhen the answer asked for with the schema in the instructions failed,refused_againwhen the provider refused that request too, so the schema was not the cause, orskippedwithbecause: timewhen too little time was left to ask, each with the refused request'sstatusandduration_ms.
The messages each call adds and the model's response are kept in full, scrubbed of the secrets of the run's tool servers, when every tool server of the run keeps content, as record_content keeps it unless the setting is turned off. A run without tools always keeps them. The events then carry their SHA-256 digests, messages_sha256 and response_sha256, and each tool call the digest of its arguments, arguments_sha256. A call keeps only what it adds, never the whole conversation again, so what a run keeps grows with its length. A run goes on from the scrubbed messages and response whether it keeps them or not, so a secret of a tool server in the prompt or in the model's answer reaches no model call and no tool. A JSON answer is checked against its schema again once scrubbed, and one that no longer matches, such as a number that held a secret, ends the run as an answer that does not match its schema does. A run's history shows each one when it is at most 2 KiB, and its size otherwise. get_event reads them in full.
A gateway that answers what a call cost, in US dollars, in a response header gives the call its cost_usd; Gateway fields names the header. The record of the run adds up its model calls.
A workflow's history also contains one workflow_input_applied event for each input its run took. Each is followed by one event for each step that input moved, named for the state the input left the step in:
step_waiting,step_finished,step_failedorstep_skipped;step_startedfor a step that runs others, such as adoor afork, and was still running.
A step that starts and finishes in one input shows only step_finished.
The playbook's events
list_playbook_events returns the events of the whole playbook, newest first unless order is asc. They include:
- definitions created, updated and retired;
- runs started and ended;
- tool calls, and tests of a tool;
- the playbook's reads of a conversation,
replies_readorreading_failed; - its tellings,
telling_startedand thentelling_succeededortelling_failed; - its subscriptions at the service of a connection, through which the service tells it when something changes in a place a request waits in:
event_subscription_madeandevent_subscription_removed, each with theconnectionand the place astopic, andevent_subscription_failed, with the same, the failure'skindand its closer cause asbecause. Akindisconnection_broken, the connection is not connected;scope_lacking, it lacks the access subscribing takes;tool_error, the call failed or its answer could not be read;unreachable, the service did not take the call, and the playbook tries again; ornot_sent, the call was not made; - the inputs workflow runs took;
- the events published to the playbook;
- a goal's things dismissed and restored, where goals are kept:
thing.dismissed, with the thing'sgoal, itsid, itsperwhere it has one, who dismissed it asbyand the run ids of the open requests it set aside asrequests, andthing.restored, with the samegoal,id,perandby, whosebyis the playbook itself,playbook:and its name, where a request asked about the thing after its dismissal restored it. Thegoalandidare whatdismiss_goal_thingtakes to restore the thing.
| Filter | Keeps |
|---|---|
type | One event type |
since | What the playbook recorded from that time on, in either order |
run_id | What one run and every run it started recorded, such as the functions a workflow called: its whole tree |
since is an ISO 8601 time with its offset, such as 2026-10-05T09:00:00Z. Its date must exist in the calendar and its hour must run from 00 to 23, so T24:00:00Z is refused.
A run that another run started belongs to the tree of the run at its top, so filtering by its own id returns no events. Read the tree from the id of the run you started.
Tool-call content
Tool-call events identify the server, the tool, the sizes of the arguments and the result, and how each call ended. The playbook keeps the full arguments and result of every call, scrubbed of secrets, unless record_content is turned off for the server.
- The sizes are of the scrubbed text the playbook keeps.
- A kept text's SHA-256 digest,
arguments_sha256orresult_sha256, is the key it is kept under. It is present only when the text was kept. - The history shows
argumentsandanswerwhen each is at most 2 KiB, and otherwise their sizes.get_eventreads one event with both in full. - Anyone with read access to the playbook can read that history.
A started call without an answer may have had an external effect; absence of an answer does not prove it was cancelled before acting.
Event fields
Each event has these fields, and no others:
| Field | Contents |
|---|---|
id | The event's id, a UUID that stays the same on every read; a step's is its input's id, an underscore and a number |
type | What happened, such as run_started, delivery_failed or step_finished |
summary | A sentence in plain language |
data | The fact itself, at most 4 KiB as JSON |
metadata | Where the event is recorded, when, who acted, and which definition, run and chain it belongs to |
metadata always has the first seven fields below, and each other field only when the event has it:
| Field | Contents |
|---|---|
stream | The stream the event is recorded in, such as playbook/acme/finance/runs/<run id> |
position | The event's number in its stream, from 1 |
global_position | The store's sequence across every playbook, with gaps; it is not the order a page reads events in |
correlation_id | The id of the run at the top of the chain the event belongs to, or null |
causation_id | The id of the event that directly led to this one, or null when nothing recorded did, such as for a run you started |
at | When it happened, by its own clock, in ISO 8601 UTC |
by | Who acted: a caller's id, playbook: and the playbook's id for the playbook's own work, or runtime for what the runtime records of its own accord, such as a connection whose credential it found it cannot read |
run_id | The run the event belongs to, when it belongs to one |
definition | The type, name and, when the event names one, version of the definition the run carries out or the event is about |
called_by | On a run a workflow's call started: the calling run's run_id, the reference of the call in its document, and run, which run of the call it is |
call_depth | On a run a call started: how many calls are above it |
depth | On a run a trigger or another run started, and on an event a workflow emitted: how many reactions are above it |
trigger | On a run a trigger started: its kind, event, cron or every, and its reference in the document |
acts_for | On a run a trigger started, and on the runs its steps started: the id of the person it acts for, as on the run |
trace_id, span_id | The trace and span of the append that recorded the event, one pair for every event of one append; with telemetry on, the trace the server exported |
What data shows
data keeps each event within 4 KiB:
- Large values are shown in full when each is at most 2 KiB as JSON. They are an input, an output, a record, an answer, a call's arguments, a model call's messages, response, tool calls, warnings, issues and repair, and a published event's data. A larger one is shown as its size in bytes, under its name plus
_bytes, such asoutput_bytes. A call'sresultis never shown byget_run_historyorlist_playbook_events, only its size,result_bytes;get_eventreads it in full. - When the event's data would still be larger than 4 KiB, its largest field is shown as its size first.
- A definition's document and schemas appear as their sizes. Its description shows its first 300 characters, and its warnings as a count.
- A rejection shows its reason, its detail shortened to fit, for invalid input the number of issues and the first five, and the
causeof a workflow run a step ended, its step and run id shortened to fit. - A rejection that kept a record shows the record as a success does. A run of a reasoning function keeps one when it is rejected after its model answered.
The full values are read elsewhere: get_run returns a run's output and record, get_definition a definition's document and schemas, and get_event one event with every field in full.
Some events show more in data:
workflow_input_appliedshows the kind and key of the input and how many steps it moved. It lists the first five, each with its task, run and outcome. For a function's rejection that has a kind and abecause, it shows both, and its summary says them in words. It also shows the kinds of what the run did next. It never shows the run's data.- A step event shows the step's
nameand itsreferencein the document. It also showsrun, which counts each time the step starts, andtimes, which counts how often it moved that way in that run. step_waitingadds what it waits for,call,timer,eventoradmission. For a call it adds therun_idof the run it started, whoserun_startednames the input that started the call as its cause. Foradmission, a call the meter would not start for now (When the runtime will not start the run for now), it adds the refusal'sdetail, itskind, itsbecause, itsresolve_at, itslifts_atand itslimited_becausewhere it gave them,retry_at, when the step tries again, anduntil, when it stops waiting, both in ISO 8601 UTC; its summary says what it waits for, why, when it tries again and stops waiting, and where to fix it.step_failedadds how it failed, and its error's type and title.event_publishedshows the published event'sevent_id,event_type,source,subject,timeanddata, and which attributes the runtimefilledin.reaction_refusedshows how many times in theminutea trigger did not start its workflow, ascount, and the lastreason. Where the last refusal had them, it adds thetriggerthat refused, with itskindandreference, and thekindandbecauseof the start's rejection, the same codes a run's rejection has, such ascredits_exhaustedandfree_daily_limit.
Some events say more in their metadata:
- For an event a workflow emitted,
metadatanames the run inrun_id, the workflow and its version indefinition, and its depth in a chain of triggers indepth. - A
reaction_refusedevent'smetadatanames the workflow and the version whose trigger refused, indefinition. - A run that a trigger started shows
playbook:and the playbook's id asby. Every event of it shows thetriggerthat started it in itsmetadata, with itskindandreference, and, where it acts for a person,acts_for. Itsrun_startedsays in words which kind it was, such as "was started by its every schedule".
How events link
Each event's causation_id links the events of a run into a graph.
- A run you start has no cause.
- A workflow run's start is followed directly by its inputs and their steps. Its first input is caused by its start.
- A step's event has the id of the input that moved it, an underscore and its number among the steps that input moved, such as
<input id>_2. - A step's event is caused by what came before it in that input:
- the input, for the first step;
- the step before it in its list;
- the
switchthat chose it; - the
forkit is a branch of; - the failed attempt a retry repeats.
- A step that continues from an earlier input is caused by the input that moved it on. That input (a call's result, a delivered event or a fired timer) is caused by the input whose step waited for it.
- A run that a step's call started is caused by the input that started the call, and the run's end by the input that ended it.
- A run that an event trigger started names the event's record as its cause.
- A run that a schedule started names as its cause the record that saved its schedule in its current form. That record comes before the record of the run's
definition_versionwhen a later version left the schedule unchanged.
Reading one event
get_event reads one event in full by its id, as get_run_history and list_playbook_events show it. It has the same type, summary and metadata. Its data has every field in full. A call's arguments and result are read from what the playbook kept, and answer is the document read from the result. Use it to open a tool's result, or an input or output too large for a page, from the history.
- A step event's id goes in the path unchanged, such as
GET /events/0199a3c4-7d2e-7c1a-9b3f-2f1e0d9c8b7a_2. - Its number counts from 1 without a leading zero, so
_0and_02are refused withinvalid_input. - An id the playbook does not have, whether of another playbook or of a step its input did not move, returns
not_found.
Over MCP, a field that may be large is shown in full only up to 64 KiB, as the MCP reference says.
Paging
Every page carries has_more and next_cursor, on the page and not on its events. Pass next_cursor as cursor to read the next page, until next_cursor is null.
limitis 1 to 100, and 20 when left out.limitcounts the events a page returns, step events included. A page can end between the step events of one input; itsnext_cursorcontinues from the next one.- Cursors are opaque. A cursor this playbook did not give returns
invalid_inputat/cursor.
A page can contain fewer items than limit, or none, while has_more is true:
- records with no event type are left out;
- a page stops after loading 4 MiB of stored data;
- with
status,type,nameorsteps: false, a page stops after looking at 1,000 runs or records.
Comments
A person comments on what Studio shows, where they see it: of a playbook, a definition, a step of a workflow, a run, an event of a run, a block of a run's result, a request or the playbook itself; of the organization, a connection, a member, a page of Settings or the organization itself; and a part of most of these. Each comment names what it is about by its address, and stays open until a person or an agent resolves it; a person can reopen a resolved one. A comment dropped on the thing carries its anchor, where on the thing it was dropped, and Studio draws it there as a pin. The person hands the open comments to their agent, which reads them, acts on each and resolves it. A playbook's comments have these routes, relative to /v1/orgs/{org}/playbooks/{playbook}, and the organization's own have the same four under /v1/orgs/{org} (The organization's comments):
| Operation | Method and route | Permission | Input |
|---|---|---|---|
make_comment | POST /comments | playbook:read | address, text and an optional anchor |
list_comments | GET /comments | playbook:read | Optional address, under, open, limit and cursor |
resolve_comment | POST /comments/{id}/resolve | playbook:read | Comment id in path; how |
reopen_comment | POST /comments/{id}/reopen | playbook:read | Comment id in path |
- Commenting, resolving and reopening are a reader's acts: anyone who may read the playbook may comment on it, and resolve and reopen its comments, their own or anyone's.
make_commentandreopen_commentare served over HTTP alone, so an agent does not comment on its own work, and a person, not an agent, reopens a comment.list_commentsandresolve_commentare also MCP tools.- A comment cannot be edited. A person corrects one by resolving it and commenting again, and replies by commenting on the same address.
- A comment on a definition or a step belongs to that definition: it is read in the playbook that holds the definition now, under the name the definition has now. Every other comment belongs to the playbook whose thing it is about, and a comment on the organization's things to the organization. A retired playbook's comments stay readable, open or resolved, and
make_comment,resolve_commentandreopen_commentthere are refused withconflictwith the kindretired, as every change to it is: its comments can be read and reported, never resolved, reopened or added to.
A comment
Each operation answers a comment with these fields:
| Field | Contents |
|---|---|
id | The comment's id, a UUIDv7 the runtime gives it |
address | The address of what it is about |
text | What the person said, in Markdown |
anchor | Where on the thing the person dropped it, { x, y }, as Making a comment sets out; null for a comment made without one, as a reply is |
by | The id of the caller who made it. An agent connected as a person comments as that person |
by_name | The name of the caller who made it, as the runtime names them, as created_by of a definition gives it |
at | When it was made, in ISO 8601 UTC |
open | true until it is resolved, and again once it is reopened |
resolved_at | When it was resolved, in ISO 8601 UTC; null while it is open, a reopened one included |
resolved_by | The id of the caller who resolved it; null while it is open, a reopened one included |
resolved_how | acted, done as it asked, or dismissed, closed without acting; null while it is open, a reopened one included |
reopened_at | When it was last reopened, in ISO 8601 UTC; null until it is first reopened, and kept when it is resolved again |
reopened_by | The id of the caller who last reopened it; null until it is first reopened, and kept when it is resolved again |
studio | The comment's place in Studio, which opens its address and shows the comment beside it, as Links to Studio says; left out where Studio would not open it |
Studio shows text as Markdown, and any HTML in it as text, as a page shows its Markdown (Markdown, not HTML).
Making a comment
make_comment takes:
address, the address of what the comment is about, in one of the forms a comment takes, naming this playbook, at most 512 characters;text, Markdown of at most 4,000 characters as sent, counted before the white space around it is dropped, and stored without that white space; it cannot be empty or all white space, and holds no control character but a tab and a line break, no unpaired surrogate and no noncharacter;anchor, optional, where on the thing the person dropped the comment:{ x, y }, each a number from 0 to 1 with at most 4 decimals, the fraction of the thing's box as Studio draws it,xfrom its left edge to its right andyfrom its top to its bottom. It is left out for a comment made without a pin, as a reply in a thread is, so the pins of a thread do not pile up, and ananchorofnullis taken as left out. The runtime keeps it as given and never reads what it points at.
An anchor out of that range or with more than 4 decimals is refused with invalid_input at /anchor, Expected x and y, each a number from 0 to 1 with at most 4 decimals, and one that is neither an object nor null there too, Expected object | null. One of another shape is refused at the field within it: a missing x or y at /anchor/x or /anchor/y, Missing key; an x or y that is not a number there, Expected number; and a key it does not take, such as z, at /anchor/z, Expected no excess property.
It records one fact, comment_made, on the comment's own stream, and answers 201 with the comment. The stream of a comment on a definition or a step is definition/<org>/<definition>/comments/<id>, and the fact keeps the definition's id; the stream of every other comment is playbook/<org>/<playbook>/comments/<id>. An address of a definition or a step whose type and name no definition of the playbook holds is refused with not_found. The runtime checks nothing else about whether the thing exists, so a comment on a retired definition is still a comment (What the runtime checks).
POST /v1/orgs/acme/playbooks/finance/comments
Authorization: Bearer <key>
Content-Type: application/json
{
"address": "finance/definitions/workflow/close-the-week/4/steps/do/1/review",
"text": "Flag any entry over $10,000 for Priya before the week closes.",
"anchor": { "x": 0.6125, "y": 0.4 }
}{
"id": "019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f",
"address": "finance/definitions/workflow/close-the-week/4/steps/do/1/review",
"text": "Flag any entry over $10,000 for Priya before the week closes.",
"anchor": { "x": 0.6125, "y": 0.4 },
"by": "person:user_7kLm2",
"by_name": "Priya Raman",
"at": "2026-11-02T10:14:03.218Z",
"open": true,
"resolved_at": null,
"resolved_by": null,
"resolved_how": null,
"reopened_at": null,
"reopened_by": null,
"studio": "https://studio.on.auto/?server=https%3A%2F%2Fruntime.example.com&playbook=finance&workflow=close-the-week&version=4&step=do%2F1%2Freview&comment=019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f"
}Listing comments
list_comments returns comments, newest first by at, each with its anchor or null, with has_more and next_cursor.
| Parameter | Rule |
|---|---|
address | An address of this playbook, or on the organization's routes of the organization's things: keep the comments on it. Left out, every comment of the playbook, or of the organization's own |
under | true keeps the comments on address and on what is under it, as the list below says; false when left out. With under, address may also name a definition without its version, <playbook>/definitions/<type>/<name> |
open | true keeps the open comments, false the resolved ones; true when left out |
limit | 1 to 200, and 50 when left out |
cursor | The next_cursor of the page before |
underon any address keeps the comments on it and on its parts,<address>/parts/<part>.underon a run also keeps the comments on its events and the blocks of its result. The request of the run,<playbook>/<run_id>, is not under it.underon a definition at a version also keeps the comments on each of its steps.underon a definition without its version keeps the comments on every version of it, their parts and their steps.underon the playbook,playbooks/<playbook>, keeps the comments on the playbook itself and its parts, and none on what it holds.underonorgkeeps those on the organization itself and its parts, and none on its connections, members or pages of Settings.underon a step, an event, a block or a request, which take no parts, keeps the comments on that address alone: a step nested in it is not under it.- Pass
next_cursorascursorto read the next page, untilnext_cursorisnull. Cursors are opaque, and each names its playbook, or the organization: one of another playbook, one of the organization's comments on a playbook's route or the reverse, or one that does not decode, is refused. open=falselists the resolved comments, each withopen: false, so a resolved comment stays readable here, as its link reads it. The activity lists only open ones.
GET /v1/orgs/acme/playbooks/finance/comments?address=finance%2Fruns%2F019a4012-7c3e-7d10-9b2a-4e6f8a1c2d3e&under=true
Authorization: Bearer <key>{
"comments": [
{
"id": "019a4122-0c1d-7e2f-8a3b-4c5d6e7f8091",
"address": "finance/runs/019a4012-7c3e-7d10-9b2a-4e6f8a1c2d3e/result/2",
"text": "This total leaves out the refunds.",
"anchor": null,
"by": "person:user_3pQr8",
"by_name": "Tomás Ortega",
"at": "2026-11-02T10:31:44.902Z",
"open": true,
"resolved_at": null,
"resolved_by": null,
"resolved_how": null,
"reopened_at": null,
"reopened_by": null,
"studio": "https://studio.on.auto/?server=https%3A%2F%2Fruntime.example.com&playbook=finance&ledger=&run=019a4012-7c3e-7d10-9b2a-4e6f8a1c2d3e&block=2&comment=019a4122-0c1d-7e2f-8a3b-4c5d6e7f8091"
}
],
"has_more": false,
"next_cursor": null
}Resolving a comment
resolve_comment takes the comment's id in its path, a UUID read in lower case, so 019A4120-… names the same comment as 019a4120-…, and how: acted once what the comment asked is done, or dismissed to close it without acting. It records one fact, comment_resolved, on the comment's stream, and answers the comment, closed.
- Resolving a comment that is resolved already records nothing and answers it as it stands, with the
howit was resolved with. - A resolved comment leaves the activity: its row is no longer listed or counted.
- A comment that was reopened is resolved again as any open comment is, with a new
comment_resolved.
POST /v1/orgs/acme/playbooks/finance/comments/019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f/resolve
Authorization: Bearer <key>
Content-Type: application/json
{ "how": "acted" }{
"id": "019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f",
"address": "finance/definitions/workflow/close-the-week/4/steps/do/1/review",
"text": "Flag any entry over $10,000 for Priya before the week closes.",
"anchor": { "x": 0.6125, "y": 0.4 },
"by": "person:user_7kLm2",
"by_name": "Priya Raman",
"at": "2026-11-02T10:14:03.218Z",
"open": false,
"resolved_at": "2026-11-02T11:02:57.640Z",
"resolved_by": "person:user_7kLm2",
"resolved_how": "acted",
"reopened_at": null,
"reopened_by": null,
"studio": "https://studio.on.auto/?server=https%3A%2F%2Fruntime.example.com&playbook=finance&workflow=close-the-week&version=4&step=do%2F1%2Freview&comment=019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f"
}A request with several faults is refused for the first: a retired playbook before any field, then the fields in the order the table lists them, except that the input is checked as a whole before the form of its address. So a request with both a bad anchor and an address of no form a comment takes is refused for the anchor, and errors names each field the check of the whole input refused, such as /text and /anchor together.
| Case | Response |
|---|---|
make_comment, resolve_comment or reopen_comment in a retired playbook | conflict with the kind retired |
An address that is not of a form a comment takes, names another playbook, is the organization's on a playbook's route or a playbook's on the organization's, or is over 512 characters | invalid_input at /address |
An address of a definition or a step whose type and name no definition of the playbook holds | not_found |
A text that is empty, all white space or over 4,000 characters as sent, or that holds a control character other than a tab or a line break, an unpaired surrogate or a noncharacter | invalid_input at /text |
An anchor that is neither an object nor null, or whose x or y is not from 0 to 1 with at most 4 decimals; one with a missing x or y, an x or y that is not a number, or another key, at that field | invalid_input at /anchor; at /anchor/x, /anchor/y or the key's own pointer, such as /anchor/z |
under without address | invalid_input at /under |
A limit outside 1 to 200 | invalid_input at /limit |
A cursor that does not decode, or that names another playbook, or the organization on a playbook's route or a playbook on the organization's | invalid_input at /cursor |
A how that is not acted or dismissed | invalid_input at /how |
An id that is not a UUID | invalid_input at /id |
| A UUID no comment of the playbook has | not_found |
A resolve_comment or reopen_comment that meets another of either of the same comment at the same moment | conflict; send it again |
Reopening a comment
reopen_comment takes the comment's id in its path, read as resolve_comment reads it, and no body. A person reopens a comment that was resolved before what it asked was done. It records one fact, comment_reopened, on the comment's stream, whose context says who reopened it and when and which holds no data, and answers the comment, open again: open is true, resolved_at, resolved_by and resolved_how are null, and reopened_at and reopened_by say when and by whom.
- Reopening a comment that is open, one never resolved or one reopened already, records nothing and answers it as it stands.
- A reopened comment is open as any other:
list_commentslists it among the open ones, andresolve_commentresolves it again. - The activity lists it again, at the time it was reopened, as new to everyone but who reopened it, as Seen and counted says.
list_playbook_changesnames it as a comment change, andlist_org_changesone of the organization's own.- Its
text,anchor,byandatstay as it was made: a comment is never edited.
It is refused as resolve_comment is, by the table above: a retired playbook, an id that is not a UUID, a UUID no comment of the playbook has, and one that meets another change to the same comment at the same moment.
POST /v1/orgs/acme/playbooks/finance/comments/019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f/reopen
Authorization: Bearer <key>{
"id": "019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f",
"address": "finance/definitions/workflow/close-the-week/4/steps/do/1/review",
"text": "Flag any entry over $10,000 for Priya before the week closes.",
"anchor": { "x": 0.6125, "y": 0.4 },
"by": "person:user_7kLm2",
"by_name": "Priya Raman",
"at": "2026-11-02T10:14:03.218Z",
"open": true,
"resolved_at": null,
"resolved_by": null,
"resolved_how": null,
"reopened_at": "2026-11-02T14:37:12.085Z",
"reopened_by": "person:user_3pQr8",
"studio": "https://studio.on.auto/?server=https%3A%2F%2Fruntime.example.com&playbook=finance&workflow=close-the-week&version=4&step=do%2F1%2Freview&comment=019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f"
}The organization's comments
The organization's own comments, those on the organization's things and their parts, have the same four operations, relative to /v1/orgs/{org}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
make_comment | POST /comments | org:read | address, text and an optional anchor |
list_comments | GET /comments | org:read | Optional address, under, open, limit and cursor |
resolve_comment | POST /comments/{id}/resolve | org:read | Comment id in path; how |
reopen_comment | POST /comments/{id}/reopen | org:read | Comment id in path |
They take, answer and refuse as a playbook's do, with these differences:
make_commenttakes only an address of the organization's things:org,org/connections/<connection>,org/members/<member>ororg/settings/<page>, each with or without/parts/<part>. It recordscomment_madeon the comment's own stream,org/<org>/comments/<id>,resolve_commentrecordscomment_resolvedthere andreopen_commentrecordscomment_reopened.list_commentswithoutaddresslists the organization's own comments, and none of its playbooks'. An agent that reads every open comment reads these and each playbook's.- A comment of the organization's own belongs to no playbook, so none is refused as
retired. Each of the four needsorg:read, so a member with access to only some playbooks can't use them. resolve_commentorreopen_commentof an id the organization's own comments do not hold, a playbook's comment among them, isnot_found.- On
/mcp,list_commentsandresolve_commentwithoutplaybookare these operations (MCP reference).
POST /v1/orgs/acme/comments
Authorization: Bearer <key>
Content-Type: application/json
{
"address": "org/connections/019a3f10-2b4c-7d5e-8f60-718293a4b5c6",
"text": "The CRM stopped answering on Friday. Can you get it connected again?",
"anchor": { "x": 0.18, "y": 0.5 }
}{
"id": "019a4131-9d2e-7f40-8a51-6b7c8d9e0f12",
"address": "org/connections/019a3f10-2b4c-7d5e-8f60-718293a4b5c6",
"text": "The CRM stopped answering on Friday. Can you get it connected again?",
"anchor": { "x": 0.18, "y": 0.5 },
"by": "person:user_3pQr8",
"by_name": "Tomás Ortega",
"at": "2026-11-02T11:20:09.511Z",
"open": true,
"resolved_at": null,
"resolved_by": null,
"resolved_how": null,
"reopened_at": null,
"reopened_by": null,
"studio": "https://studio.on.auto/?server=https%3A%2F%2Fruntime.example.com&settings=connections&comment=019a4131-9d2e-7f40-8a51-6b7c8d9e0f12"
}Changes
A client learns of changes by asking what changed since the cursor of its last answer. The runtime holds the request until something changes, so the client does not poll. These two routes are served over HTTP alone; no MCP tool serves them.
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_org_changes | GET /v1/orgs/{org}/changes | org:read or playbook:read | Optional since and wait |
list_playbook_changes | GET /v1/orgs/{org}/playbooks/{playbook}/changes | playbook:read | Optional since and wait |
Each returns cursor, changes and more:
{
"cursor": "WyIxMjMiLCIwNmJhYjQ1YS0wNTVhLTU4ZTQtOWQ0Zi1mNmRkYTk0MDJjZjgiXQ",
"changes": [
{ "kind": "definition", "type": "reasoning", "name": "summary" },
{ "kind": "run", "run_id": "0199f7a2-6c1e-7b3a-9d40-5e8f1a2b3c4d" }
],
"more": false
}- Without
since, the response comes at once, with the cursor of now and no changes, so a client starts from now. - A change names only what the caller may read, as the routes that read it decide.
list_org_changesnames a playbook only to a caller that may access it, aslist_playbookslists it, a connection only to a caller withorg:read, and a comment of the organization's own to every caller, as itslist_commentsreads it. What the caller may not read ends no held request. A response that lists nothing and says nomoregives back the cursor it was given, so the caller learns nothing of what it may not read. - With
since, the cursor of an earlier response, the response comes at once when something changed after it. Otherwise the runtime holds the request until the next change, or untilwaitseconds pass and it answers no changes with the cursor it was given. A server that stops answers every request it holds at once, the same way. waitis 0 to 25 seconds, 25 when left out. A larger or negativewaitreturnsinvalid_inputat/wait.cursoris opaque: the ledger's point after the last change listed. Give it back assince. A cursor the ledger does not hold, such as one of another database or of another playbook, returnsinvalid_inputof the typehttps://on.auto/problems/cursor_not_held; ask again withoutsince.changeslists at most 200 resources, in the order the ledger recorded what changed them, each once; one record may name several. Whenmoreistrue, more changed already: ask again at once with the newcursor.- Each change names a resource and its identity, nothing else. Read the resource through its own route.
| Route | kind | Identity | What names it |
|---|---|---|---|
list_org_changes | playbook | playbook | A playbook created, updated or retired |
list_org_changes | connection | connection | A connection added, connected, broken or removed, asked for more, given the organization's own OAuth client, or its playbooks set |
list_org_changes | comment | comment_id | A comment of the organization's own made, resolved or reopened |
list_playbook_changes | playbook | None, since the playbook is the route's own: { "kind": "playbook" } | The playbook's page saved or removed; list_org_changes names the playbook of its own change |
list_playbook_changes | definition | type, name | A function or workflow saved, paused, resumed or retired |
list_playbook_changes | run | run_id | A run started, given an input or an event, or ended |
list_playbook_changes | interaction | run_id | Everything the run of an interaction function records: its request opened, answered, expired, undelivered or cancelled, beside the run |
list_playbook_changes | event | event_id | An event published to the playbook, a refusal of its reactions, a call of a tool by hand and a telling or a read of a conversation, by the id list_playbook_events lists it by |
list_playbook_changes | comment | comment_id | A comment made, resolved or reopened, so a client that shows it learns when someone resolves or reopens it |
A run's own records, its steps and its tool calls name the run; read them with get_run_history given its run_id, or with list_playbook_events given the run_id of the run at the top of its tree. A new link or consent of a connection names nothing until the connection is connected.
The organization's activity
The organization's activity is what its playbooks did that a person may want to see: the requests that wait on an answer, the answers people gave, the definitions whose latest run broke, the runs, definitions and playbooks that are new, and the open comments people made on them and on the organization's own things. The runtime keeps it for the whole org, with what each caller has seen, so a client shows it with one read however many playbooks the org holds, and what a person marks seen on one device shows on every other. These two routes are served over HTTP alone; no MCP tool serves them. They are relative to /v1/orgs/{org}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_activity | GET /activity | org:read or playbook:read | Optional kind, playbook, mine, since, limit, cursor and, where goals are kept, dismissed |
mark_activity_seen | POST /activity/seen | org:read or playbook:read | items, through or both |
Each reads and marks only the activity of the playbooks the caller may access, as list_playbooks lists them, and the organization's own comments, which belong to no playbook, only for a caller who may access every playbook of the org; a caller who may access some playbooks alone reads the organization's comments with list_comments on the org's route (The organization's comments) and sees none of them in the activity, while list_org_changes names each of them to every caller, as that route reads them. What a caller marks seen is theirs alone and changes nothing for anyone else.
The rows
list_activity returns rows, newest first by at, with has_more, next_cursor, counts and through. Each row is one item of one of five kinds:
kind | The item | Its at | Listed |
|---|---|---|---|
needs_you | A request of an interaction function that takes an answer, a request a workflow's call made included | When the request was made | Until it is answered, expires or ends with its run |
broken | A definition whose latest run at its current version failed or was rejected. One row per definition, naming the version it broke on and its latest failing run. A cancelled run is neither a failure nor a success, and a request that expires unanswered closes its request alone | When its latest failing run ended | Until a run at that version or a later one succeeds, a new version of the definition is saved, or the definition is retired |
new | A run no other run started that succeeded; a function or workflow saved, each version its own item; or a playbook created or updated, each change its own item | When the run ended, or the version or the change was saved | Always |
comment | A comment on something of a playbook, or of the organization's own | When it was made, or, once reopened, when it was last reopened | Until it is resolved, and again from when it is reopened |
decision | A request that someone answered: who answered it, and the run that asked, the workflow's run where a workflow's step asked | When it was answered | Always |
A run that a workflow's call started has no new or broken row of its own: the row of the workflow's run stands for what it did. A request, a broken definition or a comment is listed only while open, and nothing is served about it once it is resolved: get_run says what became of a request, and list_comments reads a resolved comment. A request someone answered is listed again, as a decision row. A definition that breaks again opens its row again, at the time of the new break, and a comment that is reopened opens its row again, at the time it was reopened.
The rows of playbooks come from the org's register of playbooks, which list_activity reads beside the other rows and merges with them by at: the newest 100 changes of the register, so an older change has no row.
Where goals are kept, three more kinds list what the goals of the playbooks came to:
kind | The item | Its at | Listed |
|---|---|---|---|
goal | The verdict of an assessment of a goal, passed or failed, where the goal's notify asks to be told of it now or in a summary | When the verdict was recorded | Always |
goal_overdue | An assessment of a goal that came due with no verdict, where the goal's notify asks to be told of it | When it became overdue | Until it is judged or ends |
goal_changed | A verdict of a goal measured by calendar window that differs from the verdict of the goal's window before it, whatever its notify asks: the goal turned from passing to failing, or back. The first verdict of a goal is no change, and a goal judged per item or once whole has none, so the log holds one row for each turn of a goal | When the verdict was recorded | Always |
A goal_changed row has the address of its assessment, as the goal row of the same verdict has, so a client can show the two as one line; next_cursor tells them apart, so each is read once. Neither goal_changed nor decision is counted, and its seen is null. A verdict recorded before the runtime kept the verdict before it, in a release before this one, lists no change.
Each row has these fields:
| Field | Contents |
|---|---|
kind | needs_you, broken, new, comment or decision |
address | The item's address, which mark_activity_seen takes |
cursor | The row's place in the activity, which since, cursor and through take |
playbook | The id of the playbook the item belongs to; null for a comment of the organization's own |
at | When the item came about, by its kind, in ISO 8601 UTC |
by | The id of the caller who started the run, saved the version or changed the playbook; for a request, who started the run that asked; for a comment, who made it, a reopened one's included; for a decision, who answered |
by_name | For comment, the name of who made it, and for decision, of who answered, as the runtime names them; otherwise null |
change | For a version or a playbook, created or updated; otherwise null |
trigger | For a run a trigger started, its kind, event, cron or every, and its reference in the document; otherwise null |
definition | The type, name and version of the definition: the run's, the version saved, or for broken the version it broke on; for a comment, the definition and the version its address names, a step's workflow among them; null for a playbook, and for a comment whose address names no definition |
run_id | The run that asked, the latest run that broke, or the run that succeeded; for a decision, the run the request was asked in, the workflow's run where a workflow's step asked, whose result says what the answer led to; for a comment, the run its address names, that of an event, a block or a request among them; null for a version, a playbook, and a comment whose address names no run |
output_shape | For a run that succeeded, the output shape its output takes, where it takes one; otherwise null. Read the run with get_run for its result and headline |
told | For a run that succeeded, true where its workflow's output.activity held for it, so its outcome is worth telling people, and false otherwise; null for a version, a playbook and the other kinds. headline gives the headline that says it |
told_goal | For a run whose outcome is worth telling, the id of the goal its workflow's output.activity says the outcome is about, where it names one; otherwise null |
message | For needs_you and decision, the first line of the request's message, and for comment, the first line of the comment's text, cut, where it is longer, to 200 characters: 199 and an ellipsis (…); otherwise null |
answer_schema | For needs_you, the JSON Schema the answer takes, as the request carries it, where it is at most 8 KiB as JSON, so a client can answer a yes or no, a choice or a line in the row; null for a larger one, which the run's request holds whole, and for the other kinds |
detail | For broken, the detail of the latest failing run's rejection, cut, where it is longer, to 200 characters: 199 and an ellipsis; null for a run that failed inside the runtime or a rejection without one, and for the other kinds |
status | For broken, how the latest failing run ended: failed, a run that failed inside the runtime, or rejected; otherwise null |
waits_on | For needs_you, whom the request waits on: the person its party names by id, such as person:user_7kLm2; the address its party names, in lower case, where the party is one, holding an @; or any_member where it names none. See Whom a request waits on. null for the other kinds |
expires_at | For needs_you, when the request expires unanswered, in ISO 8601 UTC; otherwise null |
about | For comment, the address of what the comment is about; otherwise null. Its definition and run_id are read from this address, so a comment on a run names its run and no definition. Read the comment whole with list_comments |
seen | For new and comment, whether the caller has seen it, as Seen and counted says; null for the other kinds, which nothing a caller marks seen changes |
decided | For decision, what was decided, read from the answer by the request's answer schema, as What a decision decided sets out; null for an answer it cannot read so, and for the other kinds |
headline | For a new run whose told is true, the run's headline, the first line of its page's result, and for decision, the headline of the run in run_id, once that run has succeeded; null before it has, for a run whose definition has no page or whose result cannot be read just now, and for the other kinds. A client needs no get_run for it |
rejection | For broken, the codes of how the latest failing run was rejected, as get_run gives them without their words: its reason, kind and because, each where it has one, and cause, the step whose work ended it, how that work ended, status, and its own reason, kind and because; null for a run that failed inside the runtime, one that cannot be read just now, and the other kinds |
Where goals are kept, each row also has goal, the id of the goal, outcome, passed, failed or overdue, word, the goal's own words for its verdict, title and says, what the latest observation said of the thing judged, and result_at, the time the verdict names, each null for the other kinds. A goal_changed row adds these fields, which no other row has:
| Field | Contents |
|---|---|
previous | The verdict of the goal's window before, passed or failed, which outcome differs from |
previous_word | The goal's own words for that verdict, as its goals say them now; null where they say none |
label | The success.label of the goal, what it measures, as its goals say it now; null where they say none |
statement | The goal's statement, as its goals say it now; null where they say none |
value | The latest measure an observation gave before the verdict, a number; null where none did, as for a verdict given at a deadline |
Its run_id is the run whose observation decided the verdict, and null for a verdict the clock gave at the window's due time or deadline.
An address is the playbook, or the organization, and the row's key in the activity, in the forms Addresses sets out:
| Item | address |
|---|---|
| A request, or its decision | <playbook>/<run_id> |
| A broken definition | <playbook>/<type>/<name> |
| A run that succeeded | <playbook>/runs/<run_id> |
| A version saved | <playbook>/definitions/<type>/<name>/<version> |
| A playbook created or updated | playbooks/<playbook>/<at>, at in milliseconds since 1970-01-01T00:00:00Z |
| A comment | <playbook>/comments/<id> |
| A comment of the organization | org/comments/<id> |
| A goal's assessment, the verdict, the overdue and the change of verdict of it | <playbook>/assessments/<id> |
What a decision decided
A decision row's decided says what the person decided, read from the answer by the request's answer schema, so a client can show it in the row without reading the run:
kind | The answer schema | decided |
|---|---|---|
choice | A string with enum, or a oneOf of string consts, as the whole answer, or an object with exactly one such property among its required ones | { kind, field, option } |
yes_no | A boolean as the whole answer, or an object whose only required property is one | { kind, field, value } |
text | A string with no options as the whole answer, or an object whose only required property is one | { kind, field, text, cut } |
field is the property the decision was read from, null for a whole answer; the other properties of the answer, such as a note beside a choice, are not served. text is the answer's first line, at most 120 characters, cut at the last whole word that fits, and cut is true where it was cut or the answer had more lines, so a client marks the cut itself. decided is null for any other answer: several choices, several required properties with no one choice among them, a number, an answer that does not match its schema, an answer kept by reference rather than inline, and a request whose answer schema was over 8 KiB. Read the run with get_run for the whole answer.
decided, headline and rejection are read from the runs of the rows of the page as the page is served, at most one read of each run, so a page costs no more reads than it holds rows. A read that fails leaves its field null and the rest of the page as it is.
Reading the activity
| Parameter | Rule |
|---|---|
kind | One kind, or several separated by commas, such as needs_you,broken: keep the rows of those kinds; comment keeps the open comments |
playbook | A playbook id: keep the rows of one playbook, which leaves out the organization's own comments |
mine | true keeps, of the new and comment rows, those whose by is the caller, and leaves the rows of the other kinds as they are; false when left out |
since | A cursor: keep the rows newer than the row it names |
limit | 1 to 200, and 50 when left out |
cursor | The next_cursor of the page before |
- Pass
next_cursorascursorto read the next page, untilnext_cursorisnull. - Cursors are opaque. One that does not decode, or that names a playbook of another org, is refused.
- A caller who may access only some playbooks names one of them in
playbook; a read that names none answersforbidden. A caller who may access every playbook of the org reads them all without it. - A retired playbook has no rows:
playbooknaming one answers no rows. countsandthroughare the same whatever the filters and the page.- Where goals are kept, the
needs_yourow of a request that a dismissal of a thing of a goal set aside is left out while the thing stays dismissed, aslist_interactionsleaves the request out, andcounts.needs_youdoes not count it.dismissed=includelists those rows too, each withdismissed: thegoalandidof the thing, when it was dismissed and the id of who dismissed it;countsleaves them out either way. - The rows are kept as each fact is recorded, so a read is as current as the playbooks' history. A client reads again when it wants the counts current;
list_org_changesdoes not name the activity.
GET /v1/orgs/acme/activity?limit=3
Authorization: Bearer <key>{
"rows": [
{
"kind": "new",
"address": "finance/runs/019a4012-7c3e-7d10-9b2a-4e6f8a1c2d3e",
"cursor": "eyJhdCI6MTc5MzU1MjU2MTUxMiwicGxheWJvb2siOiJmaW5hbmNlIiwia2V5IjoicnVucy8wMTlhNDAxMi03YzNlLTdkMTAtOWIyYS00ZTZmOGExYzJkM2UifQ",
"playbook": "finance",
"at": "2026-11-01T17:02:41.512Z",
"by": "person:user_7kLm2",
"by_name": null,
"change": null,
"trigger": null,
"definition": { "type": "workflow", "name": "close-the-week", "version": 4 },
"run_id": "019a4012-7c3e-7d10-9b2a-4e6f8a1c2d3e",
"output_shape": "table",
"told": true,
"told_goal": null,
"message": null,
"answer_schema": null,
"detail": null,
"status": null,
"waits_on": null,
"expires_at": null,
"about": null,
"seen": false
},
{
"kind": "needs_you",
"address": "finance/019a400e-1f2b-7a44-8c5d-6b7e9f0a1b2c",
"cursor": "eyJhdCI6MTc5MzU1MjI5MjIwNCwicGxheWJvb2siOiJmaW5hbmNlIiwia2V5IjoiMDE5YTQwMGUtMWYyYi03YTQ0LThjNWQtNmI3ZTlmMGExYjJjIn0",
"playbook": "finance",
"at": "2026-11-01T16:58:12.204Z",
"by": "person:user_7kLm2",
"by_name": null,
"change": null,
"trigger": null,
"definition": { "type": "interaction", "name": "approve-payment", "version": 2 },
"run_id": "019a400e-1f2b-7a44-8c5d-6b7e9f0a1b2c",
"output_shape": null,
"told": null,
"told_goal": null,
"message": "Approve the payment of $4,200 to Northwind Supplies?",
"answer_schema": {
"type": "object",
"required": ["choice"],
"properties": { "choice": { "type": "string", "enum": ["approve", "reject"] } }
},
"detail": null,
"status": null,
"waits_on": "priya@acme.example",
"expires_at": "2026-11-03T16:58:12.204Z",
"about": null,
"seen": null
},
{
"kind": "broken",
"address": "finance/reasoning/categorize-invoice",
"cursor": "eyJhdCI6MTc5MzU0NzYwNzg4MSwicGxheWJvb2siOiJmaW5hbmNlIiwia2V5IjoicmVhc29uaW5nL2NhdGVnb3JpemUtaW52b2ljZSJ9",
"playbook": "finance",
"at": "2026-11-01T15:40:07.881Z",
"by": "person:user_7kLm2",
"by_name": null,
"change": null,
"trigger": null,
"definition": { "type": "reasoning", "name": "categorize-invoice", "version": 7 },
"run_id": "0199fe31-2a4b-7c5d-8e6f-7a8b9c0d1e2f",
"output_shape": null,
"told": null,
"told_goal": null,
"message": null,
"answer_schema": null,
"detail": "The tool ledger/post_entry is not offered to this playbook.",
"status": "rejected",
"waits_on": null,
"expires_at": null,
"about": null,
"seen": null
}
],
"has_more": true,
"next_cursor": "eyJhdCI6MTc5MzU0NzYwNzg4MSwicGxheWJvb2siOiJmaW5hbmNlIiwia2V5IjoicmVhc29uaW5nL2NhdGVnb3JpemUtaW52b2ljZSJ9",
"counts": { "needs_you": 1, "broken": 1, "new": 6, "comments": 2 },
"through": {
"cursor": "eyJhdCI6MTc5MzUyMzYwMzExNywicGxheWJvb2siOiJmaW5hbmNlIiwia2V5IjoicnVucy8wMTk5ZmUzMS0yYTRiLTdjNWQtOGU2Zi03YThiOWMwZDFlMmYifQ",
"seen_at": "2026-11-01T09:14:55.020Z"
}
}Seen and counted
Only new and comment rows are seen or unseen. Such a row is seen by the caller when its by is the caller, or, for a comment that was reopened, when the caller is who last reopened it, whoever made it; when the caller marked it seen; or when it is at or before the caller's through, the place they marked everything seen through. So a reopened comment's row keeps its maker as its by and takes the reopening's time as its at: it is new again to everyone but who reopened it, its maker among them, since a mark of the row before names the at it had then, and the one who reopened it has seen it from the start. A caller who has never sent a through reads as if their through were 7 days before the read, so a first read shows the last week as new. Each caller has its own seen: a person, a key or the local developer.
A request waits on the caller when its waits_on is any_member or the caller's own id. The runtime knows a caller by their id, never by an address, so a request whose waits_on is an address, which waits on the member who signs in with it, is counted for no caller; a client that knows the person's address, as Auto Studio does from their sign-in, tells them it is theirs. In local mode every client is the local developer, so every open request waits on them, and Auto Studio and an agent on that machine share one seen: what one marks seen, and the through it moves, are the other's too. A request that waits on someone else is listed all the same, to everyone who may read its playbook, as list_interactions lists it.
counts holds what the caller has to look at, over every playbook the caller may access and, for a caller who may access them all, the organization's own comments:
| Count | The rows it counts |
|---|---|
needs_you | The requests that wait on the caller |
broken | The broken rows |
new | The new rows the caller has not seen |
comments | The open comments the caller has not seen, each made, or last reopened, by someone else |
Marking items seen never changes needs_you or broken: a request leaves them when it is answered or expires, and a broken definition when it is resolved. A comment leaves comments when the caller has seen it or anyone resolves it, and comes back when someone else reopens it.
through is where the caller marked everything seen, its cursor and seen_at, when they marked it, or null before they first did.
Marking items seen
mark_activity_seen takes:
items, thenewandcommentrows the caller has seen, each itsaddressand itsatas the row gives them, at most 200;through, acursorfrom a read: everything at or before it is seen.
It records one fact, activity_seen, on the caller's own stream, and answers counts and through after it, as list_activity gives them. It answers 200, and conflict when another mark of the same caller is recorded at the same moment; send it again.
- An item the activity holds no
neworcommentrow for, such as a request, an item whoseatis before its row's, as a mark made before a comment was reopened is, or an item of a playbook the org does not hold, is accepted: the mark is recorded and marks nothing. - A
througholder than the caller's own is accepted and leaves theirs unchanged, and the answer gives the one kept:throughnever moves back. - Each request is recorded, even one that repeats an earlier one.
- The runtime keeps, for each caller, their
throughand their marks of the 1,000 items newest in the activity after it. An item at or beforethroughis seen bythroughalone.
POST /v1/orgs/acme/activity/seen
Authorization: Bearer <key>
Content-Type: application/json
{
"items": [
{
"address": "finance/runs/019a4012-7c3e-7d10-9b2a-4e6f8a1c2d3e",
"at": "2026-11-01T17:02:41.512Z"
}
]
}{
"counts": { "needs_you": 1, "broken": 1, "new": 5, "comments": 2 },
"through": {
"cursor": "eyJhdCI6MTc5MzUyMzYwMzExNywicGxheWJvb2siOiJmaW5hbmNlIiwia2V5IjoicnVucy8wMTk5ZmUzMS0yYTRiLTdjNWQtOGU2Zi03YThiOWMwZDFlMmYifQ",
"seen_at": "2026-11-01T09:14:55.020Z"
}
}To mark everything seen, send the cursor of the newest row read as through.
A request with several faults is refused for the first, the fields in the order the table lists them. A field given twice, such as kind repeated in the query string, is bad_request, as for every route (Requests and access).
| Case | Response |
|---|---|
A kind that is not needs_you, broken, new or comment | invalid_input at /kind |
A limit outside 1 to 200 | invalid_input at /limit |
An address that holds no @ | invalid_input at /address |
A since, cursor or through that does not decode, or that names a playbook of another org | invalid_input at the field |
A playbook the org does not have | not_found |
A playbook, or an item of a playbook, the caller may not access; a comment of the organization's own, org/comments/<id>, for a caller who may not access every playbook | forbidden; for the comment, "The caller may not mark the organization's comments, which only a caller who may access every playbook sees" |
A mark_activity_seen with neither items nor through, or with an empty items and no through | invalid_input at /items |
More than 200 items | invalid_input at /items |
An item whose address is not of a form above or whose at is not a time | invalid_input at the item, such as /items/2 |
Roles
A person of the org holds a role there: admin, who manages the members; editor, who builds, runs and changes playbooks; operator, who runs playbooks and answers requests; or viewer, who views and comments. A member with access to only some playbooks holds their role at each of those playbooks instead (Members). The runtime records each role given and taken away as a fact, role_assigned and role_unassigned, on the org's own stream of its role assignments, and keeps who holds what as they are recorded. A signed-in person may do what their role allows, within the permissions of their credential, and a change of role holds from their next call (The roles). A key and the local developer hold no role, and may do what their credential grants, as Requests and access sets out.
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_role_assignments | GET /role-assignments | org:read | Optional limit and cursor |
assign_role | PUT /role-assignments/{person}/{role} | org:write | The person's id and the role, in path |
unassign_role | DELETE /role-assignments/{person}/{role} | org:write | The person's id and the role, in path |
get_caller | GET /caller | org:read or playbook:read | None |
A role assignment holds ids alone:
| Field | What it holds |
|---|---|
principal | Who holds the role: type, person, and id, the person's id in Auto |
role | type, built_in, a role every release ships, and id, admin, editor, operator or viewer |
scope | Where it holds: type, org, and id, the org's id; or, for a member with access to only some playbooks, playbook and the playbook's id |
source | How it was given: manual, by a person; invitation; enrolment, by joining without an invitation; import, from the roles people held when roles were first kept; command, by the runtime's command; identity_service; or bootstrap, to the first person to sign in |
assigned_at | When it was given, in ISO 8601 |
assigned_by | The id of the caller who gave it |
list_role_assignments answers role_assignments, by person and then by where each holds, with has_more and next_cursor, as the other lists page. assign_role and unassign_role answer the person's principal, the scope and the roles they hold there after the change. get_caller answers permissions, those of org:read, org:write, playbook:read and playbook:write the caller may use in the org: the permissions their credential holds that their role in the org permits where a host decides calls by roles, and their credential's permissions otherwise, as a key's and the local developer's always are. For a member with access to only some playbooks, it also answers playbooks: each playbook they may use, with the permissions they may use in it. A client shows or turns off a control by it, in the org or in the playbook shown; what the caller may not do is refused when they ask it all the same.
- A person holds one role in the org.
assign_rolegives the role in place of the one they held: it records the role they held taken away and the new one given, together. A role they hold already, or one taken away that they do not hold, records nothing and answers as it stands. - Only a person signed in to Studio, whose role lets them give roles, gives or takes one away, and never a role that lets its holder do more than their own role does. Today that is an admin.
- The org always keeps an admin: a change that would leave it without one is refused, even when two are asked at the same moment.
assign_rolegives a role only to a person of the org.
| Case | Response |
|---|---|
A role that is not admin, editor, operator or viewer, or a person that is empty or longer than 256 bytes | invalid_input |
A cursor that is no next_cursor of list_role_assignments | invalid_input at /cursor |
| A caller who is not a person signed in to Studio, such as a key or an agent | forbidden |
| A person whose role does not let them give roles, or a role beyond their own | forbidden |
An assign_role for someone who is not a person of the org | not_found |
| A change that would leave the org without an admin | conflict of kind unworkable |
PUT /v1/orgs/acme/role-assignments/user_7kLm2/viewer
Authorization: Bearer <token>{
"principal": { "type": "person", "id": "user_7kLm2" },
"scope": { "type": "org", "id": "acme" },
"roles": [{ "type": "built_in", "id": "viewer" }]
}Members
Where the runtime signs people in (Let people sign in), it serves the members of its org, everyone who holds a role there, with the name and address their sign-in gave, the invitations to join it, and how people join it.
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_members | GET /members | org:read | None |
invite_member | POST /members/invitations | org:write | email_address, an optional role, editor, operator or viewer, and optional playbooks |
invite_admin | POST /members/admin-invitations | org:write | email_address |
resend_invitation | POST /members/invitations/{invitation}/resend | org:write | The invitation's id, in path |
revoke_invitation | DELETE /members/invitations/{invitation} | org:write | The invitation's id, in path |
set_member_role | PUT /members/{member}/role | org:write | The member's id, in path, and role, in the body |
set_member_playbooks | PUT /members/{member}/playbooks | org:write | The member's id, in path, and playbooks, in the body |
suspend_member | POST /members/{member}/suspend | org:write | The member's id, in path |
unsuspend_member | POST /members/{member}/unsuspend | org:write | The member's id, in path |
remove_member | DELETE /members/{member} | org:write | The member's id, in path |
get_enrolment | GET /enrolment | org:read | None |
set_enrolment | PUT /enrolment | org:write | enrolment, invitation or join_without_invitation, and an optional default_role, editor, operator or viewer |
A member holds:
| Field | What it holds |
|---|---|
id | The person's id in Auto |
name | Their name, as their last sign-in gave it, or null |
identifier | Their email address, as their last sign-in gave it, or null |
role | admin, editor, operator or viewer; for a member with access to only some playbooks, the role they hold at them |
joined_at | When they first signed in, or, for someone given a role before they ever signed in, when it was given |
playbooks | all, every playbook of the org, including new ones; or the ids of the playbooks they can access, an empty list once the last is taken away. In list_members and in the answers of set_member_playbooks, suspend_member and unsuspend_member |
status | active, or suspended while an admin has suspended them. In the same answers as playbooks |
An invitation holds:
| Field | What it holds |
|---|---|
id | The invitation's id |
email_address | The address it was made for, as it was typed |
role | admin, editor, operator or viewer, the role of whoever accepts it |
status | pending, or revoked in the answer of revoke_invitation |
invited_at | When it was made |
expires_at | When it ends, 30 days after it was made |
link | Only in the answer of the call that made it: the address that accepts it, {PUBLIC_URL}/invitations/ and a secret |
playbooks | Only in list_members: all, or the ids of the playbooks whoever accepts it can access, in its role |
- An invitation is a link. The runtime sends no email: whoever made the invitation shares the link. The invited person opens it in a browser, which keeps the invitation for an hour and goes on to Studio. The next sign-in in that browser accepts it, if the person who signs in holds no role in the org, and they join with its role. A link works once and ends 30 days after it was made. No listing holds the link: a lost link is replaced by
resend_invitation. A link that no longer works shows a page that says so. list_membersanswersmembers, the earliest to join first, at most 500, andmembers_total, how many there are, andinvitations, those pending, the earliest made first, at most 500, andinvitations_total. Every member with access to all playbooks lists them; it needsorg:read, so a member with access to only some playbooks can't. An agent is offeredlist_membersas a tool.invite_memberinvites a person as an editor, or as theroleasked, and an agent is offered it as a tool. Withoutplaybooks, whoever accepts the invitation can access every playbook of the org, including new ones. Withplaybooks, the ids of one or more of the org's playbooks, they can access only those, in the invitation's role. An admin, or an editor with access to all playbooks, invites.invite_admininvites a person as an admin, who always has access to all playbooks.resend_invitationreplaces an invitation pending with a new one, to the same address in the same role, and answers it with its new link; the earlier link stops working.revoke_invitationends an invitation pending, so its link accepts nothing, and answers it asrevoked.set_member_rolegives a member the rolerole, in place of the one they held, and answers them in it. A member with access to only some playbooks keeps those playbooks in the new role, unless it isadmin, which has access to all playbooks.set_member_playbookssets which playbooks a member can access,allor the ids of the ones named, and answers them as they are now. Their role stays the same. An empty list leaves them a member with access to no playbook:list_membersshows them as aviewerwith no playbooks, and they are aviewerwherever they are given access next.suspend_membersuspends a member. They keep their role and playbooks, but every call of theirs and of their agents is refused with the kindsuspendeduntil an admin unsuspends them, and their sign-ins end. The workflow runs they started keep running. It answers them withstatussuspended, and a member suspended already is answered as they are. An admin can't suspend themselves or the org's last active admin.unsuspend_membergives a suspended member back the role and playbooks they had, and answers them withstatusactive.remove_memberends the member's role and signs them out at once: their sign-ins and every agent's access they allowed end, so a token they hold is refused from their next call. It answers the member as they were. The workflow runs they started keep running (What happens when access is revoked). A removed person comes back by a new invitation.set_member_roleandremove_memberalso revoke the invitations pending to the address the runtime holds for the member, in any letter case.- Only an admin signed in to Studio invites an admin, resends or revokes an invitation, gives a role, sets a member's playbooks, suspends or unsuspends a member or removes one, and the org always keeps an admin, as with
assign_role. get_enrolmentanswersenrolment, how people join the org, anddefault_role, the role a person gets when they join without an invitation. Withjoin_without_invitation, a person who signs in and holds no role joins with the default role. Withinvitation, that person needs an invitation, and signing in without one shows a page that says so. Either way, the first person to sign in becomes the admin. A person who brings an invitation joins with its role, and a person an admin removed needs a new invitation. Until an admin changes them,enrolmentisjoin_without_invitationanddefault_roleisviewer.set_enrolmentsetsenrolmentand, when it is given,default_role; without it, the default role stays as it is. The change holds for people who join after it, and members keep their role. It answers both as they now are. Only an admin signed in to Studio changes them. The default role iseditor,operatororviewer, neveradmin.
| Case | Response |
|---|---|
An email_address not shaped like name@example.com (an @, a dot somewhere after it, and no spaces), or longer than 254 characters, a role it does not take, or an empty playbooks of invite_member | invalid_input |
An email_address that is a member's address or that of an invitation pending, in any letter case | conflict of kind taken |
An invite_member from a caller who is not a person, such as a key | forbidden |
| Any other change from a caller who is not a person signed in to Studio, such as a key or an agent | forbidden |
| A person whose role does not allow the change, such as a viewer who invites anyone, or an editor who invites an admin, resends or revokes an invitation, gives a role, sets a member's playbooks, suspends, unsuspends or removes a member or changes how people join | forbidden |
A default_role other than editor, operator or viewer, or an enrolment other than invitation or join_without_invitation | invalid_input |
A resend_invitation or a revoke_invitation for an invitation that is not pending | not_found |
A set_member_role, set_member_playbooks, suspend_member, unsuspend_member or remove_member for someone who holds no role, such as a person removed already | not_found |
An invite_member or a set_member_playbooks that names a playbook the org does not have | not_found |
| A change that would leave the org without an admin, or with no admin who is not suspended | conflict of kind unworkable |
More than 28 playbooks in playbooks, or a set_member_playbooks of an admin, who always has access to all playbooks | conflict of kind unworkable |
A set_member_role to a role other than admin for a member with access to no playbook | conflict of kind unworkable |
A set_member_role or a set_member_playbooks for a suspended member | conflict of kind unworkable |
A suspend_member of the caller themselves | conflict of kind unworkable |
| Any call of a suspended member, or of their agent | forbidden of kind suspended |
POST /v1/orgs/default/members/invitations
Authorization: Bearer <token>
Content-Type: application/json
{ "email_address": "sam@example.com", "role": "viewer" }{
"id": "9b74c9897bac770ffc029102a200c5de1f8b7c1f3b6e1ad2f0d2b3e1c4a5f6e7",
"email_address": "sam@example.com",
"role": "viewer",
"status": "pending",
"invited_at": "2026-11-20T09:00:00.000Z",
"expires_at": "2026-12-20T09:00:00.000Z",
"link": "https://runtime.example.com/invitations/kQ2x9mY4vPbL7sT1nR8wD3fH6jK0aZcE5gU2iO9qW1e"
}PUT /v1/orgs/default/members/0c3de111680d66bea9b377080ec7d6784c7602c7bc2e4bfdd1b3ee489b0675ea/role
Authorization: Bearer <token>
Content-Type: application/json
{ "role": "editor" }{
"id": "0c3de111680d66bea9b377080ec7d6784c7602c7bc2e4bfdd1b3ee489b0675ea",
"name": "Priya Shah",
"identifier": "priya@example.com",
"role": "editor",
"joined_at": "2026-11-18T10:00:00.000Z"
}Analytics
| Operation | Method and route | Permission | Input |
|---|---|---|---|
get_playbook_analytics | GET /analytics | playbook:read | Optional days, or from and to; optional type and name |
The route is relative to /v1/orgs/{org}/playbooks/{playbook}. get_playbook_analytics returns what the playbook's runs did over a window of days, in UTC.
| Parameter | Rule |
|---|---|
days | 7, 14 or 30: the last days, ending today. 7 when nothing is given |
from, to | The first and the last day, as YYYY-MM-DD, both included: at most 366 days, with to not before from and not after today |
type, name | Keep the runs of one definition, as they do for list_runs |
- A day must exist in the calendar, so
2026-02-30is refused rather than read as 2 March. - These are refused with
invalid_input, pointing at the parameter:dayswithfromorto,fromwithoutto, any otherdays, and any other parameter.
GET /v1/orgs/acme/playbooks/sales/analytics?days=7&type=reasoning
Authorization: Bearer <key>{
"days": 7,
"runs": { "total": 12, "succeeded": 9, "failed": 1, "rejected": 2 },
"tokens": { "input": 18400, "output": 2950, "cached": 12000 },
"cost_usd": 0.0874,
"duration_ms": { "p50": 1840, "p95": 6210 },
"by_day": [
{
"day": "2026-09-30",
"runs": { "total": 0, "succeeded": 0, "failed": 0, "rejected": 0 },
"tokens": { "input": 0, "output": 0, "cached": 0 },
"cost_usd": null,
"duration_ms": null
}
],
"by_function": [
{
"type": "reasoning",
"name": "triage",
"runs": 12,
"tokens": { "input": 18400, "output": 2950, "cached": 12000 },
"cost_usd": 0.0874
}
]
}The example shortens by_day. It holds every day of the window, oldest first, including days with no runs.
| Field | Contents |
|---|---|
days | How many days the window covers |
runs | The runs that ended, by how they ended, and their total |
tokens | The input and output tokens the models of reasoning functions used, a rejected run's included when its model answered before the rejection; cached is the part of input read from the provider's cache; 0 where nothing was recorded |
cost_usd | What the runs' model calls cost, in US dollars: those of reasoning functions, a rejected run's included, and those of generation functions; null when no run of the period recorded a cost |
duration_ms | p50 (the median) and p95 (the 95th percentile) of how long the runs that succeeded or failed took, in milliseconds from their latest start to their end; null when no run of the period has a duration |
by_day | The same runs, tokens, cost_usd and duration_ms for each day |
by_function | Each definition by type and name, with runs, how many of its runs ended, and their tokens and cost_usd; the most runs first, then by type and name |
How runs are counted:
- A run counts on the day it first started, also when it was started again later.
- A run counts once it has ended:
succeeded,failedorrejected. A run still going counts nowhere. - A run started again under its
run_idcounts once. Its tokens and its cost add up over every attempt that ended, while its duration is that of its last attempt. - Rejected runs count in
runs,tokensandcost_usd, never induration_ms. cost_usdadds up the runs that recorded a cost and leaves out those that did not, so it isnullonly when no run did. A run records a cost when its model gateway answers one, in the header the gateway'scost_headernames (see Gateway fields). A self-hosted runtime whose model gateway names no cost header records no cost, so the field isnull.- Workflow runs count in
runsand induration_ms, from when the run started to when the workflow ended. - A percentile is the nearest rank: the duration at place ⌈p × n⌉ of the n durations in order.
The result comes from a table the runtime updates as each run is recorded, so it is as current as the runs themselves. A playbook that does not exist returns not_found; a retired playbook works like any other.
Tool servers
Three operations find the tools of the tool servers of a playbook and read what they take: those set up by whoever runs the server, and the connections people added to its org, MCP servers and HTTP APIs described by an OpenAPI document alike. A tool is called by a run of a function: a lookup or interaction function names it in its call, and a reasoning function names it in tools as server/tool or server/*, a connection by its name. These routes are relative to /v1/orgs/{org}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
search | GET /tool-servers/search | org:read or playbook:read | Optional playbook, terms, server and only |
search | GET /playbooks/{playbook}/tool-servers/search | playbook:read | Playbook id in path; optional terms, server and only |
introspect | GET /playbooks/{playbook}/tool-servers/{server}/tools/{tool} | playbook:read | Server and tool in the path |
validate | POST /playbooks/{playbook}/tool-servers/{server}/tools/{tool}/validate | playbook:read | Server and tool in the path; arguments in the body |
validateis routed byPOSTbecause itsargumentsare an object a query string cannot carry. It is still a read: it changes nothing, calls no tool and needs onlyplaybook:read. A query string beside its body returnsbad_request.- The three reads ask each server they need for its tool list when you call them, as a run does, with the same time limits to connect and to list. They record nothing. An HTTP API is not asked, since its OpenAPI document is the list. The org route of
searchis the one exception, as below says: it answers a server's tools from what it listed for the org within the last five minutes. - On a playbook route, a playbook that does not exist returns
not_found. A retired playbook serves the reads like any other.
Searching the tools
search returns the servers of the playbook, those set up in the configuration and the connections of its org that serve it, and the tools of each that its entry allows.
- Without
terms, it lists every tool when the servers offer at most 100 in total, in the order of the servers and of each server's own list. When they offer more, it returns only the servers, each with its count of tools; search them withterms. termsis up to 8 words of up to 64 characters each, separated by spaces. Tools with a score come best first, those with the same score by name and then by server, at most 100.only: readkeeps the tools markedreads, andonly: writethe others, which may change something.serverkeeps the server of that name and asks no other. A name no server of the playbook has returnsinvalid_inputat/server.
Each word of terms, and each part of it split at _, ., - and case changes, scores in any letter case:
| Where the word appears | Score |
|---|---|
| A word of the tool's name, split the same way | 3 |
| A word of the name of one of the tool's arguments | 2 |
| A word of the tool's description | 1 |
GET /v1/orgs/acme/playbooks/sales/tool-servers/search?terms=invoice
Authorization: Bearer <key>{
"servers": [
{ "name": "billing", "type": "openapi", "record_content": true, "provider": null, "tool_count": 5 },
{
"name": "notes",
"type": "stdio",
"record_content": true,
"provider": null,
"unavailable": "The tool server notes could not be used: The tool server could not be reached",
"because": "unreachable"
}
],
"tools": [
{ "server": "billing", "tool": "getInvoice", "summary": "Reads one invoice.", "mark": "reads" },
{
"server": "billing",
"tool": "listCustomers",
"summary": "Lists the customers, with the invoice each owes.",
"mark": "reads"
}
],
"scopes": ["billing", "notes"]
}| Field | Contents |
|---|---|
servers | The servers searched, sorted by name |
tools | The tools found |
scopes | The names of the servers searched |
providers | On the org route, where the caller may add a connection: the providers it may connect that no server serves yet, as below |
Each server has these fields:
| Field | Contents |
|---|---|
name | The name a function writes before the slash |
connection | For a connection a person added, its id; absent for a server of the configuration. A connection whose name the configuration now sets up is listed beside that server, unavailable |
provider | The name of the provider a connection was added from, or an entry of the configuration names, or null for a server given by hand |
type | mcp for a remote MCP server, stdio for an MCP server the runtime starts as a process, or openapi for an HTTP API described by an OpenAPI document |
record_content | Whether the content of its calls is kept |
tool_count | How many tools of the server are allowed, of those only keeps |
unavailable | Instead of tool_count: why the server could not be asked for its tools, in words cut to 1 KiB. The other servers are still searched |
because | With unavailable: key_refused when the server did not accept the key the runtime gives it, which only whoever runs Auto can fix; scope_lacking when it answered 403 for a scope its credential lacks, which the words name, so asking again will not help until a credential is granted it; failing, rate_limited or unreachable when asking again later may work; for a connection, connection_pending, connection_broken, connection_not_allowed or connection_unavailable, as below |
playbooks | On the org route only: the playbooks of the org whose functions may use it, or ["*"] for every playbook of the org |
Each tool has these fields:
| Field | Contents |
|---|---|
server | The server's name |
tool | The tool's name |
summary | The first sentence of its description, cut at 300 characters |
mark | Its mark: reads, acts or unmarked |
What the result never contains:
- A server set up for another org, or for other playbooks of the org, is neither searched nor asked.
- The runtime adds no header, environment value, address, command or credential of a server to the result.
- What a server returns, such as its tools' names, descriptions and schemas, is passed on with two kinds of value scrubbed out. They are the values of the
${...}references in the runtime's settings and the tokens minted for a server. A referenced value shorter than 8 characters is not scrubbed.
On the org route, search covers the org's playbooks. So you can see what whoever runs the server set up before a playbook exists, or without naming one:
- Without
playbook, it searches every server set up for the org, each withplaybooks. - With
playbook, it returns only the servers that serve that playbook, as the playbook's own route does, withplaybooksincluded. - A key limited to some playbooks must pass
playbook, and sees inplaybooksonly the playbooks it may access. Withoutplaybookit is refused withforbidden, whose detail says to name one of its playbooks inplaybook. - A
playbookthe org does not have returnsnot_found, as the playbook's own route does, and no server is asked. - A
serverthat no server of the org, or of the playbook given, has returnsinvalid_inputat/server. - A server it listed for the org within the last five minutes is not asked again: its tools are the ones it listed then, kept for this org alone. A connection connected again since, as with a new credential, is asked again, a connection removed is gone at once, and nothing is kept of a server that could not be listed or of a connection that is not ready. What
playbooksholds, and so which serversplaybookkeeps, is read anew each time. The playbook's own route asks each server each time.
On the org route, search also returns providers: the providers the caller may connect here that no server of the org serves yet, each with its name, which add_connection takes as provider, its title, its description and, where its way offers groups of scopes beyond its first consent, more, each group by the name add_connection takes as more and what it is for, whether or not a client set up here covers it; add_connection refuses a group no client covers as conflict. Where other providers connect the same app in another way, a provider lists them in variants, each with its name, which add_connection takes as provider, and its description. Those providers are not listed on their own, and while a server of the org serves the provider or any of them, none of them is listed. So an agent asked for a service that no server serves can offer to connect one, and ask with it for what setting the service up takes.
- A provider is served, and left out, while a connection made from it is pending, connected or broken, or while an entry of the configuration names it. That connection or that entry is in
servers, withproviderset and, while it is not ready, itsbecause. - A provider none of whose ways is offered is left out too, such as one whose ways each need a value that whoever runs Auto has not set.
list_providersstill lists it, each wayoffered: false. - Without
terms, it lists every such provider, sorted by name, while there are 100 or fewer, and none when there are more. - With
terms, it lists the providers whose name, title or description holds a word, scored as tools are, a word of the title counting as a word of the name. They come best first, those with the same score by name, at most 100. - It covers the whole org, whatever
playbooknarrows the servers to, and is left out withserver. - It is present exactly where the caller may add a connection, as
may_addoflist_providerssays: a signed-in person, or the local developer in local mode, withorg:write, on a runtime whoseconnections.people_may_addis notfalse. It is then empty when every provider listed is served or left out. A key, a caller who may only read and a runtime where nobody may add get noproviders. The playbook route never returns it.
The mark of a tool
Every tool the runtime lists carries one mark: reads when it only reads, acts when it may change something, and unmarked when nothing marks it, which counts as acts, as the MCP specification's own default for a tool that declares nothing says. marked_by says what gave it:
marked_by | The mark is |
|---|---|
server | The one the server's hints give: reads for readOnlyHint: true, acts for readOnlyHint: false or destructiveHint: true, and unmarked else |
method | The one the HTTP method of an operation of an HTTP API gives: reads for GET and HEAD, acts for POST, PUT, PATCH and DELETE |
catalogue | The one the entry of its provider gives it, in place of its server's or its method's, as for an operation that reads through POST |
settings | The one its entry in the configuration gives it, in place of its server's or its method's |
search answers it as mark, and introspect and list_connection_tools answer mark and marked_by.
Reading one tool
introspect returns one tool in full, as its server lists it:
- its
description, cut to 4 KiB; - its
input_schema, the JSON Schema of the arguments it takes; - its
annotations, the hints its server gives it (readOnlyHint,destructiveHint,idempotentHintandopenWorldHint), left out when the server gives none; - its
markandmarked_by, as The mark of a tool sets out.
A tool of an HTTP API takes one object: each path and query parameter by its name, and body for a JSON body. The schemas from the document's components that it refers to are placed under $defs.
GET /v1/orgs/acme/playbooks/sales/tool-servers/billing/tools/getInvoice
Authorization: Bearer <key>{
"server": "billing",
"tool": "getInvoice",
"description": "Reads one invoice.",
"input_schema": {
"type": "object",
"properties": { "id": { "type": "string" } },
"required": ["id"],
"additionalProperties": false
},
"annotations": { "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
"mark": "reads",
"marked_by": "method"
}validate checks arguments, at most 1 MiB as JSON, against the tool's input schema. It returns valid (true or false) and issues. Each issue has the JSON Pointer of the argument at fault as path, and what is wrong there as message. It lists at most 20 issues, then one saying how many more there are. For a schema the runtime's checker cannot handle, such as one with a regular expression, it returns valid: null with one issue saying why; the arguments may still be right. An argument out of a format the runtime checks, date, date-time, time, email, uri or uuid, is an issue at its pointer, such as Expected a string in the format date, such as 2026-04-01, and a format other than those, such as int64, is left unchecked while the rest of the schema is checked, so valid can be true.
POST /v1/orgs/acme/playbooks/sales/tool-servers/billing/tools/getInvoice/validate
Authorization: Bearer <key>
Content-Type: application/json
{ "arguments": { "id": 42 } }{ "valid": false, "issues": [{ "path": "/id", "message": "Expected string" }] }When a server or a tool cannot be used, the reads respond as below. Each refusal is unavailable, and no tool is called:
| Case | introspect and validate |
|---|---|
| A server not set up for the playbook | Kind tool_not_offered, because: "tool_server_not_configured", before any server is asked |
| A tool that is not allowed | Kind tool_not_offered, because: "tool_not_allowed", before any server is asked |
| A tool the server does not list | Kind tool_not_offered, because: "tool_not_listed" |
| A connection that is not ready | Kind tool_not_offered, with its because, as below |
| A server that cannot be asked | Kind tool_server_failed, with its because |
Connections
A connection is a tool server that a person adds to the org through their agent, a provider by its name or a server given by hand, which every playbook of the org may use, or the playbooks its entry names. The agent adds it without its credential; the person approves it, and gives its credential where it takes one, on Studio's page, which its link opens. Let people add connections sets out the flow, the kinds of credential and the rules whoever runs the server sets. These routes are relative to /v1/orgs/{org}:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
add_connection | POST /connections | org:write | provider and placeholders; optional more, a group of the scopes its way offers, by its name; optional message, what the person needs the app for, kept only where the caller may not approve the connection |
add_custom_connection | POST /custom-connections | org:write | name, type, entry and credential for a server given by hand, credential left out for an MCP server, which says how it authenticates, an HTTP API's entry naming its OpenAPI document as document, its address, or document_text, the document itself, with base_url; optional events; optional message, what the person needs the app for, kept only where the caller may not approve the connection |
list_connections | GET /connections | org:read | Optional include_removed |
get_connection | GET /connections/{id} | org:read | Connection id in path |
test_connection | POST /connections/{id}/test | org:write, by an admin | Connection id in path |
reconnect_connection | POST /connections/{id}/link | org:write, by an admin | Connection id in path; optional more, a group of the scopes the connection may still be granted, by its name |
remove_connection | DELETE /connections/{id} | org:write, by an admin | Connection id in path |
decline_connection_request | POST /connections/{id}/decline | org:write, by an admin | Connection id in path |
set_connection_playbooks | PUT /connections/{id}/playbooks | org:write, by an admin | Connection id in path; playbooks, the ids of the playbooks that may use it, or null for every playbook |
set_connection_account_type | PUT /connections/{id}/account-type | org:write, by an admin | Connection id in path; account_type, service or personal |
set_connection_signing_secret | POST /connections/{id}/signing-secret | org:write, by an admin | Connection id in path; secret, the signing secret the service made, or none for one the runtime makes |
remove_connection_signing_secret | DELETE /connections/{id}/signing-secret | org:write, by an admin | Connection id in path; previous, true to remove only the signing secret a new one replaced |
list_connection_tools | GET /connections/{id}/tools | org:read | Connection id in path; optional limit and cursor |
read_link | POST /connections/{id}/link/read | org:write, by an admin, with the link's token | token |
approve | POST /connections/{id}/approve | org:write, by an admin, with the link's token | token; optional playbooks, the ids of the playbooks that may use it, or null for every playbook |
choose_way | PUT /connections/{id}/way | org:write, by an admin, with the link's token | token and credential, { kind, permissions?, service_account? }, one of the ways the connection's provider or server offers; optional account_type, service or personal; and placeholders, the values the way asks for |
choose_provider | POST /connections/{id}/provider | org:write, by an admin, with the link's token | token and provider, another provider of the same app, as list_providers lists them in variants; optional credential, { kind, oauth_client?, service_account? }, the way of that provider, as add_connection takes it |
create_service_account | POST /connections/{id}/service-account | org:write, by an admin, with the link's token | token |
give_credential | POST /connections/{id}/credential | org:write, by an admin, with the link's token | token, and value for a secret, or client_secret, or private_key with algorithm, for client_credentials, with client_id where the connection's credential holds none, or key_file alone for jwt_bearer; optional playbooks, as for approve |
give_client | POST /connections/{id}/client | org:write, by an admin, with the link's token | token, client_id and client_secret of the organization's own OAuth client, for a connection under it |
start | POST /connections/{id}/consent | org:write, by an admin, with the link's token | token; optional playbooks, as for approve |
finish | POST /connections/{id}/consent/code | org:write, by an admin, with the link's token | token, code, state, and iss where the authorization server sent one; or token, state and handle for a consent begun through Auto's consent service. For a connection that installs an application, also parameters, the other query parameters the person was sent back with, and installation, the ID of an installation the person chose; or token, state and parameters where the person came back with no code. It answers the connection, or, where nothing is connected yet, installations, each marked admin where the person administers its account, and install_page, requested, or installation, the ID of the installation the person was sent back with, which the consent is started again and finished for |
On a runtime that signs people in, a route marked by an admin answers 403 with the kind permission_denied to a person who is not an admin of the org, whoever added the connection. A key and, in local mode, the local developer are not held to a role.
Every operation answers the connection, which holds these fields:
| Field | Contents |
|---|---|
id | A UUIDv7 |
name | What a function names it by, as name/tool |
type | mcp or openapi |
provider | The name of the provider it was added from, or null for a server given by hand |
placeholders | The values given for the provider's placeholders, or null |
entry | The server without its credential, as the rules below set out |
credential | How it is credentialled, never its value, and for a connection connected by consent the client it was made with; for a secret, how the person makes the key and what it looks like, instructions, key_page, example and pattern, for Studio's page to show beside the field of the key |
status | pending, connected, broken or removed |
permissions | application when the connection acts as the app. delegated when it acts as an account at the service. null when it sends no credential. |
account_type | service when the connection acts as an account the company made for automations. personal when it acts as the account of the person who connected it. null when it acts as the app or sends no credential. |
added_by | The caller who added it, by id and name |
added_at | When it was added, in ISO 8601 UTC |
request | While someone who may not approve connections here has asked the admins to connect it, { message, requested_by, requested_at }: message, what they need the app for in their own words, or null; requested_by, the id of the caller who asked; requested_at, when they asked, in ISO 8601 UTC. null once an admin connects it or declines the request, or it is removed, and for a connection nobody asked for |
connected_at | When it was connected, in ISO 8601 UTC, or null |
connected_by | The caller who connected it, by approving it or giving its credential, by id and name, or null |
asked_scopes | The scopes its credential asks, in their order, and after them those each consent that asked more added, each { name, says }. says is the sentence of the provider's way, or of its group of more, that says what the connection can do through the scope, as it stood when the connection was added or the consent started, or null for a server given by hand. Empty where the credential asks none |
granted_scope | For a connection connected by consent, the scope the server granted at its latest consent, which may be fewer scopes than that consent asked, as when the person unticks one on the provider's page; else null |
granted_scopes | The scopes of granted_scope, each { name, says } with the words of the scope asked of that name, and says null for a scope the server granted beyond those asked, such as offline_access; null where granted_scope is |
credential_ends_with | The last four characters of a secret or client secret of twelve characters or more, which the secret store keeps beside the value; else null |
broken | { kind, detail, at } while it is broken, else null. kind is why, for a client to word, as the table below lists; detail is the runtime's sentence, which says what mends it; and at is when the runtime recorded the break, in ISO 8601 UTC, so a page says since when in the person's own words |
app_credentials | The app credentials the person gave beside the key when it was connected, each { name, refused } and never the value: refused is null, or { detail, at } from when the service refused that value until the credential is given again, detail the runtime's sentence, which says what mends it; empty where they gave none |
kind | The connection is broken because |
|---|---|
credential_refused | its server answered 401, or a code its provider's failure_codes names for a refused credential, to the credential it holds |
credential_wanted | its server answered so to a connection of none, which holds no credential, asking for one |
credential_gone | its credential is no longer in the secret store |
credential_not_tokens | its credential is not the tokens of a consent |
consent_ended | its consent was revoked or has ended |
client_gone | the client it was made with is no longer registered |
key_unknown | Auto's consent service does not know its key |
add_connection and add_custom_connection answer 201 with the connection and connect, { url }. url is Studio's page connect under the Studio the person can reach: <the runtime's origin>/studio/connect?connection=<id>&token=<token> where the runtime serves Studio, as it does in local mode, since that page knows the runtime that serves it and asks it for the org, and <the Studio host>/connect?server=<the runtime's origin>&org=<org>&connection=<id>&token=<token> otherwise. The Studio host is STUDIO_ORIGIN, or https://studio.on.auto when it is not set. The runtime's origin is PUBLIC_URL, or the server's own address in local mode. The link works until the connection is connected or removed, or until a newer link replaces it.
Where the caller may not approve the connection, which may_connect of list_providers tells them beforehand, add_connection and add_custom_connection answer 201 with the connection pending, its request open with the message given, and no connect: there is no link and no token. The connection and its request are recorded together, so a request holds its name and counts toward the 50 connections an org may hold. Where it cannot be decided just now whether the caller may approve it, they record nothing and answer unavailable. reconnect_connection gives a requested connection its link as it gives any pending connection one; the request stays open until the connection is connected through it, declined or removed.
Given more, the name of a group the provider's way names, as search lists it under the provider and list_providers under the way, add_connection gives the link for that group too. The first consent asks the way's scopes with the group's, so the person allows both at once, and read_link answers the group as it does for a link reconnect_connection gave for one. add_connection refuses a group the way does not name, and any group of a way that names none, as invalid_input at /more, and a group no client set up here covers as conflict. add_custom_connection refuses more as invalid_input at /more, since a server given by hand offers no group.
reconnect_connection answers 200 with the connection and connect alike: a new link that replaces any link before it, open or not.
A connection that has connected before may have another choice of how it connects, made with choose_way and not finished. The page of its open link then shows that choice:
- The
connectthatreconnect_connectionanswers, also once the person has opened the link, holdsasked_scopes, the scopes that page asks, asread_linkanswers them. It is left out where the link is for a group that choice does not name, andread_linkrefuses that link asconflict. read_linkandchoose_wayanswergranted_scopeandgranted_scopesasnull, since that choice has been granted nothing yet.- The connection's own
asked_scopes, and the grantlist_connectionsandget_connectionanswer, are still those the connection uses now.
list_connections answers the connections newest first in connections, the removed ones only with include_removed, and may_manage, which is true when this caller may remove the connections of the org and false when it may not. It and get_connection answer each with more, the groups of scopes its provider's way names that it does not hold yet and a client set up here can ask, each { name, for }: name is what reconnect_connection takes, and for what the group is for in the person's words. more is empty where there is none.
read_link answers the connection with:
link,{ more? }: empty for a plain link, and, for a linkadd_connectionorreconnect_connectiongave for a group of more, the group,{ name, for }, whose scopes the connection'sasked_scopesthen hold beside those asked before, with their words. A link whose group the provider no longer names isconflicthere and at itsstart.asked_scopes: the scopes the connection asked that its provider's way still asks or offers, and beside them those the link's consent asks, each with its words. A scope the provider dropped is left out, since the consent does not ask it.consent,{ started_at, expires_at }, while a consent is started and not finished.- For a connection whose credential is
authorization,client_source: the source of the client a start would take now, by the rule the start takes it by,autowhere it would begin through Auto's consent service. It is left out where the runtime has no client the provider's way takes. asked_by,{ id, name, domain }: the client the link was asked through, byadd_connectionoradd_custom_connectionfor the link of an addition and byreconnect_connectionfor a new one, where the access token of that call was issued to one.idis itsclient_id;nameitsclient_name, ornullwhere the token gives none; anddomainthe host of aclient_idthat is thehttpsaddress of its metadata document, ornull. It is left out for a link asked for with an API key, with a session or with a token that names no client (Authentication).- For an HTTP API given its OpenAPI document whole, in
document_text,tools: each tool that document offers that the connection'sentry.allowedallows,{ name, summary, mark }, by name, read from the document the runtime keeps for the connection, so Studio's page lists what the person approves before they approve it.summaryis the first sentence of what the tool does, at most 300 characters, assearchanswers it, in plain text: each control character becomes a space and the bidirectional formatting characters of Unicode UAX #9 are taken out, so it reads in the order it is written; it is empty where the document describes nothing;markis the tool's mark by the HTTP method of its operation, aslist_connection_toolsanswers it. No other word of the document is answered.toolsisnullwhere the document kept is missing or is not the one the connection was added with, and it is left out for every other connection. - For a server given by hand,
ways: each way it offers,{ kind, permissions?, account_types?, offered, because? }, as its own metadata named them when the connection was added, including the way the connection uses now. Where the server's authorization server lists theclient_credentialsgrant, it offers client credentials beside its sign-in, so the connection can act as an app the company registers there.offeredisfalsefor a way the runtime's rules do not take here, andbecausesays why.choose_waytakes one of them. A connection made from a provider has noways:list_providerslists its provider's ways.
approve, give_credential and finish, which use the link up, answer the connection alone, and give_credential beside it pattern_unmatched: true where the key given misses the pattern of a credential given by hand.
add_connectiontakesprovider, and the provider gives the server and how it is credentialled.nameis the provider's when left out;placeholdersgives the value of each placeholder the provider takes, and of each one the chosen way asks for;credentialmay give itskindalone, which takes the provider's first way of that kind thatlist_providersmarks offered, and when it is left out the addition takes, of the wayslist_providersmarks offered that take theplaceholdersand themoregiven, the first that acts as a service account Auto creates, then the first that acts as an app, then as a service account, then as a person's own account, and otherwise the first waylist_providersmarks offered, or the provider's first where it offers none, which the addition then refuses in its words; andentrymay giveplaybooks,allowedandrecord_contentalone.type,events, the server's fields ofentryand every field ofcredentialbutkindandoauth_clientare refused, each at its field, since the provider gives them, and the first three in words that nameadd_custom_connection;credential.client_idis refused since the person gives the client id on the page. The connection'sentryandcredentialare the provider's with each value in its place, and every rule below applies to them as to a server given by hand.add_custom_connectiontakes a server given by hand:name,typeandentryare each required, andcredentialtoo for an HTTP API, since an MCP server says how it authenticates, andprovider,placeholdersandmoreare refused. A connection whose way acts as an account is recorded as aserviceaccount whereprovideris given withoutcredentialand the way takes service accounts, and otherwise as apersonalaccount, or as aserviceaccount where the way takes only that;set_connection_account_typechanges it afterwards.entryholds the server without its credential:urlformcp;documentandbase_urlforopenapi; andheaders,query_params,allowed,playbooks,record_contentandrequest_id, as an entry of the configuration file has them.urlanddocumentare each anhttpsURL, or anhttpURL on a loopback address.credentialis one object: itskindand the fields that kind takes. Each field is optional in the schema, and is refused asinvalid_inputat the field where its kind lacks it or does not take it:
kind | Takes |
|---|---|
none | No other field |
secret | name and in. in is header, query or security. name is the header, the query parameter or the security scheme of the document the value is sent as. Only an openapi connection takes query or security. Given by hand, it also takes instructions and key_page, and optionally example and pattern, as below |
reference | variable, name and in. variable is the name of an environment variable of the runtime that whoever runs it lists in connections.variables. Its value is sent where name and in say, as a secret's is |
client_credentials | issuer, an optional client_id and an optional scope. issuer is an https URL or an http URL on a loopback address |
authorization | With this kind, the person signs in at an authorization server and allows Auto. It takes issuer, and, as the provider gives them, scope, parameters, authorization_endpoint, token_endpoint, revocation_endpoint, pkce and clients. pkce is none where the server of those endpoints takes no PKCE challenge. clients names the client sources the provider's authorization server takes: registered, metadata_document or dynamic. Once connected, it takes client_id and client_source, the client the connection was made with, while scope stays the scope the way's first consent asked |
jwt_bearer | A provider's way alone. It takes issuer, subject, the account a token is asked for, resolved with the connection's values, and an optional scope. Once connected, it takes client_id, the client the key file names. A way whose key file is in PEM takes client_id, resolved from the connection's values as it is added or chosen. A way that asks its token through a request of its own takes token_request: method, url, with the connection's values in it, and issued, the JSON Pointers to the token and to the time it ends in the answer. Given for a server added by hand, it is refused at /credential/kind |
token_exchange | A provider's way alone. It takes token_endpoint, where the token Auto signs is exchanged, and optionally scope and parameters, as the provider gives them, and service_account, managed where the connection acts as a service account Auto creates for it. What the exchange sends is read from the provider's way each time the connection is used, with the connection's values in their places. Given for a server added by hand, it is refused at /credential/kind |
The same object is what every operation answers and what the org's record keeps.
- An MCP server given by hand says how it authenticates. As the connection is added, and before anything is recorded, the runtime asks it once, with one request that carries no token. It reads the protected resource metadata the answer names, or that the server's well-known paths publish where the answer names none. Let people connect by consent says how.
- Where that metadata names an authorization server the runtime takes, the connection records
authorization. It records that server as its issuer, the scope the server asks and the client the runtime makes for itself there:dynamicwhere the authorization server registers clients dynamically, and elsemetadata_document. - So the agent leaves
credentialout, or givesauthorizationwith itskindalone. Any other field beside the kind is refused at its field. - For such a server,
none,secretandreferenceare refused at/credential/kind, in words that name the authorization server and say to leave the credential out.client_credentialsstand, since they take their token from an authorization server too. - Where the server names no authorization server, the kind given stands, except
authorization, which is refused at/credential/kind. Acredentialleft out is refused at/credential, in words that say the server names no way of its own and ask how its credential is sent.
- Where that metadata names an authorization server the runtime takes, the connection records
- An HTTP API given by hand, whose document names no authorization server, takes its
credential. It is refused the kindauthorizationat/credential/kind. - A server added by hand, an MCP server or an HTTP API, is refused the kinds
jwt_bearerandtoken_exchangeat/credential/kind, since only a provider's way states the account a token is asked for and how the token is had. - A
secretor areferencesent in a header may name itsscheme, such asBearer, which the runtime writes, with a space, before the value it sends, so the person gives the token alone, the variable of a reference holds the token alone, and the server receivesAuthorization: Bearer <token>. Aschemeholds the characters of a header name and no$, and a credential that places no value in a header takes none.give_credentialrefuses a value that already starts with the scheme and a space, in any case, at/value. - A
secretsays how the person makes its key, for Studio's page to show beside the field of the key, and the record keeps it in the open with the rest of the credential, never beside the value. A provider's way gives it;read_linkanswers it in the connection'scredential, andprovider, the provider's name ornull, says whether the provider or the agent wrote it.instructionsis Markdown without HTML, from 1 to 1,000 characters: where the key is made, with a link to that page, the plan or role it needs, the permissions it needs and its format. A<before a letter,/,!or?, which starts a tag, is refused.key_pageis thehttpsaddress of the page where the key is made, written out fromhttps://, with no user name or password in it.example, optional, is what a key looks like, in at most 100 characters, with an ellipsis,…, in place of the key's characters, such asghp_…, so that it never reads as a key.pattern, optional, is the regular expression from^to$a key matches, of at most 200 characters, read as JavaScript reads it with theuflag: characters,.,\d,\wand character classes, each repeated with?,*,+,{n},{n,}or{n,m}of at most 1,000, and no group, alternative, lookaround, back reference or lazy repeat. The runtime matches it in time in proportion to the key's length, never by backtracking, and matches it to no key of more than 8,192 characters.- With
provider, the agent gives none of the four, and each is refused at its field. For a server given by hand,instructionsandkey_pageare required, each refused at its field in words that say what to write, and every other kind refuses the four. give_credentialmatches the value of asecretto itspatternbefore it keeps it. For a provider's way, a value of another format is refused at/value,Paste the key itself: this value is not in the format of the provider's keys, nothing is kept and the link stays open. For a server given by hand, whose pattern the agent wrote and may have wrong, the value is kept, the connection connected, and the answer carriespattern_unmatched: true.
give_credentialtakesapp_credentials, the app credentials thatlist_providerslists under a provider's way, each a value under its name and each optional to the person. One the way does not list here, or of another format than itspattern, is refused at/app_credentials/<name>. The runtime keeps each one it takes sealed in the secret store as it keeps the key, and no answer or record holds its value. A connection answers each by name inapp_credentials. Giving the credential again replaces them all, so one left out then is forgotten with the values replaced, as all are when the connection is removed.- Before it keeps anything, the runtime checks with the service each app credential given and, where the provider has a check for its key, the key: a value the service refuses is refused as
invalid_inputat its field, and where the check cannot be completed, as when the service cannot be reached or answers an error, it answersunavailable, keeps nothing and leaves the link open. - For a connection whose credential is
client_credentials,give_credentialfirst asks the authorization server for a token with the client's ID and the client secret or private key given, as a call would. Credentials the server refuses with an OAuth error are refused asinvalid_input, with the error code the server answered and, where it gives one, itserror_description. It answersunavailablewhere the server cannot be reached, answers 429 or a server error, or answersserver_errorortemporarily_unavailable, andconflictwhere the server's metadata names another issuer, or the tool server names another authorization server. Either way, nothing is kept and the link stays open, so a connection reconnected keeps the credentials it has. The token is not kept. give_credentialtakeskey_file, the whole text of the key file the service gave, alone, for a connection whose credential isjwt_bearer. The runtime reads the client's ID and the private key at the JSON Pointers the provider's way names, refusing at/key_filea text of more than 16 KiB, one that is not a JSON object, one whose pointers find no text, and one whose private key cannot sign with RS256. For a way whose key file is in PEM, the text is the private key itself, one RSA key in PKCS #1 or PKCS #8 that signs with RS256, refused at/key_fileotherwise, and the client's ID is the one the credential holds. It then signs a JWT with the key and asks the authorization server for a token once, or, where the credential holds atoken_request, sends that request with the JWT as its Bearer. A key the server refuses with an OAuth error is refused asinvalid_input, with the error code the server answered, and so is one atoken_requestanswers with a client error other than 408 and 429, withHTTPand the status. It answersunavailablewhere the server cannot be reached, answers 429 or a server error, answersserver_errorortemporarily_unavailable, or answers another status with no error code or a success with no token. It answersconflictwhere the server's metadata names another issuer or a token endpoint that is nothttps, or where it publishes none. Either way, nothing is kept and the link stays open. Once a token is given, the runtime keeps the private key alone, sealed, recordsalgorithmRS256and the client's ID inclient_id, and keeps nothing else of the file.key_filebeside any other field, or for another kind, is refused.- A connection whose credential is
token_exchangeis approved byapprove, with no credential to give. Where the way is not one of a service account Auto manages,add_connectionandchoose_waytake it with none of the values it asks for itself, since they come from the setup its steps describe: the connection's page asks them after the steps, andchoose_waygives them. Until they are given,approverefuses the connection asinvalid_input, naming each missing value. Before it records anything, the runtime signs a token for the organization and exchanges it at the service. A token the service refuses is refused asinvalid_input, with the error code the service answered, and a service that cannot be reached or does not answer givesunavailable. Where the provider's way declares a check, the runtime then calls it once and answersreached, the names of what the connection reaches, at most 50; a check that ends any other way than in an answer givesunavailable, and nothing is recorded. A connection that acts as a service account Auto created and reaches nothing yet is refused asconflict, and nothing is recorded.read_linkanswerssubject_token,{ issuer, subject, jwks_uri, jwk_file }, the issuer and the subject the way's steps name, where the issuer publishes its keys, and whether the steps offer those keys as a file to upload at the service. create_service_accountcreates the service account of a connection whose credential istoken_exchangewithservice_accountmanaged, and answers{ email }, the address the person gives access at the service. Asked again, it answers the same account. Where Auto cannot create it now, it answersunavailableand records nothing.approverefuses such a connection asconflictuntil its account is created.remove_connection, andchoose_wayto another way, remove the account first, and answerunavailablewith nothing changed where it cannot be removed now. For a connection that isconnectedorbroken,create_service_accountcreates an account only for a way chosen through its link. The account the connection acts as is removed only once the way chosen connects. If it cannot be removed then, the runtime logs it at the error level, and the connection stays connected the way chosen.test_connectionruns the same exchange and check for a connected connection whose credential istoken_exchange, records nothing, and answers{ reached }, empty where the way declares no check. A connection of another kind, or one not connected, is refused asconflict.- The
client_idof client credentials is the org's, so the agent may leave it out and the person gives it on Studio's page with the client secret or the private key: a connection whose credential holds none answers its record without it,give_credentialtakesclient_id, and the record holds it from then on.give_credentialrefuses aclient_idat/client_idwhere the credential holds one, refuses one missing where it holds none, and refuses one that looks like a credential, since the record keeps the client id in the open and the secret or the key goes in its own field, where it is sealed.add_custom_connectionrefuses aclient_idthat looks like a credential at/credential/client_id. get_connection,test_connectionand the seven routes of the link are served over HTTP alone, and no MCP endpoint serves them.get_connectionreads one connection of the org by its id; an agent sees whether the person approved a connection in thestatuslist_connectionsanswers for each. The seven routes of the link are Studio's page's alone. Each takes the token, which the runtime keeps only as its SHA-256, and matches it to the open link of the connection: the newest one given, that nothing has used up.startandfinishconnect a connection whose credential isauthorization.startanswers201withauthorize,{ url, expires_at }, andclient_source, the source of the client it started with.urlis the page of the connection's authorization server where the person signs in and allows Auto. It carries the client, the return address, the scope, a state and a challenge.- The return address is the page
connect-returnof the Studio the connection's link opens. It is the Studio host's/connect-return:STUDIO_ORIGINfollowed by/connect-return, orhttps://studio.on.auto/connect-returnunlessSTUDIO_ORIGINis set. Where the runtime serves Studio, it is instead/studio/connect-returnon the runtime's own address. expires_atis ten minutes on, the time the consent has of its own. A second start replaces the first.- The server sends the person back to the return address with a code, the state and its issuer. Studio sends them to
finishwithtoken,code,stateandiss. finishredeems the code, keeps the tokens sealed in the runtime's secret store and connects the connection. It is bound to the start, within its ten minutes.finishrefuses a state the consent was not started with at/state, an issuer that is not the server's at/iss, and a code the server refuses at/code, in Auto's own words. A refused code leaves the start open.- The scope
finishrecords asgranted_scopeis the one the server granted, its scopes separated by single spaces, or the one asked where the server says none. - A grant of no scope where one was asked, or of a scope that is not one, is refused. An empty grant where none was asked records none. A finish refused once the tokens exist revokes them first.
- A connection connected by consent then serves its tools, and the runtime renews its tokens. Let people connect by consent says how.
- A start of
client_sourceautobegan through Auto's consent service, with Auto's client at the vendor. Consent through Auto says when a runtime starts one.- The start's
urlis the page Auto's consent service made, whose return is the Studio host. The Studio host sends the person back to the Studio the link opened, with a handle and the state. finishthen takestoken,stateandhandle, takes the tokens from the service and connects the connection.- A finish of the other shape than its start's is refused as
invalid_inputat the field it gave,/codeor/handle, saying which the consent answers. A handle the service refuses is refused asinvalid_inputat/handle.
- The start's
approveconnects a connection whose credential isnoneorreferenceand uses its link up.give_credentialkeeps the value sealed in the runtime's secret store, connects the connection and uses its link up: giving the credential is its approval.- With
provider,credentialmay be{ kind: authorization, oauth_client: own }, so the connection runs under the organization's own OAuth client. That is a client the organization registers with the provider, which bills and limits it. A connection under the organization's own OAuth client sets it out.- The connection's credential holds
client_source: ownfrom the start. A way whoseoauth_clientisrequired, as the way says or since no client here covers it, takes the organization's own OAuth client withoutoauth_client. oauth_clientbeside another kind is refused at/credential/oauth_client, andadd_custom_connectionrefusesoauth_clientthere too.- The page of the connection's link gives the client ID and the client secret,
client_idandclient_secret, throughgive_clientbefore the sign-in.give_clientkeeps the secret sealed in the runtime's secret store, records the client ID in the connection'scredential, leaves the link open and answers the connection. - A second
give_clientof a connection that holds no tokens replaces the client given before and forgets its secret. - A connection that holds tokens,
connectedorbroken, takes a client through a linkreconnect_connectiongave. The client ID it runs under, given with a new secret, replaces that secret at once and drops a next client given before. - Another client ID given to such a connection is kept as its next client, which its record does not show. The next
starttakes it. Once that consent'sfinishconnects the connection, the connection runs under that client. The tokens before are then revoked with the client they were given to, whose secret is forgotten. - A next client given again replaces the one before, whose secret is forgotten.
read_linkanswersclient_source: own, and the credential'sclient_idonce the client is given. It answersreturn_address, the address the runtime sends the authorization server asredirect_uri, which the client registers as an authorized redirect URI. While the connection keeps a next client, it answersnext_client_id, whichgive_clientanswers too.startis refused asconflictuntil the client is given. It starts the consent with that client at the provider's authorization server, never through Auto's consent service.finishtakes the client itsstarttook. The renewal of the tokens and their revocation take the client the connection runs under.remove_connectionforgets the client's secret and a next client's.- A
startorfinishunder a client given again meanwhile is refused asconflict. The person then signs in again under the client given last.
- The connection's credential holds
- A connection is added by a person: on a runtime that signs people in,
add_connectionandadd_custom_connectionrefuse a key, and a runtime of API keys alone, which signs nobody in, refuses every connection, since no person could approve it. - On a runtime that signs people in,
approve,choose_way,give_credential,give_client,startandfinishneed the session of the person who added the connection. In local mode the token alone binds. reconnect_connectiongives a new link to a connection that isbroken,connected, orpending, whether or not its link is still open. It changes nothing else of the connection, but in the two cases below where it adds the connection again under its name. A removed connection is added again rather than reconnected.- The new link replaces the one before, so only the newest works. The token of the link before is answered
not_foundbyread_link,approve,give_credential,startandfinish, in words that say so:There is no open link of this token: a newer link of the connection crm replaced it. So the page can send the person to the newest. - A broken connection of a
referencetakes no link. Where the runtime finds its variable set, it answers the connectionconnectedat once, withoutconnect. While the variable is not set, it refuses the connection withconflict, since the runtime reads its variables when it starts. - A pending or connected connection of a
referencetakes a link as any other kind does. - On a runtime that signs people in, the person who added the connection reconnects it, as only they may use its link. In the two cases below, where the runtime lets a person of the organization reconnect a connection of the provider whoever added it, that person reconnects it.
- A connection made from a provider another replaces here is added again rather than given a link:
reconnect_connectionremoves it, forgets its credential and adds it again from the provider that replaces it, under its name, for the same playbooks, and answers the new connection with its link. Where the runtime lets a person of the organization reconnect a connection of that provider whoever added it, that person may, and the connection added again is theirs to finish. A caller the runtime starts no connection of that provider for, the person who added it among them, is refusedforbidden, in the runtime's words of who can, before anything is removed or forgotten. Otherwise only the person who added it may. - A
pendingconnection another person left waiting, of a provider the runtime lets a person reconnect whoever added it, as one added again so and not finished, is added again the same way when such a person reconnects it, from its own provider, under its name and for the same playbooks, as theirs to finish. Once it is connected, it is the connection of the person who connected it, as any other. - Through the new link,
read_link,approve,give_credential,startandfinishtake the connection, pending, connected or broken alike. - Connecting the connection again replaces its credential. The runtime forgets the secret it held, and answers it
connected, withbrokennulland the newconnected_byandconnected_at. - Where the new consent took another client, the tokens of a consent the connection held are revoked as
remove_connectionrevokes them. Where it took the same one, they are forgotten without a revocation, since some authorization servers end the person's whole grant to that client on one revocation. - A client of the MCP tool that opens links is asked to open the new link, as for
add_connection. Its retry answerslink_replacedwhere a newer link that is still open replaced it. - The consent a link without
morestarts asks the scopes the provider's way asks now, with those of the scopes the connection asked since that it was granted and the way still asks or offers. So a connection granted a group of more keeps it while the provider offers it, and is never asked a scope the provider dropped. Where no client set up here covers the rest, the consent asks the way's scopes alone. A server given by hand asks the scopes of its credential. - That consent never asks a scope the server granted beyond what the connection asked, such as a grant of another connection to the same client, nor one a consent the person abandoned asked.
- The new link replaces the one before, so only the newest works. The token of the link before is answered
- Given
more, the name of a grouplist_connectionsoffers the connection,reconnect_connectiongives a connection that ispending,connectedorbrokena link for that group. A consent that asks more says how a provider names its groups.- The consent that link starts asks the scopes the connection asked that it was granted and the provider's way still asks or offers, or those the way asks now while it holds none of them, with the group's. So the person keeps what they allowed before.
- That consent carries the parameters of the provider's way, as any consent of the way does.
- The finish records what the server granted as
granted_scope. reconnect_connectionrefuses a group the connection's way does not name, and any group of one that names none, asinvalid_inputat/more. It refuses a group the connection holds every scope of already, or one no client set up here covers, asconflict.
remove_connectionremoves a connection for good, and the runtime forgets its credential, and what a consent started for it keeps, having first revoked at the provider the tokens of a connection connected by consent; tokens it cannot read or revoke now are logged and left to end on their own, and the removal goes on. Removing a removed connection succeeds and records nothing. Its name may then be given to a new connection.decline_connection_requestdeclines the open request for a connection. It records the decline and the removal of the connection together, and forgets what was given for it on its page, asremove_connectiondoes. A connection with no open request is refused asconflictand keeps everything. It needsorg:write, asremove_connectiondoes.set_connection_playbookssets which playbooks of the org may use a connection.playbooksnames them by id, andnullgives the connection to every playbook of the org, those made later among them, itsentrythen naming none.choose_waychooses how a connection connects, through its open link. It takes one of the ways its provider or its server offers, named bykindandpermissions. For a way that acts as an account,account_typesays which kind of account; left out, it ispersonalif the way takes personal accounts, and otherwise the type the way takes.placeholdersgives the values the way asks for, each of them; left out for the way the connection has, its values stay as they are. The connection then holds those values beside the provider's, and the address its calls go to is the way'sbase_urlwith them in place, or the provider's where the way gives none. The connection keeps its id, its name, its playbooks and its link, which then reads the way chosen. A sign-in started and the organization's own OAuth client given for the way before are dropped, and the runtime forgets the client's secret. Choosing the way the connection has with other values records the choice again, and keeps its account type unless one is given. Choosing the way the connection has with the same values changes only its account type, where one is given, and otherwise records nothing.- A connection that is
connectedorbrokentakes the way chosen only once that way connects through the link, byapprove,give_credentialorfinish. Until then, it keeps the way it has, its credential and its account type, and its calls keep using them.playbooksgiven with the way chosen, tostart,approveorgive_credential, are set only when that way connects. Its link reads the way chosen, and the rules above treat the way chosen as the way it has. If the way chosen never connects, the connection stays as it is. - Once the way chosen connects, the runtime lets go of what the way before held, as
remove_connectiondoes. It ends a key a gateway gave and forgets the credential. It revokes the tokens of a sign-in at the provider first, except where the way chosen signs in under the same OAuth client. It forgets the secret of the organization's own OAuth client where the way chosen does not use that client, and removes the service account Auto created for the way before unless the way chosen acts as that same account. - Choosing the way the connection has, with its values and its account type, records nothing, so its page signs it in again that way.
- A connection that is
choose_providermoves a connection that is not connected yet to another provider of the same app, through its open link: the provider whose entry listsvariants, or one of those variants. It removes the connection and adds it from the provider chosen in one record. The new connection keeps the name, the playbooks, the tools it allows and who added it, and the values of the placeholders the provider chosen declares. It answers the new connection and its link, asadd_connectiondoes, and the link before stops working. A connection that has been connected, or that someone asked for and no admin answered, keeps its provider.set_connection_account_typesets the kind of account a connection acts as.servicemeans an account the company made for automations.personalmeans the account of the person who connected it. Only this mark changes. Setting the type the connection already has records nothing. A removed connection is refused asconflict, and so is a connection that acts as the app or sends no credential. A type the connection's way does not take is refused asinvalid_inputat/account_type.- A list names at least one playbook: an empty one is refused as
invalid_inputat/playbooks, and a malformed id at its place. The ids are not looked up, as those ofadd_connection'sentry.playbooksare not. - It sets them for a connection
pending,connectedorbrokenalike, records nothing where the connection serves those playbooks already, and refuses a removed connection withconflict. It needsorg:write, asremove_connectiondoes, and any caller who holds it may set them, not the person who added the connection alone. A caller that may access only some playbooks of the org, such as a key limited to some playbooks, is refused asforbidden, since it could otherwise give a connection to playbooks it may not access. - A run opens its tools once, as it starts, and keeps them until it ends, so a run under way finishes with the connection. A run that opens its tools afterwards in a playbook the connection no longer serves is refused as
unavailable,tool_not_offeredbecausetool_server_not_configured, as for a server the playbook does not have; so is a call by hand there, and that playbook'ssearchno longer lists the connection.
- A list names at least one playbook: an empty one is refused as
set_connection_signing_secretgives a connection the secret its service signs what it sends with, as the Standard Webhooks specification signs a webhook:whsec_and the base64 of 24 to 64 random bytes. Givensecret, the one the service made, it keeps that; without it, the runtime makes one of 32 random bytes and answers it assecret, this once. The secret is sealed in the secret store as a credential is, and no other answer, fact or log holds it; every connection answerssigning_secret,{ set_at, previous_until }, ornullwhere it holds none, and the two operations of the secret answer{ id, signing_secret }alone. A secret set while the connection holds one replaces it, and the one replaced verifies too for 24 hours, untilprevious_until, so the service changes over with no gap; a third replaces the second and forgets the first. Only a person sets it, in Studio: a key, an agent acting for a person, and every caller of a runtime that signs nobody in are refused asforbidden, since each would then hold the secret.remove_connection_signing_secretforgets a connection's signing secrets, and withprevious: trueonly the one a new secret replaced. Removing what the connection does not hold records nothing, andremove_connectionforgets them too.approve,give_credentialandstarttakeplaybookstoo, so the call that approves a connection, or that starts its consent, also sets which playbooks may use it. The playbooks are recorded with the approval or the start, only where they differ from those the connection serves, and a call the link or its binding refuses changes none. The playbooks given tostartare set when the consent starts, whether or not it finishes. Left out, the connection keeps the playbooks it has. A caller that may access only some playbooks of the org is refused asforbiddenwhen it givesplaybooks, asset_connection_playbooksrefuses it.read_linkanswers them, inentry, before.
| Case | Response |
|---|---|
An entry that holds a value that looks like a credential, a reference such as ${NAME}, or a field another entry would refuse | invalid_input |
A provider the runtime does not have, at /provider: There is no provider named crm here; search lists the providers a person may connect | invalid_input |
A placeholder the provider does not take, one missing, or a value its pattern or its choices refuse, that looks like a credential or that would move the address, at /placeholders/<name> | invalid_input |
A credential.kind the provider does not offer, at /credential/kind | invalid_input |
What the checks of an entry refuse in what the provider resolved, at /provider, or in a name the caller gave, at /name | invalid_input |
| A kind of credential there is not, or a field its kind lacks or does not take | invalid_input |
A scheme beside a credential that is not sent in a header, or one that holds a $ or a character a header name does not | invalid_input |
An MCP server given by hand that names an authorization server the runtime takes, with a credential of the kind none, secret or reference, at /credential/kind | invalid_input |
An MCP server given by hand that names no authorization server, with its credential left out, at /credential, or of the kind authorization, at /credential/kind | invalid_input |
An MCP server given by hand with authorization or its credential left out that names another resource or a malformed scope, or whose authorization server cannot be read, names another issuer, takes no S256 challenge or registers no client, at /credential/kind, and with none, secret or reference alike, but for another resource | invalid_input |
An MCP server given by hand that does not answer, whatever its credential, or whose authorization server does not answer, unless its credential is client_credentials | unavailable |
A secret given by hand without instructions or key_page, instructions past 1,000 characters or holding a tag, a key_page that is no https page, an example without …, or a pattern the runtime does not take, at its field; any of the four with provider, or of another kind | invalid_input |
give_credential with a value of another format than the pattern of its provider's way, at /value, keeping nothing | invalid_input |
give_credential with a value the service refuses when the runtime checks it, at /value or /app_credentials/<name>, or with an app credential the provider's way does not list here or of another format than its pattern, at /app_credentials/<name>, keeping nothing | invalid_input |
give_credential with a key_file the provider's way cannot read, at /key_file, or one whose key the authorization server refuses, with its error code, keeping nothing; a key_file beside another field, or for another kind | |
give_credential with a value that starts with the credential's scheme, a client_id where the credential holds one, none where it holds none, or one that looks like a credential | invalid_input |
| A connection the runtime's rules do not take: no one may add one, its host, its kind of credential or the variable its reference names | forbidden, with the sentence of the rule |
A name of an entry of tool_servers, or of a connection of the org that is not removed | conflict |
| An org that holds 50 connections that are not removed, the most it may | conflict, kind connections_full |
| A token that is unknown, used up or replaced by a newer link, or an id the org does not have | not_found |
add_connection, add_custom_connection or reconnect_connection by a key where people sign in, or by anyone on a runtime of API keys alone | forbidden |
approve, choose_way, give_credential or give_client with the session of another person, where people sign in | forbidden |
start or finish of a connection whose credential is not authorization, a server that names a resource other than its own address, or an authorization server that names another issuer, takes no S256 challenge, publishes no metadata or takes none of Auto's clients | conflict |
start or finish where a host of the authorization server is one the rules do not allow | forbidden, with the sentence of the rule |
finish with a client no longer registered, or, once the tokens it got are revoked, tokens the runtime's secret store refuses, a grant of no scope where one was asked, or a grant that is not a scope | conflict |
finish with no consent started, or one started more than ten minutes ago | not_found |
finish with a state the consent was not started with, at /state, an issuer that is not the server's, at /iss, or a code the server refuses, at /code | invalid_input |
start or finish where the authorization server does not answer | unavailable |
give_credential, give_client, start or finish where the runtime's secret store cannot keep or read now what it needs, in the store's words; a finish whose code was redeemed then says the person starts again, its tokens revoked | unavailable |
give_credential where the runtime's check of a value given cannot be completed, as when the service cannot be reached or answers an error, keeping nothing and leaving the link open | unavailable |
start whose client, registered by the runtime at the authorization server, is one its secret store refuses to keep, in the store's words | conflict |
approve of a connection whose credential is to be given, or give_credential of one that takes none | conflict |
give_client of a connection that does not run under the organization's own OAuth client, or start of one under it whose client is not given, or whose client secret is no longer in the secret store, or a start or finish under a client given again meanwhile | conflict |
give_client with a client secret the runtime's secret store refuses, at /client_secret | invalid_input |
add_connection with credential.oauth_client beside a kind other than authorization, or add_custom_connection with credential.oauth_client, at /credential/oauth_client | invalid_input |
reconnect_connection of a connection removed, or of a broken reference whose variable is not set | conflict |
decline_connection_request of a connection with no open request | conflict |
choose_provider of a connection that has been connected, or that someone asked for and no admin answered | conflict |
reconnect_connection by another person than the one who added the connection, where people sign in and the runtime does not let the caller reconnect it whoever added it, or by a caller the runtime starts no connection of the provider it is added again from for | forbidden |
reconnect_connection of a connection it would add again, where the runtime cannot say just now whom it starts a connection of its provider for | unavailable |
reconnect_connection with a more the way of the connection does not name, at /more | invalid_input |
reconnect_connection with a more the connection holds already or no client set up here covers, or read_link or start of a link given for a group its provider no longer names | conflict |
set_connection_playbooks, approve, give_credential or start with an empty list of playbooks, at /playbooks, or a malformed playbook id, at its place | invalid_input |
set_connection_playbooks of a connection removed | conflict |
set_connection_account_type of a connection removed, or of one that acts as the app or sends no credential | conflict |
set_connection_account_type with an account type the connection's way does not take, at /account_type | invalid_input |
choose_way with a way the connection's provider or server does not offer, at /credential, or a value the way asks for that is missing or does not fit, or a value it does not ask for, at /placeholders, or an account type the way does not take, at /account_type | invalid_input |
choose_provider with a provider that is not another provider of the same app, at /provider | invalid_input |
set_connection_playbooks, or approve, give_credential or start with playbooks, by a caller that may access only some playbooks of the org | forbidden |
set_connection_signing_secret with a secret that is not whsec_ and the base64 of 24 to 64 bytes, or one the secret store refuses, at /secret | invalid_input |
set_connection_signing_secret of a connection removed | conflict |
set_connection_signing_secret by a key, by an agent acting for a person, or on a runtime that signs nobody in | forbidden |
The tools of a connection
list_connection_tools answers the tools a connection's server offers now, those its entry's allowed names where it names any, so a page or an agent shows what one connection can do without searching the whole org. The runtime asks the server for its tools when it is called, as search does, and sends nothing to a tool. It answers connection, the id given, server, the connection's name, which a function writes before the slash, tools, sorted by name, has_more and next_cursor, read as Paging reads a list: limit from 1 to 100, 20 when left out, and cursor the next_cursor of the page before; a cursor no page gave is refused as invalid_input at /cursor. Each tool holds:
| Field | What it holds |
|---|---|
name | The tool, as a function names it after the slash |
title | What a person reads as its name, where its server gives one: an MCP tool's title, or the title of its annotations; an operation of an HTTP API has none, its summary opening its description |
description | What it does, as its server describes it, whole up to 4 KiB, as introspect answers it; empty where it gives none |
hints | The hints its server gives, destructiveHint, idempotentHint and openWorldHint of the MCP specification as it gives them, each left out where the server gives none and hints left out where it gives none of them, which the specification reads as a tool that may destroy what it changes, may not be repeated safely and reaches outside; an operation of an HTTP API is destructiveHint for DELETE, idempotentHint for GET, HEAD, PUT and DELETE, and openWorldHint always. Whether it only reads is its mark |
mark, marked_by | Its mark and what gave it |
A connection that is not connected, or whose server cannot be reached, is refused as unavailable, with the kind, the because and the words a function's refusal and search give: tool_not_offered and the because A connection that is not ready lists, or tool_server_failed where its server fails. An id the org has no connection of, or one removed, is not_found.
Providers
A provider is a service Auto knows by its name, an MCP server or an HTTP API with how a credential reaches it, which a person connects by its name and the values its placeholders take. list_providers lists those a person may connect here, and search on the org route lists to a caller who may add a connection those that no server serves yet; Let people add connections lists those Auto ships, and whoever runs Auto adds providers of their own in its settings file, connections.providers. The route is relative to /v1/orgs/{org} and served over HTTP alone, for a page to read:
| Operation | Method and route | Permission | Input |
|---|---|---|---|
list_providers | GET /providers | org:read | None |
It answers providers, sorted by name, may_add, may_connect, refusal and return_address. A provider holds:
| Field | What it holds |
|---|---|
name | Its name, the default name of a connection to it, given as provider to add_connection |
title | What a person reads |
description | What a function may do with it |
summary | What playbooks can do with it, in one sentence for a person who connects it, where the entry gives one |
website | Where a person reads about the server and makes a credential |
icons | Images of the service's logo, to show beside its name. Each has the image as a data URI, its file type and, where given, its sizes and whether it suits a light or dark background. |
type | mcp or openapi |
credentials | The ways a credential reaches the server: kind, secret, client_credentials, none, authorization, jwt_bearer or token_exchange; for secret, in and name, where the person's value is sent, and scheme; for client_credentials, authorization and jwt_bearer, issuer; permissions, application when a connection made this way acts as the app, as a client_credentials, jwt_bearer or token_exchange way always does, delegated when it acts as an account at the service, as a way that says nothing does, and left out for none; account_types, on a way with delegated permissions, the kinds of account a connection made this way may act as, service, personal or both, and both where the entry says nothing; scopes, the scopes the way's first consent asks, in their order, each { name, says }, says one sentence of at most 120 characters that says what a connection can do through the scope, such as Read Gmail messages, threads, drafts, labels and settings., empty where the way asks none; more, the groups of scopes a later consent of a connection made this way may add, each { name, for, scopes }, for what the group is for in the person's words, empty where the way names none; a description for the person, for secret the short name of the key, the label of its field, such as GitHub fine-grained personal access token, whose instructions and key page the connection's credential holds once it is added; for token_exchange, service_account, managed where a connection made this way acts as a service account Auto creates for it, and read_only, true where it is given only the tools that read; for secret, client_credentials, jwt_bearer, authorization and token_exchange, where the entry gives them, key_page, the page where a person makes the key, the client, the key file or the organization's own OAuth client, key_page_title, the label of the button that opens the key page, and steps, the heading and paragraph of each step of Studio's page where a person approves the connection, key_page, key and connected, each { title, instructions }, and pages, the steps the person does on other pages of the service, in order, each { title, instructions, page, page_title } with the page and the label of the button that opens it; for client_credentials and authorization, client_id_title, the label of the field the client's ID is given in, where the entry gives one; for authorization, refresh_token_expires_in, how many seconds the provider keeps a refresh token before the person signs in again, where the entry states it; limitation, what a connection made this way cannot do, in one sentence a person reads under the way where they connect the provider, where the entry states it; title, the name the entry gives this way, for a client to show where a person chooses how to connect and on a connection made this way, where the entry gives one; advanced, true where the entry says the way takes more setup than the others, for a client to mark where a person chooses between several ways; placeholders, the values the way asks for beside the provider's, each as placeholders below, and left out where it asks for none; a way that asks for some is listed after the provider's other ways, so an agent that names no way takes one of those where one is offered; for secret, app_credentials, the app credentials a person may give beside the key, such as an app-level token, each with its name, description and instructions, and its title, key_page, example and pattern where the entry gives them, listed only where this runtime can use them and left out otherwise; for authorization, oauth_client, optional where a person may connect it under the organization's own OAuth client beside the client here, with client_source, the source of the client a start takes without it, as read_link names it, and awaiting_approval, true where the service has not yet approved Auto's app for the access the way asks, so only some accounts can connect this way for now, and required where it connects under the organization's own OAuth client alone, as the way says or since no client here covers it; offered, whether a person may connect it this way here, and because, why not, or why only under the organization's own OAuth client |
placeholders | The values a person gives: name; title, the label of its field, where the entry gives one; description, pattern and example, or choices, each a value and a title; and required |
variants | The names of other providers that connect the same app in another way, each by the name it has now, for a client to list inside this provider as further ways to connect. Each is still listed here as a provider of its own. Left out where there are none. |
- A provider is listed where the runtime's rules could allow it: a way is listed where
credential_kindstakes its kind and the hosts it reaches could passallowed_hosts, a host that holds a placeholder judged by its shape, a fixed host that is an address inside the network, such as10.0.0.5, passing only whereallowed_hostsnames it by itself or, in local mode, where it is the loopback, and a provider with no way left is not listed. Whether a connection is allowed is still checked when it is added and on every request it makes. - A way of the kind
token_exchangeis listed only where this runtime signs tokens of its own, and one withservice_accountmanagedonly where it can also create service accounts;add_connectionandchoose_wayrefuse a way that is not listed. - A way is
offered: falsewhile a value whoever runs Auto sets for it is not set, andbecausesays so. Every way of the kindauthorizationoffers the organization's own OAuth client: where Auto has none of the clients its provider's authorization server takes, as Let people connect by consent sets out, itsoauth_clientisrequired, andbecausesays why:The provider drive takes consent through a client whoever runs Auto registers, which is not set up here, or, where a client is set up there but covers not every scope the way asks,The provider drive takes consent through a client whoever runs Auto registers, and no client set up here covers every scope its way asks, files.read files.write.add_connectionconnects such a way under the organization's own OAuth client withoutoauth_client. A provider lists such a way after its ways a client here covers or that take no client, a token or a secret, so the default, the first way offered, is one a person can take now where the provider has one. A client here covers a way where it covers the scopes of its first consent, whether or not one covers a group of itsmore. Searching the tools says whatsearchdoes with a provider none of whose ways is offered. may_connectistruewhen this caller may also approve a connection it adds here, andfalsewhen it may not.may_addsays whether this caller may add a connection here, andrefusalwhy not, in the sentence the first rule that refuses gives, in the orderadd_connectionrefuses: a caller withoutorg:write; a key where people sign in, or every caller where the runtime signs nobody in;connections.people_may_addset tofalse. It isnullwhere the caller may add. The providers are listed whatevermay_addsays.- Beside
replaces, a provider holdsmay_reconnect, whether this caller may reconnect a connection made from a provider it replaces, whoever added it:truefor a caller the runtime lets do so, andfalsefor a caller it starts no connection of that provider for, withreconnect_refusal, the words that say who can. Neither is there where the person who added such a connection reconnects it, or where the runtime cannot say just now;reconnect_connectiondecides as it is called, whatever the listing said. return_addressis the address the runtime sends a provider's authorization server asredirect_urifor a connection under the organization's own OAuth client, which that client registers as an authorized redirect URI before a person connects under it, the oneread_linkanswers for such a connection.
A connection that is not ready
A connected connection is a tool server of its org: search lists it with connection, its id, list_connection_tools lists its tools, a function names it by its name as name/tool, introspect and validate reach it, as Tool servers describes, and a run of a function calls its tools. The runtime checks its rules and the entry, as add_connection checks them, and reads its credential when it is first used after the runtime starts. A connection that is not ready is refused as unavailable of the kind tool_not_offered, and search lists it unavailable with the same because and words:
because | The connection |
|---|---|
connection_pending | Nobody has approved it yet; the person who added it opens its link, or reconnects it for a new link |
connection_broken | Its server answered 401, or a code its provider's failure_codes names for a refused credential, as a listing or a call met it, its credential is gone from the secret store or is not the tokens of a consent, its consent was revoked or has ended, or its client is no longer registered; the runtime recorded it broken, with why and since when in broken, once, in words that say what puts it right, most often that the person reconnects it with reconnect_connection. Or, whatever its status, the provider it was made from is replaced here by another; the runtime records nothing, and its words say that reconnecting it adds it again from the provider that replaces it, under the same name. A 403 naming insufficient_scope breaks nothing and fails that call alone, in words that name the scope the call lacks |
connection_not_allowed | The runtime does not use it, in the words of why: a rule of the runtime no longer takes it, in the sentence add_connection would give; connections.people_may_add is false; its entry is no longer one the runtime takes; the variable its reference names is not set; the configuration now sets up a server of its name; or a request it would make goes to a host the rules do not allow |
connection_unavailable | Its credential cannot be read just now, in the words of why: the runtime's secret store cannot unwrap it or does not answer, which whoever runs the runtime puts right. The connection stays connected, and a later call reads the credential again |
License
A self-hosted runtime needs a license key to start, and does not start without one. With its key it runs on the credits of an org at Auto, starting each run itself against a license Auto signed and reporting what it started every hour. License a self-hosted runtime sets out how a key is had and the ways to activate it, and the self-hosted licensing reference how a licensed runtime runs. These routes are relative to /v1/orgs/{org}; the license covers the whole runtime, whatever org the route names.
| Operation | Method and route | Permission | Input |
|---|---|---|---|
get_license | GET /license | org:read | None |
activate_license | POST /license | org:write | key, the key Studio gave, alk.<org>.<runtime id>.<secret> |
activate_allocation | POST /license/allocation | org:write | allocation, the offline credits the Auto team signed: payload, signature and kid |
report_allocation | POST /license/allocation/report | org:write | Optional allocation, the id of the offline credits the report is of |
get_license answers where the runtime stands, to anyone who may read the org, and is served over HTTP alone:
| Field | Value |
|---|---|
state | unregistered while it holds no key; licensed while it runs on its license; out_of_touch from the license's warn_at while it has not reached Auto, still running on it; limited while it holds a key but starts no run, for the reason limited_because names; offline while it spends offline credits; invalid once they have stopped |
limited_because | While it is limited: credits, cap, out_of_touch, key_rotated, key_revoked, org_closed or not_activated; null otherwise |
runtime_id | The runtime's id, which an admin of the organization registers in Studio; a runtime that has no id yet takes one as it is first read |
free_runs | Always null: a self-hosted runtime starts no run without a license key |
org, plan | The org at Auto and its plan, of the license of the key in force; null without one |
org_name | The name of that org at Auto, as Auto signed it into the license, on one line of at most 80 characters; null without one, or where Auto named none or a blank one |
features | The features of the license in force, which work that needs one checks before it starts; [] without a license in force: without a key, before its key is activated, once the license lapsed at its limit_at while no live offline credits stand, once its key was replaced or removed or its org closed, or once offline credits it holds stopped |
standing | Where the org's credits stood when Auto signed the license: ok, low, empty, overage, near_cap or capped; null without one |
licensed | The runs it started on a license, in all |
runs_left | The runs it may still start on its license; 0 while it is limited, null without a license |
credits | { available, owed, overage_cap } of the org when Auto signed the license; null without one |
issued_at, warn_at, limit_at | When Auto signed the license, from when it is out of touch and from when it starts no run, unless it reports first; null without one |
last_report_at | When it last took a license from Auto, as it activated or reported; null without one |
fallback | Always null: a self-hosted runtime has no free rate |
key_source | Where the key in force came from: environment, configuration or activated; null without a key. A key in the environment or the configuration file wins at each start |
offline | { credits, spent, usable_until } while it holds offline credits; null otherwise |
invalid_because | While it is invalid, the detail a run is refused in; null otherwise |
summary | Where it stands in plain words, and how to put it right, as it says in its terminal |
activate_license answers 200 with the same document. The runtime keeps the key in its secret store, so it stands after a restart, unless AUTO_RUNTIME_LICENSE_KEY or the configuration file gives another, which wins at each start. A key that is not one of Studio is refused as invalid_input; one Auto does not know, rotated away, removed or for another runtime, and a license not signed by Auto, as license_invalid; a key of an org whose account is closed as account_closed; and an account service that cannot be reached as unavailable of the kind meter_unavailable. Activating the same key again takes a fresh license.
activate_allocation and report_allocation serve a runtime on offline credits, and are served over HTTP alone. activate_allocation answers 200 with allocation, its id, installation, the runtime's id, credits, spent, what the runtime admitted on them, and refresh_by, the date Auto signed into them: 30 days after they were issued or last refreshed, or 90 where Auto chooses it under an Enterprise order, and never past the earliest expiry of the credits they took. Offline credits not signed by Auto, for another runtime or past their date are refused as license_invalid, and what is not their JSON as invalid_input. Giving the same credits again changes nothing but a later refresh_by. report_allocation answers 200 with report, { allocation, installation, sequence, spent, at }, the next number and all spent so far, and signature, its HMAC-SHA256 under the runtime's key, the JSON an admin of the organization uploads in Studio; a runtime with no offline credits, with no key to sign with, or holding others than those named, is refused as conflict.
Responses and errors
A successful operation responds with JSON and Cache-Control: no-store. The create operations, create_playbook, create_definition, make_comment, add_connection and add_custom_connection, and a connection's consent start, return 201; other successful operations return 200.
An error is an RFC 9457 problem document, with Content-Type: application/problem+json. Inspect its reason and detail:
invalid_inputincludes anerrorslist of JSON pointers, and the kindinput_schemawhen the input schema of the function or workflow refused the input it was given, before it ran, orcursor_not_heldfor a cursor of changes the ledger does not hold.- A rejection that has a
kindcarries it. - An
unavailableorconflictrejection that has abecausecarries it. - A
conflictmay have the kindoversized, for a workflow whose output is larger than a run can record. It may also have it for an asset that is larger than the runtime keeps of one asset, or that would take the playbook's assets past their total, whether a generation function made it or a run keeps it as a part of its output. - A
conflictmay have the kindblocked_by_moderation, for a generation function whose request the provider of its model refused under its moderation. - A run rejected as
unavailablemay have the kindgeneration_timed_out, for a generation the provider finishes later that it had not made when the run had waited as long as it may. - A refusal a person resolves somewhere carries
resolve_at, the absolute URL of that page, and a refusal of a self-hosted runtime's license or meter, other thanaccount_closed, carriesruntime_id, the runtime's id, once it has one. A self-hosted runtime's refusal at the free rate also carrieslifts_at, when the limit lifts, and its refusals while it holds a key carrylimited_because, why it is limited. The license refusals below say which carry what.
A refusal of the input of a function or a workflow says each issue in its detail, one sentence each, in the words of the input schema. A sentence names the field, then its description and examples, then the rule it broke. Each entry of errors holds one sentence and the field's pointer, so a reader can show it at its field:
{
"type": "https://on.auto/problems/invalid_input",
"title": "Invalid input",
"status": 422,
"detail": "month, The month to report on, such as \"April 2026\" or \"2026-04\": expected at least 6 characters.",
"reason": "invalid_input",
"errors": [
{
"detail": "month, The month to report on, such as \"April 2026\" or \"2026-04\": expected at least 6 characters.",
"pointer": "/input/month"
}
],
"kind": "input_schema"
}A nested field is named by its path, such as address, then city, and an item of a list by its place, such as lines, then item 2. A missing field is named at the field that holds it, such as The input: expected the field month. A value of another kind is told the kind it was given, such as lines: expected a list of records; it was given text. A workflow whose step refused its input is rejected with that step's errors, at the pointers the step saw.
| Status | Common reason |
|---|---|
| 400 | bad_request |
| 401 | Missing or invalid credentials |
| 403 | forbidden or origin_not_allowed |
| 404 | not_found |
| 405 | Unsupported method; see the Allow header |
| 409 | conflict or cancelled |
| 410 | unanswered |
| 413 | content_too_large |
| 415 | unsupported_media_type |
| 416 | range_not_satisfiable |
| 422 | invalid_input |
| 500 | internal |
| 503 | unavailable |
A problem document's type is a URI that names its kind of problem:
| Type | Status | Means |
|---|---|---|
https://on.auto/problems/bad_request | 400 | The request is malformed, such as a field given twice or a body that is not a JSON object |
https://on.auto/problems/unauthenticated | 401 | Credentials are missing or invalid |
https://on.auto/problems/forbidden | 403 | The credentials may not do that |
https://on.auto/problems/origin_not_allowed | 403 | A browser sent the request from an origin the server does not allow |
https://on.auto/problems/suspended | 403 | The caller is a member an admin has suspended, so nothing is done for them in the org until an admin unsuspends them; its reason is forbidden |
https://on.auto/problems/not_found | 404 | Something the request names does not exist |
https://on.auto/problems/method_not_allowed | 405 | The path does not take that method |
https://on.auto/problems/request_timeout | 408 | The body of a webhook sent to a request's answer address did not arrive within 10 seconds; the runtime did nothing with it, so sending it again is safe |
https://on.auto/problems/conflict | 409 | The request clashes with what is there |
https://on.auto/problems/tools_called | 409 | A run that may have called tools is not run again under its id; its reason is conflict. When every tool the run called only reads, it has because: "only_read", and its words say nothing was changed |
https://on.auto/problems/effect_unknown | 409 | A run called a tool not marked reads, and could not finish. Whether the tool changed something is not known. Its reason is conflict; a person, or a workflow rule that names it, decides what happens next |
https://on.auto/problems/credits_exhausted | 409 | The org's account has no credits left for the run; on a self-hosted runtime, one whose org has no credits or owes its cap, since a self-hosted runtime has no free runs, or one whose offline credits are spent; its reason is conflict. Nothing of the run is recorded, and it can be run again once the account has credits |
https://on.auto/problems/license_required | 409 | The runtime holds no key; its reason is conflict. A runtime does not start without a key, so a runtime you start does not meet it. Nothing of the run is recorded |
https://on.auto/problems/license_invalid | 409 | The runtime starts no run since it holds a key it can't run on: its key rotated or removed, its org closed, out of touch past its license's limit_at or not yet activated; or its offline credits stopped; or a key given to activate is invalid; its reason is conflict. Nothing of the run is recorded |
https://on.auto/problems/account_closed | 409 | On hosted Auto, the account of the run's org is closed: its runs are refused, because: "org_deleted", until Auto's support restores the org, which a person asks for at the resolve_at page until the date its detail gives. After that date the org is purged and its runs never run again, because: "org_purged". Its reason is conflict, and nothing of the run is recorded. A self-hosted runtime answers it only to activate_license given the key of a closed org; the runtime of a closed org refuses every new run as license_invalid instead |
https://on.auto/problems/cancelled | 409 | The run was cancelled, with the kind of its cancellation; its reason is cancelled |
https://on.auto/problems/unanswered | 410 | Nobody answered the request a run waited on, of an interaction function, with the kind expired or undelivered |
https://on.auto/problems/content_too_large | 413 | The body is larger than the operation accepts: 1,114,112 bytes of JSON |
https://on.auto/problems/unsupported_media_type | 415 | The body is not sent as the media type the operation accepts, application/json in UTF-8 unless the route says otherwise, or is sent compressed |
https://on.auto/problems/range_not_satisfiable | 416 | The Range of a content at a signed address starts at or past its end |
https://on.auto/problems/invalid_input | 422 | The input does not fit, with the errors that point at it |
https://on.auto/problems/cursor_not_held | 422 | The since of list_org_changes or list_playbook_changes is not a cursor the ledger holds; its reason is invalid_input; ask again without since |
https://on.auto/problems/too_many_requests | 429 | More webhooks signed for one connection came to answer addresses in a minute than the runtime takes; the runtime did nothing with this one, and Retry-After gives the seconds to wait before sending it again |
https://on.auto/problems/client_closed_request | 499 | The client disconnected before the response |
https://on.auto/problems/internal | 500 | Something went wrong inside the server |
https://on.auto/problems/unavailable | 503 | Something the server relies on cannot serve now |
https://on.auto/problems/busy | 503 | The runtime is busy, and nothing was done: whether the call is allowed was not decided within a second, or no checker was ready for a save; its reason is unavailable, and retry_after and Retry-After give the seconds to wait before trying the same request again |
https://on.auto/problems/tools_unfinished | 503 | A run called only tools marked reads, and could not finish; its reason is unavailable, and running it again under a new id is safe |
A forbidden problem carries the kind permission_denied where the caller's role in the org does not let them make the call, whatever their credential allows, so a change to the connection or the key would not help: its detail says so, and that an admin of the organization can change the role. A refusal whose cause is the credential, such as a key or a connection approved to read only, carries no kind. Every call of a member an admin has suspended, and of their agents, is refused with the kind suspended, whatever their role and credential allow, until an admin unsuspends them; the workflow runs they started keep running. Where whether a call is allowed cannot be decided, the answer is 503 unavailable, and nothing is done. Where it is not decided within a second, the answer is 503 with the kind busy. A busy answer says nothing about whether the caller may make the call: the same call may be allowed when it is tried again.
The refusals of the meter
A run the runtime's meter refuses carries, beside its detail, where a person resolves it and, on a self-hosted runtime, which runtime it is, as the table says, so a client can offer the way out rather than print the sentence. A problem a client does not know these members on still reads whole by its detail.
| Kind | resolve_at | runtime_id | because |
|---|---|---|---|
license_required | https://studio.on.auto/licenses?installation={runtime_id}, where an admin of the organization gets the key | Where it has one | None |
license_invalid | The same page of Studio, or https://studio.on.auto/licenses before the runtime has an id | Once the runtime has an id | key_rotated or installation_revoked, where its key was rotated or the runtime removed; none otherwise |
credits_exhausted | Billing of the org in Studio on a license, the runtime's page offline, or where Auto's account says in Cloud | On a self-hosted runtime | On a license, none; offline, none_left; in Cloud, the case the account names |
account_closed | Studio's Support page, where a person asks Auto's support to restore the org; detail gives the date until which it can be | Never | org_deleted while the org can still be restored, for a limited time, or org_purged, after which its runs never run again |
A credits_exhausted refusal of a run from a self-hosted runtime that holds a license carries limited_because, credits or cap, why it can't start runs, as GET /v1/orgs/{org}/license says it. A license_invalid refusal of a run, from a runtime that holds a key it can't run on, carries limited_because too: out_of_touch, key_rotated, key_revoked, org_closed or not_activated. Hosted Auto's refusals carry no limited_because. A refusal an earlier self-hosted release recorded at its free rate, with because free_daily_limit or free_month_used, also carries lifts_at, when that limit lifted.
The origin of Studio is the one STUDIO_ORIGIN names. Refusals gives the words of each.
When a tool-calling run cannot finish explains when a run ends as tools_unfinished or effect_unknown. Retrying under a run id says when a request returns tools_called.
Inside a workflow, three rejections of a run the workflow called differ from their HTTP form:
invalid_inputis status 422 over HTTP, but a workflow raises it as avalidationerror of status 400. Acatchfor it matches status 400 or thevalidationtype, never 422.- A cancellation of a called run that the workflow does not catch rejects the workflow as
invalid_input, not ascancelled, since the workflow itself was not cancelled. credits_exhausted,license_required,license_invalidandmeter_unavailable, when the meter would not start the run, andcontent_unavailable, when something the playbook keeps in its stored content, such as the function's document, could not be read just now, reach the workflow only 24 hours on, or once the step's owntimeoutpasses: until then its step waits and asks again (When the runtime will not start the run for now).
When the function's run does not succeed has the full table of what a workflow catch sees.
A 500 response contains an incident reference: its instance and the x-request-id response header identify the server log entry. Include that reference when reporting a problem, without sharing credentials or confidential input. A malformed HTTP request can get a bare status before the API handles it.
When to retry
Retry-After comes only with a too_many_requests response or with an unavailable response that a retry of the same request may resolve. With the kind busy, it gives the same seconds as the problem's retry_after. The runtime counts its busy refusals in a row for all callers together, so the wait is 1 second after the first, doubles with each one after it up to 8, and goes back to 1 once the runtime answers in time. Wait at least that long before trying again; the runtime retries nothing itself. Other unavailable responses ask for 5 seconds. It never comes:
- with the kinds
tools_unfinished,tool_not_offered,tool_not_read_onlyormodel_not_offered; - with
becauseset tostalled, which no wait resolves; - with
cancelled.
Models and tools a function may not use
| Case | Response |
|---|---|
| A function names a model outside the deployment's allow list | unavailable with kind model_not_offered and because: "model_not_allowed", before the provider is called |
| A function names a model whose provider is missing, on a runtime that has other providers | unavailable with kind model_not_offered and because: "provider_not_configured" |
| A function names a model whose provider is missing, on a runtime that has no provider | unavailable without a kind, and so with Retry-After; its detail says No model provider is configured |
| A generation function names a model gateway the runtime is not given | unavailable with kind model_not_offered |
| A function names a tool the playbook's servers do not offer | unavailable with kind tool_not_offered |
introspect or validate names a tool the playbook is not offered | unavailable with kind tool_not_offered |
Use list_models to see the model references the server offers, and search to see the servers and tools a function may name.