cURL
curl --request POST \ --url https://api.kapso.ai/platform/v1/voice_agents \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "voice_agent": { "name": "<string>", "provider_type": "VoiceAgents::PipecatProvider", "provider": { "public_api_key": "<string>", "private_api_key": "<string>", "agent_name": "customer-support-agent-v2", "base_url": "https://custom-voice-api.example.com" } } } '
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "provider": { "type": "pipecat_provider", "kind": "pipecat", "agent_name": "customer-support-agent-v2" } } }
Create a new voice agent with provider configuration. Voice agents handle WhatsApp voice calls and route them to third-party voice providers.
After creating a voice agent:
Currently supported providers:
Request to create a new voice agent
Show child attributes
Voice agent created successfully
Single voice agent response
Voice agent configuration for handling WhatsApp voice calls
Was this page helpful?