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, "allow_interruptions": true, "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, "allow_interruptions": true, "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>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
AgentMetaDataRequest
x >= 1
0 <= x <= 2
1 <= x <= 3600
1 <= x <= 10
AgentResource
Show child attributes
"Eric"