POST
/
v1
/
voice
/
agents
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/voice/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "greeting_message": "<string>",
  "prompt": "<string>",
  "tools": [
    "<string>"
  ],
  "post_processing_agents": [
    "<string>"
  ],
  "variables": [
    "<string>"
  ],
  "voice_id": "<string>",
  "voice_name": "<string>",
  "gpt_model_id": "<string>",
  "language": "multi",
  "time_limit": 120,
  "start_with_greeting": false,
  "millis_sip_endpoint": "<string>",
  "voice_speed": 1,
  "background_noise": false,
  "suggestion_reason": "<string>",
  "provider": "openai",
  "model": "gpt-4o",
  "voice_provider": "vapi",
  "voice_model": "eleven_turbo_v2",
  "agent_description": "<string>",
  "silence_timeout_seconds": 15,
  "voice_mail_detection": true,
  "speaking_plan_num_words": 3,
  "pixel_is_lead": false,
  "pixel_is_sale": false,
  "pixel_sale_amount": 0
}'
{
  "data": {
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "name": "<string>",
    "meta": {
      "name": "<string>",
      "greeting_message": "<string>",
      "prompt": "<string>",
      "tools": [
        "<string>"
      ],
      "post_processing_agents": [
        "<string>"
      ],
      "variables": [
        "<string>"
      ],
      "voice_id": "<string>",
      "voice_name": "<string>",
      "gpt_model_id": "<string>",
      "language": "multi",
      "time_limit": 120,
      "start_with_greeting": false,
      "millis_sip_endpoint": "<string>",
      "voice_speed": 1,
      "background_noise": false,
      "suggestion_reason": "<string>",
      "provider": "openai",
      "model": "gpt-4o",
      "voice_provider": "vapi",
      "voice_model": "eleven_turbo_v2",
      "agent_description": "<string>",
      "silence_timeout_seconds": 15,
      "voice_mail_detection": true,
      "speaking_plan_num_words": 3,
      "pixel_is_lead": false,
      "pixel_is_sale": false,
      "pixel_sale_amount": 0
    },
    "default_voice": {
      "id": "<string>",
      "name": "Eric"
    },
    "prompts": [
      {
        "id": "<string>",
        "agent_id": "<string>",
        "welcome_message": "<string>",
        "prompt": "<string>",
        "voice_id": "<string>",
        "voice_name": "<string>",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ],
    "team_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

AgentMetaDataRequest

The body is of type object.

Response

201
application/json

AgentResource

The response is of type object.