Create an agent
Authorizations
Your AssemblyAI API key in the Authorization header. The raw key works directly; a Bearer prefix is also accepted.
Body
Display name for the agent.
"Support Assistant"
The agent's instructions. Write voice-first.
"You are a friendly support agent. Keep responses under two sentences."
Spoken on connect; sent straight to TTS. Omit to listen first.
"Hi, how can I help?"
Audio input configuration. Defaults to PCM at 24 kHz if omitted.
Audio output configuration. Defaults to PCM at 24 kHz with the agent's voice.
Tools the agent can call.
Response
Agent created.
A stored voice agent.
"7ad24396-b822-4dca-871a-be9cc4781cf9"
"Support Assistant"
Audio input configuration. Defaults to PCM at 24 kHz if omitted.
Audio output configuration. Defaults to PCM at 24 kHz with the agent's voice.