Skip to main content
POST
/
voice_agents
Create voice agent
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"
    }
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Request to create a new voice agent

voice_agent
object
required

Response

Voice agent created successfully

Single voice agent response

data
object
required

Voice agent configuration for handling WhatsApp voice calls