Authorizations
API key required for all endpoints
Path Parameters
Body
application/json
Response
Voice agent updated successfully
curl --request PATCH \
--url https://app.kapso.ai/api/v1/voice_agents/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"voice_agent": {
"name": "Updated Voice Agent Name",
"provider_type": "pipecat",
"provider": {
"public_api_key": "pk_live_abc123",
"private_api_key": "sk_live_xyz789",
"agent_name": "support-agent-v2",
"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"
}
}
Updates an existing voice agent’s details and provider configuration
curl --request PATCH \
--url https://app.kapso.ai/api/v1/voice_agents/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"voice_agent": {
"name": "Updated Voice Agent Name",
"provider_type": "pipecat",
"provider": {
"public_api_key": "pk_live_abc123",
"private_api_key": "sk_live_xyz789",
"agent_name": "support-agent-v2",
"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"
}
}
API key required for all endpoints
Show child attributes
Voice agent updated successfully
Show child attributes
Was this page helpful?