Skip to main content
PUT
Update a voice agent

Authorizations

Authorization
string
header
required

An organization API key created in the Klatt console, sent as Authorization: Bearer <key>. The key belongs to one organization.

Path Parameters

agent_uuid
string
required

Unique identifier (UUID) of the agent.

Body

application/json
additional_languages
enum<string>[] | null

Other languages the agent also handles, besides the default language. Each one must differ from language and appear once. Replaces the whole list; send [] to make the agent single-language.

Available options:
es-ES,
en,
fr-FR,
it-IT,
de-DE,
pt-PT,
ca-ES,
gl-ES,
eu-ES
allow_first_message_override
boolean | null

Whether the first message may be replaced for a call, by first_message_rules. Must be true to set rules.

allowed_contact_fields
string[] | null

Contact data the agent may use in conversation: first_name, last_name, company, notes, phones, emails, or field:<key> for a custom field of the contact list.

Maximum array length: 26
Pattern: ^(first_name|last_name|company|notes|phones|emails|field:[a-zA-Z][a-zA-Z0-9_]{0,39})$
contact_list_uuid
string<uuid> | null

UUID of the contact list the agent uses to recognize callers. null means none. Send null to detach the list.

conversation_rules
object | null

Rules for AI disclosure, communication style and how the agent handles unrelated questions, upset people and sales calls. Replaces the whole object: rules you leave out return to their defaults.

document_uuids
string<uuid>[] | null

UUIDs of the knowledge documents the agent uses when knowledge_scope is selected. Replaces the whole list.

first_message
string | null

What the agent says first when a call starts. Send null for the default greeting.

first_message_rules
object[] | null

Rules that choose the greeting. The first rule whose conditions all match gives the greeting; with null the agent uses first_message. Needs allow_first_message_override to be true. Send null to remove the rules.

Maximum array length: 20
knowledge_scope
enum<string> | null

Which documents the agent may use: company for all your knowledge documents, selected for only those in document_uuids.

Available options:
company,
selected
language
enum<string> | null

Language the agent speaks or writes: es-ES (Spanish, Spain), en (English), fr-FR (French), it-IT (Italian), de-DE (German), pt-PT (Portuguese, Portugal), ca-ES (Catalan), gl-ES (Galician) or eu-ES (Basque). Voice agents accept Catalan, Galician and Basque once Klatt has enabled them for voice (cooficial_voice_unavailable before that).

Available options:
es-ES,
en,
fr-FR,
it-IT,
de-DE,
pt-PT,
ca-ES,
gl-ES,
eu-ES
match_landlines
boolean | null

Whether callers using a landline number are matched to contacts. Off by default, because several people can share a landline.

name
string | null

New name of the agent, up to 255 characters.

Required string length: 1 - 255
orb_color
string | null

Color of the agent's orb in the console, as a hex code such as #1A2B3C. Send null to go back to the default color.

Pattern: ^#[0-9a-fA-F]{6}$
outcome_fields
object[] | null

Data the agent extracts when a conversation ends, up to 20; webhooks read it as {{outcome.<key>}}. Replaces the whole list; send [] to remove them all.

Maximum array length: 20
procedures
object[] | null

Procedures the agent follows when their trigger applies, up to 20. Replaces the whole list.

Maximum array length: 20
prompt
string | null

The instructions that define how the agent behaves.

save_audio
boolean | null

Whether the audio of calls with this agent is saved.

specific_terms
string[] | null

Words, names or phrases the agent should recognize accurately when callers say them. Replaces the whole list.

voice_settings
object | null

The voice and how the agent takes turns in a call.

Response

Successful Response

additional_languages
enum<string>[]
required

Other languages the agent also handles, besides the default language. Empty means the agent is single-language.

Available options:
es-ES,
en,
fr-FR,
it-IT,
de-DE,
pt-PT,
ca-ES,
gl-ES,
eu-ES
agent_uuid
string<uuid>
required

Unique identifier (UUID) of the agent.

allow_first_message_override
boolean
required

Whether the first message may be replaced for a call, by first_message_rules.

allowed_contact_fields
string[]
required

Contact data the agent may use in conversation: first_name, last_name, company, notes, phones, emails, or field:<key> for a custom field of the contact list.

Pattern: ^(first_name|last_name|company|notes|phones|emails|field:[a-zA-Z][a-zA-Z0-9_]{0,39})$
contact_list_uuid
string<uuid> | null
required

UUID of the contact list the agent uses to recognize callers. null means none.

conversation_rules
object
required

Rules for AI disclosure, communication style and how the agent handles unrelated questions, upset people and sales calls.

created_at
string<date-time>
required

When the agent was created (ISO 8601, UTC).

document_uuids
string<uuid>[]
required

UUIDs of the knowledge documents the agent uses when knowledge_scope is selected.

first_message
string | null
required

What the agent says first when a call starts. null means the default greeting.

first_message_rules
object[] | null
required

Rules that choose the greeting. The first rule whose conditions all match gives the greeting; with null the agent uses first_message. Needs allow_first_message_override to be true.

knowledge_scope
enum<string>
required

Which documents the agent may use: company for all your knowledge documents, selected for only those in document_uuids.

Available options:
company,
selected
language
enum<string>
required

Language the agent speaks or writes: es-ES (Spanish, Spain), en (English), fr-FR (French), it-IT (Italian), de-DE (German), pt-PT (Portuguese, Portugal), ca-ES (Catalan), gl-ES (Galician) or eu-ES (Basque). Voice agents accept Catalan, Galician and Basque once Klatt has enabled them for voice (cooficial_voice_unavailable before that).

Available options:
es-ES,
en,
fr-FR,
it-IT,
de-DE,
pt-PT,
ca-ES,
gl-ES,
eu-ES
match_landlines
boolean
required

Whether callers using a landline number are matched to contacts. Off by default, because several people can share a landline.

name
string
required

Name of the agent, shown in the console and in conversation lists.

orb_color
string | null
required

Color of the agent's orb in the console, as a hex code such as #1A2B3C. null means the default color.

outcome_fields
object[]
required

Data the agent extracts when a conversation ends; webhooks read it as {{outcome.<key>}}. Empty means none.

Maximum array length: 20
procedures
object[]
required

Procedures the agent follows when their trigger applies, up to 20.

prompt
string
required

The instructions that define how the agent behaves.

save_audio
boolean
required

Whether the audio of calls with this agent is saved.

specific_terms
string[]
required

Words, names or phrases the agent should recognize accurately when callers say them.

tool_count
integer
required

Number of tools the agent uses: the tools of its integrations plus one for each transfer target.

tool_limit
integer
required

Maximum number of tools one agent can have.

updated_at
string<date-time>
required

When the agent was last changed (ISO 8601, UTC).

voice_settings
object
required

The voice and how the agent takes turns in a call.

kind
string
default:voice

Always voice.

Allowed value: "voice"