Skip to main content
A task is one job on a screen, in plain language: “Find the warranty end date for serial PF2ABCDE”, “Change the delivery address on order 4417”, “Turn on Dark Mode”. Describe the outcome, not the clicks. The agent looks at the screen, acts, looks again, and repeats until it is done or needs a person. Tasks start two ways:
  • An agent starts them in a conversation, on its own cloud browser or one of its linked computers, when an answer needs a website or a desktop app. See tasks from a conversation.
  • You start one on a session: a customer’s computer they connected with an invite link, or a cloud browser session of your own. See Run a task on a computer.
Either way it’s the same task: the same events, guardrails, recording and replay. Start one yourself with POST /v1/sessions/{session_id}/tasks. The prompt can be up to 8,000 characters. If the agent has a scope, the task is checked against it first, and fails if it is clearly something else. If Eager can’t run the agent’s model at the moment, starting it returns 503 with error.code: "model_unavailable": choose another model for the agent.

Agent version and who started it

A task runs the agent’s published version, unless you pass agent_version when starting it: "draft" runs the agent’s unpublished draft, to try changes before publishing them, and a number runs that earlier version. A version the agent doesn’t have is a 404. Only admins and API keys can pick a version, since a draft or an older version can have looser guardrails: anyone else gets a 403 (code: "version_not_allowed").
  • agent_version is the version the task runs, fixed when it starts: publishing while it runs changes the next task. It’s null when the task names no agent.
  • agent_draft is true when the task runs the agent’s draft. agent_version is then the version that was published at the time.
  • created_by is who started the task: a person in the console ({ "type": "user", "email" }) or an API key ({ "type": "api_key", "key_id", "name", "prefix" }). It’s null for a task started with a session token.

Status lifecycle

done is true for completed, failed and stopped, and nothing changes after that.

Events

Everything a task does is an event with an increasing cursor. Follow them with GET /v1/tasks/{task_id}/events?after={cursor}&wait_ms=25000, or fetch them all with GET /v1/tasks/{task_id}?include=events.
wait_ms holds the request open (up to 55,000 ms) until there is at least one new event, the task ends, or the time runs out. An empty data array just means nothing happened yet; call again with the same after.

Questions and approvals

Every task has a conversation, named by its conversation_id: a task an agent starts is in that agent’s conversation, and a task you start gets one of its own, with its agent, holding the task (titled “Task: ” and the start of its goal, and listed with the agent’s conversations only while something in it waits for someone). When the agent needs a person, it asks there. The question or approval is an item of the conversation (question or approval), the task is paused until it’s decided, and your webhook gets conversation.question_asked or conversation.approval_required. Once it’s decided, the same task carries on. Time paused uses no tokens. Questions are for things only a person knows: which account, which file, which of two printers.
options are suggestions, and may be empty. The answer is free text, up to 4,000 characters (longer answers are cut there). Answer it in the task’s conversation:
Questions can be answered on the customer’s screen. Unless the agent turns it off (its customer_answers setting), the question also appears in the desktop app with its options, and the customer can answer it there. customer_can_answer is true when they can. So you can relay the question in your chat, or simply wait for the customer to answer it on screen. The first answer is used: a later one gets 409 conflict with code: "already_decided", and decided_by says who got there first:
Treat that as done, not as a failure: the task already has its answer and carries on. Approvals come before anything consequential or irreversible: purchases, sending messages, deleting data, submitting forms, changing settings, entering personal data. action says exactly what the agent is about to do. When the agent’s guardrails hold a step for approval, action is Eager’s own description of it, such as Click “Place order” in Safari (shop.example.com).
Approvals can be decided on the customer’s screen too. Unless the agent turns it off (its customer_approvals setting), the request also appears in the desktop app, and the customer can allow it or not there. customer_can_approve is true when they can. As with questions, the first decision is used, and a later one gets 409 with code: "already_decided". risk is low, medium or high. decision is approve or deny, and the optional note (up to 500 characters) is passed to the agent, whoever decided. When the agent’s own approval names a category (it asks to send something), approving it also lets the task do one step of that kind without Eager asking again, and the request says so. When you deny an approval the agent asked for, it is told not to do that and carries on another way. The model can also raise its own safety checks, which arrive as approvals with risk: "high"; denying one of those stops the task. It answers with the request, decided: { "object": "decision", "approval": { …, "decision": { "decision": "deny", "by": { "type": "team", "key_id": "key_…" }, "at": "…", "note": "…" } } }. by.type is team (your team: an API key’s key_id, or a member’s email), person (the customer, in the app), timeout, auto or refused. The task’s approved and denied events say the same in its timeline, and the conversation.question_answered and conversation.approval_decided webhooks carry it.
  • POST /v1/conversations/{conversation_id}/decisions decides as your team, in any conversation, with no agent named: it’s the way for a task you ran without an agent. It answers with the decision at once. It also takes an A2UI action on the request’s surface, as the console sends it.
  • POST /v1/agents/{agent_id}/responses with conversation_id and approval or answer decides the same way, and also streams the reply that carries on, when a reply was paused for it.
  • POST /v1/tasks/{task_id}/respond no longer decides anything: it answers 409 conflict with code: "decide_in_conversation", the task’s conversation_id and agent_id, and the request’s approval_id or question_id.
An approval waits until someone decides it, unless the agent has an approval_timeout_minutes guardrail: then an approval nobody decides in that time is denied, by timeout. A paused task holds its computer or browser for up to 30 minutes. A task you started that’s still waiting then is stopped; one an agent started lets go, and starts again once its step is approved (allowed that one step, once: anything else asks again). Denied instead, the agent hears it was denied. In auto mode nothing waits for approval: those steps are approved automatically, each recorded as an approved event with answered_by: "auto". In unattended mode they are refused. Questions wait for an answer as usual. Decide only what’s open. A task you started closes what it asked when it ends (“The task ended.”), so deciding it later gets 409 with already_decided; one still open on an ended task gets 409 with code: "not_pending". An id the conversation doesn’t have is a 404.

Tasks from a conversation

When an agent runs run_browser_task or run_desktop_task in a conversation, it starts an ordinary task on the conversation’s cloud browser or one of its linked computers, with the goal it wrote as the prompt.
  • metadata has the conversation_id and response_id, so GET /v1/tasks?q= and your webhooks lead back to the conversation. created_by is whoever sent the message.
  • Nobody is at the screen, so it never asks questions: it says in its result what it needs, and the agent asks the person in the chat.
  • With the agent’s guardrails in supervised mode, a step that needs approval is handed back to the conversation: the task pauses, and so does the reply (requires_action), with an approval item for exactly that step. Once it’s decided, the same task carries on. See Approvals.
  • It counts toward the org’s limit on tasks at once; at the limit, the agent waits up to a minute for room.
  • It’s billed for its tokens like any task, apart from the reply’s own tokens.

Idempotency with request_id

Send a request_id of your own (up to 200 characters) when starting a task. If the same request_id was already used on that session, you get the existing task back instead of a new one, whatever its status. Use it so a retried request, after a timeout or a crash, doesn’t run the job twice. Use a new request_id when you do want to run it again.

One task at a time per computer

A computer runs one task at a time. Starting a task while another runs returns 409 conflict, with the running task’s id in error.active_task_id. Wait for it to finish, or stop it with POST /v1/tasks/{task_id}/stop. The whole org also has a limit on tasks running at once: 1 until the org first adds funds, then 10. Past that limit, starting a task returns 429 rate_limit with error.code: "concurrency_limit". See Errors.

Stopping

POST /v1/tasks/{task_id}/stop stops the task right away and returns it, with interrupted: false if it had already finished. The customer can stop it too, from the banner or with the keyboard shortcut. See what the customer sees. A task also fails when it reaches its agent’s limits without finishing: max_steps model turns (150 by default) or max_minutes of running time (no limit by default). See guardrails. Break long jobs into several tasks.

Billing

A task is billed for the tokens its model uses: each step, and each guardrail check that asks the model, at the price of the agent’s model. It’s paid from the org’s prepaid balance as it runs. See Billing for every model’s prices, the balance, and what happens when it runs out.
  • model and effort are the model and level the task runs at, fixed when it starts. Changing the agent affects the next task, not one already running. Tasks from before agents had a model have model: null.
  • active_seconds is the running time so far.
  • usage is what the task’s model calls have used so far: input_tokens (all input, cached and written included), cached_tokens, cache_write_tokens, output_tokens and reasoning_tokens (how much of the output was thinking). It’s null before the first model call, and for tasks from before 2026-10-18.
  • cost_cents is what the task took from the balance, in US cents: its tokens at the model’s price, rounded up to a whole cent once per task. It’s set when the task ends (null until then).
Time spent waiting for an answer or an approval uses no tokens, so a slow reply from a person doesn’t cost anything. Starting a task with an empty balance is a 402 (why, and how to fix it); if the balance runs out while a task runs, it carries on for a short while for auto top-up, then stops.

Listing

GET /v1/tasks lists tasks newest first, filtered by session_id, agent_id or status, and q searches them. Each has recording.frames, the number of recorded screens. Eval machines’ tasks are left out unless you pass include_evals=true or their session_id. See pagination. GET /v1/tasks/{task_id} also has procedures: the procedures the task followed, each with its id, revision, title and how sure the lookup was (confidence). Starting a task while Eager is restarting for an update can return 503 with code: "restarting": it’s safe to send again (with the same request_id). Who started and stopped each task, and who decided each approval in its conversation, is also in the org’s audit log. A session’s history there includes its tasks.