POST
/
voice_agents
Create a voice agent
curl --request POST \
  --url https://app.kapso.ai/api/v1/voice_agents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "voice_agent": {
    "name": "Customer Support Voice Agent",
    "provider_type": "pipecat",
    "provider": {
      "public_api_key": "pk_live_abc123",
      "private_api_key": "sk_live_xyz789",
      "agent_name": "support-agent-v1",
      "base_url": "https://api.pipecat.ai"
    }
  }
}'
{
  "data": {
    "id": "voice-agent-123abc",
    "name": "Customer Support Voice Agent",
    "provider": {
      "type": "pipecat_provider",
      "kind": "pipecat",
      "agent_name": "support-agent-v1"
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Body

application/json
voice_agent
object
required

Response

Voice agent created successfully

data
object