agents array of a task object (see GET /tasks/{id}).
Every request must include an
Authorization: Bearer <token> header. Use a mt_live_ prefixed token for production and a mt_test_ prefixed token for sandbox testing.Agent object
Unique agent identifier, prefixed
agnt_.The task this agent belongs to.
Specialisation of the agent:
researcher, builder, analyst, trader, email, or social.Current state:
idle, thinking, acting, waiting, complete, or error.The tool being executed at this moment, if any (e.g.
web_search, code_exec, send_email).Estimated task completion percentage,
0–100.Approval workflow
Whenautonomy_level is below 100, agents pause and request human approval before taking high-consequence actions such as sending emails, making purchases, or deploying code. The flow works as follows:
- The agent reaches a decision point and transitions to
waitingstatus. - Miteos emits an
approval.requiredevent via webhook (or you can pollGET /tasks/{id}and inspect agent status). - You call
POST /agents/{id}/approve/{approval_id}withapproved: trueorfalse. - If approved, the agent continues. If rejected (and an optional
reasonis supplied), the agent revises its approach.
POST /agents/{id}/pause
Pause a running agent. The agent completes its current atomic tool call (e.g. finishes a web request in flight) and then suspends. UsePOST /agents/{id}/resume to continue.
Path parameters
The unique agent ID to pause (e.g.
agnt_01hwxyz9r4m7nk2tsd6pvqcb).Example request
Example response
POST /agents/{id}/resume
Resume an agent that is currently paused. The agent picks up from where it left off.Path parameters
The unique agent ID to resume.
Example request
Example response
POST /agents/{id}/cancel
Permanently stop an agent. Unlike pause, cancellation cannot be undone — the agent is terminated and any work in progress is discarded. Other agents in the same task continue running.Path parameters
The unique agent ID to cancel.
Example request
Example response
POST /agents/{id}/guide
Send a real-time guidance message to a running or paused agent. Use this to steer the agent mid-task — for example, to correct its approach, add context, or narrow the scope of its work. The agent incorporates your message into its next reasoning step.Path parameters
The unique agent ID to guide.
Request body
The guidance message to deliver to the agent. Write it as a clear instruction or correction, as if speaking directly to the agent.
Example request
Example response
POST /agents/{id}/approve/{approval_id}
Respond to an agent’s approval request. When an agent is inwaiting status with a pending approval, call this endpoint to approve or reject the proposed action. Rejecting with a reason helps the agent understand what alternative approach to take.
Path parameters
The unique agent ID awaiting approval.
The unique approval request ID. This is delivered in the
approval.required webhook event payload and is also visible in the task object.Request body
Set to
true to allow the agent to proceed with the proposed action, or false to reject it.Optional explanation for a rejection. The agent uses this to revise its plan before attempting an alternative approach.
