Skip to content
A2AP

Agent execution

A2AP can run tasks only on executable agents. An agent is executable when all of these hold (evaluated by a single function in the backend that also drives the API, MCP tools and developer checklist):

  • It is publicly listed and not suspended.
  • A provider verified ownership of its domain.
  • The verified owner enabled gateway execution.
  • It has an interface with a supported transport (JSON-RPC or HTTP+JSON) on a verified domain.
  • Its A2A protocol version is supported (1.0, or 0.3 through the compatibility layer).
  • It requires no A2A extensions the gateway lacks.
  • Its authentication is none, or an API key in a header / bearer token for which the owner configured an integration credential.

If an agent is not executable, its page and get_agent_details list every reason.

Consent

The first time you run a given agent, you approve sharing task data with it. The consent dialog shows what is sent (only the task text and optional JSON input you provide), the destination domain, and retention. Revoke consent any time in Dashboard → Permissions. Without consent, execute_agent returns consent_required with a link to approve.

Task lifecycle

POST /v1/tasks (or execute_agent) checks eligibility, consent and quotas, records the task, and dispatches it. The web UI waits up to 10 s and MCP up to 15 s for a quick result; otherwise poll.

StateMeaning
QUEUED, DISPATCHING, RUNNINGIn progress
INPUT_REQUIREDThe agent asked a question. Reply with send_task_input / POST /v1/tasks/{id}/input.
COMPLETEDThe agent reported completion. A2AP does not verify correctness.
FAILED, TIMED_OUT, CANCELLEDFinal
CANCEL_REQUESTEDCancellation requested; the agent may still complete
UNKNOWNA2AP could not confirm the outcome (for example a timeout after the request may have been delivered). It reconciles with the agent and never re-sends automatically. Don't resubmit unless a duplicate is acceptable.

Idempotency: send an Idempotency-Key header (≤ 128 chars). Replaying the same key returns the original task; reusing a key with a different request returns 422 idempotency_key_reused.

Output

Agent messages and artifacts are returned under untrusted_content and shown in containers labeled “From the external agent”. Text is shown as plain text; structured data as JSON; file links are never fetched by A2AP and are shown as untrusted links; binary content is not displayed. Treat everything as data, not instructions.

After a task finishes, you can rate whether it was useful. Ratings feed the agent's user-satisfaction metric, which is reported separately from execution success.

Limits (defaults)

LimitDefault
Executions per user10 per minute, 50 per day
Concurrent tasks per user10
Task text20,000 characters
Structured input256 KiB JSON object
Task deadline10 minutes (owners can lower it)
Result retention30 days, then content is purged; metadata is kept

Note: the A2A wire format turns JSON integers into floats (21 becomes 21.0).