Skip to main content
POST
AI Simulation needs an active Pro or Business plan. On another plan, every simulation endpoint returns 403 POLICY_DENY.
Run the same stories again and compare the new run with this run (the baseline). This is how to check a fix: a new simulation writes new stories, so its pass rate says nothing about a fix. Send draft_id to run a draft of this run, or agent: "current" to run the agent as it is now. With agent: "current", 60db copies the agent’s live instructions into a fresh draft and re-runs the stories of the original run (a re-run of a re-run does not multiply calls). Only the instructions are current: voice and tools stay as they were when the run was made. While another simulation runs, the re-run waits in the queue (state: "queued"). It spends credits like a new run and goes through the same balance check and start rate limit.

Request

Headers

string
required
Bearer token with your API key (scope agents)
string
required
application/json

Path

string
required
The simulation run run_id (UUID) from Start a simulation

Body

string
The draft made from this run. Required unless agent is sent
string
current: run the agent as it is now. Do not send draft_id with it. repeats defaults to 3
number
The credit ceiling. Default: the estimate for all calls. The run stops when it reaches this many credits and ends in the state stopped_budget with a partial report. Must be more than 0
number
Required with max_credits. Your estimate of the credits one simulated call uses. Must be more than 0. 60db checks your balance for the lower of max_credits and estimated_credits_per_call × the number of calls before anything is queued
integer
1 to 10. Copies of every story, so one call does not decide a story. Default 1, or 3 with agent: "current"
string
default:"manual"
manual, or ci. ci is only for API keys. Dashboard sessions that send ci get 400
integer
1 to 20. How many simulated calls run at once
integer
At least 1. Stop after this many calls
integer
At least 1. Stop after this many minutes of calls
string
A run to compare with

Response

201 Created.
state is running, or queued with queue_position (1 = next) while another simulation runs.

Errors

Example