v53

OpenAPI 3.1.0MITraw.githubusercontent.com2026-08-039357238.7 KB
Legs

Attach a VAPI agent to a leg

Bridges audio bidirectionally with a VAPI conversational AI agent. Standalone legs use direct audio; legs in a room use mixer taps.

post/legs/{id}/agent/vapi

Request body

assistant_idstring required

VAPI assistant ID

first_messagestring

Override the agent's first message

variable_valuesobject

Key-value pairs passed as VAPI variable values (assistantOverrides.variableValues)

api_keystring

API key override (falls back to VAPI_API_KEY env var)

Response

Agent started

instance_idstring

Instance identifier

statusstring required