Skip to content

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 GET and DELETE requests, 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:

PermissionLets the caller
org:readRead 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:writeCreate, 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:readRead definitions, runs, history, events, requests and analytics, search and read tools, make, read and resolve comments, and transcribe a recording
playbook:writeCreate, change, retire or run a function or workflow, cancel a run, send or publish an event, answer a request and call a tool
playbook:runRun 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 routeReturns
GET /v1/openapi.jsonThe OpenAPI 3.1.1 document of this API
GET /v1/guides/{guide}One guide, as text/markdown
GET /.well-known/api-catalogThe API catalog of this server, as application/linkset+json
GET /healthWhether the server is up
GET /debugA 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 operationId is the operation's name, with search_in_org for the org's search, make_comment_in_org, list_comments_in_org, resolve_comment_in_org and reopen_comment_in_org for the org's own comments, list_models_in_org for the org's list_models, and list_generation_models_in_org for the org's list_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, start and finish; get_connection, test_connection, set_connection_playbooks, set_connection_account_type, set_connection_signing_secret, remove_connection_signing_secret and list_providers; get_run_history, get_playbook_analytics, render_page, render_playbook_page and validate; show_workflow_design, agree_workflow_design and get_workflow_design; show_event_to_send; make_comment and make_comment_in_org, and reopen_comment and reopen_comment_in_org; list_org_changes, list_playbook_changes, list_activity and mark_activity_seen; list_role_assignments, assign_role and unassign_role, and, where the runtime signs people in, invite_admin, resend_invitation, revoke_invitation, set_member_role, remove_member, get_enrolment and set_enrolment; transcribe and get_voice; get_content, the route of content at a signed address; and get_license, activate_allocation and report_allocation.
  • Its input is in the path, and in the query string of a GET. A command, or a query routed by POST such as validate, takes it in the JSON body.
  • Its schemas are JSON Schema 2020-12. Each has its own $id under https://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_URL when 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, HEAD included, carry Link: <…/.well-known/api-catalog>; rel="api-catalog". GET /health carries 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 ETag of its bytes and Cache-Control: public, max-age=300.
  • Each responds with 304 and no body when the request's If-None-Match names its tag, a list that includes it, or *.
  • HEAD returns their headers without the body.
  • /health is never cached: it responds with Cache-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 routeReturns
GET /v1/orgs/{org}/playbooks/{playbook}/content/{sha256}?sig={sig}The content's bytes, with the media type it was kept with
  • sha256 is the SHA-256 of the bytes, in lowercase hex.
  • until is 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 without until works for as long as the playbook keeps the content.
  • sig is the runtime's signature of the org, the playbook, the digest and until, 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 https origin or on localhost, 127.0.0.1 or [::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_asset answers 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-Length and Cache-Control: private, max-age={seconds}: the seconds the address has left, or a year for an address without until.
  • The route takes no key and makes no Origin check. HEAD returns the headers without the bytes, and any other method gets 405.
  • Every response of this route carries Cross-Origin-Resource-Policy: cross-origin, so a page on another origin can embed the bytes in an img, audio or video element. Every other route answers same-origin.
  • Every response of this route carries a Content-Security-Policy with sandbox, 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 an audio or video element can seek. A Range of one range, bytes={first}-{last} or bytes={first}- to the end, counted from 0, returns 206 with that part, its Content-Range: bytes {first}-{last}/{size} and the part's size as Content-Length. A range that runs past the end stops at the last byte.
  • Any other Range, such as several ranges, a suffix such as bytes=-500, or a range whose last byte comes before its first, returns the whole content with 200.
  • A part is checked against its length only, since the digest is of the whole content. Read the whole content to check its digest.
CaseResponse
The time in until has passed403 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 missing403 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 keeps404 not_found, "The playbook holds no content under this digest"
The Range starts at or past the end of the content416 range_not_satisfiable, with Content-Range: bytes */{size}

Playbooks

These routes are relative to /v1/orgs/{org}:

OperationMethod and routePermissionInput
create_playbookPOST /playbooksorg:writeplaybook, name, optional description
list_playbooksGET /playbooksorg:read or playbook:readOptional include_retired
get_playbookGET /playbooks/{playbook}org:readPlaybook id in path
update_playbookPUT /playbooks/{playbook}org:writeAt least one of name, description and page
retire_playbookPOST /playbooks/{playbook}/retireorg:writePlaybook id in path
restore_playbookPOST /playbooks/{playbook}/restoreorg:writePlaybook id in path
render_playbook_pagePOST /playbooks/{playbook}/renderplaybook:readPlaybook id in path
FieldRule
playbookThe id: 3 to 48 lowercase letters, digits and hyphens, beginning with a letter
name1 to 100 characters, stored without the whitespace around it; it cannot be all whitespace
descriptionAt most 2,000 characters, stored without the whitespace around it
pageThe 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_playbooks lists the playbooks the caller may access. It leaves out retired ones unless include_retired asks for them. It also accepts a key with only playbook: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_playbook changes the fields it is given and keeps the others. A page is checked as Saving a page sets out, with its issues under /page, and recorded as playbook_page_saved. An update that changes nothing records nothing.
  • render_playbook_page renders the playbook's page now and answers { page: { runs, standing } }, both where the page has data (The preview).
  • A retired playbook keeps its id: no other playbook can take it. restore_playbook brings 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_playbook reads it, include_retired lists it, and its definitions, runs and history remain readable. Commands inside it return conflict with the kind retired. Retiring it again succeeds and changes nothing.
CaseResponse
create_playbook with an id the org has or hadconflict
update_playbook of a retired playbookconflict
get_playbook, update_playbook, retire_playbook or restore_playbook of an id the org does not havenot_found
render_playbook_page of a playbook without a pagenot_found
A change that meets another change to the org's playbooks at the same momentconflict; send it again

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:

ParameterWhat it names
playbookThe playbook, for a thing of a playbook
settingsThe 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
versionThe definition's version
stepThe step of a workflow, its reference without its leading /: step=do%2F1%2Freview
ledgerThe playbook's Ledger, empty, where Studio shows a run, its events and its request
runThe run chosen in the Ledger, for a run, an event of a run, a block of its result and a request
eventThe event of the run
blockThe place of a block of the run's result, from 1
commentThe 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

OperationMethod and routePermissionInput
list_modelsGET /v1/orgs/{org}/modelsorg:readOptional provider
list_modelsGET /v1/orgs/{org}/playbooks/{playbook}/modelsplaybook:readOptional provider
list_generation_modelsGET /v1/orgs/{org}/generation-modelsorg:readOptional kind
list_generation_modelsGET /v1/orgs/{org}/playbooks/{playbook}/generation-modelsplaybook:readOptional 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}:

OperationMethod and routePermissionInput
transcribePOST /voice/transcriptionsplaybook:readaudio, type and seconds
get_voiceGET /voiceplaybook:readNone

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/mp4 or audio/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:

FactWhenFields
voice_transcribedThe model answeredid, 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_refusedThe call reached the model and failed, or the model or its gateway refused itid, 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.

http
POST /v1/orgs/acme/voice/transcriptions
Authorization: Bearer <key>
Content-Type: application/json

{ "audio": "GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQRChYEC…", "type": "audio/webm", "seconds": 6 }
json
{ "text": "Flag any entry over ten thousand dollars for Priya before the week closes." }
CaseResponse
No voice model is setunavailable, "This runtime has no voice model"
A body over 1 MiB and 64 KiB413 content_too_large
An audio that is empty or not base64invalid_input at /audio
A type other than the four aboveinvalid_input at /type
A seconds left out, or not a whole number from 1 to 120invalid_input at /seconds
The model or its gateway refuses the call, fails or does not answer in timeAs 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_closedconflict 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_offeredunavailable of that kind; nothing is recorded
Any other 402unavailable, "<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}:

OperationMethod and routePermissionInput
create_definitionPOST /definitions/reasoningplaybook:writename, source, diagram, optional overview
list_definitionsGET /definitions/reasoningplaybook:readOptional include_retired
get_definitionGET /definitions/reasoning/{name}playbook:readName in path; optional render and sample_output
update_definitionPUT /definitions/reasoning/{name}playbook:writesource, diagram, optional overview
pause_definitionPOST /definitions/reasoning/{name}/pauseplaybook:writeOptional reason
resume_definitionPOST /definitions/reasoning/{name}/resumeplaybook:writeName in path
retire_definitionPOST /definitions/reasoning/{name}/retireplaybook:writeName in path
restore_definitionPOST /definitions/reasoning/{name}/restoreplaybook:writeName in path
prepare_runGET /definitions/reasoning/{name}/prepared-runplaybook:readOptional input, checked against the input schema
run_definitionPOST /definitions/reasoning/{name}/runplaybook:write or playbook:runOptional input, optional UUID run_id
render_pagePOST /definitions/reasoning/{name}/renderplaybook:readOptional sample_output or run_id
get_runGET /runs/{run_id}playbook:readRun 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 status is active, paused or retired.
  • A paused definition starts no runs: run_definition of it is refused with conflict of the kind paused, a workflow step that calls it ends the run rejected with invalid_input and 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 its updated_at, and it carries paused_at, paused_by, the caller who paused it by id and name, and the reason given, 1 to 1,024 characters, until it is resumed.
  • A resumed definition is active again 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 conflict of the kind retired. It carries retired_at until restore_definition brings it back, with its page and its history, at its version: it comes back paused, with paused_at and paused_by the caller who restored it, and runs again once resumed. Restoring is refused with conflict where 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_schema and output_schema where its document declares them. A reasoning function, a computation function or a workflow whose output.shape names an output shape has the shape's schema as its output_schema, and the shape's name as details.shape, such as "details": { "shape": "series" }. A prediction function has the series shape so, since its questions answer a series, and a generation function the asset shape. details is left out otherwise. list_definitions shows 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).

  • overview is Markdown its author gives beside source for 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.
  • diagram is how a function works as a picture, which Auto Studio draws under the overview. Every create_definition and update_definition of a function gives it, as one of two choices: Mermaid source of a flowchart or a state diagram, whose first line is flowchart, graph or stateDiagram, optionally with a direction such as TD, in at most 8,192 UTF-8 bytes; or the word none, when a picture would add nothing. Since Auto Studio draws it at full size in a column, a diagram reads best top to bottom, as flowchart TD or 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_by lists 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 its type, its name and its relation: calls for a workflow whose run_definition steps call it, with those steps, each its number, its place among the workflow's tasks in the order of its document, and its name; or reads for 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:

json
{
  "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:

CaseResponse
A function saved without diagraminvalid_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 bytesinvalid_input at /diagram, which names the two choices or the bound
A workflow saved with diagraminvalid_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.

CaseResponse
A save whose tool is marked acts or carries no mark, or names a server or tool not offeredinvalid_input under /source, at the line of call
A save while the tool server cannot be asked for its toolsunavailable, naming the server; nothing is saved
A run whose tool its server no longer marks readsunavailable with the kind tool_not_read_only; nothing sent
A run whose call was sent and could not finishunavailable 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 deliver is refused, and its issue names the connections whose tools can send a request and read its replies, and deliver: 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.

CaseResponse
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 renderconflict 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 valueinvalid_input
A server or a tool the playbook may not useunavailable with the kind tool_not_offered
The playbook has as many open requests as the runtime allowsunavailable 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}:

OperationMethod and routePermissionInput
list_interactionsGET /interactionsplaybook:readOptional to, type, function, limit, cursor and, where goals are kept, dismissed
answer_interactionPOST /runs/{run_id}/answerplaybook:write or playbook:runRun id in path; answer and an optional claimed_for
dismiss_goal_thingPUT /goals/{goal}/things/{id}/dismissedplaybook:writeGoal 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.

  • to keeps only the requests to one party.
  • type keeps only those from one type of function.
  • function keeps only those from functions of one name. A name is unique within its type, so function with type names 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=include lists them too, each such request with dismissed: the goal and id of the thing, when it was dismissed and the id of who dismissed it.

Each request has these fields:

FieldContents
run_idThe run that asked, which answer_interaction takes
typeThe type of the function that asked
functionThe name of the function that asked
versionThe version of the function that asked
toThe party the request goes to
deliveryThe server and tool the request is sent through, or null for a request held for an agent
messageThe message of the request
takes_answertrue for a question, false for a notification
answer_schemaThe JSON Schema an answer must match, as the request recorded it when it was asked; null for a notification
requested_atWhen the request was made, in ISO 8601 UTC
expires_atWhen the request expires unanswered, in ISO 8601 UTC
attemptsThe delivery attempts made so far
conversationThe conversation the playbook reads replies in, or null
answererThe party whose reply counts, or null
reply_refusalsHow many replies from the answerer the playbook refused
standingheld_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:

  • answer must match the request's answer schema, and may be at most 64 KiB as JSON.
  • claimed_for names 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:

FieldContents
run_idThe run that asked
answer_idThe id of the fact
answerThe answer
claimed_forWhom the caller says it is answering for, when given
answered_byThe caller who answered, by id and name; for a run answered by a reply, the playbook
replyFor a run answered by a reply, that reply's identity
answered_atWhen 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.
CaseResponse
An answer that does not matchinvalid_input with pointers under /answer; the request stays open
The same answer againThe 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 notificationconflict
A run the playbook does not havenot_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.

CaseResponse
A ready checker does not finish the check within 2 seconds of the server's wall-clock timeinvalid_input; nothing is saved
A save finds no checker readybusy (503); nothing is saved, and the same call may be tried again after Retry-After
The program cannot produce its output for the inputconflict 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_definition adds page, with runs and standing where the page has them, and get_run of a run of the definition adds page.result. list_definitions shows nothing of a page.
  • render_page, POST /definitions/{type}/{name}/render, renders the page now, with page.result and page.runs, over the definition's latest run or over an optional JSON body { "sample_output": … }. It needs playbook:read, and is refused with not_found for a definition without a page and conflict for a retired one.
  • Given { "run_id": … } in place of sample_output, render_page answers the page as it stood when that run ended: page.result, and page.runs and page.standing over 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.state is out_of_reach and page.runs is a line that says so.
  • A run the playbook does not have is refused with not_found, and a run of another definition with invalid_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 whose observed line holds the last periods of the dataset and whose predicted line holds the period asked, with its value, low and high; without horizon it holds every horizon the function names. The run's record holds the method the forecaster used, the coverage and the history it 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 conflict with the kind history_too_short, its detail naming the periods it has and the periods it needs.
  • get_definition adds the dataset's standing.

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:

OperationMethod and routePermissionInput
get_assetGET /assets/{id}playbook:readAsset id in path
FieldValue
idThe 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, bytesThe media type and the size of its bytes
sha256The SHA-256 of its bytes, in lowercase hex
modelThe model that made it, or null where no model made it, such as an image a tool answered
kept_atWhen the playbook kept it
expires_atWhen it expires, or null if it has no expiry or its expiry is already recorded
expired_atWhen its expiry was recorded, or null while it is kept
expiredtrue from the moment the asset expires, whether or not its expiry is recorded yet
content_removedtrue once its content was removed, which happens when it expires and nothing else of the playbook holds the same bytes
address, address_untilA 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
CaseResponse
An id that is no UUIDinvalid_input at /id
No asset of the playbook has the id, an asset of another playbook among themnot_found, "There is no such asset in this playbook"

Workflows

These routes are relative to /v1/orgs/{org}/playbooks/{playbook}:

OperationMethod and routePermissionInput
create_definitionPOST /definitions/workflowplaybook:writename, source, optional overview
list_definitionsGET /definitions/workflowplaybook:readOptional include_retired
get_definitionGET /definitions/workflow/{name}playbook:readName in path; optional render and sample_output
update_definitionPUT /definitions/workflow/{name}playbook:writesource, optional overview
pause_definitionPOST /definitions/workflow/{name}/pauseplaybook:writeOptional reason
resume_definitionPOST /definitions/workflow/{name}/resumeplaybook:writeName in path
retire_definitionPOST /definitions/workflow/{name}/retireplaybook:writeName in path
run_definitionPOST /definitions/workflow/{name}/runplaybook:write or playbook:runOptional input, optional UUID run_id
render_pagePOST /definitions/workflow/{name}/renderplaybook:readOptional sample_output or run_id
get_runGET /runs/{run_id}playbook:readRun id in path
cancel_runPOST /runs/{run_id}/cancelplaybook:write or playbook:runOptional reason
send_run_eventPOST /runs/{run_id}/eventsplaybook:write or playbook:runevent with type, and optional id, source, subject and data
list_queued_startsGET /definitions/workflow/{workflow}/queued-startsplaybook:readName 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_type application/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_schema and output_schema come from the document, the output_schema from its output.shape where it names one, with details.shape.
  • A workflow whose document has a schedule also has triggers, in get_definition and list_definitions. They are the triggers its schedule names, in the order it names them.
Trigger fieldContents
kindevent, cron or every
reference/schedule/on, /schedule/cron or /schedule/every
filtersFor an event trigger: its filters, each with its reference, type and attributes
expressionFor a cron trigger: its expression
time_zoneFor a cron trigger whose schedule names one: its time zone; without it, UTC
millisecondsFor 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 the name, the source, who agreed it, agreed_by, and from_a_fragment: true where the person said yes in a fragment of Auto in the chat. Each yes is a fact of its own.
  • list_playbook_events shows it, as workflow_design_agreed, with the name, agreed_by and the size of the document, source_bytes, so the playbook's Ledger shows who agreed which design and when. Its type does not offer it as a filter.
  • It answers the design and the yes: name, source, agreed with at and by, the person's id and name, and from_a_fragment where 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_definition returns 200 as soon as the run begins, with its run_id and status: started. A run that ended before its first wait returns how it ended.
  • Read the run with get_run until its status is succeeded, rejected or failed.
  • Read its steps with get_run_history, which contains one workflow_input_applied event for each input the run took (see Run history and playbook events).
  • While the runtime is stopping, run_definition returns unavailable; 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:

FieldContents
run_idThe id the run has once it starts
eventThe event it starts for: its id, type, source, subject and time, without its data
dueThe earliest time it can start, in ISO 8601 UTC
attemptsHow 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 eventLimit
The whole event256 KiB as JSON
type, id256 characters each
sourceA URI reference such as /ledger/eu, as for a published event; 1,024 characters
subject1,024 characters
dataNests 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.

CaseResponse
A type or source the runtime reserves for its own facts, as listed under Publishing eventsinvalid_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 spaceinvalid_input
The playbook has no running workflow with that run id, including one that has endednot_found
The run cannot take the event at that moment, such as while the runtime is stoppingunavailable; 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.

  1. The request is recorded on the run at once, whichever server takes it. cancel_run returns 200 with the run as it stands: still started, or already rejected for a reasoning run the server that took the request was running.
  2. Within a moment the run stops its tasks and cancels each run it waits for.
  3. It ends rejected with the reason cancelled and the kind requested. Read it with get_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.

CaseResponse
The playbook has no run with that idnot_found
The run has endedconflict
The run ends within the request that started itconflict

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:

KindThe run was cancelled because
requestedsomeone allowed to change the playbook asked, with cancel_run
deadlinethe workflow that waited for it ran out of time
overrunit ran as long as a workflow may run
parent_endedthe 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 /, as within names 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, failed or unreachable, as the call answered, or timed_out, when the step's timeout or its call's deadline passed first.
  • reason, kind and because: with rejected, 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 names paused.

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 record is 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.

WhatLimit
Input1 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 together1 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:

TypeLargest output
ReasoningWhat 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 callPast 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
ComputationAn 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
Workflow1,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 idA request with the same id and input
SucceededReturns the recorded output; nothing runs again
Was rejected as invalid_inputReturns the same rejection
Was cancelledReturns its cancellation, cancelled (409)
Went unansweredReturns unanswered (410), as A request nobody answers says
Still waits: a workflow run or an interaction function's requestReturns 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 interruptionRuns 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 conflict with the kind tools_called. When every tool it called is marked reads, the rejection adds because: "only_read", and its words say nothing was changed.
  • A run of a lookup function, or of an interaction function with call, that is still started returns tools_called too, 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_offered or tool_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_run cancels, 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 interrupted and 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 marked reads. 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 reads is 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 marked reads. Each ends as interrupted, and the run ends as conflict, kind effect_unknown, with because: "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 as interrupted, so every call it started has an end, and the run ends as unavailable with because: "restarted_without_content", or, once it called a tool, as tools_unfinished or effect_unknown with that because; 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.

OperationMethod and routePermissionInput
publish_eventPOST /v1/orgs/{org}/playbooks/{playbook}/eventsplaybook:write or playbook:runevent

The body contains event, a CloudEvents 1.0 event:

AttributeRequiredContentsLimit
sourceYesWhere the event comes from, a URI reference such as /ledger/eu or https://acme.example/ledger1,024 characters
typeYesWhat happened, such as com.acme.ledger.month-closed256 characters
idNoUnique among the events of its source; the runtime makes one when you leave it out256 characters
timeNoWhen 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
subjectNoWhat the event is about within its source1,024 characters
specversionNo1.0
datacontenttype, dataschemaNoThe media type of data, such as application/json, and the absolute URI of a schema it follows256 characters for datacontenttype, 1,024 for dataschema
dataNoAny JSON valueNests at most 510 levels
  • The event, with its id and time filled in, may be at most 240 KiB as JSON.
  • data nests at most 510 levels deep, so that a run can keep the event in a list. A deeper one returns invalid_input at /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 inside data are not checked for them;
  • id, type and subject need a character that is not a space;
  • datacontenttype is a media type;
  • a time has a second of 60 only at the end of a day in UTC.
http
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:

json
{ "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, time and recorded_at.
  • A retry that leaves out time is the same event.
  • A retry that gives a time to 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:00 is the same time as 2026-10-01T08:59:00Z.
  • A leap second counts as the first second of the next day, so 2016-12-31T23:59:60Z is the same time as 2017-01-01T00:00:00Z.
  • A different event with the same source and id returns conflict.
  • 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:

ReservedNamesRefused at
TypesEvery type the playbook's events show and every fact the playbook's capabilities declare, listed below/event/type
SourcesThose beginning /runs/, /definitions/, /callers/ or /connections//event/source
Attributescausationid, 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}:

OperationMethod and routePermissionInput
list_runsGET /runsplaybook:readOptional type, name, status, steps, limit and cursor
get_run_historyGET /runs/{run_id}/historyplaybook:readRun id in path; optional order, limit and cursor
list_playbook_eventsGET /eventsplaybook:readOptional type, since, run_id, order, limit and cursor
get_eventGET /events/{event_id}playbook:readEvent 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_run returns, without output, record and the detail and issues of a rejection.
  • A rejection shows its reason, with kind and because when the function gave them, and the cause of a workflow run a step ended.
  • status keeps only the runs whose status is started, succeeded, rejected or failed.
  • type and name keep only the runs of one definition.
  • steps: false leaves out the runs that a workflow's step started. Left out, steps is true, and those runs are listed among the others, each with its within.

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, with read_only: true when the tool's mark is reads, and connection_id beside server when the server is a connection a person added;
  • then tool_call_answered when the tool answered, with is_error when its result is an error of its own;
  • or tool_call_failed when it never answered, with because: arguments_refused, server_failure, timed_out, cancelled, too_large when the tool's result was larger than one call may return, or interrupted for 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.

EventShows
interaction_requestedThe delivery, the party, the size of the message and the expiry
delivery_startedThe tool, the connection's connection_id where its server is one, and the size and digest of its arguments
delivery_succeededWhere the request landed and where its replies are read
delivery_failedbecause, including too_large for a result larger than one call may return, and retry_after_ms when the server asked for a delay
delivery_refusedbecause, too_large or unworkable
request_answeredThe answer the run took, claimed_for and, for a reply, its identity
reply_refusedEach refused reply's identity, never its words
answer_setThe 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:

  1. model_call_started, recorded before the call is sent. It has the call's number, counted from 1 across the run, the model asked for, tools_offered, and messages_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.
  2. Then one of:
    • model_call_answered, when the model answered: finish_reason and raw_finish_reason, usage, cost_usd where the gateway answered a cost, response_id, duration_ms, request_bytes, the size of the request the call sent, response_bytes, the model as resolved_model and answered_model, the provider's warnings, tool_calls, one for each tool call the model asked for, with its call_id, the tool and server it names, and the digest of its arguments, output_mode: described where the call told the model the schema of a JSON answer in its instructions, as through a gateway without structured outputs, or portable where it sent the provider the portable form of the schema and read the answer back, and repair where a JSON answer that missed its schema was asked for once more: outcome: repaired, the first answer's issues, and the second request's usage, cost_usd and duration_ms. The call's own usage, cost_usd, duration_ms and request_bytes are then those of both requests. It records schema_refusal where 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's status and duration_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_long or timed_out), the provider, the failure message as detail, duration_ms, and, where they apply, the usage and cost_usd of an answer the run could not use, finish_reason, retry_after_ms, the provider's own words, the issues it named, output_mode, described where the answer it could not use was asked for in the instructions or portable where it was asked for in the portable form, and repair where that answer missed its schema: outcome: invalid with the first answer's issues and the second request's usage, cost_usd and duration_ms when it was asked for once more and missed it again, outcome: failed with because, how the second request failed, such as provider_unavailable, the first answer's issues and duration_ms when that request failed, or outcome: skipped with because, input_tokens, context_window or time, when the run had too little room left to ask; and schema_refusal where the provider refused the request that gave it the schema: outcome: described when the answer asked for with the schema in the instructions failed, refused_again when the provider refused that request too, so the schema was not the cause, or skipped with because: time when too little time was left to ask, each with the refused request's status and duration_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_failed or step_skipped;
  • step_started for a step that runs others, such as a do or a fork, 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_read or reading_failed;
  • its tellings, telling_started and then telling_succeeded or telling_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_made and event_subscription_removed, each with the connection and the place as topic, and event_subscription_failed, with the same, the failure's kind and its closer cause as because. A kind is connection_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; or not_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's goal, its id, its per where it has one, who dismissed it as by and the run ids of the open requests it set aside as requests, and thing.restored, with the same goal, id, per and by, whose by is the playbook itself, playbook: and its name, where a request asked about the thing after its dismissal restored it. The goal and id are what dismiss_goal_thing takes to restore the thing.
FilterKeeps
typeOne event type
sinceWhat the playbook recorded from that time on, in either order
run_idWhat 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_sha256 or result_sha256, is the key it is kept under. It is present only when the text was kept.
  • The history shows arguments and answer when each is at most 2 KiB, and otherwise their sizes. get_event reads 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:

FieldContents
idThe 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
typeWhat happened, such as run_started, delivery_failed or step_finished
summaryA sentence in plain language
dataThe fact itself, at most 4 KiB as JSON
metadataWhere 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:

FieldContents
streamThe stream the event is recorded in, such as playbook/acme/finance/runs/<run id>
positionThe event's number in its stream, from 1
global_positionThe store's sequence across every playbook, with gaps; it is not the order a page reads events in
correlation_idThe id of the run at the top of the chain the event belongs to, or null
causation_idThe id of the event that directly led to this one, or null when nothing recorded did, such as for a run you started
atWhen it happened, by its own clock, in ISO 8601 UTC
byWho 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_idThe run the event belongs to, when it belongs to one
definitionThe type, name and, when the event names one, version of the definition the run carries out or the event is about
called_byOn 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_depthOn a run a call started: how many calls are above it
depthOn a run a trigger or another run started, and on an event a workflow emitted: how many reactions are above it
triggerOn a run a trigger started: its kind, event, cron or every, and its reference in the document
acts_forOn 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_idThe 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 as output_bytes. A call's result is never shown by get_run_history or list_playbook_events, only its size, result_bytes; get_event reads 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 cause of 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_applied shows 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 a because, 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 name and its reference in the document. It also shows run, which counts each time the step starts, and times, which counts how often it moved that way in that run.
  • step_waiting adds what it waits for, call, timer, event or admission. For a call it adds the run_id of the run it started, whose run_started names the input that started the call as its cause. For admission, a call the meter would not start for now (When the runtime will not start the run for now), it adds the refusal's detail, its kind, its because, its resolve_at, its lifts_at and its limited_because where it gave them, retry_at, when the step tries again, and until, 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_failed adds how it failed, and its error's type and title.
  • event_published shows the published event's event_id, event_type, source, subject, time and data, and which attributes the runtime filled in.
  • reaction_refused shows how many times in the minute a trigger did not start its workflow, as count, and the last reason. Where the last refusal had them, it adds the trigger that refused, with its kind and reference, and the kind and because of the start's rejection, the same codes a run's rejection has, such as credits_exhausted and free_daily_limit.

Some events say more in their metadata:

  • For an event a workflow emitted, metadata names the run in run_id, the workflow and its version in definition, and its depth in a chain of triggers in depth.
  • A reaction_refused event's metadata names the workflow and the version whose trigger refused, in definition.
  • A run that a trigger started shows playbook: and the playbook's id as by. Every event of it shows the trigger that started it in its metadata, with its kind and reference, and, where it acts for a person, acts_for. Its run_started says in words which kind it was, such as "was started by its every schedule".

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 switch that chose it;
    • the fork it 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_version when 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 _0 and _02 are refused with invalid_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.

  • limit is 1 to 100, and 20 when left out.
  • limit counts the events a page returns, step events included. A page can end between the step events of one input; its next_cursor continues from the next one.
  • Cursors are opaque. A cursor this playbook did not give returns invalid_input at /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, name or steps: 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):

OperationMethod and routePermissionInput
make_commentPOST /commentsplaybook:readaddress, text and an optional anchor
list_commentsGET /commentsplaybook:readOptional address, under, open, limit and cursor
resolve_commentPOST /comments/{id}/resolveplaybook:readComment id in path; how
reopen_commentPOST /comments/{id}/reopenplaybook:readComment 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_comment and reopen_comment are served over HTTP alone, so an agent does not comment on its own work, and a person, not an agent, reopens a comment. list_comments and resolve_comment are 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_comment and reopen_comment there are refused with conflict with the kind retired, 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:

FieldContents
idThe comment's id, a UUIDv7 the runtime gives it
addressThe address of what it is about
textWhat the person said, in Markdown
anchorWhere 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
byThe id of the caller who made it. An agent connected as a person comments as that person
by_nameThe name of the caller who made it, as the runtime names them, as created_by of a definition gives it
atWhen it was made, in ISO 8601 UTC
opentrue until it is resolved, and again once it is reopened
resolved_atWhen it was resolved, in ISO 8601 UTC; null while it is open, a reopened one included
resolved_byThe id of the caller who resolved it; null while it is open, a reopened one included
resolved_howacted, done as it asked, or dismissed, closed without acting; null while it is open, a reopened one included
reopened_atWhen it was last reopened, in ISO 8601 UTC; null until it is first reopened, and kept when it is resolved again
reopened_byThe id of the caller who last reopened it; null until it is first reopened, and kept when it is resolved again
studioThe 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, x from its left edge to its right and y from 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 an anchor of null is 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).

http
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 }
}
json
{
  "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.

ParameterRule
addressAn 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
undertrue 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>
opentrue keeps the open comments, false the resolved ones; true when left out
limit1 to 200, and 50 when left out
cursorThe next_cursor of the page before
  • under on any address keeps the comments on it and on its parts, <address>/parts/<part>.
  • under on 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.
  • under on a definition at a version also keeps the comments on each of its steps.
  • under on a definition without its version keeps the comments on every version of it, their parts and their steps.
  • under on the playbook, playbooks/<playbook>, keeps the comments on the playbook itself and its parts, and none on what it holds. under on org keeps those on the organization itself and its parts, and none on its connections, members or pages of Settings.
  • under on 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_cursor as cursor to read the next page, until next_cursor is null. 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=false lists the resolved comments, each with open: false, so a resolved comment stays readable here, as its link reads it. The activity lists only open ones.
http
GET /v1/orgs/acme/playbooks/finance/comments?address=finance%2Fruns%2F019a4012-7c3e-7d10-9b2a-4e6f8a1c2d3e&under=true
Authorization: Bearer <key>
json
{
  "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 how it 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.
http
POST /v1/orgs/acme/playbooks/finance/comments/019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f/resolve
Authorization: Bearer <key>
Content-Type: application/json

{ "how": "acted" }
json
{
  "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.

CaseResponse
make_comment, resolve_comment or reopen_comment in a retired playbookconflict 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 charactersinvalid_input at /address
An address of a definition or a step whose type and name no definition of the playbook holdsnot_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 noncharacterinvalid_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 fieldinvalid_input at /anchor; at /anchor/x, /anchor/y or the key's own pointer, such as /anchor/z
under without addressinvalid_input at /under
A limit outside 1 to 200invalid_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'sinvalid_input at /cursor
A how that is not acted or dismissedinvalid_input at /how
An id that is not a UUIDinvalid_input at /id
A UUID no comment of the playbook hasnot_found
A resolve_comment or reopen_comment that meets another of either of the same comment at the same momentconflict; 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_comments lists it among the open ones, and resolve_comment resolves 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_changes names it as a comment change, and list_org_changes one of the organization's own.
  • Its text, anchor, by and at stay 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.

http
POST /v1/orgs/acme/playbooks/finance/comments/019a4120-5b6c-7d8e-9f01-2a3b4c5d6e7f/reopen
Authorization: Bearer <key>
json
{
  "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}:

OperationMethod and routePermissionInput
make_commentPOST /commentsorg:readaddress, text and an optional anchor
list_commentsGET /commentsorg:readOptional address, under, open, limit and cursor
resolve_commentPOST /comments/{id}/resolveorg:readComment id in path; how
reopen_commentPOST /comments/{id}/reopenorg:readComment id in path

They take, answer and refuse as a playbook's do, with these differences:

  • make_comment takes only an address of the organization's things: org, org/connections/<connection>, org/members/<member> or org/settings/<page>, each with or without /parts/<part>. It records comment_made on the comment's own stream, org/<org>/comments/<id>, resolve_comment records comment_resolved there and reopen_comment records comment_reopened.
  • list_comments without address lists 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 needs org:read, so a member with access to only some playbooks can't use them.
  • resolve_comment or reopen_comment of an id the organization's own comments do not hold, a playbook's comment among them, is not_found.
  • On /mcp, list_comments and resolve_comment without playbook are these operations (MCP reference).
http
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 }
}
json
{
  "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.

OperationMethod and routePermissionInput
list_org_changesGET /v1/orgs/{org}/changesorg:read or playbook:readOptional since and wait
list_playbook_changesGET /v1/orgs/{org}/playbooks/{playbook}/changesplaybook:readOptional since and wait

Each returns cursor, changes and more:

json
{
  "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_changes names a playbook only to a caller that may access it, as list_playbooks lists it, a connection only to a caller with org:read, and a comment of the organization's own to every caller, as its list_comments reads it. What the caller may not read ends no held request. A response that lists nothing and says no more gives 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 until wait seconds 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.
  • wait is 0 to 25 seconds, 25 when left out. A larger or negative wait returns invalid_input at /wait.
  • cursor is opaque: the ledger's point after the last change listed. Give it back as since. A cursor the ledger does not hold, such as one of another database or of another playbook, returns invalid_input of the type https://on.auto/problems/cursor_not_held; ask again without since.
  • changes lists at most 200 resources, in the order the ledger recorded what changed them, each once; one record may name several. When more is true, more changed already: ask again at once with the new cursor.
  • Each change names a resource and its identity, nothing else. Read the resource through its own route.
RoutekindIdentityWhat names it
list_org_changesplaybookplaybookA playbook created, updated or retired
list_org_changesconnectionconnectionA connection added, connected, broken or removed, asked for more, given the organization's own OAuth client, or its playbooks set
list_org_changescommentcomment_idA comment of the organization's own made, resolved or reopened
list_playbook_changesplaybookNone, 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_changesdefinitiontype, nameA function or workflow saved, paused, resumed or retired
list_playbook_changesrunrun_idA run started, given an input or an event, or ended
list_playbook_changesinteractionrun_idEverything the run of an interaction function records: its request opened, answered, expired, undelivered or cancelled, beside the run
list_playbook_changeseventevent_idAn 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_changescommentcomment_idA 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}:

OperationMethod and routePermissionInput
list_activityGET /activityorg:read or playbook:readOptional kind, playbook, mine, since, limit, cursor and, where goals are kept, dismissed
mark_activity_seenPOST /activity/seenorg:read or playbook:readitems, 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:

kindThe itemIts atListed
needs_youA request of an interaction function that takes an answer, a request a workflow's call made includedWhen the request was madeUntil it is answered, expires or ends with its run
brokenA 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 aloneWhen its latest failing run endedUntil a run at that version or a later one succeeds, a new version of the definition is saved, or the definition is retired
newA 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 itemWhen the run ended, or the version or the change was savedAlways
commentA comment on something of a playbook, or of the organization's ownWhen it was made, or, once reopened, when it was last reopenedUntil it is resolved, and again from when it is reopened
decisionA request that someone answered: who answered it, and the run that asked, the workflow's run where a workflow's step askedWhen it was answeredAlways

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:

kindThe itemIts atListed
goalThe 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 summaryWhen the verdict was recordedAlways
goal_overdueAn assessment of a goal that came due with no verdict, where the goal's notify asks to be told of itWhen it became overdueUntil it is judged or ends
goal_changedA 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 goalWhen the verdict was recordedAlways

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:

FieldContents
kindneeds_you, broken, new, comment or decision
addressThe item's address, which mark_activity_seen takes
cursorThe row's place in the activity, which since, cursor and through take
playbookThe id of the playbook the item belongs to; null for a comment of the organization's own
atWhen the item came about, by its kind, in ISO 8601 UTC
byThe 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_nameFor comment, the name of who made it, and for decision, of who answered, as the runtime names them; otherwise null
changeFor a version or a playbook, created or updated; otherwise null
triggerFor a run a trigger started, its kind, event, cron or every, and its reference in the document; otherwise null
definitionThe 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_idThe 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_shapeFor 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
toldFor 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_goalFor 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
messageFor 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_schemaFor 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
detailFor 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
statusFor broken, how the latest failing run ended: failed, a run that failed inside the runtime, or rejected; otherwise null
waits_onFor 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_atFor needs_you, when the request expires unanswered, in ISO 8601 UTC; otherwise null
aboutFor 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
seenFor 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
decidedFor 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
headlineFor 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
rejectionFor 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:

FieldContents
previousThe verdict of the goal's window before, passed or failed, which outcome differs from
previous_wordThe goal's own words for that verdict, as its goals say them now; null where they say none
labelThe success.label of the goal, what it measures, as its goals say it now; null where they say none
statementThe goal's statement, as its goals say it now; null where they say none
valueThe 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:

Itemaddress
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 updatedplaybooks/<playbook>/<at>, at in milliseconds since 1970-01-01T00:00:00Z
A comment<playbook>/comments/<id>
A comment of the organizationorg/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:

kindThe answer schemadecided
choiceA 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_noA boolean as the whole answer, or an object whose only required property is one{ kind, field, value }
textA 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

ParameterRule
kindOne kind, or several separated by commas, such as needs_you,broken: keep the rows of those kinds; comment keeps the open comments
playbookA playbook id: keep the rows of one playbook, which leaves out the organization's own comments
minetrue 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
sinceA cursor: keep the rows newer than the row it names
limit1 to 200, and 50 when left out
cursorThe next_cursor of the page before
  • Pass next_cursor as cursor to read the next page, until next_cursor is null.
  • 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 answers forbidden. A caller who may access every playbook of the org reads them all without it.
  • A retired playbook has no rows: playbook naming one answers no rows.
  • counts and through are the same whatever the filters and the page.
  • Where goals are kept, the needs_you row of a request that a dismissal of a thing of a goal set aside is left out while the thing stays dismissed, as list_interactions leaves the request out, and counts.needs_you does not count it. dismissed=include lists those rows too, each with dismissed: the goal and id of the thing, when it was dismissed and the id of who dismissed it; counts leaves 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_changes does not name the activity.
http
GET /v1/orgs/acme/activity?limit=3
Authorization: Bearer <key>
json
{
  "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:

CountThe rows it counts
needs_youThe requests that wait on the caller
brokenThe broken rows
newThe new rows the caller has not seen
commentsThe 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, the new and comment rows the caller has seen, each its address and its at as the row gives them, at most 200;
  • through, a cursor from 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 new or comment row for, such as a request, an item whose at is 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 through older than the caller's own is accepted and leaves theirs unchanged, and the answer gives the one kept: through never moves back.
  • Each request is recorded, even one that repeats an earlier one.
  • The runtime keeps, for each caller, their through and their marks of the 1,000 items newest in the activity after it. An item at or before through is seen by through alone.
http
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"
    }
  ]
}
json
{
  "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).

CaseResponse
A kind that is not needs_you, broken, new or commentinvalid_input at /kind
A limit outside 1 to 200invalid_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 orginvalid_input at the field
A playbook the org does not havenot_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 playbookforbidden; 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 throughinvalid_input at /items
More than 200 itemsinvalid_input at /items
An item whose address is not of a form above or whose at is not a timeinvalid_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.

OperationMethod and routePermissionInput
list_role_assignmentsGET /role-assignmentsorg:readOptional limit and cursor
assign_rolePUT /role-assignments/{person}/{role}org:writeThe person's id and the role, in path
unassign_roleDELETE /role-assignments/{person}/{role}org:writeThe person's id and the role, in path
get_callerGET /callerorg:read or playbook:readNone

A role assignment holds ids alone:

FieldWhat it holds
principalWho holds the role: type, person, and id, the person's id in Auto
roletype, built_in, a role every release ships, and id, admin, editor, operator or viewer
scopeWhere 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
sourceHow 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_atWhen it was given, in ISO 8601
assigned_byThe 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_role gives 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_role gives a role only to a person of the org.
CaseResponse
A role that is not admin, editor, operator or viewer, or a person that is empty or longer than 256 bytesinvalid_input
A cursor that is no next_cursor of list_role_assignmentsinvalid_input at /cursor
A caller who is not a person signed in to Studio, such as a key or an agentforbidden
A person whose role does not let them give roles, or a role beyond their ownforbidden
An assign_role for someone who is not a person of the orgnot_found
A change that would leave the org without an adminconflict of kind unworkable
http
PUT /v1/orgs/acme/role-assignments/user_7kLm2/viewer
Authorization: Bearer <token>
json
{
  "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.

OperationMethod and routePermissionInput
list_membersGET /membersorg:readNone
invite_memberPOST /members/invitationsorg:writeemail_address, an optional role, editor, operator or viewer, and optional playbooks
invite_adminPOST /members/admin-invitationsorg:writeemail_address
resend_invitationPOST /members/invitations/{invitation}/resendorg:writeThe invitation's id, in path
revoke_invitationDELETE /members/invitations/{invitation}org:writeThe invitation's id, in path
set_member_rolePUT /members/{member}/roleorg:writeThe member's id, in path, and role, in the body
set_member_playbooksPUT /members/{member}/playbooksorg:writeThe member's id, in path, and playbooks, in the body
suspend_memberPOST /members/{member}/suspendorg:writeThe member's id, in path
unsuspend_memberPOST /members/{member}/unsuspendorg:writeThe member's id, in path
remove_memberDELETE /members/{member}org:writeThe member's id, in path
get_enrolmentGET /enrolmentorg:readNone
set_enrolmentPUT /enrolmentorg:writeenrolment, invitation or join_without_invitation, and an optional default_role, editor, operator or viewer

A member holds:

FieldWhat it holds
idThe person's id in Auto
nameTheir name, as their last sign-in gave it, or null
identifierTheir email address, as their last sign-in gave it, or null
roleadmin, editor, operator or viewer; for a member with access to only some playbooks, the role they hold at them
joined_atWhen they first signed in, or, for someone given a role before they ever signed in, when it was given
playbooksall, 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
statusactive, or suspended while an admin has suspended them. In the same answers as playbooks

An invitation holds:

FieldWhat it holds
idThe invitation's id
email_addressThe address it was made for, as it was typed
roleadmin, editor, operator or viewer, the role of whoever accepts it
statuspending, or revoked in the answer of revoke_invitation
invited_atWhen it was made
expires_atWhen it ends, 30 days after it was made
linkOnly in the answer of the call that made it: the address that accepts it, {PUBLIC_URL}/invitations/ and a secret
playbooksOnly 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_members answers members, the earliest to join first, at most 500, and members_total, how many there are, and invitations, those pending, the earliest made first, at most 500, and invitations_total. Every member with access to all playbooks lists them; it needs org:read, so a member with access to only some playbooks can't. An agent is offered list_members as a tool.
  • invite_member invites a person as an editor, or as the role asked, and an agent is offered it as a tool. Without playbooks, whoever accepts the invitation can access every playbook of the org, including new ones. With playbooks, 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_admin invites a person as an admin, who always has access to all playbooks.
  • resend_invitation replaces 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_invitation ends an invitation pending, so its link accepts nothing, and answers it as revoked.
  • set_member_role gives a member the role role, 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 is admin, which has access to all playbooks.
  • set_member_playbooks sets which playbooks a member can access, all or 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_members shows them as a viewer with no playbooks, and they are a viewer wherever they are given access next.
  • suspend_member suspends a member. They keep their role and playbooks, but every call of theirs and of their agents is refused with the kind suspended until an admin unsuspends them, and their sign-ins end. The workflow runs they started keep running. It answers them with status suspended, and a member suspended already is answered as they are. An admin can't suspend themselves or the org's last active admin.
  • unsuspend_member gives a suspended member back the role and playbooks they had, and answers them with status active.
  • remove_member ends 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_role and remove_member also 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_enrolment answers enrolment, how people join the org, and default_role, the role a person gets when they join without an invitation. With join_without_invitation, a person who signs in and holds no role joins with the default role. With invitation, 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, enrolment is join_without_invitation and default_role is viewer.
  • set_enrolment sets enrolment and, 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 is editor, operator or viewer, never admin.
CaseResponse
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_memberinvalid_input
An email_address that is a member's address or that of an invitation pending, in any letter caseconflict of kind taken
An invite_member from a caller who is not a person, such as a keyforbidden
Any other change from a caller who is not a person signed in to Studio, such as a key or an agentforbidden
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 joinforbidden
A default_role other than editor, operator or viewer, or an enrolment other than invitation or join_without_invitationinvalid_input
A resend_invitation or a revoke_invitation for an invitation that is not pendingnot_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 alreadynot_found
An invite_member or a set_member_playbooks that names a playbook the org does not havenot_found
A change that would leave the org without an admin, or with no admin who is not suspendedconflict of kind unworkable
More than 28 playbooks in playbooks, or a set_member_playbooks of an admin, who always has access to all playbooksconflict of kind unworkable
A set_member_role to a role other than admin for a member with access to no playbookconflict of kind unworkable
A set_member_role or a set_member_playbooks for a suspended memberconflict of kind unworkable
A suspend_member of the caller themselvesconflict of kind unworkable
Any call of a suspended member, or of their agentforbidden of kind suspended
http
POST /v1/orgs/default/members/invitations
Authorization: Bearer <token>
Content-Type: application/json

{ "email_address": "sam@example.com", "role": "viewer" }
json
{
  "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"
}
http
PUT /v1/orgs/default/members/0c3de111680d66bea9b377080ec7d6784c7602c7bc2e4bfdd1b3ee489b0675ea/role
Authorization: Bearer <token>
Content-Type: application/json

{ "role": "editor" }
json
{
  "id": "0c3de111680d66bea9b377080ec7d6784c7602c7bc2e4bfdd1b3ee489b0675ea",
  "name": "Priya Shah",
  "identifier": "priya@example.com",
  "role": "editor",
  "joined_at": "2026-11-18T10:00:00.000Z"
}

Analytics

OperationMethod and routePermissionInput
get_playbook_analyticsGET /analyticsplaybook:readOptional 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.

ParameterRule
days7, 14 or 30: the last days, ending today. 7 when nothing is given
from, toThe 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, nameKeep the runs of one definition, as they do for list_runs
  • A day must exist in the calendar, so 2026-02-30 is refused rather than read as 2 March.
  • These are refused with invalid_input, pointing at the parameter: days with from or to, from without to, any other days, and any other parameter.
http
GET /v1/orgs/acme/playbooks/sales/analytics?days=7&type=reasoning
Authorization: Bearer <key>
json
{
  "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.

FieldContents
daysHow many days the window covers
runsThe runs that ended, by how they ended, and their total
tokensThe 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_usdWhat 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_msp50 (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_dayThe same runs, tokens, cost_usd and duration_ms for each day
by_functionEach 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, failed or rejected. A run still going counts nowhere.
  • A run started again under its run_id counts 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, tokens and cost_usd, never in duration_ms.
  • cost_usd adds up the runs that recorded a cost and leaves out those that did not, so it is null only when no run did. A run records a cost when its model gateway answers one, in the header the gateway's cost_header names (see Gateway fields). A self-hosted runtime whose model gateway names no cost header records no cost, so the field is null.
  • Workflow runs count in runs and in duration_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}:

OperationMethod and routePermissionInput
searchGET /tool-servers/searchorg:read or playbook:readOptional playbook, terms, server and only
searchGET /playbooks/{playbook}/tool-servers/searchplaybook:readPlaybook id in path; optional terms, server and only
introspectGET /playbooks/{playbook}/tool-servers/{server}/tools/{tool}playbook:readServer and tool in the path
validatePOST /playbooks/{playbook}/tool-servers/{server}/tools/{tool}/validateplaybook:readServer and tool in the path; arguments in the body
  • validate is routed by POST because its arguments are an object a query string cannot carry. It is still a read: it changes nothing, calls no tool and needs only playbook:read. A query string beside its body returns bad_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 search is 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 with terms.
  • terms is 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: read keeps the tools marked reads, and only: write the others, which may change something.
  • server keeps the server of that name and asks no other. A name no server of the playbook has returns invalid_input at /server.

Each word of terms, and each part of it split at _, ., - and case changes, scores in any letter case:

Where the word appearsScore
A word of the tool's name, split the same way3
A word of the name of one of the tool's arguments2
A word of the tool's description1
http
GET /v1/orgs/acme/playbooks/sales/tool-servers/search?terms=invoice
Authorization: Bearer <key>
json
{
  "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"]
}
FieldContents
serversThe servers searched, sorted by name
toolsThe tools found
scopesThe names of the servers searched
providersOn 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:

FieldContents
nameThe name a function writes before the slash
connectionFor 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
providerThe name of the provider a connection was added from, or an entry of the configuration names, or null for a server given by hand
typemcp 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_contentWhether the content of its calls is kept
tool_countHow many tools of the server are allowed, of those only keeps
unavailableInstead 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
becauseWith 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
playbooksOn 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:

FieldContents
serverThe server's name
toolThe tool's name
summaryThe first sentence of its description, cut at 300 characters
markIts 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 with playbooks.
  • With playbook, it returns only the servers that serve that playbook, as the playbook's own route does, with playbooks included.
  • A key limited to some playbooks must pass playbook, and sees in playbooks only the playbooks it may access. Without playbook it is refused with forbidden, whose detail says to name one of its playbooks in playbook.
  • A playbook the org does not have returns not_found, as the playbook's own route does, and no server is asked.
  • A server that no server of the org, or of the playbook given, has returns invalid_input at /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 playbooks holds, and so which servers playbook keeps, 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, with provider set and, while it is not ready, its because.
  • 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_providers still lists it, each way offered: 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 playbook narrows the servers to, and is left out with server.
  • It is present exactly where the caller may add a connection, as may_add of list_providers says: a signed-in person, or the local developer in local mode, with org:write, on a runtime whose connections.people_may_add is not false. 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 no providers. 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_byThe mark is
serverThe one the server's hints give: reads for readOnlyHint: true, acts for readOnlyHint: false or destructiveHint: true, and unmarked else
methodThe one the HTTP method of an operation of an HTTP API gives: reads for GET and HEAD, acts for POST, PUT, PATCH and DELETE
catalogueThe 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
settingsThe 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, idempotentHint and openWorldHint), left out when the server gives none;
  • its mark and marked_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.

http
GET /v1/orgs/acme/playbooks/sales/tool-servers/billing/tools/getInvoice
Authorization: Bearer <key>
json
{
  "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.

http
POST /v1/orgs/acme/playbooks/sales/tool-servers/billing/tools/getInvoice/validate
Authorization: Bearer <key>
Content-Type: application/json

{ "arguments": { "id": 42 } }
json
{ "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:

Caseintrospect and validate
A server not set up for the playbookKind tool_not_offered, because: "tool_server_not_configured", before any server is asked
A tool that is not allowedKind tool_not_offered, because: "tool_not_allowed", before any server is asked
A tool the server does not listKind tool_not_offered, because: "tool_not_listed"
A connection that is not readyKind tool_not_offered, with its because, as below
A server that cannot be askedKind 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}:

OperationMethod and routePermissionInput
add_connectionPOST /connectionsorg:writeprovider 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_connectionPOST /custom-connectionsorg:writename, 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_connectionsGET /connectionsorg:readOptional include_removed
get_connectionGET /connections/{id}org:readConnection id in path
test_connectionPOST /connections/{id}/testorg:write, by an adminConnection id in path
reconnect_connectionPOST /connections/{id}/linkorg:write, by an adminConnection id in path; optional more, a group of the scopes the connection may still be granted, by its name
remove_connectionDELETE /connections/{id}org:write, by an adminConnection id in path
decline_connection_requestPOST /connections/{id}/declineorg:write, by an adminConnection id in path
set_connection_playbooksPUT /connections/{id}/playbooksorg:write, by an adminConnection id in path; playbooks, the ids of the playbooks that may use it, or null for every playbook
set_connection_account_typePUT /connections/{id}/account-typeorg:write, by an adminConnection id in path; account_type, service or personal
set_connection_signing_secretPOST /connections/{id}/signing-secretorg:write, by an adminConnection id in path; secret, the signing secret the service made, or none for one the runtime makes
remove_connection_signing_secretDELETE /connections/{id}/signing-secretorg:write, by an adminConnection id in path; previous, true to remove only the signing secret a new one replaced
list_connection_toolsGET /connections/{id}/toolsorg:readConnection id in path; optional limit and cursor
read_linkPOST /connections/{id}/link/readorg:write, by an admin, with the link's tokentoken
approvePOST /connections/{id}/approveorg:write, by an admin, with the link's tokentoken; optional playbooks, the ids of the playbooks that may use it, or null for every playbook
choose_wayPUT /connections/{id}/wayorg:write, by an admin, with the link's tokentoken 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_providerPOST /connections/{id}/providerorg:write, by an admin, with the link's tokentoken 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_accountPOST /connections/{id}/service-accountorg:write, by an admin, with the link's tokentoken
give_credentialPOST /connections/{id}/credentialorg:write, by an admin, with the link's tokentoken, 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_clientPOST /connections/{id}/clientorg:write, by an admin, with the link's tokentoken, client_id and client_secret of the organization's own OAuth client, for a connection under it
startPOST /connections/{id}/consentorg:write, by an admin, with the link's tokentoken; optional playbooks, as for approve
finishPOST /connections/{id}/consent/codeorg:write, by an admin, with the link's tokentoken, 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:

FieldContents
idA UUIDv7
nameWhat a function names it by, as name/tool
typemcp or openapi
providerThe name of the provider it was added from, or null for a server given by hand
placeholdersThe values given for the provider's placeholders, or null
entryThe server without its credential, as the rules below set out
credentialHow 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
statuspending, connected, broken or removed
permissionsapplication when the connection acts as the app. delegated when it acts as an account at the service. null when it sends no credential.
account_typeservice 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_byThe caller who added it, by id and name
added_atWhen it was added, in ISO 8601 UTC
requestWhile 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_atWhen it was connected, in ISO 8601 UTC, or null
connected_byThe caller who connected it, by approving it or giving its credential, by id and name, or null
asked_scopesThe 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_scopeFor 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_scopesThe 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_withThe 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_credentialsThe 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
kindThe connection is broken because
credential_refusedits server answered 401, or a code its provider's failure_codes names for a refused credential, to the credential it holds
credential_wantedits server answered so to a connection of none, which holds no credential, asking for one
credential_goneits credential is no longer in the secret store
credential_not_tokensits credential is not the tokens of a consent
consent_endedits consent was revoked or has ended
client_gonethe client it was made with is no longer registered
key_unknownAuto'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 connect that reconnect_connection answers, also once the person has opened the link, holds asked_scopes, the scopes that page asks, as read_link answers them. It is left out where the link is for a group that choice does not name, and read_link refuses that link as conflict.
  • read_link and choose_way answer granted_scope and granted_scopes as null, since that choice has been granted nothing yet.
  • The connection's own asked_scopes, and the grant list_connections and get_connection answer, 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 link add_connection or reconnect_connection gave for a group of more, the group, { name, for }, whose scopes the connection's asked_scopes then hold beside those asked before, with their words. A link whose group the provider no longer names is conflict here and at its start.
  • 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, auto where 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, by add_connection or add_custom_connection for the link of an addition and by reconnect_connection for a new one, where the access token of that call was issued to one. id is its client_id; name its client_name, or null where the token gives none; and domain the host of a client_id that is the https address of its metadata document, or null. 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's entry.allowed allows, { 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. summary is the first sentence of what the tool does, at most 300 characters, as search answers 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; mark is the tool's mark by the HTTP method of its operation, as list_connection_tools answers it. No other word of the document is answered. tools is null where 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 the client_credentials grant, it offers client credentials beside its sign-in, so the connection can act as an app the company registers there. offered is false for a way the runtime's rules do not take here, and because says why. choose_way takes one of them. A connection made from a provider has no ways: list_providers lists 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_connection takes provider, and the provider gives the server and how it is credentialled. name is the provider's when left out; placeholders gives the value of each placeholder the provider takes, and of each one the chosen way asks for; credential may give its kind alone, which takes the provider's first way of that kind that list_providers marks offered, and when it is left out the addition takes, of the ways list_providers marks offered that take the placeholders and the more given, 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 way list_providers marks offered, or the provider's first where it offers none, which the addition then refuses in its words; and entry may give playbooks, allowed and record_content alone. type, events, the server's fields of entry and every field of credential but kind and oauth_client are refused, each at its field, since the provider gives them, and the first three in words that name add_custom_connection; credential.client_id is refused since the person gives the client id on the page. The connection's entry and credential are 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_connection takes a server given by hand: name, type and entry are each required, and credential too for an HTTP API, since an MCP server says how it authenticates, and provider, placeholders and more are refused. A connection whose way acts as an account is recorded as a service account where provider is given without credential and the way takes service accounts, and otherwise as a personal account, or as a service account where the way takes only that; set_connection_account_type changes it afterwards.
  • entry holds the server without its credential: url for mcp; document and base_url for openapi; and headers, query_params, allowed, playbooks, record_content and request_id, as an entry of the configuration file has them. url and document are each an https URL, or an http URL on a loopback address.
  • credential is one object: its kind and the fields that kind takes. Each field is optional in the schema, and is refused as invalid_input at the field where its kind lacks it or does not take it:
kindTakes
noneNo other field
secretname 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
referencevariable, 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_credentialsissuer, an optional client_id and an optional scope. issuer is an https URL or an http URL on a loopback address
authorizationWith 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_bearerA 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_exchangeA 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: dynamic where the authorization server registers clients dynamically, and else metadata_document.
    • So the agent leaves credential out, or gives authorization with its kind alone. Any other field beside the kind is refused at its field.
    • For such a server, none, secret and reference are refused at /credential/kind, in words that name the authorization server and say to leave the credential out. client_credentials stand, 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. A credential left out is refused at /credential, in words that say the server names no way of its own and ask how its credential is sent.
  • An HTTP API given by hand, whose document names no authorization server, takes its credential. It is refused the kind authorization at /credential/kind.
  • A server added by hand, an MCP server or an HTTP API, is refused the kinds jwt_bearer and token_exchange at /credential/kind, since only a provider's way states the account a token is asked for and how the token is had.
  • A secret or a reference sent in a header may name its scheme, such as Bearer, 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 receives Authorization: Bearer <token>. A scheme holds the characters of a header name and no $, and a credential that places no value in a header takes none. give_credential refuses a value that already starts with the scheme and a space, in any case, at /value.
  • A secret says 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_link answers it in the connection's credential, and provider, the provider's name or null, says whether the provider or the agent wrote it.
    • instructions is 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_page is the https address of the page where the key is made, written out from https://, 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 as ghp_…, 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 the u flag: characters, ., \d, \w and 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, instructions and key_page are required, each refused at its field in words that say what to write, and every other kind refuses the four.
    • give_credential matches the value of a secret to its pattern before 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 carries pattern_unmatched: true.
  • give_credential takes app_credentials, the app credentials that list_providers lists 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 its pattern, 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 in app_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_input at its field, and where the check cannot be completed, as when the service cannot be reached or answers an error, it answers unavailable, keeps nothing and leaves the link open.
  • For a connection whose credential is client_credentials, give_credential first 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 as invalid_input, with the error code the server answered and, where it gives one, its error_description. It answers unavailable where the server cannot be reached, answers 429 or a server error, or answers server_error or temporarily_unavailable, and conflict where 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_credential takes key_file, the whole text of the key file the service gave, alone, for a connection whose credential is jwt_bearer. The runtime reads the client's ID and the private key at the JSON Pointers the provider's way names, refusing at /key_file a 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_file otherwise, 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 a token_request, sends that request with the JWT as its Bearer. A key the server refuses with an OAuth error is refused as invalid_input, with the error code the server answered, and so is one a token_request answers with a client error other than 408 and 429, with HTTP and the status. It answers unavailable where the server cannot be reached, answers 429 or a server error, answers server_error or temporarily_unavailable, or answers another status with no error code or a success with no token. It answers conflict where the server's metadata names another issuer or a token endpoint that is not https, 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, records algorithm RS256 and the client's ID in client_id, and keeps nothing else of the file. key_file beside any other field, or for another kind, is refused.
  • A connection whose credential is token_exchange is approved by approve, with no credential to give. Where the way is not one of a service account Auto manages, add_connection and choose_way take 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, and choose_way gives them. Until they are given, approve refuses the connection as invalid_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 as invalid_input, with the error code the service answered, and a service that cannot be reached or does not answer gives unavailable. Where the provider's way declares a check, the runtime then calls it once and answers reached, the names of what the connection reaches, at most 50; a check that ends any other way than in an answer gives unavailable, and nothing is recorded. A connection that acts as a service account Auto created and reaches nothing yet is refused as conflict, and nothing is recorded. read_link answers subject_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_account creates the service account of a connection whose credential is token_exchange with service_account managed, 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 answers unavailable and records nothing. approve refuses such a connection as conflict until its account is created. remove_connection, and choose_way to another way, remove the account first, and answer unavailable with nothing changed where it cannot be removed now. For a connection that is connected or broken, create_service_account creates 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_connection runs the same exchange and check for a connected connection whose credential is token_exchange, records nothing, and answers { reached }, empty where the way declares no check. A connection of another kind, or one not connected, is refused as conflict.
  • The client_id of 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_credential takes client_id, and the record holds it from then on. give_credential refuses a client_id at /client_id where 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_connection refuses a client_id that looks like a credential at /credential/client_id.
  • get_connection, test_connection and the seven routes of the link are served over HTTP alone, and no MCP endpoint serves them. get_connection reads one connection of the org by its id; an agent sees whether the person approved a connection in the status list_connections answers 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.
  • start and finish connect a connection whose credential is authorization.
    • start answers 201 with authorize, { url, expires_at }, and client_source, the source of the client it started with.
    • url is 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-return of the Studio the connection's link opens. It is the Studio host's /connect-return: STUDIO_ORIGIN followed by /connect-return, or https://studio.on.auto/connect-return unless STUDIO_ORIGIN is set. Where the runtime serves Studio, it is instead /studio/connect-return on the runtime's own address.
    • expires_at is 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 finish with token, code, state and iss.
    • finish redeems 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.
    • finish refuses 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 finish records as granted_scope is 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_source auto began through Auto's consent service, with Auto's client at the vendor. Consent through Auto says when a runtime starts one.
    • The start's url is 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.
    • finish then takes token, state and handle, takes the tokens from the service and connects the connection.
    • A finish of the other shape than its start's is refused as invalid_input at the field it gave, /code or /handle, saying which the consent answers. A handle the service refuses is refused as invalid_input at /handle.
  • approve connects a connection whose credential is none or reference and uses its link up. give_credential keeps 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, credential may 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: own from the start. A way whose oauth_client is required, as the way says or since no client here covers it, takes the organization's own OAuth client without oauth_client.
    • oauth_client beside another kind is refused at /credential/oauth_client, and add_custom_connection refuses oauth_client there too.
    • The page of the connection's link gives the client ID and the client secret, client_id and client_secret, through give_client before the sign-in. give_client keeps the secret sealed in the runtime's secret store, records the client ID in the connection's credential, leaves the link open and answers the connection.
    • A second give_client of a connection that holds no tokens replaces the client given before and forgets its secret.
    • A connection that holds tokens, connected or broken, takes a client through a link reconnect_connection gave. 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 start takes it. Once that consent's finish connects 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_link answers client_source: own, and the credential's client_id once the client is given. It answers return_address, the address the runtime sends the authorization server as redirect_uri, which the client registers as an authorized redirect URI. While the connection keeps a next client, it answers next_client_id, which give_client answers too.
    • start is refused as conflict until the client is given. It starts the consent with that client at the provider's authorization server, never through Auto's consent service.
    • finish takes the client its start took. The renewal of the tokens and their revocation take the client the connection runs under.
    • remove_connection forgets the client's secret and a next client's.
    • A start or finish under a client given again meanwhile is refused as conflict. The person then signs in again under the client given last.
  • A connection is added by a person: on a runtime that signs people in, add_connection and add_custom_connection refuse 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, start and finish need the session of the person who added the connection. In local mode the token alone binds.
  • reconnect_connection gives a new link to a connection that is broken, connected, or pending, 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_found by read_link, approve, give_credential, start and finish, 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 reference takes no link. Where the runtime finds its variable set, it answers the connection connected at once, without connect. While the variable is not set, it refuses the connection with conflict, since the runtime reads its variables when it starts.
    • A pending or connected connection of a reference takes 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_connection removes 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 refused forbidden, in the runtime's words of who can, before anything is removed or forgotten. Otherwise only the person who added it may.
    • A pending connection 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, start and finish take 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, with broken null and the new connected_by and connected_at.
    • Where the new consent took another client, the tokens of a consent the connection held are revoked as remove_connection revokes 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 answers link_replaced where a newer link that is still open replaced it.
    • The consent a link without more starts 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.
  • Given more, the name of a group list_connections offers the connection, reconnect_connection gives a connection that is pending, connected or broken a 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_connection refuses a group the connection's way does not name, and any group of one that names none, as invalid_input at /more. It refuses a group the connection holds every scope of already, or one no client set up here covers, as conflict.
  • remove_connection removes 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_request declines 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, as remove_connection does. A connection with no open request is refused as conflict and keeps everything. It needs org:write, as remove_connection does.
  • set_connection_playbooks sets which playbooks of the org may use a connection. playbooks names them by id, and null gives the connection to every playbook of the org, those made later among them, its entry then naming none.
  • choose_way chooses how a connection connects, through its open link. It takes one of the ways its provider or its server offers, named by kind and permissions. For a way that acts as an account, account_type says which kind of account; left out, it is personal if the way takes personal accounts, and otherwise the type the way takes. placeholders gives 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's base_url with 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 connected or broken takes the way chosen only once that way connects through the link, by approve, give_credential or finish. Until then, it keeps the way it has, its credential and its account type, and its calls keep using them. playbooks given with the way chosen, to start, approve or give_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_connection does. 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.
  • choose_provider moves a connection that is not connected yet to another provider of the same app, through its open link: the provider whose entry lists variants, 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, as add_connection does, 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_type sets the kind of account a connection acts as. service means an account the company made for automations. personal means 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 as conflict, 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 as invalid_input at /account_type.
    • A list names at least one playbook: an empty one is refused as invalid_input at /playbooks, and a malformed id at its place. The ids are not looked up, as those of add_connection's entry.playbooks are not.
    • It sets them for a connection pending, connected or broken alike, records nothing where the connection serves those playbooks already, and refuses a removed connection with conflict. It needs org:write, as remove_connection does, 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 as forbidden, 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_offered because tool_server_not_configured, as for a server the playbook does not have; so is a call by hand there, and that playbook's search no longer lists the connection.
  • set_connection_signing_secret gives 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. Given secret, the one the service made, it keeps that; without it, the runtime makes one of 32 random bytes and answers it as secret, 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 answers signing_secret, { set_at, previous_until }, or null where 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, until previous_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 as forbidden, since each would then hold the secret.
  • remove_connection_signing_secret forgets a connection's signing secrets, and with previous: true only the one a new secret replaced. Removing what the connection does not hold records nothing, and remove_connection forgets them too.
  • approve, give_credential and start take playbooks too, 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 to start are 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 as forbidden when it gives playbooks, as set_connection_playbooks refuses it. read_link answers them, in entry, before.
CaseResponse
An entry that holds a value that looks like a credential, a reference such as ${NAME}, or a field another entry would refuseinvalid_input
A provider the runtime does not have, at /provider: There is no provider named crm here; search lists the providers a person may connectinvalid_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/kindinvalid_input
What the checks of an entry refuse in what the provider resolved, at /provider, or in a name the caller gave, at /nameinvalid_input
A kind of credential there is not, or a field its kind lacks or does not takeinvalid_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 notinvalid_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/kindinvalid_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/kindinvalid_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 resourceinvalid_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_credentialsunavailable
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 kindinvalid_input
give_credential with a value of another format than the pattern of its provider's way, at /value, keeping nothinginvalid_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 nothinginvalid_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 credentialinvalid_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 namesforbidden, with the sentence of the rule
A name of an entry of tool_servers, or of a connection of the org that is not removedconflict
An org that holds 50 connections that are not removed, the most it mayconflict, kind connections_full
A token that is unknown, used up or replaced by a newer link, or an id the org does not havenot_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 aloneforbidden
approve, choose_way, give_credential or give_client with the session of another person, where people sign inforbidden
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 clientsconflict
start or finish where a host of the authorization server is one the rules do not allowforbidden, 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 scopeconflict
finish with no consent started, or one started more than ten minutes agonot_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 /codeinvalid_input
start or finish where the authorization server does not answerunavailable
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 revokedunavailable
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 openunavailable
start whose client, registered by the runtime at the authorization server, is one its secret store refuses to keep, in the store's wordsconflict
approve of a connection whose credential is to be given, or give_credential of one that takes noneconflict
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 meanwhileconflict
give_client with a client secret the runtime's secret store refuses, at /client_secretinvalid_input
add_connection with credential.oauth_client beside a kind other than authorization, or add_custom_connection with credential.oauth_client, at /credential/oauth_clientinvalid_input
reconnect_connection of a connection removed, or of a broken reference whose variable is not setconflict
decline_connection_request of a connection with no open requestconflict
choose_provider of a connection that has been connected, or that someone asked for and no admin answeredconflict
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 forforbidden
reconnect_connection of a connection it would add again, where the runtime cannot say just now whom it starts a connection of its provider forunavailable
reconnect_connection with a more the way of the connection does not name, at /moreinvalid_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 namesconflict
set_connection_playbooks, approve, give_credential or start with an empty list of playbooks, at /playbooks, or a malformed playbook id, at its placeinvalid_input
set_connection_playbooks of a connection removedconflict
set_connection_account_type of a connection removed, or of one that acts as the app or sends no credentialconflict
set_connection_account_type with an account type the connection's way does not take, at /account_typeinvalid_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_typeinvalid_input
choose_provider with a provider that is not another provider of the same app, at /providerinvalid_input
set_connection_playbooks, or approve, give_credential or start with playbooks, by a caller that may access only some playbooks of the orgforbidden
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 /secretinvalid_input
set_connection_signing_secret of a connection removedconflict
set_connection_signing_secret by a key, by an agent acting for a person, or on a runtime that signs nobody inforbidden

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:

FieldWhat it holds
nameThe tool, as a function names it after the slash
titleWhat 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
descriptionWhat it does, as its server describes it, whole up to 4 KiB, as introspect answers it; empty where it gives none
hintsThe 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_byIts 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:

OperationMethod and routePermissionInput
list_providersGET /providersorg:readNone

It answers providers, sorted by name, may_add, may_connect, refusal and return_address. A provider holds:

FieldWhat it holds
nameIts name, the default name of a connection to it, given as provider to add_connection
titleWhat a person reads
descriptionWhat a function may do with it
summaryWhat playbooks can do with it, in one sentence for a person who connects it, where the entry gives one
websiteWhere a person reads about the server and makes a credential
iconsImages 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.
typemcp or openapi
credentialsThe 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
placeholdersThe 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
variantsThe 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_kinds takes its kind and the hosts it reaches could pass allowed_hosts, a host that holds a placeholder judged by its shape, a fixed host that is an address inside the network, such as 10.0.0.5, passing only where allowed_hosts names 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_exchange is listed only where this runtime signs tokens of its own, and one with service_account managed only where it can also create service accounts; add_connection and choose_way refuse a way that is not listed.
  • A way is offered: false while a value whoever runs Auto sets for it is not set, and because says so. Every way of the kind authorization offers 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, its oauth_client is required, and because says 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_connection connects such a way under the organization's own OAuth client without oauth_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 its more. Searching the tools says what search does with a provider none of whose ways is offered.
  • may_connect is true when this caller may also approve a connection it adds here, and false when it may not.
  • may_add says whether this caller may add a connection here, and refusal why not, in the sentence the first rule that refuses gives, in the order add_connection refuses: a caller without org:write; a key where people sign in, or every caller where the runtime signs nobody in; connections.people_may_add set to false. It is null where the caller may add. The providers are listed whatever may_add says.
  • Beside replaces, a provider holds may_reconnect, whether this caller may reconnect a connection made from a provider it replaces, whoever added it: true for a caller the runtime lets do so, and false for a caller it starts no connection of that provider for, with reconnect_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_connection decides as it is called, whatever the listing said.
  • return_address is the address the runtime sends a provider's authorization server as redirect_uri for 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 one read_link answers 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:

becauseThe connection
connection_pendingNobody has approved it yet; the person who added it opens its link, or reconnects it for a new link
connection_brokenIts 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_allowedThe 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_unavailableIts 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.

OperationMethod and routePermissionInput
get_licenseGET /licenseorg:readNone
activate_licensePOST /licenseorg:writekey, the key Studio gave, alk.<org>.<runtime id>.<secret>
activate_allocationPOST /license/allocationorg:writeallocation, the offline credits the Auto team signed: payload, signature and kid
report_allocationPOST /license/allocation/reportorg:writeOptional 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:

FieldValue
stateunregistered 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_becauseWhile it is limited: credits, cap, out_of_touch, key_rotated, key_revoked, org_closed or not_activated; null otherwise
runtime_idThe 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_runsAlways null: a self-hosted runtime starts no run without a license key
org, planThe org at Auto and its plan, of the license of the key in force; null without one
org_nameThe 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
featuresThe 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
standingWhere the org's credits stood when Auto signed the license: ok, low, empty, overage, near_cap or capped; null without one
licensedThe runs it started on a license, in all
runs_leftThe 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_atWhen 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_atWhen it last took a license from Auto, as it activated or reported; null without one
fallbackAlways null: a self-hosted runtime has no free rate
key_sourceWhere 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_becauseWhile it is invalid, the detail a run is refused in; null otherwise
summaryWhere 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_input includes an errors list of JSON pointers, and the kind input_schema when the input schema of the function or workflow refused the input it was given, before it ran, or cursor_not_held for a cursor of changes the ledger does not hold.
  • A rejection that has a kind carries it.
  • An unavailable or conflict rejection that has a because carries it.
  • A conflict may have the kind oversized, 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 conflict may have the kind blocked_by_moderation, for a generation function whose request the provider of its model refused under its moderation.
  • A run rejected as unavailable may have the kind generation_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 than account_closed, carries runtime_id, the runtime's id, once it has one. A self-hosted runtime's refusal at the free rate also carries lifts_at, when the limit lifts, and its refusals while it holds a key carry limited_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:

json
{
  "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.

StatusCommon reason
400bad_request
401Missing or invalid credentials
403forbidden or origin_not_allowed
404not_found
405Unsupported method; see the Allow header
409conflict or cancelled
410unanswered
413content_too_large
415unsupported_media_type
416range_not_satisfiable
422invalid_input
500internal
503unavailable

A problem document's type is a URI that names its kind of problem:

TypeStatusMeans
https://on.auto/problems/bad_request400The request is malformed, such as a field given twice or a body that is not a JSON object
https://on.auto/problems/unauthenticated401Credentials are missing or invalid
https://on.auto/problems/forbidden403The credentials may not do that
https://on.auto/problems/origin_not_allowed403A browser sent the request from an origin the server does not allow
https://on.auto/problems/suspended403The 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_found404Something the request names does not exist
https://on.auto/problems/method_not_allowed405The path does not take that method
https://on.auto/problems/request_timeout408The 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/conflict409The request clashes with what is there
https://on.auto/problems/tools_called409A 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_unknown409A 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_exhausted409The 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_required409The 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_invalid409The 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_closed409On 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/cancelled409The run was cancelled, with the kind of its cancellation; its reason is cancelled
https://on.auto/problems/unanswered410Nobody answered the request a run waited on, of an interaction function, with the kind expired or undelivered
https://on.auto/problems/content_too_large413The body is larger than the operation accepts: 1,114,112 bytes of JSON
https://on.auto/problems/unsupported_media_type415The 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_satisfiable416The Range of a content at a signed address starts at or past its end
https://on.auto/problems/invalid_input422The input does not fit, with the errors that point at it
https://on.auto/problems/cursor_not_held422The 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_requests429More 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_request499The client disconnected before the response
https://on.auto/problems/internal500Something went wrong inside the server
https://on.auto/problems/unavailable503Something the server relies on cannot serve now
https://on.auto/problems/busy503The 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_unfinished503A 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.

Kindresolve_atruntime_idbecause
license_requiredhttps://studio.on.auto/licenses?installation={runtime_id}, where an admin of the organization gets the keyWhere it has oneNone
license_invalidThe same page of Studio, or https://studio.on.auto/licenses before the runtime has an idOnce the runtime has an idkey_rotated or installation_revoked, where its key was rotated or the runtime removed; none otherwise
credits_exhaustedBilling of the org in Studio on a license, the runtime's page offline, or where Auto's account says in CloudOn a self-hosted runtimeOn a license, none; offline, none_left; in Cloud, the case the account names
account_closedStudio's Support page, where a person asks Auto's support to restore the org; detail gives the date until which it can beNeverorg_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_input is status 422 over HTTP, but a workflow raises it as a validation error of status 400. A catch for it matches status 400 or the validation type, never 422.
  • A cancellation of a called run that the workflow does not catch rejects the workflow as invalid_input, not as cancelled, since the workflow itself was not cancelled.
  • credits_exhausted, license_required, license_invalid and meter_unavailable, when the meter would not start the run, and content_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 own timeout passes: 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_only or model_not_offered;
  • with because set to stalled, which no wait resolves;
  • with cancelled.

Models and tools a function may not use

CaseResponse
A function names a model outside the deployment's allow listunavailable 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 providersunavailable 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 providerunavailable 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 givenunavailable with kind model_not_offered
A function names a tool the playbook's servers do not offerunavailable with kind tool_not_offered
introspect or validate names a tool the playbook is not offeredunavailable 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.