> ## Documentation Index
> Fetch the complete documentation index at: https://docs.60db.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Simulation Draft

> Make an unpublished draft of the agent from a finished run

> [!NOTE]
>
> AI Simulation needs an active **Pro** or **Business** plan. On another plan, every simulation endpoint returns `403 POLICY_DENY`.

Make a draft from a run. The voice service reads the failures and suggests a change. The draft is **never published**: your live agent does not change until you save the agent yourself.

Edit the draft with [Update simulation draft](https://docs.60db.ai/api-reference/agents/update-simulation-draft.md). Test it with [Re-run a simulation](https://docs.60db.ai/api-reference/agents/rerun-simulation.md).

## Request

### Headers

**Authorization** `string` *required*

Bearer token with your API key (scope `agents`)

### Path

**runId** `string` *required*

The simulation run `run_id` (UUID) from [Start a simulation](https://docs.60db.ai/api-reference/agents/start-simulation.md)

## Response

**201 Created**.

```json theme={null}
{ "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

```bash cURL theme={null}
curl -X POST https://api.60db.ai/agents/simulations/RUN_ID/draft \
  -H "Authorization: Bearer your-api-key"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.