Skip to main content
POST
Queue Simulation Run Endpoint
Integration Prompt for AI Agents
New: agent_version_idDeprecated: prompt_id. Same uuid, still works. If both are sent and they differ, the request is 400.
Given the simulation ID, and optionally the Digital Human IDs, this endpoint queues a simulation run and returns the run ID.

Headers

X-Organization-Id
string
X-API-Key
string
required

API key required to authenticate requests.

Body

application/json

Queue a simulation run using the simulation's bluejay_as_code_id.

bluejay_as_code_id
string<uuid>
required

Bluejay-as-Code ID of the simulation to run

prompt_id
string<uuid> | null
deprecated

Deprecated. Use agent_version_id. Same uuid, still works.

agent_version_id
string<uuid> | null

Agent version UUID associated with this run

knowledge_base_id
string<uuid> | null

Knowledge base UUID associated with this run

digital_human_ids
string[] | null

Digital human IDs to be used in the simulation

phone_number
string | null

Optional phone number to be used in this simulation run (overrides the agent phone number)

sip_uri
string | null

Optional SIP URI to be used in this simulation run (overrides the agent SIP URI)

livekit_agent_name
string | null

Optional agent name to be used by user's livekit, an empty string will use the default agent

livekit_metadata
Livekit Metadata · object | null

metadata to be passed to the livekit room

pipecat_agent_name
string | null

Pipecat agent name

pipecat_agent_configuration
Pipecat Agent Configuration · object | null

Pipecat agent configuration

pipecat_room_properties
Pipecat Room Properties · object | null

Pipecat room properties

eleven_labs_agent_id
string | null

Optional ElevenLabs Convai agent_id (overrides the agent's eleven_labs_agent_id for this run)

retell_agent_id
string | null

Optional Retell agent_id (overrides the agent's retell_agent_id for this run)

vapi_assistant_id
string | null

Optional Vapi assistant_id (overrides the agent's vapi_assistant_id for this run)

runs_per_digital_human
integer | null

Optional per-run override for how many test_results to spawn per selected digital human.

Required range: x > 0

Response

Successful Response

simulation_run_id
string
required

ID of the created simulation run

simulation_result_ids
string[]
required

IDs of the created simulation results (test results)

agent_id
string
required

ID of the agent associated with the simulation run

status
string
default:success

Status of the response