Create Customer Agent
POSThttps://a.klaviyo.com/api/customer-agents
Creates the Customer Agent for the calling company.
Returns 201 Created when the Customer Agent is created, and 200 OK with the existing Customer Agent when the account already has one. storefront_url is used only when the agent is first created; if omitted then, the URL of the account's Shopify integration, or else its contact-information URL, is used. Without a usable URL, the agent's knowledge base starts empty.
- Revision header
revision: 2026-10-15.prerequired- Scopes
agents:write- Rate limits
- Burst:
10/sSteady:150/m
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-10-15.pre
Request body
Content type: application/vnd.api+jsonrequired
Show 2 fields
Show 1 field
The storefront the agent learns from. Used only when the Customer Agent is first created. If omitted then, the URL of the account's Shopify integration, or else its contact-information URL, is used. Without a usable URL the agent's knowledge base starts empty.
Responses
201Success
Content type: application/vnd.api+json
Show 4 fields
Customer Agent resource id. This is the account's ID.
Show 6 fields
The name of the AI agent.
Tone-of-voice settings for the Customer Agent resource.
Natural-language triggers that, when matched, cause the agent to escalate to a human. Each rule is individually enabled or disabled.
Show 5 fields
Short, human-readable label for the escalation rule.
Natural-language description of when this rule fires.
Whether this guidance item is active.
Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.
Languages this rule applies to, as ISO 639-1 codes, or ISO 639-3 where none exists. Some languages aren't supported. Empty or null means every language.
Communication styles the agent applies on every turn, such as opening conventions, formatting preferences, and word choices to avoid. Each style is individually enabled or disabled.
Show 5 fields
Short, human-readable label for the communication style.
Natural-language communication style the agent must follow on every turn.
Whether this guidance item is active.
Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.
Languages this rule applies to, as ISO 639-1 codes, or ISO 639-3 where none exists. Some languages aren't supported. Empty or null means every language.
The account-wide default handoff configuration, which every channel inherits.
Show 5 fields
How the agent hands a shopper off to a human. Null when the account uses a mechanism this API does not expose.
Sent when the agent is unable to answer and no human is available.
Sent when the agent hands the shopper off to a human.
Whether the handoff message includes the helpdesk ticket reference number.
Address handoffs are emailed to. Used when
mechanismisOTHER_EMAIL_BASED.
Whether each channel is on, and what stops it from being turned on.
Show 4 fields
Web chat.
Email.
SMS. Read-only through the API.
WhatsApp. Read-only through the API.
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json