Create a new agent

Create a new AI agent with specified configuration. Requires authentication via Clerk JWT or API key.

Authentication

AuthorizationBearer

Clerk JWT token or OrtaVox API key (sk_live_… or pk_live_…)

OR
x-api-keystring

OrtaVox API key (alternative to Bearer token)

Request

This endpoint expects an object.
namestringRequired
Agent name
transcriberobjectRequired
modelobjectRequired
voiceobjectRequired
max_call_durationdoubleOptionalDefaults to 600

Response

Agent created successfully
dataobject or null
errorany or null
metaobject or null

Errors