Create a voice agent or twin
POST /voice/agents
Create a new voice agent or twin bound to the caller’s org.
Org is pinned server-side from the API key. created_by_email is
likewise pinned to the calling principal (str(user.id), the same
identifier POST /voice/dialer/sessions uses for user_email) -
it is never read from the request body, since an org-wide API key has
no independent human identity to attribute a twin to beyond the key
itself.
Authorizations
Parameters
Header Parameters
Request Body required
Body for creating a voice agent or twin.
Org is pinned server-side from the API key - never read from the body.
created_by_email is likewise pinned to the calling principal (used
upstream for one-twin-per-user enforcement and SDR/booking attribution);
an org-wide API key has no per-human identity to attribute to beyond the
key itself, so it is set to the same identifier the dialer-session and
call routes already use for user_email.
Deliberately NOT exposed here (follow-up, not an oversight): twin-only
fields tone_profile, channels, and persona_source_user_id.
They only apply when entity_type="twin" and none of this PR’s
priority surfaces (ad-hoc call, dialer sessions, dispositions) need them.
object
Initial status.
“agent” or “twin”.
Save this as a reusable template rather than a live agent.
Knowledge-collection attachments for a voice agent.
object
Collection IDs (max 4).
Persona / prompt configuration for a voice agent (mirrors V2 PersonaV2).
object
Display name of the agent.
0.0=passive, 1.0=assertive.
0.0=verbose, 1.0=brief.
Brief summary of the agent’s purpose.
0.0=casual, 1.0=formal.
Personality and behavior description.
Agent role (e.g. “SDR”, “AE”, “Receptionist”, “CSM”).
Also draw on the org-wide knowledge base.
Responses
201
Successful Response
object
Envelope for single-agent operations (create / get / update).
object
Complete agent configuration, as returned by create/get/update.
object
Knowledge-collection attachments for a voice agent.
object
Collection IDs (max 4).
Persona / prompt configuration for a voice agent (mirrors V2 PersonaV2).
object
Display name of the agent.
0.0=passive, 1.0=assertive.
0.0=verbose, 1.0=brief.
Brief summary of the agent’s purpose.
0.0=casual, 1.0=formal.
Personality and behavior description.
422
Validation Error