last: null; run it with POST .../tests/runs.
Endpoint
Required scope
agents:write
Path parameters
Body
Example request
curl
Response
201 Created
400 Bad Request
A missing required field,max_turns out of range, a route_ids entry that is not an ObjectId, a field over its limit, or an unknown property.
404 Not Found
AGENT_NOT_FOUND when the agent belongs to another project of the company, UPSTREAM_ERROR (message AGENT_NOT_FOUND) when no agent has that id in the company. route_not_found when a route in route_ids is not from this agent.
401 Unauthorized
Missing, invalid, revoked, or expired token.403 Forbidden
The token does not have theagents:write scope.
502 Bad Gateway
The agent service is unreachable.Operational notes
- Write
pass_ifas something a reviewer can check in the conversation — what the agent says or does, not what it thinks. customer_goalsteers the simulated customer, so state what they want, not how the agent should answer.