curl -X POST https://api.60db.ai/agents/simulations/RUN_ID/draft \
-H "Authorization: Bearer your-api-key"
Agent Reliability
Create Simulation Draft
Make an unpublished draft of the agent from a finished run
POST
/
agents
/
simulations
/
{runId}
/
draft
curl -X POST https://api.60db.ai/agents/simulations/RUN_ID/draft \
-H "Authorization: Bearer your-api-key"
AI Simulation needs an active Pro or Business plan. On another plan, every simulation endpoint returns
403 POLICY_DENY.Request
Headers
Path
The simulation run
run_id (UUID) from Start a simulationResponse
201 Created.{ "draft_id": "d_8f2", "base_version": 7, "published": false,
"suggestion": { "target": "script", "cause": "timed_out", "instruction": "Review the evidence for timed_out and edit this draft before rerunning it." } }
published is always false.
Errors
| Status | Code | Meaning |
|---|---|---|
| 403 | POLICY_DENY | Your role cannot do this, the workspace is not on an active Pro or Business plan, or the API key lacks the agents scope |
| 404 | RUN_NOT_FOUND | No run with this ID in your workspace |
Example
curl -X POST https://api.60db.ai/agents/simulations/RUN_ID/draft \
-H "Authorization: Bearer your-api-key"