Skip to content

Dispatch the account's managed agent into a LiveKit room with caller-supplied MCP skills.

POST
/api/v1/agent-dispatches

Requires the agents:dispatch scope (403 otherwise). Ensures the account’s Parivox-managed agent worker is running and creates a LiveKit agent dispatch into the named room on the account’s own LiveKit project (custom LiveKit configuration is required). The caller’s mcpServers are merged into the resolved persona; entries declared on the marketplace persona win name collisions. If a dispatch for the agent already exists in the room it is reused (200) unless replaceExisting is true.

Media typeapplication/json
object
roomName
required

Room on the account’s LiveKit project. Your backend mints participant tokens for it.

string
<= 128 characters
agentId
required

Marketplace persona to load (system prompt, voice, runtime config).

string
mcpServers

MCP servers you host; the agent discovers and executes their tools during the session.

Array<object>
<= 8 items
object
name
required
string
<= 64 characters
url
required

HTTPS URL of your MCP server.

string
headers

Headers sent on every MCP request — supply a short-lived, session-scoped credential here.

object
key
additional properties
string
transport
string
Allowed values: http sse streamable_http
timeoutSeconds
number
<= 60
llmInstructions

Guidance injected into the agent’s prompt about when to use this server’s tools.

string
<= 2000 characters
hostIdentity

Participant identity the agent treats as the primary human. Defaults to “external-dispatch”.

string
<= 128 characters
displayName
string
<= 120 characters
context

Opaque passthrough delivered to the agent session as jitContext.

object
key
additional properties
any
replaceExisting

Delete any existing dispatch for this agent in the room before creating a new one.

boolean

Existing dispatch reused: { dispatchId, …, reusedExistingDispatch: true }.

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Dispatch created: { dispatchId, roomName, agentName, workerStatus, reusedExistingDispatch: false }. workerStatus may be “starting” on a cold start or right after a platform update replaced your account’s worker; it self-resolves.

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Validation error (unknown fields, invalid mcpServers entry, headersSecretArn supplied, non-HTTPS URL, invalid agentId).

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Missing or invalid developer key.

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Account is not configured for external dispatch (custom LiveKit configuration required).

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Rate limit exceeded.

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}