Skip to main content

Error shape

Every /v1 error has the same shape, with an HTTP status to match:
type is stable and meant for your code. message is written for a person and may change; log it or show it, but don’t match on it. Some errors add fields, such as active_task_id above, code and decided_by when a question or approval was already decided, or a code saying why something can’t start (such as insufficient_balance, concurrency_limit, browser_limit or attachment_not_supported). Unlike message, code is stable.

Common causes and fixes

400 invalid_request

  • "prompt" (string) is required: send a non-empty prompt when starting a task.
  • Metadata rejected: metadata must be an object with up to 50 keys, keys up to 40 characters, and string values up to 500 characters. Numbers and nested objects aren’t allowed; send "42", not 42.
  • "input" is the message, as text.: send a non-empty input (up to 8,000 characters) to /responses, unless the message carries attachments or answers a form.
  • Attachment refused (code: "attachment_not_supported"): the agent can’t open that kind of file. Every agent opens images, PDFs and text files; anything else needs Run code, on a Claude or GPT model.
  • Agent id rejected: agent_id is 2 to 40 lowercase letters, numbers and dashes, and a few words such as default, api and console are reserved. effort is low, medium, high or null. model is one of the model ids, or null; the message lists them.
  • Guardrail rejected: the message names the key, such as "guardrails.max_steps" is a whole number from 1 to 500. Lists take up to 50 entries of up to 100 characters, sites entries must be host addresses like example.com, and unknown keys are refused. See guardrails.
  • Webhook URL refused: it must be https and resolve to a public address. See Webhooks.
  • Tool rejected: the message names the tool and the field, such as "tools.http[0]".name: start with a letter, then letters, numbers, _ or -, up to 64. An HTTP tool needs a description, its url must be public https, as for webhooks, and its headers can’t carry keys or tokens. See tools.
  • File refused: paths look like /notes/a.md and can’t use . or .., and the file system keeps text, Excel, Word, PowerPoint, PDF and image files. See the file system.
  • Resources rejected: start_url must be an absolute http or https address, and computers entries are { "type": "computer" | "pool", "id" }. See Browsers and computers.
  • agent_version rejected: send a version number, or "draft".
  • A decision without one request: POST /v1/conversations/{conversation_id}/decisions takes exactly one of approval ({ approval_id, decision }, with decision approve or deny), answer ({ question_id, answer }) or action.

401 authentication

Send Authorization: Bearer gh_live_… with an org API key from Settings → API. Check that the key wasn’t revoked, and that you aren’t sending a session token (gh_sk_…), which only works with the older session-token API.

402 payment_required

Starting a task, or sending a message to an agent, when the org’s balance is empty (free credit included). If auto top-up is on, Eager tries it first. error.code says what to fix:
A running task is stopped the same way when its tokens can’t be paid (after a short grace period that isn’t charged); its stopped event says why. See when the balance runs out.

403 permission

The signed-in person’s role is too low, for example a member deleting a session, or running a task on an agent’s draft (code: "version_not_allowed"). API keys act with the admin role, so this comes up mainly with console sign-ins. A connected app like ChatGPT gets a 403 outside sessions and tasks.

404 not_found

The id doesn’t exist in the org the key belongs to. Session and computer ids are codes like K7QM-24XP; task ids start with task_, conversations conv_, responses resp_, uploads upl_, procedures prc_ and pools pool_. A session whose code has expired returns 404 when you start a task on it: create a new session. So does an agent_version the agent doesn’t have.

409 conflict

  • “No computer is connected to this session.” The session’s status isn’t connected. The customer may have quit the app, closed the laptop or lost the network. Wait for session.connected, or ask them to open Eager.
  • “A task is already running on this computer.” One task runs at a time per computer. error.active_task_id is the running task: follow it to the end, or stop it with POST /v1/tasks/{task_id}/stop.
  • “An agent with that address already exists.” Pick another agent_id, or PATCH the existing agent.
  • “There are no unpublished changes to publish.” The agent has no draft. Save one with PATCH /v1/agents/{agent_id}/draft first, or change the agent directly with PATCH /v1/agents/{agent_id}.
  • “Someone published this agent at the same moment.” Two publishes raced. Read the agent again and retry.
  • “An agent can keep up to 1,000 files.” (or 100 MB of files) Delete some of the agent’s files first.
  • “This conversation is already answering.” You answered a form while a reply is still going. Wait for the reply, or cancel it with POST /v1/responses/{response_id}/cancel. (A message sent meanwhile isn’t refused: it’s queued for the reply, 202.)
  • browser_limit: the org already has its limit of cloud browsers open (error.limit, 2 unless raised). Wait for one to close (after 10 minutes without a task), or ask Eager support for more. A conversation’s own browser tasks wait for room instead of failing.
  • agent_working: you tried to take control of a cloud browser while a task acts on it. Wait until it waits on a question or ends.
  • “That question was answered already.” or “That approval was decided already.” (code: "already_decided") Someone decided it first, and theirs is the one used; decided_by says who. type: "person": the customer, on their screen (or a visitor on your website widget). type: "team": someone on your team (another process, or the console). type: "timeout": nobody decided the approval within the agent’s approval_timeout_minutes, so it was denied. type: "moved_on": the person sent a new message instead, or the task ended. Nothing to fix: carry on. See questions the customer can answer and approvals the customer can decide.
  • not_pending: the request’s task has ended, so nothing would act on a decision. Read the task again.
  • decide_in_conversation: POST /v1/tasks/{task_id}/respond decides nothing: questions and approvals are decided in the task’s conversation. Send it to POST /v1/conversations/{conversation_id}/decisions, with the conversation_id from the error.

429 rate_limit

  • Too many requests (see rate limits). Wait and retry with backoff.
  • Too many tasks running at the same time across the org (code: "concurrency_limit"): 1 until the org first adds funds, then 10. Wait for a task to finish, add funds, or ask Eager support for a higher limit.

500 server_error

Retry with backoff. If you start tasks with a request_id, retrying is safe: you get the same task rather than a second one.

503 model_unavailable

Starting a task, or sending a message, to an agent on a model Eager can’t run at the moment. Nothing started and nothing was charged. (On /responses the 503 has no code.)
Choose another model for the agent, in the console under Agents or with PATCH /v1/agents/{agent_id}, and start the task again. Retrying without changing the model gets the same answer.

Tasks that fail

A failed task is not an HTTP error: the task ran and couldn’t finish. error has the reason, for example:
  • the computer disconnected in the middle of a step,
  • macOS was dropping the app’s clicks and typing (a permission problem the app reports and offers to fix with a restart),
  • the task reached its agent’s step or time limit (guardrails.max_steps, 150 by default, or max_minutes),
  • the task was outside the agent’s guardrails.scope, or the scope check couldn’t give a clear answer,
  • the agent has site rules and the computer can’t report page addresses (Windows for now), or the agent has app or site rules and the customer’s desktop app is older than 1.0.20, which can’t check them,
  • on a Mac, the Eager app isn’t allowed Accessibility, so it can’t check the agent’s guardrails,
  • the model’s provider ended it: OpenAI’s safety monitor stopped it, or Claude declined to go on,
  • the server running the task went away and its computer didn’t reconnect within 10 minutes. (Updates and restarts don’t end tasks: a task carries on from its last step once its computer reconnects, which the app does on its own.) Start it again; what it was charged goes back to the balance.
A task stopped because the balance ran out ends stopped, not failed. See when the balance runs out. Likewise, a conversation’s reply that fails still answers 200, with status: "failed" and the reason in error: send the next message as usual. A browser or computer task the agent couldn’t start (no free computer, the org’s browser limit) comes back to the agent as a failed tool result, and the agent tells the person. Retry by starting a new task with a new request_id. A guardrail stops it the same way again, so change the task or the agent’s guardrails first. For recurring failures, the task’s replay_url and GET /v1/tasks/{task_id}?include=trace show what happened; the trace is safe to share with Eager support.

Pagination

Every list returns one page at a time:
  • limit sets the page size, 1 to 100 (default 20). Agents, an agent’s versions and files, and runners came in one page before they paged, and still do when you send neither limit nor cursor.
  • When has_more is true, pass next_cursor as cursor to get the next page. When it is false, next_cursor is null. Cursors are opaque: pass them back as they are.
  • Keep the same filters and search on every page.
  • include=total_count adds total_count: how many match the filters across every page.
  • Sessions, tasks, test cases, test sets, test runs, attempts, your own start states and the audit log are newest first. Conversations are by latest message; a conversation’s items oldest first (limit up to 500, default 100). Agents, computers and pools come by name; an agent’s versions newest first, its procedures by latest change, its files by path; runners Eager’s cloud runners first, then yours.
(gh is the helper from the Quickstart.) Most lists take q, and return only what contains that text (case-insensitive, up to 100 characters). It combines with the list’s other filters, and pages the same way.
To fill category and tag filters, GET /v1/test_cases?include=facets adds facets: every category and tag your test cases use, with how many cases have each.

Rate limits

Past a limit, requests return 429 rate_limit, with a Retry-After header (cloud browsers: 409 browser_limit). Long polls count as one request each, so following a task with wait_ms=25000 uses about 144 requests an hour.