curl --request PATCH \
--url https://api.talkpilot.io/v1/agents/{agentId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": "Du bist ein professioneller Kundenservice-Agent...",
"greeting": "Willkommen bei Firma X, wie kann ich helfen?"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phone_number": "<string>",
"is_active": true,
"language": "<string>",
"formality": "formal",
"llm_provider": "azure",
"llm_model": "<string>",
"llm_temperature": 1,
"tts_provider": "cartesia",
"voice_id": "<string>",
"realtime_voice": "<string>",
"speaking_rate": 1.25,
"stt_provider": "deepgram",
"stt_keywords": [
"<string>"
],
"prompt": "<string>",
"greeting": "<string>",
"greeting_variants": [
{
"greeting": "<string>",
"tag": "<string>",
"from": "<string>",
"to": "<string>",
"min_calls_today": 2
}
],
"post_call_webhook_url": "<string>",
"schedule": {
"timezone": "Europe/Berlin",
"rules": [
{
"days": [
1,
2,
3,
4,
5
],
"start_time": "08:00",
"end_time": "18:00"
}
]
},
"backup_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_greeting_interruption": true,
"short_calls_auto_edit": true,
"track_caller_name": true,
"transfer_timeout_seconds": 25,
"bundesland": "DE",
"background_audio_enabled": true,
"background_audio_type": "office",
"background_audio_volume": 0.5,
"thinking_sound_enabled": true,
"thinking_sound_volume": 0.5,
"aic_enhancement_enabled": true,
"retention_days": 123,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Update agent settings
Partially update an agent’s configuration. Only include the fields you want to change. Omitted fields remain unchanged.
Note: phone_number, organization_id, metadata and retention_days
are read-only via the API; workflow has its own endpoint.
This endpoint is strict: any field that is not updatable (unknown or
read-only) is rejected with 400 VALIDATION_ERROR, one details entry per
field. The other PATCH endpoints ignore unknown fields.
curl --request PATCH \
--url https://api.talkpilot.io/v1/agents/{agentId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": "Du bist ein professioneller Kundenservice-Agent...",
"greeting": "Willkommen bei Firma X, wie kann ich helfen?"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phone_number": "<string>",
"is_active": true,
"language": "<string>",
"formality": "formal",
"llm_provider": "azure",
"llm_model": "<string>",
"llm_temperature": 1,
"tts_provider": "cartesia",
"voice_id": "<string>",
"realtime_voice": "<string>",
"speaking_rate": 1.25,
"stt_provider": "deepgram",
"stt_keywords": [
"<string>"
],
"prompt": "<string>",
"greeting": "<string>",
"greeting_variants": [
{
"greeting": "<string>",
"tag": "<string>",
"from": "<string>",
"to": "<string>",
"min_calls_today": 2
}
],
"post_call_webhook_url": "<string>",
"schedule": {
"timezone": "Europe/Berlin",
"rules": [
{
"days": [
1,
2,
3,
4,
5
],
"start_time": "08:00",
"end_time": "18:00"
}
]
},
"backup_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_greeting_interruption": true,
"short_calls_auto_edit": true,
"track_caller_name": true,
"transfer_timeout_seconds": 25,
"bundesland": "DE",
"background_audio_enabled": true,
"background_audio_type": "office",
"background_audio_volume": 0.5,
"thinking_sound_enabled": true,
"thinking_sound_volume": 0.5,
"aic_enhancement_enabled": true,
"retention_days": 123,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
API key for external access. Format: tp_live_<32-hex-chars>.
Create keys in the TalkPilot Dashboard under Settings > API.
Path Parameters
Agent UUID
Body
Partial agent update. Only include fields you want to change.
1 - 255formal, informal 0 <= x <= 20.5 <= x <= 2100500002000Show child attributes
Show child attributes
Agent business hours. When set, the agent only accepts calls during the specified time windows. Outside hours, calls go to the backup agent.
Show child attributes
Show child attributes
German state for public-holiday handling; DE = nationwide holidays only
DE, BW, BY, BE, BB, HB, HH, HE, MV, NI, NW, NRW, RP, SL, SN, ST, SH, TH 5 <= x <= 45office, cafe, home_office 0 <= x <= 10 <= x <= 1Response
Updated agent
Language code: de, en, fr, es
formal = Sie, informal = Du
formal, informal azure, openai, gemini, gemini_live, gemini_live_cascade, openai_realtime, openai_realtime_cascade, groq Model identifier, e.g. gpt-4.1, gemini-2.5-flash, meta-llama/llama-4-scout-17b-16e-instruct, llama-3.3-70b-versatile, llama-3.1-8b-instant
0 <= x <= 2cartesia, elevenlabs, gemini_live, openai_realtime Voice identifier for TTS
Voice for native realtime providers (OpenAI/Gemini)
0.5 <= x <= 2Speech-to-text provider (null for native realtime)
deepgram, elevenlabs, mistral, groq Words the speech recognizer should prefer (names, products); max 100
100System prompt for the agent
50000Initial greeting message when call starts
2000Personalised greetings. The first variant whose conditions all match the
caller wins; otherwise greeting is spoken. A variant is only spoken when
every placeholder in it has a value.
Show child attributes
Show child attributes
Webhook URL called after each call completes
Agent business hours. When set, the agent only accepts calls during the specified time windows. Outside hours, calls go to the backup agent.
Show child attributes
Show child attributes
Fallback agent when outside the schedule
Allow callers to interrupt the greeting
Automatically mark very short calls as done
Ask for and track the caller's name
Timeout in seconds for call transfers (5-45)
5 <= x <= 45German state for public-holiday handling; DE = nationwide holidays only
DE, BW, BY, BE, BB, HB, HH, HE, MV, NI, NW, NRW, RP, SL, SN, ST, SH, TH Play ambient background audio during the call
office, cafe, home_office 0 <= x <= 1Play a subtle sound while the agent waits for the LLM
0 <= x <= 1On-device voice-focus enhancement (ai-coustics) before speech recognition
GDPR retention of call data in days (null = default 90). Managed in the Dashboard
Provider-specific tuning (e.g. Flux/EOU settings). Managed in the Dashboard