본문 바로가기

Automatio API

One key, three products: the same tools the Automatio agent uses, an OpenAI-compatible model endpoint, and full agent runs. Billed per call against your credit balance — no provider keys to manage.

Quickstart

Create a key on the Integrations page, then make your first call. This one pulls the full transcript of a YouTube video:

Your first request
curl -X POST 'https://automatio.ai/api/v1/query' \
  -H 'Authorization: Bearer aut_yourkey' \
  -H 'Content-Type: application/json' \
  -d '{"tool":"youtube_transcript","params":{"videoId":"jNQXAC9IVRw"}}'

The tool's result is returned directly — there is no response envelope to unwrap:

Response
{
  "videoId": "jNQXAC9IVRw",
  "segmentCount": 6,
  "wordCount": 39,
  "segments": [
    { "t": 1, "ts": "0:01", "text": "All right, so here we are, in front of the elephants" },
    { "t": 5, "ts": "0:05", "text": "the cool thing about these guys is that they have really..." }
  ]
}

Authentication

Every request takes the same bearer key, whichever endpoint you use. At creation a key can be scoped to specific tools, specific models, a lifetime credit budget, and a per-minute rate limit.

header
Authorization: Bearer aut_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Scope keys narrowly when you hand one to an agent or a third party. A tool allowlist is not only a safety boundary — it also shrinks what an MCP client has to load, since tools/list returns only the granted subset.

REST endpoint

POST https://automatio.ai/api/v1/query

curl -X POST 'https://automatio.ai/api/v1/query' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"tool":"web_search","params":{"query":"hello world"}}'

What a call cost

Every response that ran a tool carries the credits that call billed — on REST, on MCP tools/call, and on /chat/completions. Sum what you receive and the total is exact; you never need a rate card.

{
  "rows": [ ... ],
  "totalRows": 12,
  "automatio": { "credits_charged": 15 }
}

Add a charge whenever the response has the field — not when the status is 2xx. A request rejected before the tool ran (401, 429, 400, or 402 once the key’s budget is gone) billed nothing and carries no automatio block at all. A tool that ran and then failed returns 502 (or 402) with a real charge attached, because a refusal after a partial charge is exactly when you need the number.

Prices in the tool table are per call. The metered tools — apify_actor_details, apify_run_actor, apify_search_actors, image_analyze, image_generate, reddit_post, reddit_search, video_analyze and video_generate — bill the provider’s real cost, so they list no price and this field is the only real number for them.

Credits are the exact unit, so report them as credits. If you need a dollar figure, 2,778 credits = $1 at the reference tier, also served as billing.creditsPerUsd on GET /api/v1/catalog. Plans buy credits at other rates, so a converted total is indicative rather than an account’s actual bill.

MCP server

A stateless Model Context Protocol server (Streamable HTTP) at https://automatio.ai/api/v1/mcp. Point any MCP client at it with the same bearer key and the tools appear natively in your agent — tools/list returns what the key is granted, minus any tool that cannot finish inside an MCP call. video_generate renders for minutes, so it is REST-only — call it at POST /api/v1/query. Everything else out of scope never enters the session at all.

claude mcp add --transport http automatio https://automatio.ai/api/v1/mcp \
  --header "Authorization: Bearer aut_yourkey"

# or commit it to the project — .mcp.json in the repo root:
{
  "mcpServers": {
    "automatio": {
      "type": "http",
      "url": "https://automatio.ai/api/v1/mcp",
      "headers": { "Authorization": "Bearer aut_yourkey" }
    }
  }
}

The shapes genuinely differ between clients — VS Code nests under servers rather than mcpServers, opencode uses mcp with type: "remote", and Codex is TOML whose bearer_token_env_var wants the NAME of an environment variable rather than the key. A config copied from the wrong client usually fails silently — the server simply never appears.

Discovery is free. Connecting, and listing tools, costs nothing — only an actual tools/call is billed, at the same per-tool credit price as REST. The legacy SSE transport is intentionally not supported.

For coding agents that would rather read one document than negotiate a protocol, the whole API is available as Markdown in a single request at /api/v1/catalog?format=md.

AI models (OpenAI-compatible)

Call any chat model through Automatio and have the tokens billed to your credits — no provider keys to manage. Your key needs the AI models scope. The endpoint is wire-compatible with the OpenAI Chat Completions API, so the official OpenAI SDK works unchanged — just point it at Automatio.

import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://automatio.ai/api/v1',
  apiKey: 'aut_yourkey',
});

const res = await client.chat.completions.create({
  model: 'google/gemini-3-flash',
  messages: [{ role: 'user', content: 'Hello' }],
});

Streaming is supported (stream: true). A key can be restricted to specific models at creation.

Tools, JSON mode and sampling. The OpenAI parameters tools and tool_choice (the model's call comes back as tool_calls; you run the function and send the result back in a tool message), response_format (json_object and json_schema), stop, seed and the two penalties are honoured. A parameter that cannot be (n above 1, logprobs, ...) is refused with a 400 that names it. Models differ in what they honour: one that was measured not to honour a parameter lists it in doesNotHonour in the catalogue, and a request that uses it is refused naming the model, instead of an answer with the setting missing. A reply may carry automatio.warnings when the model reports ignoring a setting, and for temperature and top_p on a model that does not apply them (listed in doesNotApply in the catalogue, for example the Claude 5 and GPT-5 models): those are sent and answered rather than refused, because most clients send a default temperature. strict on a tool is accepted; the arguments are the model's own, not enforced against the schema.

Images (vision)

Models marked vision below accept image input — captioning, OCR, reading a screenshot or a chart. Send it exactly the way the OpenAI API does, as a content array with an image_url part (an https URL or a data: URI). Images are accepted only on user messages; sending one to a text-only model returns 400 naming the models that do accept them.

const res = await client.chat.completions.create({
  model: 'zai/glm-4.6v-flash',
  messages: [{
    role: 'user',
    content: [
      { type: 'text', text: 'Caption this image.' },
      { type: 'image_url', image_url: { url: 'https://example.com/photo.jpg' } },
    ],
  }],
});

For a one-call version that picks the model for you, the image_analyze tool does the same job through /api/v1/query and MCP.

Video and PDF files

Models marked video watch a clip, motion and audio included: send a video_url part with a public link to an .mp4, .webm or .mov, up to 10 minutes and 2 per request. Models marked file read a PDF in a file part, as a base64 data: URI or an https link (3 per request, 20 MB inline). Both are billed from the model's real token use. A model without the flag gets a 400 naming the models that have it.

const res = await client.chat.completions.create({
  model: 'google/gemini-3-flash',
  messages: [{
    role: 'user',
    content: [
      { type: 'text', text: 'What happens in this clip, and what is said?' },
      { type: 'video_url', video_url: { url: 'https://example.com/clip.mp4' } },
    ],
  }],
});

// A PDF, inline:
{ type: 'file', file: { file_data: 'data:application/pdf;base64,' + base64, filename: 'report.pdf' } }

To read a video with any model, or without choosing one, call the video_analyze tool through /api/v1/query or MCP: a public link and a question in, text with timestamps out, up to 5 minutes, billed at the real cost plus markup.

97 models

modelcontextvisionvideofiletoolscredits/1M incredits/1M out
openai/gpt-5-nano400,000yes—yesyes1671,333
openai/gpt-5-mini400,000yes—yesyes8336,667
openai/gpt-5.6-luna1,050,000yes—yesyes6674,000
openai/gpt-4.1-mini1,047,576yes—yesyes1,3335,334
openai/gpt-4.1-nano1,047,576yes—yesyes3331,333
google/gemini-2.5-flash1,000,000yesyesyesyes1,0008,334
google/gemini-3-flash1,000,000yesyesyesyes1,66710,001
google/gemini-3.5-flash1,000,000yesyesyesyes5,00030,002
google/gemini-3.6-flash1,000,000yesyesyesyes2,50012,501
google/gemini-3.7-flash1,000,000yesyesyesyes2,50012,501
minimax/minimax-m3512,000yes—yesyes1,0004,000
google/gemini-4-argon1,000,000yesyesyesyes6,66733,336
google/gemini-4-carbon1,000,000yesyesyesyes6,66733,336
google/gemini-3.8-flash1,000,000yesyesyesyes2,50012,501
google/gemini-3.5-flash-lite1,000,000yesyesyesyes1,0008,334
alibaba/qwen3.7-flash991,000yes——yes100433
alibaba/qwen3.8-flash991,000yes——yes5001,567
alibaba/qwen3.5-flash1,000,000yes——yes3331,333
alibaba/qwen3.5-plus1,000,000yes——yes1,3338,001
minimax/minimax-m2205,000———yes1,0004,000
openai/gpt-5400,000yes—yesyes4,16733,336
openai/gpt-5.1-thinking400,000yes—yesyes4,16733,336
openai/gpt-5.6-sol1,050,000——yesyes13,33466,672
openai/gpt-5.6-terra1,050,000——yesyes6,66740,003
anthropic/claude-sonnet-4.51,000,000yes—yesyes10,00150,004
google/gemini-2.5-pro1,048,576yesyesyesyes4,16733,336
anthropic/claude-opus-4.5200,000yes—yesyes16,66883,340
openai/gpt-5.2400,000yes—yesyes5,83446,670
openai/gpt-5.2-pro400,000yes—yesyes70,006560,045
openai/gpt-5.3-codex400,000yes—yesyes5,83446,670
openai/gpt-5-pro400,000yes—yesyes50,004400,032
openai/gpt-5.51,000,000yes—yesyes16,668100,008
openai/gpt-5.5-pro1,000,000yes—yesyes100,008600,048
anthropic/claude-sonnet-4.61,000,000yes—yesyes10,00150,004
anthropic/claude-sonnet-51,000,000yes—yesyes6,66733,336
anthropic/claude-opus-4.61,000,000yes—yesyes16,66883,340
openai/gpt-6-astra1,050,000yes—yesyes33,336166,680
spacexai/grok-4.6500,000yes——yes6,66720,002
anthropic/claude-fable-5.11,000,000yes—yesyes33,336166,680
anthropic/claude-fable-5.21,000,000yes—yesyes26,669133,344
google/gemini-3.1-pro-preview1,000,000yesyesyesyes6,66740,003
zai/glm-5202,800———yes3,33410,668
zai/glm-5.1202,800———yes4,66714,668
zai/glm-5.21,000,000———yes4,66714,668
zai/glm-5.31,000,000———yes4,66714,668
deepseek/deepseek-v4.1-flash-10171,048,576yes——yes1,0004,000
deepseek/deepseek-v4.1-flash1,048,576yes——yes1,0004,000
particle/particle-11,048,576yes——yes4171,667×2 peak
inception/mercury-31,000,000———yes3331,167
inception/mercury-2.5260,000———yes133500
zai/glm-5.3-flash1,000,000yes——yes5001,667
alibaba/qwen3.7-max991,000———yes8,33425,002
alibaba/qwen3.8-max262,144yes——yes6,66720,002
alibaba/qwen3.8-max-0902991,000yes——yes6,66720,002
mistral/mistral-large-41,048,576yes——yes2,3347,001
alibaba/qwen3.8-27b262,144yesyesyesyes2007,334
xiaomi/mimo-v2.6-flash1,048,576yesyes—yes467933
xiaomi/mimo-v2.6-pro1,048,576yesyes—yes1,4502,900
spacexai/grok-4.7500,000yes——yes6,66720,002
stepfun/step-5-preview1,048,576yes——yes3,3349,001
zai/glm-5.3-flashx1,000,000yes——yes1,2334,167
alibaba/qwen3.8-omni-flash1,000,000yes——yes5001,567
openai/gpt-6-luna1,050,000yes—yesyes3331,667
openai/gpt-6-sol1,050,000yes—yesyes6,66733,336
openai/gpt-6.1-terra1,050,000yes—yesyes3,33416,668
openai/gpt-6.1-sol1,050,000yes—yesyes6,66733,336
anthropic/claude-sonnet-5.51,000,000yes—yesyes6,66733,336
anthropic/claude-opus-5.51,000,000yes—yesyes13,33466,672
anthropic/claude-haiku-5.51,000,000yes—yesyes3331,667
anthropic/claude-haiku-4.5200,000yes—yesyes3,33416,668
moonshotai/kimi-k2.5256,000yesyes—yes2,00010,001
moonshotai/kimi-k2.6262,000yesyes—yes3,16713,334
moonshotai/kimi-k2.7-code256,000yesyes—yes3,16713,334
moonshotai/kimi-k3.1-pro1,000,000yes——yes6,66733,336
moonshotai/kimi-k31,000,000yesyesyesyes10,00150,004
deepseek/deepseek-v3.2128,000———yes2,0676,167
deepseek/deepseek-v3.2-thinking128,000———yes2,0676,167
deepseek/deepseek-v4-flash-07311,000,000———yes433867
deepseek/deepseek-v4-flash-vision-exp1,048,576yes——yes7332,167
deepseek/deepseek-v4-pro1,048,600———yes4,40013,201
deepseek/deepseek-v4-pro-08131,000,000———yes2,2006,601×2 peak
meta/llama-3.3-70b128,000———yes2,4002,400
meta/muse-spark-1.31,048,576yes—yesyes4,16714,168
meta/muse-ember1,048,576yes—yesyes3331,667
meta/muse-spark-1.3-contributor1,048,576yes—yesyes333667
meta/muse-spark-1.21,048,576yes—yesyes4,16714,168
meta/muse-spark-1.2-contributor1,048,576yes—yesyes333667
inclusionai/ling-3.0-flash256,000———yes67200
zai/glm-4.6200,000———yes2,0007,334
zai/glm-4.7200,000———yes2,0007,334
openai/gpt-oss-120b131,072———yes3331,667
openai/gpt-oss-20b131,072———yes100467
google/gemini-3.1-flash-image131,072yes—yes—1,66710,001
google/gemini-3.1-flash-lite-image65,536yes—yes—8335,000
google/gemini-nano-banana-2.1131,072yes———5,00025,002
google/gemini-3-pro-image65,536yes—yes—6,66740,003
zai/glm-4.5v66,000yes——yes2,0006,000

Agent runs

Give Automatio a goal and it does the work — routing to the right agents, calling tools, running multi-step — then returns the result. Your key needs the Agent runs scope. idempotencyKey is required: a run takes real actions, so a retry must never start a second one — the same key always returns the same job.

Start a run
curl -X POST https://automatio.ai/api/v1/agent \
  -H "Authorization: Bearer aut_yourkey" \
  -H "Content-Type: application/json" \
  -d '{
    "goal": "Research the top 5 AI coding tools and summarize them",
    "idempotencyKey": "req-2026-07-29-001"
  }'

Returns 202 with a jobId. Poll it for status, result and spend (add "wait": true to block until it finishes instead):

Poll the job
curl https://automatio.ai/api/v1/agent/{jobId} \
  -H "Authorization: Bearer aut_yourkey"

# { "status": "running" | "awaiting_input" | "completed" | "failed" | "cancelled",
#   "result": "...", "creditsSpent": 126 }
# A run that used your Google data answers "result": null with
#   "resultWithheld": "google_data": read that answer in Automatio.

When the agent leaves work running in the background (a long install, a helper task), the job stays running until that work finishes. The job then takes its next turn by itself, under the same key, and reads completed when that turn ends.

creditsSpent is the conversation’s cumulative spend, not what that poll cost — read it, never add it up. Summing it across polls multiplies a run’s spend by the number of times you polled. It is the one billed surface that does not report a per-call automatio.credits_charged, because the quantity is genuinely different.

Start a run with "mode": "interactive" and it can pause to ask you something. The job then reports awaiting_input along with the question, and you answer it — the same run continues, nothing is lost:

Answer a paused run
curl -X POST https://automatio.ai/api/v1/agent/{jobId}/answer \
  -H "Authorization: Bearer aut_yourkey" \
  -H "Content-Type: application/json" \
  -d '{"approved": true, "feedback": "Keep it under 500 words"}'

A run also pauses before something destructive — SQL on the live database, replacing a dataset or a live site, a destructive pod command. Then awaitingInput.kind is approval and awaitingInput.approval says what would happen. Send {"approved": true} to approve it (feedback is not used for an approval), or {"approved": false, "feedback": "..."} to reject it and tell the agent why.

Follow-ups. The start response returns a conversationId. Send it back on a later call — with a fresh idempotencyKey — and that turn runs in the same conversation, so the agent still has the earlier context. Omit it for a one-off.

Continue a conversation
curl -X POST https://automatio.ai/api/v1/agent \
  -H "Authorization: Bearer aut_yourkey" \
  -H "Content-Type: application/json" \
  -d '{
    "goal": "Now dig deeper on the third one",
    "conversationId": "<the id from the first call>",
    "idempotencyKey": "req-2026-07-30-002"
  }'

One run per conversation at a time — a follow-up sent while a run is still going returns 409, and polling always reflects the latest turn. The credit limit on the key caps the whole job — counted across every turn of a conversation, not per turn — on top of your account balance. Once a conversation has spent its ceiling, the next turn is refused with 402 before it starts, and the response tells you both creditsSpent and ceilingCredits.

Long conversations. Every turn sends the whole conversation to the model, so cost grows as one gets longer. Pass historyTurnLimit to send only the most recent N turns. Leave it off — the default — and the agent sees everything, which is what makes follow-ups work; lower it only when the task genuinely does not reach further back.

Your chats and Chrome

A key can also be given access to your own Automatio account, so a program such as Claude Code can see your chats, read them, send a message into one, instruct a canvas, or hand a task to the agent working in your own Chrome. Nothing is on by default. You choose per key under Integrations, API Keys, Automatio API, and for each power you pick Off, Ask me each time (for sending, instructing and Chrome), Only the ones I pick or All of them. For Chrome the last choice reads Automatic: it does not ask. A key set to ask can also see all your chats and canvases, so it can tell you which one it means. Whatever a key starts runs as you and spends your credits, within that key's budgets.

PowerRESTMCP tool
See that chats and canvases exist (titles, dates, whether something is running)GET /api/v1/chats, /api/v1/chats/{id}, /api/v1/canvases, /api/v1/canvases/{id}list_chats, get_chat, list_canvases, get_canvas
Read what was saidGET /api/v1/chats/{id}/messages, and /api/v1/chats/{id}/messages/{messageId} for the rest of one long messageread_chat, read_message_rest
Send a message into a chat, or into the run already working therePOST /api/v1/chats/{id}/messagessend_message
Read and answer the agent's question or plan, in a chat you let the program work inGET /api/v1/chats/{id}/question, POST /api/v1/chats/{id}/answerread_chat_question, answer_chat
Stop the run in a chat (under the power to send)POST /api/v1/chats/{id}/stopstop_chat
Wait for a chat to change: its state or a new message (under the power to read)GET /api/v1/chats/{id}/waitwait_for_chat
Read the tables a chat stored (the rows its tools returned): list them, or run one SELECT over them (under the power to read)GET /api/v1/chats/{id}/data, POST /api/v1/chats/{id}/dataread_chat_data
Start a new chat with a first message (a key that may send into all chats)POST /api/v1/chatsstart_chat
What one run has spent: add executionId to the chat lookupGET /api/v1/chats/{id}?executionId=…get_chat
Instruct or stop a canvasPOST /api/v1/canvases/{id}/messages, POST /api/v1/canvases/{id}/stopinstruct_canvas, stop_canvas
Hand a task to the agent in your own Chrome, follow it, add to it or stop itPOST /api/v1/browser/tasks; GET /api/v1/browser/tasks/{id}; GET and POST /api/v1/browser/tasks/{id}/messages (read it, add to it), GET …/messages/{messageId}; POST /api/v1/browser/tasks/{id}/stopstart_browser_task, get_browser_task, read_browser_task, read_browser_task_rest, steer_browser_task, stop_browser_task
Read your answer to a question the key put to youGET /api/v1/requests/{id}check_request

Reading, sending and instructing all need the key to see the thing first. Sending, instructing and the Chrome task also need the key to be allowed to run agents. A canvas is instructed through its own endpoint; a chat that sits on a canvas cannot be sent into.

Send a message

idempotencyKey is required (8 to 80 letters, digits, dots, dashes, underscores or colons): repeating it is the same message, never a second one. The text is at most 25,000 characters, and characters nobody can see are removed from it before you are asked to approve it. The answer is 202 either way; the run takes minutes, and the reply is read from the chat afterwards. In an idle chat the message starts the run that answers it (started). While the agent is already working in the chat, the message goes onto that run's queue instead (queued, with the runId it joined): the run reads it at its next step, the way a message you type while it works is read, and if that run ends without reading it, a new run under the key answers it. A run that was stopped or failed leaves it in the chat unanswered. The answer's tools lists the most the run can have: by default research and your documents, or the list you gave the key, and none in a chat you set to run with tools off. A message joins a run the key did not start (your own) only in a chat where you let the key work (below); it is then read with that run's own tools, so tools is null. Elsewhere it answers 409 until that run has finished. A key's list cannot hold the tools that edit a project's files, run a shell in it or deploy it, so for a code change the instruction is given in the chat itself, or the key works in a chat you let it work in.

Send into a chat
curl -X POST https://automatio.ai/api/v1/chats/{chatId}/messages \
  -H "Authorization: Bearer aut_yourkey" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Summarise today and list what is left.", "idempotencyKey": "send-2026-11-06-001" }'

# The key may send here:
#   { "status": "started", "tools": ["web", ...], "chatId": "...",
#     "executionId": "...", "runId": "...", "replay": false }
# The agent was already working in that chat:
#   { "status": "queued", "tools": null, "chatId": "...", "messageId": "...",
#     "runId": "...", "replay": false, "message": "The agent was already ..." }
# The key is set to Ask me each time (nothing is sent until you say yes):
#   { "status": "pending", "id": "...", "expiresAt": "...", "tools": [...],
#     "message": "The owner has been asked, ..." }

A pending answer means you were asked, in the app and in a notification. Poll GET /api/v1/requests/{id} (the check_request tool) every few seconds. It reads pending until you answer, then allowed for a moment, then started (with result.queued when the message joined the run already working there), denied, expired (ten minutes pass without an answer), failed (allowed, but it could not start) or cancelled (the key was revoked first). Only the key that asked can read the answer.

A chat whose agent waits for your own answer to a question, a plan or an approval answers 409 (waiting_for_owner): a key never answers those for you. So does a run the key cannot join (run_in_progress: its state could not be checked, or a key with its own tool list met a run it did not start), and one whose queue is full (queue_full, 429).

A send or a task the key starts keeps its place among the key's open runs only while the key polls it: call GET /api/v1/chats/{id} (get_chat), GET /api/v1/chats/{id}/wait (wait_for_chat) or GET /api/v1/browser/tasks/{taskId} (get_browser_task) at least once every two hours while the run works or waits for your answer. Reading the transcript is not a poll and keeps no place.

Stop a chat, wait for a chat

POST /api/v1/chats/{id}/stop takes no body, asks nothing and is safe to repeat. It stops the run the way your own Stop does: the run ends and the messages queued behind it go with it. A key you gave the chat (picked, or all of them) stops whatever run is in it, yours included; a key set to Ask me each time stops only the runs it started (otherwise 403 not_own_run). It answers stopped: true when a run was stopped, stopped: false when nothing was running, and 502 stop_failed when the stop did not go through.

GET /api/v1/chats/{id}/wait holds until the chat changes, so a program follows a run without reading the chat over and over. Pass the cursor of the previous answer (without one the answer is immediate). It answers as soon as the chat's state (idle, running, waiting) or its newest message differs from that cursor, or after timeoutSeconds (at most 45) with changed: false. stateOnly=true counts only the state, not each message a run writes. waitingOnOwner and waitingFor (question, plan or approval) say the agent waits for you. It follows the rules of reading the chat, costs no credits, and a key holds at most 3 waits at once.

Wait for a chat
curl "https://automatio.ai/api/v1/chats/{chatId}/wait?stateOnly=true&cursor={cursor}" \
  -H "Authorization: Bearer aut_yourkey"

#   { "chatId": "...", "changed": true, "state": "idle",
#     "waitingOnOwner": false, "waitingFor": null,
#     "cursor": "...", "waitedMs": 18342 }

Instruct a canvas

POST /api/v1/canvases/{id}/messages takes the same body and gives the canvas's master chat an instruction. It answers started with the canvasId, chatId and runId, or pending as above. The master then starts its workers with your tools and connected accounts, or only the tools on the key's list when it has one (the answer's tools; null means your own), and everything it starts spends your credits up to the key's per-run budget, counted over the whole canvas. Follow the work with GET /api/v1/canvases/{id}, which shows each node's state. POST …/stop takes no body, asks nothing and is safe to repeat: a key that was given the canvas stops all of its work, a key that may only ask stops the work its own instructions started. A team's canvas is never reachable.

A task in your Chrome

POST /api/v1/browser/tasks takes task (a refusal names the length limit), an optional startUrl and an idempotencyKey. The agent works in your own signed-in Chrome through the Automatio extension, so remote control must be switched on there and the extension must be a recent version; otherwise the task is refused with 409 (chrome_not_connected or extension_too_old). A key set to Ask me each time shows you the words and waits for you (pending, then result.chatId on the request is the task id); a key set to Automatic starts at once with taskId. startUrl must be an http or https address with no user name or password in it, and a key can start only a limited number of tasks an hour. Poll GET /api/v1/browser/tasks/{taskId} for running, completed, failed or cancelled (a task never stops to wait for an answer), the agent's answer (a long one is cut; the whole of it is in your chat) and what it spent. GET …/messages reads what the task said, its own turns only, the way a chat is read. POST …/messages with text and an idempotencyKey adds to a task that is still running, under the same rule as starting one: at once for a key set to Automatic or a task you allowed messages to, otherwise you are asked; a task that has ended answers 409, and a message the task ended without reading is listed in its unreadMessages. POST …/stop takes no body and never asks. Only the key that started a task can read, add to or stop it.

A chat you let a program work in

In a chat's Agent panel, Your AI programs lists your keys and connections that reach that chat, each with a switch. Switched on, a run that program starts there has your own tools, code editing and deploys included (the send answers tools: null), and it may read and send there although the chat used your Google data, for the kinds of Google data you allowed by name when you switched it on. A kind the chat uses later stays closed until you allow it too. For an API key, the same box lets you allow that program all your Google data in every chat it can reach, so no chat asks again (an app that signed in to Automatio is asked chat by chat); that opens reading and sending there, not the tools or the answering, which stay each chat's switch. There the program can also answer what the agent asks: GET …/question gives the question or the plan, and POST …/answer with the toolCallId answers a question with text, or a plan with approve: true or text saying what to change. The answer shows in the chat as the program's words. Approvals stay yours: a live database change, publishing to production, a message to people or a payment still asks you. The switch never makes a key reach a chat it could not reach before.

What stays closed

Whatever the key was given, it never reaches a hidden or temporary chat, an API job, a chat-app conversation or a team's canvas; those answer 404, the same as a chat that does not exist, and a list leaves them out. It can neither read nor send into a chat that used your Google data (403, with the reason) until you allow that Google data for it in the chat, and an agent run whose conversation used it answers without its words (result is null and resultWithheld says why). A chat that other people can write to cannot be sent into. A transcript read shows text turns and one line for each tool call, never a tool's result, redacted, and another person's words in a shared chat come back withheld. List endpoints take limit and cursor. Chats also take q (a title contains this text) and canvasId.

Errors

Failures return a JSON body with an error string and a machine-readable code (insufficient_credits, upstream_error). Over MCP the same conditions come back as a tool result with isError: true rather than a transport-level failure.

StatusMeaning
202Agent run accepted — poll the job for the result
400Unknown tool/model or malformed body
401Missing or invalid API key
402Out of credits, or the key's budget is exhausted
403Tool, model or scope not granted to this key
404A chat, canvas or task this key was not given, or that does not exist
409Agent job is not awaiting input, or already finished; a canvas is busy; a chat or canvas waits for your own answer; a chat's run cannot take a key's message; a chat is on a canvas; a Chrome task has ended, or Chrome is not connected; an idempotencyKey was used for different words
429Rate limit exceeded (see Retry-After header)
502Upstream model call failed, or a stop could not be carried out
503A check could not finish in time, or Chrome tasks are switched off here; try again

Tools

34 tools, callable over REST and MCP. Prices are per successful call.

Looking for worked examples and the limits of a specific endpoint? Each one has its own guide under API guides.

Apify

Crypto

Media

Real estate

Reddit

Twitter

Web

YouTube