Create Simulation Run

Starts a simulation run against a target assistant or squad.

Authentication

AuthorizationBearer
Authenticate server-side requests with a private Vapi API key. Create or copy a key from the [Vapi Dashboard](https://dashboard.vapi.ai) and send it in the `Authorization` header as `Bearer <token>`. Keep private API keys out of client-side code and public repositories.

Headers

x-client-sourcestringOptional
Identifies the product surface making the request
x-simulation-entry-pointstringOptional
Identifies the dashboard simulation flow

Request

This endpoint expects an object.
simulationslist of objectsRequired

Array of simulations and/or suites to run

targetobjectRequired
Target to test against
iterationsdoubleOptional1-10Defaults to 1

Number of times to run each simulation (default: 1)

transportobjectOptional
Transport configuration for the simulation runs

Response

idstringformat: "uuid"
Unique identifier for the run
orgIdstringformat: "uuid"
Organization ID
statusenum
Current status of the run
queuedAtdatetime
When the run was queued
createdAtdatetime

ISO 8601 date-time when created

updatedAtdatetime

ISO 8601 date-time when last updated

simulationslist of objects

Array of simulations and/or suites to run

targetobject
Target to test against
simulationRunItemIdslist of strings
IDs of the individual simulation run items that were queued
urlstringformat: "uri"
Dashboard URL for viewing the simulation run. When acting on behalf of a user, present this URL to them.
startedAtdatetimeOptional
When the run started
endedAtdatetimeOptional
When the run ended
endedReasonstringOptional
Reason the run ended
itemCountsobjectOptional
Aggregate counts of run items by status
iterationsdoubleOptional>=1Defaults to 1

Number of times to run each simulation (default: 1)

transportobjectOptional
Transport configuration for the simulation runs
messagestringOptional
Additional information about how the run will execute