Skip to main content
POST
/
org
/
{org_id}
/
agents
Create agent
curl --request POST \
  --url https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "type": "voice",
  "copy_from_agent_id": "<string>",
  "prompt_template": "<string>"
}
'
{
  "allowed_sip_trunks": [
    "<string>"
  ],
  "background_sound": [
    123
  ],
  "created_at": "<string>",
  "default_functions": [
    "<string>"
  ],
  "extra_config": [
    123
  ],
  "goodbye_config": [
    123
  ],
  "greeting_config": [
    123
  ],
  "id": "<string>",
  "llm_config": [
    123
  ],
  "name": "<string>",
  "organization_id": "<string>",
  "plugins": [
    123
  ],
  "precall_webhook": [
    123
  ],
  "prompt_template": "<string>",
  "public_quota": 123,
  "room_duration_config": [
    123
  ],
  "tools": [
    {
      "config_override": {},
      "description": "<string>",
      "is_enabled": true,
      "method": "<string>",
      "name": "<string>",
      "parameters": [
        {
          "description": "<string>",
          "name": "<string>",
          "required": true,
          "type": "<string>"
        }
      ],
      "tool_id": "<string>",
      "url": "<string>"
    }
  ],
  "transcriber_config": [
    123
  ],
  "type": "<string>",
  "updated_at": "<string>",
  "vad_config": [
    123
  ],
  "voice_config": [
    123
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

org_id
string
required

Organization ID

Body

application/json

Agent details

name
string
required
type
enum<string>
required
Available options:
voice,
chat,
video
copy_from_agent_id
string
prompt_template
string

Response

Created

allowed_sip_trunks
string[]
background_sound
integer[]
created_at
string
default_functions
string[]
extra_config
integer[]
goodbye_config
integer[]
greeting_config
integer[]
id
string
llm_config
integer[]
name
string
organization_id
string
plugins
integer[]
precall_webhook
integer[]
prompt_template
string
public_quota
integer
room_duration_config
integer[]
tools
object[]
transcriber_config
integer[]
type
string
updated_at
string
vad_config
integer[]
voice_config
integer[]