Create Agent

Create a new agent.

An agent represents an AI persona (Support Bot, Sales Agent, etc.) that can have phone numbers attached to it.

voiceMode: “webhook” (default) forwards transcripts to your webhook. “hosted” uses a built-in LLM with systemPrompt (no webhook needed).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
descriptionstring or nullOptional
voiceModestring or nullOptional
systemPromptstring or nullOptional
beginMessagestring or nullOptional
voicestring or nullOptional

Response

Successful Response
idstring
namestring
descriptionstring or null
voiceModestring
voicestring
createdAtdatetime
systemPromptstring or null
beginMessagestring or null
numberslist of objects or null

Errors