{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key is invalid or has been revoked.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "api_error",
"code": "message_not_saved",
"message": "The template was sent, but it couldn't be added to the conversation.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
WhatsApp
Send a WhatsApp template
Available for AI agents only.
Sends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time.
Only message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries.
With to, the template goes to the number’s ongoing conversation with the AI agent. If there isn’t one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan.
With the default mode: ai, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it’s handling, and conversations a team member took over stay with them. mode: live takes the conversation over and assigns it to the author if it’s unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by API key "<key name>".
Templates with an image, video, or document header can only be sent if the template has a saved header file.
{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key is invalid or has been revoked.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "api_error",
"code": "message_not_saved",
"message": "The template was sent, but it couldn't be added to the conversation.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
Authorizations
Authorization
string
header
required
A project API key, created in the dashboard.
Headers
Idempotency-Key
string
A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.
Required string length: 1 - 255
Body
application/json
Option 1
Option 2
Pass exactly one of to and conversation_id. Unknown parameters return 422.
ID of a WhatsApp conversation of the AI agent that hasn't ended.
Maximum string length: 64
variables
object
A value for each of the template's variables, keyed by its key.
Show child attributes
Example:
{ "body:name": "Ana" }
author_id
string | null
The account_id of the team member to send the template as, from List members. They must be able to reply in the AI agent's conversations. Defaults to the API key's creator.
Maximum string length: 64
mode
enum<string>
default:ai
ai keeps the conversation's mode, and live takes it over for the author.
Available options:
ai,
live
Response
The template was sent and saved. conversation_id is the conversation it was saved in.
object
any
required
id
string
required
conversation_id
string
required
author
object
required
Who sent the message.
Show child attributes
type
enum<string>
required
buttons, carousel, form, booking, csat_survey, end_chat, email_prompt, contact_card, and action messages have details in data. action messages record what an AI agent's actions did, such as HTTP requests and integrations, and a chatbot's handoffs to the team. Only the team sees them. carousel and contact_card messages come from chatbots. A chatbot's image, video, audio, and document messages include the file's url in data. Other types come from other channels and only have text. Files of any type are in attachments.
Available options:
text,
buttons,
carousel,
form,
booking,
csat_survey,
end_chat,
email_prompt,
action,
contact_card,
attachment,
image,
video,
audio,
document,
sticker,
other
text
string | null
required
The message text, in Markdown. AI replies don't include inline citation markers; their sources are in data. null for messages with only data.
data
object
required
Details of the message, depending on its type. text messages from the agent include their sources. null for other text messages and for an AI agent's media messages.
Option 1
Option 2
Option 3
Option 4
Option 5
Option 6
Option 7
Option 8
Option 9
Option 10
Option 11
Option 12
Option 13
Option 14
Option 15
Option 16
Option 17
Option 18
Show child attributes
attachments
object[]
required
Files sent with the message, in order. A caption is the message's text.
Show child attributes
is_note
boolean
required
Whether the message is an internal note, which the user never sees.
sent_by_website
boolean
required
Whether the website sent this user message with window.Chatling.sendMessage(), rather than the user typing it.
is_hidden
boolean
required
Whether the website sent this message with hidden: true. The AI agent receives hidden messages, but the user never sees them.
rating
enum<string> | null
required
The rating of an AI-written answer, given by the user in the widget or set with Update a message. Always null for other messages.
Available options:
positive,
negative,
null
created_at
string<date-time> | null
required
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Chatling Documentation","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=b2dff50e5e554f9a1821ad6c4e86b8cd","dark":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo-white.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=7139297f08e04dea3d5f04e8ff00e18b"},"favicon":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/favicon.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=f0289a5a055de1338da1c4cd5d297893","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.chatling.ai/v3"}},"navbar":{"links":[{"href":"https://app.chatling.ai","label":"Dashboard"}]},"footer":{"socials":{"x":"https://twitter.com/chatlingai","linkedin":"https://www.linkedin.com/company/chatlingai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chatling-21192973","hasAudioNarration":false,"actualSubdomain":"chatling-21192973","customDomains":["docs.chatling.ai"],"gitSource":{"type":"github","owner":"ahm750","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0cf4ae9508b2d5f2b65fff","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Documentation","count":160},{"language":"default","tag":"API Reference","count":92},{"language":"default","tag":"Reference","count":87},{"language":"default","tag":"Chatbot","count":60},{"language":"default","tag":"Builder","count":50},{"language":"default","tag":"Blocks","count":35},{"language":"default","tag":"AI Agent","count":23},{"language":"default","tag":"Web Widget","count":23},{"language":"default","tag":"Conversations","count":15},{"language":"default","tag":"Live Chat","count":13}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/v3/whatsapp/send-whatsapp-template","slug":"/api-reference/v3/whatsapp/send-whatsapp-template","pageMetadata":{"title":"Send a WhatsApp template","description":"**Available for AI agents only.**\n\nSends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time.\n\nOnly message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries.\n\nWith `to`, the template goes to the number's ongoing conversation with the AI agent. If there isn't one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan.\n\nWith the default `mode: ai`, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it's handling, and conversations a team member took over stay with them. `mode: live` takes the conversation over and assigns it to the author if it's unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by `API key \"\u003ckey name>\"`.\n\nTemplates with an image, video, or document header can only be sent if the template has a saved header file.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /whatsapp/messages","href":"/api-reference/v3/whatsapp/send-whatsapp-template","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Available for AI agents only.\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Sends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Only message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"With \", _jsx(_components.code, {\n children: \"to\"\n }), \", the template goes to the number’s ongoing conversation with the AI agent. If there isn’t one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"With the default \", _jsx(_components.code, {\n children: \"mode: ai\"\n }), \", the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it’s handling, and conversations a team member took over stay with them. \", _jsx(_components.code, {\n children: \"mode: live\"\n }), \" takes the conversation over and assigns it to the author if it’s unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by \", _jsx(_components.code, {\n children: \"API key \\\"\u003ckey name>\\\"\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Templates with an image, video, or document header can only be sent if the template has a saved header file.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send a WhatsApp template","description":"**Available for AI agents only.**\n\nSends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time.\n\nOnly message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries.\n\nWith `to`, the template goes to the number's ongoing conversation with the AI agent. If there isn't one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan.\n\nWith the default `mode: ai`, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it's handling, and conversations a team member took over stay with them. `mode: live` takes the conversation over and assigns it to the author if it's unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by `API key \"\u003ckey name>\"`.\n\nTemplates with an image, video, or document header can only be sent if the template has a saved header file.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /whatsapp/messages","href":"/api-reference/v3/whatsapp/send-whatsapp-template","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"sendWhatsappTemplate","tags":["WhatsApp"],"summary":"Send a WhatsApp template","description":"**Available for AI agents only.**\n\nSends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time.\n\nOnly message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries.\n\nWith `to`, the template goes to the number's ongoing conversation with the AI agent. If there isn't one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan.\n\nWith the default `mode: ai`, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it's handling, and conversations a team member took over stay with them. `mode: live` takes the conversation over and assigns it to the author if it's unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by `API key \"\u003ckey name>\"`.\n\nTemplates with an image, video, or document header can only be sent if the template has a saved header file.","x-chatling-permission":{"group":"whatsapp","access":"create"},"x-chatling-project-wide":false,"x-chatling-agent-types":["ai_agent"],"parameters":["40b419a1-dd11-4816-ac9a-b6f48373ff02"],"requestBody":"eb2c3983-ab3e-4a62-ba1d-7ff9670dafab","responses":{"201":"c82b041b-c982-4ec0-bf60-ffe26e02e888","400":"24881238-b180-4984-9068-0f68bf48fc47","401":"ce20e9ad-fdcd-499a-9db3-0da4a7a52ff2","403":"1b59d379-68c9-4972-9f49-c193251eb211","404":"7946701a-dd7d-4f5d-8d64-e1e229c50994","409":"76360c3a-8c1a-477a-8f8e-2be4f21c1303","422":"15d42cd6-a8a7-4f21-a0b1-3e30a582f033","429":"2d5cfa07-f896-4a10-a58f-b3e20b857b6d","503":"9522d31a-824d-4ecf-bc9b-85501a3ee26f"},"method":"post","type":"path","servers":["16086fde-3c32-456e-b395-21dafcd77092"],"security":["8529c987-60c7-4138-9cff-c6fa1c1f2729"],"path":"/whatsapp/messages","baseUrlOptions":["https://api.chatling.ai/v3"],"title":"Send a WhatsApp template","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"40b419a1-dd11-4816-ac9a-b6f48373ff02":{"name":"Idempotency-Key","in":"header","description":"A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.","schema":{"type":"string","minLength":1,"maxLength":255,"description":"A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Pass exactly one of `to` and `conversation_id`. Unknown parameters return 422.","required":["agent_id","template_id","to"],"properties":{"agent_id":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"oneOf.0.agent_id","typeLabel":"string"},"template_id":{"type":"string","maxLength":64,"description":"ID of an approved template, from [List WhatsApp templates](/api-reference/v3/whatsapp/list-whatsapp-templates).","isRequired":true,"uniqueKey":"oneOf.0.template_id","typeLabel":"string"},"to":{"type":"string","pattern":"^\\+[1-9][0-9]{6,14}$","description":"A phone number in E.164 international format.","example":"+14155550123","isRequired":true,"uniqueKey":"oneOf.0.to","typeLabel":"string"},"conversation_id":{"type":"string","maxLength":64,"description":"ID of a WhatsApp conversation of the AI agent that hasn't ended.","uniqueKey":"oneOf.0.conversation_id","typeLabel":"string"},"variables":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":1024,"uniqueKey":"oneOf.0.variables.additionalProperties","typeLabel":"string"},"description":"A value for each of the template's `variables`, keyed by its `key`.","example":{"body:name":"Ana"},"uniqueKey":"oneOf.0.variables","typeLabel":"object"},"author_id":{"oneOf":[{"type":"string","maxLength":64,"description":"The `account_id` of the team member to send the template as, from [List members](/api-reference/v3/members/list-members). They must be able to reply in the AI agent's conversations. Defaults to the API key's creator.","uniqueKey":"oneOf.0.author_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":64,"description":"The `account_id` of the team member to send the template as, from [List members](/api-reference/v3/members/list-members). They must be able to reply in the AI agent's conversations. Defaults to the API key's creator.","uniqueKey":"oneOf.0.author_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.author_id","typeLabel":"string | null"},"mode":{"type":"string","enum":["ai","live"],"default":"ai","description":"`ai` keeps the conversation's mode, and `live` takes it over for the author.","uniqueKey":"oneOf.0.mode","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Pass exactly one of `to` and `conversation_id`. Unknown parameters return 422.","required":["agent_id","template_id","conversation_id"],"properties":{"agent_id":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"oneOf.1.agent_id","typeLabel":"string"},"template_id":{"type":"string","maxLength":64,"description":"ID of an approved template, from [List WhatsApp templates](/api-reference/v3/whatsapp/list-whatsapp-templates).","isRequired":true,"uniqueKey":"oneOf.1.template_id","typeLabel":"string"},"conversation_id":{"type":"string","maxLength":64,"description":"ID of a WhatsApp conversation of the AI agent that hasn't ended.","isRequired":true,"uniqueKey":"oneOf.1.conversation_id","typeLabel":"string"},"to":{"type":"string","pattern":"^\\+[1-9][0-9]{6,14}$","description":"A phone number in E.164 international format.","example":"+14155550123","uniqueKey":"oneOf.1.to","typeLabel":"string"},"variables":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":1024,"uniqueKey":"oneOf.1.variables.additionalProperties","typeLabel":"string"},"description":"A value for each of the template's `variables`, keyed by its `key`.","example":{"body:name":"Ana"},"uniqueKey":"oneOf.1.variables","typeLabel":"object"},"author_id":{"oneOf":[{"type":"string","maxLength":64,"description":"The `account_id` of the team member to send the template as, from [List members](/api-reference/v3/members/list-members). They must be able to reply in the AI agent's conversations. Defaults to the API key's creator.","uniqueKey":"oneOf.1.author_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":64,"description":"The `account_id` of the team member to send the template as, from [List members](/api-reference/v3/members/list-members). They must be able to reply in the AI agent's conversations. Defaults to the API key's creator.","uniqueKey":"oneOf.1.author_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.author_id","typeLabel":"string | null"},"mode":{"type":"string","enum":["ai","live"],"default":"ai","description":"`ai` keeps the conversation's mode, and `live` takes it over for the author.","uniqueKey":"oneOf.1.mode","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"example":{"agent_id":"3132353852","template_id":"5b0c6f3e-2a41-4d8e-9f7a-1c2d3e4f5a6b","to":"+14155550123","variables":{"body:name":"Ana"}},"examples":{"Example":{"title":"Example","value":{"agent_id":"3132353852","template_id":"5b0c6f3e-2a41-4d8e-9f7a-1c2d3e4f5a6b","to":"+14155550123","variables":{"body:name":"Ana"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"c82b041b-c982-4ec0-bf60-ffe26e02e888":{"description":"The template was sent and saved. `conversation_id` is the conversation it was saved in.","headers":{"Idempotent-Replayed":{"description":"`true` if this is the saved response of an earlier request with the same `Idempotency-Key`.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"type":"object","required":["object","id","conversation_id","author","type","text","data","attachments","is_note","sent_by_website","is_hidden","rating","created_at"],"properties":{"object":{"const":"message","isRequired":true,"uniqueKey":"object","typeLabel":"any"},"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"conversation_id":{"type":"string","isRequired":true,"uniqueKey":"conversation_id","typeLabel":"string"},"author":{"type":"object","required":["type","id","name"],"properties":{"type":{"type":"string","enum":["user","assistant","human_agent","system"],"description":"`user` is the person chatting with the agent. `assistant` is the AI agent or chatbot, including intro, workflow, and flow messages. `human_agent` is a team member.","isRequired":true,"uniqueKey":"author.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"The conversation's `user_id` for `user`, its `agent.id` for `assistant`, and the team member's `account_id` for `human_agent`. `null` for `system`, for users in conversations without a `user_id`, and for team members whose account was deleted. `name` still shows the name the message was sent with.","isRequired":true,"uniqueKey":"author.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The conversation's `user_id` for `user`, its `agent.id` for `assistant`, and the team member's `account_id` for `human_agent`. `null` for `system`, for users in conversations without a `user_id`, and for team members whose account was deleted. `name` still shows the name the message was sent with.","isRequired":true,"uniqueKey":"author.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"author.id","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","description":"The contact's or team member's name. For `assistant`, the agent's name from the widget settings, in the conversation's language. `null` for `system`, and for users without a contact or name.","isRequired":true,"uniqueKey":"author.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The contact's or team member's name. For `assistant`, the agent's name from the widget settings, in the conversation's language. `null` for `system`, and for users without a contact or name.","isRequired":true,"uniqueKey":"author.name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"author.name","typeLabel":"string | null"}},"description":"Who sent the message.","isRequired":true,"uniqueKey":"author","typeLabel":"object"},"type":{"type":"string","enum":["text","buttons","carousel","form","booking","csat_survey","end_chat","email_prompt","action","contact_card","attachment","image","video","audio","document","sticker","other"],"description":"`buttons`, `carousel`, `form`, `booking`, `csat_survey`, `end_chat`, `email_prompt`, `contact_card`, and `action` messages have details in `data`. `action` messages record what an AI agent's actions did, such as HTTP requests and integrations, and a chatbot's handoffs to the team. Only the team sees them. `carousel` and `contact_card` messages come from chatbots. A chatbot's `image`, `video`, `audio`, and `document` messages include the file's `url` in `data`. Other types come from other channels and only have `text`. Files of any type are in `attachments`.","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"text":{"oneOf":[{"type":"string","description":"The message text, in Markdown. AI replies don't include inline citation markers; their sources are in `data`. `null` for messages with only `data`.","isRequired":true,"uniqueKey":"text.oneOf.0","typeLabel":"string"},{"type":"null","description":"The message text, in Markdown. AI replies don't include inline citation markers; their sources are in `data`. `null` for messages with only `data`.","isRequired":true,"uniqueKey":"text.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"text","typeLabel":"string | null"},"data":{"oneOf":[{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["sources"],"properties":{"sources":{"type":"array","maxItems":5,"items":{"type":"object","required":["type","title","url"],"properties":{"type":{"oneOf":[{"type":"string","enum":["webpage","document_url","document",null],"isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["webpage","document_url","document",null],"isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"title":{"oneOf":[{"type":"string","description":"The page title, or a document's file name.","isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The page title, or a document's file name.","isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].title","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.sources.items.[INDEX].url","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.sources.items.[INDEX]","typeLabel":"object"},"description":"The knowledge base sources the AI used for this reply.","isRequired":true,"uniqueKey":"data.oneOf.0.sources","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["buttons","selected_button_id"],"properties":{"buttons":{"type":"array","items":{"type":"object","required":["id","label","url","message"],"properties":{"id":{"type":"string","description":"Chatbot link buttons don't have IDs, so they're numbered from `1`.","isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].label","typeLabel":"string"},"url":{"oneOf":[{"type":"string","description":"Set for link buttons, which open the URL instead of sending a message.","isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set for link buttons, which open the URL instead of sending a message.","isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].url","typeLabel":"string | null"},"message":{"oneOf":[{"type":"string","description":"Set for reply buttons: the text the widget sends as a user message when the button is chosen. To choose the button through the API in an AI agent's conversation, send this text with [Send a user message](/api-reference/v3/conversations/send-user-message).","isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set for reply buttons: the text the widget sends as a user message when the button is chosen. To choose the button through the API in an AI agent's conversation, send this text with [Send a user message](/api-reference/v3/conversations/send-user-message).","isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.buttons.items.[INDEX].message","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.1.buttons.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.oneOf.1.buttons","typeLabel":"object[]"},"selected_button_id":{"oneOf":[{"type":"string","description":"The reply button the user chose in the widget.","isRequired":true,"uniqueKey":"data.oneOf.1.selected_button_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reply button the user chose in the widget.","isRequired":true,"uniqueKey":"data.oneOf.1.selected_button_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.selected_button_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["kind","status","fields"],"properties":{"kind":{"type":"string","enum":["lead","custom"],"description":"`lead` saves the answers to the user's contact, and its field IDs are contact fields such as `email`. `custom` saves them to the AI agent's variables. Chatbot forms are always `custom`.","isRequired":true,"uniqueKey":"data.oneOf.2.kind","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","submitted","dismissed"],"isRequired":true,"uniqueKey":"data.oneOf.2.status","typeLabel":"enum\u003cstring>"},"fields":{"type":"array","items":{"type":"object","required":["id","type","label","required","options","value"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","description":"Lead forms use `text`, `email`, `phone`, and `url`. Other forms can also use `textarea`, `number`, `date`, `checkbox`, `dropdown`, and `multiple_choice`, and chatbot forms can use `integer`.","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].type","typeLabel":"string"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].label","typeLabel":"string | null"},"required":{"type":"boolean","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].required","typeLabel":"boolean"},"options":{"oneOf":[{"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].id","typeLabel":"string"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].label","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The choices of a `dropdown` or `multiple_choice` field.","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"description":"The choices of a `dropdown` or `multiple_choice` field.","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].options","typeLabel":"object[] | null"},"value":{"oneOf":[{"type":"string","items":{"type":"string"},"description":"The user's answer, or `null` if they left it empty or haven't submitted the form. `dropdown` answers are an option ID, `multiple_choice` answers an array of option IDs, `checkbox` answers a boolean, and all others a string.","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"boolean","items":{"type":"string"},"description":"The user's answer, or `null` if they left it empty or haven't submitted the form. `dropdown` answers are an option ID, `multiple_choice` answers an array of option IDs, `checkbox` answers a boolean, and all others a string.","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].value.oneOf.1","typeLabel":"boolean"},{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.2.fields.items.[INDEX].value.oneOf.2.items.[INDEX]","typeLabel":"string"},"description":"The user's answer, or `null` if they left it empty or haven't submitted the form. `dropdown` answers are an option ID, `multiple_choice` answers an array of option IDs, `checkbox` answers a boolean, and all others a string.","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].value.oneOf.2","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"The user's answer, or `null` if they left it empty or haven't submitted the form. `dropdown` answers are an option ID, `multiple_choice` answers an array of option IDs, `checkbox` answers a boolean, and all others a string.","isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.fields.items.[INDEX].value","typeLabel":"string | boolean | string[] | null"}},"uniqueKey":"data.oneOf.2.fields.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.oneOf.2.fields","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.2","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["provider","status","title","starts_at","ends_at"],"properties":{"provider":{"type":"string","enum":["cal_com","calendly","google_calendar"],"isRequired":true,"uniqueKey":"data.oneOf.3.provider","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","booked","failed"],"isRequired":true,"uniqueKey":"data.oneOf.3.status","typeLabel":"enum\u003cstring>"},"title":{"oneOf":[{"type":"string","description":"The meeting title, if the provider returns one.","isRequired":true,"uniqueKey":"data.oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The meeting title, if the provider returns one.","isRequired":true,"uniqueKey":"data.oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.title","typeLabel":"string | null"},"starts_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.oneOf.3.starts_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.oneOf.3.starts_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.starts_at","typeLabel":"string\u003cdate-time> | null"},"ends_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.oneOf.3.ends_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.oneOf.3.ends_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.ends_at","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"data.oneOf.3","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["rating","max_rating","scale","reasons","resolved","feedback"],"properties":{"rating":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"data.oneOf.4.rating.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.4.rating.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.rating","typeLabel":"integer | null"},"max_rating":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"data.oneOf.4.max_rating.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.4.max_rating.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.max_rating","typeLabel":"integer | null"},"scale":{"oneOf":[{"type":"string","enum":["numeric","emoji",null],"isRequired":true,"uniqueKey":"data.oneOf.4.scale.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["numeric","emoji",null],"isRequired":true,"uniqueKey":"data.oneOf.4.scale.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.scale","typeLabel":"enum\u003cstring> | null"},"reasons":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.4.reasons.items.[INDEX]","typeLabel":"string"},"description":"The reasons the user picked for their rating.","isRequired":true,"uniqueKey":"data.oneOf.4.reasons","typeLabel":"string[]"},"resolved":{"oneOf":[{"type":"string","description":"The user's answer to whether their issue was resolved, as shown in the survey.","isRequired":true,"uniqueKey":"data.oneOf.4.resolved.oneOf.0","typeLabel":"string"},{"type":"null","description":"The user's answer to whether their issue was resolved, as shown in the survey.","isRequired":true,"uniqueKey":"data.oneOf.4.resolved.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.resolved","typeLabel":"string | null"},"feedback":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.4.feedback.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.4.feedback.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.feedback","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.4","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["ended_by"],"properties":{"ended_by":{"oneOf":[{"type":"string","enum":["user","system","assistant",null],"description":"`assistant` if a chatbot's flow ended the chat.","isRequired":true,"uniqueKey":"data.oneOf.5.ended_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["user","system","assistant",null],"description":"`assistant` if a chatbot's flow ended the chat.","isRequired":true,"uniqueKey":"data.oneOf.5.ended_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.5.ended_by","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"data.oneOf.5","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["status","email","required"],"properties":{"status":{"type":"string","enum":["pending","submitted","dismissed"],"isRequired":true,"uniqueKey":"data.oneOf.6.status","typeLabel":"enum\u003cstring>"},"email":{"oneOf":[{"type":"string","description":"The address the user entered.","isRequired":true,"uniqueKey":"data.oneOf.6.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"The address the user entered.","isRequired":true,"uniqueKey":"data.oneOf.6.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.6.email","typeLabel":"string | null"},"required":{"type":"boolean","description":"Whether the user had to answer before continuing.","isRequired":true,"uniqueKey":"data.oneOf.6.required","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"data.oneOf.6","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","requests"],"properties":{"action":{"type":"string","const":"http_request","isRequired":true,"uniqueKey":"data.oneOf.7.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.7.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.7.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.7.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.7.error","typeLabel":"string | null"},"requests":{"type":"array","maxItems":5,"items":{"type":"object","required":["method","url","status_code","body","body_truncated"],"properties":{"method":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].method.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].method.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].method","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"The URL requested. Query values, user info, and the fragment are replaced with `REDACTED` because they can contain credentials. The host, path, and parameter names are kept.","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The URL requested. Query values, user info, and the fragment are replaced with `REDACTED` because they can contain credentials. The host, path, and parameter names are kept.","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].url","typeLabel":"string | null"},"status_code":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].status_code.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].status_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].status_code","typeLabel":"integer | null"},"body":{"description":"The JSON response, up to 20 KB. `null` if the request failed without a JSON response or the response exceeded the limit.","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].body","typeLabel":"any"},"body_truncated":{"type":"boolean","description":"Whether the response exceeded 20 KB, in which case `body` is `null`.","isRequired":true,"uniqueKey":"data.oneOf.7.requests.items.[INDEX].body_truncated","typeLabel":"boolean"}},"uniqueKey":"data.oneOf.7.requests.items.[INDEX]","typeLabel":"object"},"description":"The requests made, in order.","isRequired":true,"uniqueKey":"data.oneOf.7.requests","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.7","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","email"],"properties":{"action":{"type":"string","const":"send_email","isRequired":true,"uniqueKey":"data.oneOf.8.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.8.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.8.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.8.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.8.error","typeLabel":"string | null"},"email":{"type":"object","required":["sender_name","sender_email","to","cc","reply_to","subject","body_html"],"properties":{"sender_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.8.email.sender_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.8.email.sender_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.8.email.sender_name","typeLabel":"string | null"},"sender_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.8.email.sender_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.8.email.sender_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.8.email.sender_email","typeLabel":"string | null"},"to":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.8.email.to.items.[INDEX]","typeLabel":"string"},"description":"Recipient email addresses.","isRequired":true,"uniqueKey":"data.oneOf.8.email.to","typeLabel":"string[]"},"cc":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.8.email.cc.items.[INDEX]","typeLabel":"string"},"description":"CC email addresses.","isRequired":true,"uniqueKey":"data.oneOf.8.email.cc","typeLabel":"string[]"},"reply_to":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.8.email.reply_to.items.[INDEX]","typeLabel":"string"},"description":"Reply-to email addresses.","isRequired":true,"uniqueKey":"data.oneOf.8.email.reply_to","typeLabel":"string[]"},"subject":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.8.email.subject.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.8.email.subject.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.8.email.subject","typeLabel":"string | null"},"body_html":{"oneOf":[{"type":"string","description":"The body as HTML.","isRequired":true,"uniqueKey":"data.oneOf.8.email.body_html.oneOf.0","typeLabel":"string"},{"type":"null","description":"The body as HTML.","isRequired":true,"uniqueKey":"data.oneOf.8.email.body_html.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.8.email.body_html","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.8.email","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.oneOf.8","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","summary","priority","sentiment"],"properties":{"action":{"type":"string","const":"human_handoff","isRequired":true,"uniqueKey":"data.oneOf.9.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.9.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.9.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.9.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.9.error","typeLabel":"string | null"},"summary":{"oneOf":[{"type":"string","description":"The AI's summary of the conversation for the team.","isRequired":true,"uniqueKey":"data.oneOf.9.summary.oneOf.0","typeLabel":"string"},{"type":"null","description":"The AI's summary of the conversation for the team.","isRequired":true,"uniqueKey":"data.oneOf.9.summary.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.9.summary","typeLabel":"string | null"},"priority":{"oneOf":[{"type":"string","enum":["low","medium","high","urgent",null],"isRequired":true,"uniqueKey":"data.oneOf.9.priority.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["low","medium","high","urgent",null],"isRequired":true,"uniqueKey":"data.oneOf.9.priority.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.9.priority","typeLabel":"enum\u003cstring> | null"},"sentiment":{"oneOf":[{"type":"string","enum":["neutral","positive","negative",null],"description":"The user's sentiment at the handoff.","isRequired":true,"uniqueKey":"data.oneOf.9.sentiment.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["neutral","positive","negative",null],"description":"The user's sentiment at the handoff.","isRequired":true,"uniqueKey":"data.oneOf.9.sentiment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.9.sentiment","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"data.oneOf.9","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","ticket"],"properties":{"action":{"type":"string","const":"zendesk_create_ticket","isRequired":true,"uniqueKey":"data.oneOf.10.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.10.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.10.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.10.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.error","typeLabel":"string | null"},"ticket":{"type":"object","required":["id","subject","description_html","requester_name","requester_email","priority","type","status","tags","group_id","assignee_email","custom_fields"],"properties":{"id":{"oneOf":[{"type":"string","description":"The Zendesk ticket ID, or `null` if the ticket wasn't created.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Zendesk ticket ID, or `null` if the ticket wasn't created.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.id","typeLabel":"string | null"},"subject":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.subject.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.subject.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.subject","typeLabel":"string | null"},"description_html":{"oneOf":[{"type":"string","description":"The description as HTML.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.description_html.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description as HTML.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.description_html.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.description_html","typeLabel":"string | null"},"requester_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.requester_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.requester_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.requester_name","typeLabel":"string | null"},"requester_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.requester_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.requester_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.requester_email","typeLabel":"string | null"},"priority":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.priority.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.priority.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.priority","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.type.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.type","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.status.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.status","typeLabel":"string | null"},"tags":{"oneOf":[{"type":"string","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.tags.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.tags.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.tags","typeLabel":"string | null"},"group_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.group_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.group_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.group_id","typeLabel":"string | null"},"assignee_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.assignee_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.assignee_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.assignee_email","typeLabel":"string | null"},"custom_fields":{"oneOf":[{"type":"string","description":"As configured.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.custom_fields.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured.","isRequired":true,"uniqueKey":"data.oneOf.10.ticket.custom_fields.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.10.ticket.custom_fields","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.10.ticket","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.oneOf.10","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","user"],"properties":{"action":{"type":"string","const":"zendesk_create_user","isRequired":true,"uniqueKey":"data.oneOf.11.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.11.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.11.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.11.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.error","typeLabel":"string | null"},"user":{"type":"object","required":["id","name","email","phone","role","external_id","notes","details","tags","organization_id","custom_fields","verified"],"properties":{"id":{"oneOf":[{"type":"string","description":"The Zendesk user ID, or `null` if the user wasn't created.","isRequired":true,"uniqueKey":"data.oneOf.11.user.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Zendesk user ID, or `null` if the user wasn't created.","isRequired":true,"uniqueKey":"data.oneOf.11.user.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.id","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.phone.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.phone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.phone","typeLabel":"string | null"},"role":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.role.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.role.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.role","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.external_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.external_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.external_id","typeLabel":"string | null"},"notes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.notes.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.notes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.notes","typeLabel":"string | null"},"details":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.details.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.details","typeLabel":"string | null"},"tags":{"oneOf":[{"type":"string","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"data.oneOf.11.user.tags.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"data.oneOf.11.user.tags.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.tags","typeLabel":"string | null"},"organization_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.11.user.organization_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.organization_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.organization_id","typeLabel":"string | null"},"custom_fields":{"oneOf":[{"type":"string","description":"As configured.","isRequired":true,"uniqueKey":"data.oneOf.11.user.custom_fields.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured.","isRequired":true,"uniqueKey":"data.oneOf.11.user.custom_fields.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.custom_fields","typeLabel":"string | null"},"verified":{"oneOf":[{"type":"boolean","isRequired":true,"uniqueKey":"data.oneOf.11.user.verified.oneOf.0","typeLabel":"boolean"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.11.user.verified.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.11.user.verified","typeLabel":"boolean | null"}},"isRequired":true,"uniqueKey":"data.oneOf.11.user","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.oneOf.11","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","operation","row_count"],"properties":{"action":{"type":"string","const":"google_sheets","isRequired":true,"uniqueKey":"data.oneOf.12.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.12.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.12.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.12.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.12.error","typeLabel":"string | null"},"operation":{"type":"string","enum":["find_rows","append_row","update_row","clear_rows","delete_rows"],"isRequired":true,"uniqueKey":"data.oneOf.12.operation","typeLabel":"enum\u003cstring>"},"row_count":{"oneOf":[{"type":"integer","description":"The number of rows found or changed.","isRequired":true,"uniqueKey":"data.oneOf.12.row_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The number of rows found or changed.","isRequired":true,"uniqueKey":"data.oneOf.12.row_count.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.12.row_count","typeLabel":"integer | null"}},"isRequired":true,"uniqueKey":"data.oneOf.12","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","operation","record_id","record_count","properties","records"],"properties":{"action":{"type":"string","const":"hubspot","isRequired":true,"uniqueKey":"data.oneOf.13.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.13.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.13.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.13.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.error","typeLabel":"string | null"},"operation":{"type":"string","enum":["find_contact","create_contact","update_contact","find_company","create_company","update_company","find_ticket","create_ticket","update_ticket"],"isRequired":true,"uniqueKey":"data.oneOf.13.operation","typeLabel":"enum\u003cstring>"},"record_id":{"oneOf":[{"type":"string","description":"The HubSpot record that was created, updated, or found.","isRequired":true,"uniqueKey":"data.oneOf.13.record_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The HubSpot record that was created, updated, or found.","isRequired":true,"uniqueKey":"data.oneOf.13.record_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.record_id","typeLabel":"string | null"},"record_count":{"oneOf":[{"type":"integer","description":"The number of records found.","isRequired":true,"uniqueKey":"data.oneOf.13.record_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The number of records found.","isRequired":true,"uniqueKey":"data.oneOf.13.record_count.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.record_count","typeLabel":"integer | null"},"properties":{"type":"array","items":{"type":"object","required":["name","label","value"],"properties":{"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].name","typeLabel":"string | null"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].label","typeLabel":"string | null"},"value":{"oneOf":[{"type":"string","description":"The value as text.","isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value as text.","isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.properties.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.13.properties.items.[INDEX]","typeLabel":"object"},"description":"The record's properties, up to 50.","isRequired":true,"uniqueKey":"data.oneOf.13.properties","typeLabel":"object[]"},"records":{"type":"array","items":{"type":"object","required":["record_id","properties"],"properties":{"record_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].record_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].record_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].record_id","typeLabel":"string | null"},"properties":{"type":"array","items":{"type":"object","required":["name","label","value"],"properties":{"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].name","typeLabel":"string | null"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].label","typeLabel":"string | null"},"value":{"oneOf":[{"type":"string","description":"The value as text.","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value as text.","isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.oneOf.13.records.items.[INDEX].properties","typeLabel":"object[]"}},"uniqueKey":"data.oneOf.13.records.items.[INDEX]","typeLabel":"object"},"description":"The records found, up to 10 with 10 properties each.","isRequired":true,"uniqueKey":"data.oneOf.13.records","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.13","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["action","status","error","workflow_id","workflow_name","run_id","run_status"],"properties":{"action":{"type":"string","const":"run_workflow","isRequired":true,"uniqueKey":"data.oneOf.14.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.oneOf.14.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.14.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"data.oneOf.14.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.14.error","typeLabel":"string | null"},"workflow_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.14.workflow_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.14.workflow_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.14.workflow_id","typeLabel":"string | null"},"workflow_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.14.workflow_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.14.workflow_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.14.workflow_name","typeLabel":"string | null"},"run_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.14.run_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.14.run_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.14.run_id","typeLabel":"string | null"},"run_status":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.14.run_status.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.14.run_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.14.run_status","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.14","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["url"],"properties":{"url":{"oneOf":[{"type":"string","description":"The file's URL, as set in the chatbot's flow.","isRequired":true,"uniqueKey":"data.oneOf.15.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The file's URL, as set in the chatbot's flow.","isRequired":true,"uniqueKey":"data.oneOf.15.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.15.url","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.15","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["id","title","description","image_url","buttons"],"properties":{"id":{"type":"string","description":"Numbered from `1` if the card has no ID.","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].id","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].title","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].description","typeLabel":"string | null"},"image_url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].image_url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].image_url","typeLabel":"string | null"},"buttons":{"type":"array","items":{"type":"object","required":["id","label","url","message"],"properties":{"id":{"type":"string","description":"Chatbot link buttons don't have IDs, so they're numbered from `1`.","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].label","typeLabel":"string"},"url":{"oneOf":[{"type":"string","description":"Set for link buttons, which open the URL instead of sending a message.","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set for link buttons, which open the URL instead of sending a message.","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].url","typeLabel":"string | null"},"message":{"oneOf":[{"type":"string","description":"Set for reply buttons: the text the widget sends as a user message when the button is chosen.","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set for reply buttons: the text the widget sends as a user message when the button is chosen.","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].message","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX]","typeLabel":"object"},"description":"The card's buttons, in the same shape as a `buttons` message.","isRequired":true,"uniqueKey":"data.oneOf.16.\\items.items.[INDEX].buttons","typeLabel":"object[]"}},"uniqueKey":"data.oneOf.16.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.oneOf.16.\\items","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.16","typeLabel":"object"},{"type":"object","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","required":["first_name","last_name","company","job_title","phones","emails","urls"],"properties":{"first_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.17.first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.17.first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.17.first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.17.last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.17.last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.17.last_name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.17.company.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.17.company.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.17.company","typeLabel":"string | null"},"job_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.17.job_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.oneOf.17.job_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.17.job_title","typeLabel":"string | null"},"phones":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.17.phones.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.oneOf.17.phones","typeLabel":"string[]"},"emails":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.17.emails.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.oneOf.17.emails","typeLabel":"string[]"},"urls":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.17.urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.oneOf.17.urls","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"data.oneOf.17","typeLabel":"object"},{"type":"null","description":"Details of the message, depending on its `type`. `text` messages from the agent include their `sources`. `null` for other `text` messages and for an AI agent's media messages.","isRequired":true,"uniqueKey":"data.oneOf.18","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"object · object · object · object · object · object · object · object · object · object · object · object · object · object · object · object · object · object · null"},"attachments":{"type":"array","items":{"type":"object","description":"A file sent with a message: an upload from the API, chat widget, or dashboard, or media from WhatsApp, Messenger, or Instagram.","required":["id","type","mime","filename","size","url","url_expires_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the attachment, stable across requests.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["image","video","audio","document"],"isRequired":true,"uniqueKey":"attachments.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"mime":{"oneOf":[{"type":"string","description":"The MIME type, such as `image/png`. `null` if the channel didn't report one.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].mime.oneOf.0","typeLabel":"string"},{"type":"null","description":"The MIME type, such as `image/png`. `null` if the channel didn't report one.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].mime.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"attachments.items.[INDEX].mime","typeLabel":"string | null"},"filename":{"oneOf":[{"type":"string","description":"The original file name. `null` if the channel didn't send one.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].filename.oneOf.0","typeLabel":"string"},{"type":"null","description":"The original file name. `null` if the channel didn't send one.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].filename.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"attachments.items.[INDEX].filename","typeLabel":"string | null"},"size":{"oneOf":[{"type":"integer","description":"The size in bytes. `null` for channel media, whose size is only known once downloaded.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].size.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The size in bytes. `null` for channel media, whose size is only known once downloaded.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].size.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"attachments.items.[INDEX].size","typeLabel":"integer | null"},"url":{"oneOf":[{"type":"string","format":"uri","description":"A link to download the file, valid until `url_expires_at`. It doesn't need an API key, so treat it as a secret. List the messages again to get a new link. Channels can remove files at any time, and the link then returns 410 `attachment_unavailable`. `null` if a link couldn't be created. Listing again retries.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"A link to download the file, valid until `url_expires_at`. It doesn't need an API key, so treat it as a secret. List the messages again to get a new link. Channels can remove files at any time, and the link then returns 410 `attachment_unavailable`. `null` if a link couldn't be created. Listing again retries.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"attachments.items.[INDEX].url","typeLabel":"string\u003curi> | null"},"url_expires_at":{"oneOf":[{"type":"string","format":"date-time","description":"Time at which `url` expires, 5 minutes after the request. `null` if `url` is.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].url_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Time at which `url` expires, 5 minutes after the request. `null` if `url` is.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].url_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"attachments.items.[INDEX].url_expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"attachments.items.[INDEX]","typeLabel":"object"},"description":"Files sent with the message, in order. A caption is the message's `text`.","isRequired":true,"uniqueKey":"attachments","typeLabel":"object[]"},"is_note":{"type":"boolean","description":"Whether the message is an internal note, which the user never sees.","isRequired":true,"uniqueKey":"is_note","typeLabel":"boolean"},"sent_by_website":{"type":"boolean","description":"Whether the website sent this user message with `window.Chatling.sendMessage()`, rather than the user typing it.","isRequired":true,"uniqueKey":"sent_by_website","typeLabel":"boolean"},"is_hidden":{"type":"boolean","description":"Whether the website sent this message with `hidden: true`. The AI agent receives hidden messages, but the user never sees them.","isRequired":true,"uniqueKey":"is_hidden","typeLabel":"boolean"},"rating":{"oneOf":[{"type":"string","enum":["positive","negative",null],"description":"The rating of an AI-written answer, given by the user in the widget or set with [Update a message](/api-reference/v3/conversations/update-message). Always `null` for other messages.","isRequired":true,"uniqueKey":"rating.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["positive","negative",null],"description":"The rating of an AI-written answer, given by the user in the widget or set with [Update a message](/api-reference/v3/conversations/update-message). Always `null` for other messages.","isRequired":true,"uniqueKey":"rating.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"rating","typeLabel":"enum\u003cstring> | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"created_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"message","id":"\u003cstring>","conversation_id":"\u003cstring>","author":{"type":"user","id":"\u003cstring>","name":"\u003cstring>"},"type":"text","text":"\u003cstring>","data":{"sources":[{"type":"webpage","title":"\u003cstring>","url":"\u003cstring>"}]},"attachments":[{"id":"\u003cstring>","type":"image","mime":"\u003cstring>","filename":"\u003cstring>","size":123,"url":"\u003cstring>","url_expires_at":"2023-11-07T05:31:56Z"}],"is_note":true,"sent_by_website":true,"is_hidden":true,"rating":"positive","created_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"24881238-b180-4984-9068-0f68bf48fc47":{"description":"- `invalid_json`: The body isn't a JSON object or array.\n- `invalid_idempotency_key`: The `Idempotency-Key` header is invalid.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"validation_failed","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","errors":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"ce20e9ad-fdcd-499a-9db3-0da4a7a52ff2":{"description":"`missing_api_key`, `invalid_api_key`, or `api_key_expired`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is invalid or has been revoked.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is invalid or has been revoked.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"1b59d379-68c9-4972-9f49-c193251eb211":{"description":"`insufficient_permission`, `agent_suspended`, `project_suspended`, or `plan_feature_unavailable` if the plan doesn't include API access, or WhatsApp when sending to a number.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"validation_failed","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","errors":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"7946701a-dd7d-4f5d-8d64-e1e229c50994":{"description":"`resource_not_found`: No AI agent or conversation with this ID exists in the project, or the key can't access it.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"validation_failed","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","errors":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"76360c3a-8c1a-477a-8f8e-2be4f21c1303":{"description":"- `channel_not_connected`: No WhatsApp account is connected to the AI agent.\n- `conversation_ended`: The conversation has ended. Send to its number with `to` to start a new one.\n- `whatsapp_send_failed`: Meta didn't send the template, for example because the number isn't on WhatsApp or the account has a payment issue. `message` includes Meta's reason.\n- `resource_busy`: Another template is still being sent to the same number.\n- `idempotency_request_in_progress`: A request with this `Idempotency-Key` is still running.\n- `unsupported_agent_type`: The agent is a chatbot.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"invalid_request_error","code":"whatsapp_send_failed","message":"Meta didn't send the template: Recipient phone number not in allowed list.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"whatsapp_send_failed","message":"Meta didn't send the template: Recipient phone number not in allowed list.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"15d42cd6-a8a7-4f21-a0b1-3e30a582f033":{"description":"- `validation_failed`: A parameter is invalid. `param` is `template_id` if the template isn't approved, can't be sent from the API, or doesn't belong to the AI agent's WhatsApp account, and `variables.\u003ckey>` if a value is missing, unknown, or too long.\n- `idempotency_key_reused`: The `Idempotency-Key` was already used for a different request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"validation_failed","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","errors":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"2d5cfa07-f896-4a10-a58f-b3e20b857b6d":{"description":"`rate_limit_exceeded`.","headers":{"Retry-After":{"description":"The number of seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"validation_failed","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","errors":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"9522d31a-824d-4ecf-bc9b-85501a3ee26f":{"description":"`message_not_saved`: Meta sent the template, but it couldn't be saved in the conversation. Don't retry, or the customer receives it twice.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"api_error","code":"message_not_saved","message":"The template was sent, but it couldn't be added to the conversation.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"api_error","code":"message_not_saved","message":"The template was sent, but it couldn't be added to the conversation.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"8529c987-60c7-4138-9cff-c6fa1c1f2729":{"apiKey":{"type":"http","scheme":"bearer","description":"A project API key, created in the dashboard.","scopes":[],"schemeName":"apiKey"}}},"servers":{"16086fde-3c32-456e-b395-21dafcd77092":{"url":"https://api.chatling.ai/v3"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A project API key, created in the dashboard.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A project API key, created in the dashboard.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"api-reference/v3/openapi.json"},"subdomain":"chatling-21192973","siteName":"Chatling Documentation","title":"Send a WhatsApp template - Chatling Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T03:59:48.002Z","originalFileLocation":"api-reference/v3/whatsapp/send-whatsapp-template.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Available for AI agents only. Sends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time. Only message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries. With to, the template goes to the number\u0026#x27;s ongoing conversation with the AI agent. If there isn\u0026#x27;t one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan. With the default mode: ai, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it\u0026#x27;s handling, and conversations a team member took over stay with them. mode: live takes the conversation over and assigns it to the author if it\u0026#x27;s unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by API key \u0026quot;\u0026quot;. Templates with an image, video, or document header can only be sent if the template has a saved header file.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Chatling Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a WhatsApp template - Chatling Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Available for AI agents only. Sends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time. Only message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries. With to, the template goes to the number\u0026#x27;s ongoing conversation with the AI agent. If there isn\u0026#x27;t one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan. With the default mode: ai, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it\u0026#x27;s handling, and conversations a team member took over stay with them. mode: live takes the conversation over and assigns it to the author if it\u0026#x27;s unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by API key \u0026quot;\u0026quot;. Templates with an image, video, or document header can only be sent if the template has a saved header file.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Chatling Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chatling-21192973.mintlify.site/_mintlify/api/og/v2?division=WhatsApp\u0026amp;title=Send+a+WhatsApp+template\u0026amp;description=**Available+for+AI+agents+only.**%0A%0ASends+an+approved+template+from+a+team+member%2C+to+a+WhatsApp+conversation+or+a+phone+number%2C+and+saves+it+in+the+conversation\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=54fa43bdaaaf4c70c6c7bb08247e250b901f7b0c0db4d657639023cb5b1812f1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send a WhatsApp template - Chatling Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Available for AI agents only. Sends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time. Only message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries. With to, the template goes to the number\u0026#x27;s ongoing conversation with the AI agent. If there isn\u0026#x27;t one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan. With the default mode: ai, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it\u0026#x27;s handling, and conversations a team member took over stay with them. mode: live takes the conversation over and assigns it to the author if it\u0026#x27;s unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by API key \u0026quot;\u0026quot;. Templates with an image, video, or document header can only be sent if the template has a saved header file.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chatling-21192973.mintlify.site/_mintlify/api/og/v2?division=WhatsApp\u0026amp;title=Send+a+WhatsApp+template\u0026amp;description=**Available+for+AI+agents+only.**%0A%0ASends+an+approved+template+from+a+team+member%2C+to+a+WhatsApp+conversation+or+a+phone+number%2C+and+saves+it+in+the+conversation\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=54fa43bdaaaf4c70c6c7bb08247e250b901f7b0c0db4d657639023cb5b1812f1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Chatling Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v3/whatsapp/send-whatsapp-template.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.chatling.ai/#organization\",\"name\":\"Chatling Documentation\",\"url\":\"https://docs.chatling.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=b2dff50e5e554f9a1821ad6c4e86b8cd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.chatling.ai#website\",\"name\":\"Chatling Documentation\",\"url\":\"https://docs.chatling.ai\",\"publisher\":{\"@id\":\"https://docs.chatling.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template#webpage\",\"url\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template\",\"name\":\"Send a WhatsApp template\",\"description\":\"Available for AI agents only. Sends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time. Only message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries. With to, the template goes to the number's ongoing conversation with the AI agent. If there isn't one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan. With the default mode: ai, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it's handling, and conversations a team member took over stay with them. mode: live takes the conversation over and assigns it to the author if it's unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by API key \\\"\\\". Templates with an image, video, or document header can only be sent if the template has a saved header file.\",\"dateModified\":\"2026-11-30T03:59:48.002Z\",\"isPartOf\":{\"@id\":\"https://docs.chatling.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.chatling.ai/api-reference/v3/api-key/get-current-api-key\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WhatsApp\",\"item\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/list-whatsapp-templates\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Send a WhatsApp template\",\"item\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template#apireference\",\"headline\":\"Send a WhatsApp template\",\"name\":\"Send a WhatsApp template\",\"description\":\"Available for AI agents only. Sends an approved template from a team member, to a WhatsApp conversation or a phone number, and saves it in the conversation as their message. Templates are the only messages WhatsApp lets businesses send outside the 24-hour reply window, so you can use them to start or resume a conversation at any time. Only message people who agreed to receive WhatsApp messages from you. Meta can limit or block accounts whose messages are reported, and charges per template for some categories and countries. With to, the template goes to the number's ongoing conversation with the AI agent. If there isn't one, a new conversation and contact are created once Meta accepts the template. Sending to a new number requires WhatsApp on the plan. With the default mode: ai, the conversation keeps its mode. The AI agent answers replies in new conversations and conversations it's handling, and conversations a team member took over stay with them. mode: live takes the conversation over and assigns it to the author if it's unassigned. Either way, resolved and closed conversations reopen, and the changes show as made by API key \\\"\\\". Templates with an image, video, or document header can only be sent if the template has a saved header file.\",\"url\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template\",\"mainEntityOfPage\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/whatsapp/send-whatsapp-template#webpage\"},\"dateModified\":\"2026-11-30T03:59:48.002Z\",\"publisher\":{\"@id\":\"https://docs.chatling.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.chatling.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Chatling Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Chatling Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v3/whatsapp/send-whatsapp-template.md","siteName":"Chatling Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Get started","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/api-reference/v3/introduction"},{"title":"Authentication","href":"/api-reference/v3/authentication"},{"title":"Errors","href":"/api-reference/v3/errors"},{"title":"Pagination","href":"/api-reference/v3/pagination"},{"title":"MCP server","href":"/api-reference/v3/mcp"}]},{"group":"Reference","pages":[{"group":"API key","pages":[{"title":"Retrieve the current API key","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /me","href":"/api-reference/v3/api-key/get-current-api-key"}]},{"group":"Project","pages":[{"title":"Retrieve the project","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /project","href":"/api-reference/v3/project/get-project"},{"title":"Update the project","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /project","href":"/api-reference/v3/project/update-project"},{"title":"Retrieve usage","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /usage","href":"/api-reference/v3/project/get-usage"}]},{"group":"Members","pages":[{"title":"List members","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /members","href":"/api-reference/v3/members/list-members"}]},{"group":"AI models","pages":[{"title":"List AI models","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /models","href":"/api-reference/v3/ai-models/list-models"}]},{"group":"Agents","pages":[{"title":"List AI agents","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /agents","href":"/api-reference/v3/agents/list-agents"},{"title":"Create an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /agents","href":"/api-reference/v3/agents/create-agent"},{"title":"Retrieve an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /agents/{agent}","href":"/api-reference/v3/agents/get-agent"},{"title":"Delete an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /agents/{agent}","href":"/api-reference/v3/agents/delete-agent"},{"title":"Update an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /agents/{agent}","href":"/api-reference/v3/agents/update-agent"},{"title":"Duplicate an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /agents/{agent}/duplicate","href":"/api-reference/v3/agents/duplicate-agent"}]},{"group":"Chatbots","pages":[{"title":"List chatbots","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /chatbots","href":"/api-reference/v3/chatbots/list-chatbots"},{"title":"Create a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /chatbots","href":"/api-reference/v3/chatbots/create-chatbot"},{"title":"List chatbot templates","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /chatbots/templates","href":"/api-reference/v3/chatbots/list-chatbot-templates"},{"title":"Retrieve a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /chatbots/{chatbot}","href":"/api-reference/v3/chatbots/get-chatbot"},{"title":"Delete a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /chatbots/{chatbot}","href":"/api-reference/v3/chatbots/delete-chatbot"},{"title":"Update a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /chatbots/{chatbot}","href":"/api-reference/v3/chatbots/update-chatbot"},{"title":"Duplicate a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /chatbots/{chatbot}/duplicate","href":"/api-reference/v3/chatbots/duplicate-chatbot"}]},{"group":"Analytics","pages":[{"title":"Get the analytics overview","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/overview","href":"/api-reference/v3/analytics/get-analytics-overview"},{"title":"List countries","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/countries","href":"/api-reference/v3/analytics/list-analytics-countries"},{"title":"List channels","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/channels","href":"/api-reference/v3/analytics/list-analytics-channels"},{"title":"List pages","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/pages","href":"/api-reference/v3/analytics/list-analytics-pages"},{"title":"List topics by conversations","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/topics","href":"/api-reference/v3/analytics/list-analytics-topics"},{"title":"List busiest hours","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/hours","href":"/api-reference/v3/analytics/list-analytics-hours"}]},{"group":"Channels","pages":[{"title":"List channels","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /channels","href":"/api-reference/v3/channels/list-channels"},{"title":"Update a channel's settings","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /channels/{channel}","href":"/api-reference/v3/channels/update-channel"}]},{"group":"WhatsApp","pages":[{"title":"List WhatsApp templates","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /whatsapp/templates","href":"/api-reference/v3/whatsapp/list-whatsapp-templates"},{"title":"Refresh WhatsApp templates","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /whatsapp/templates/refresh","href":"/api-reference/v3/whatsapp/refresh-whatsapp-templates"},{"title":"Retrieve a WhatsApp template","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /whatsapp/templates/{template}","href":"/api-reference/v3/whatsapp/get-whatsapp-template"},{"title":"Delete a WhatsApp template","description":"**Available for AI agents only.**\n\nPermanently deletes a WhatsApp template, in Meta too. It can't be undone.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /whatsapp/templates/{template}","href":"/api-reference/v3/whatsapp/delete-whatsapp-template"},{"title":"Send a WhatsApp template","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /whatsapp/messages","href":"/api-reference/v3/whatsapp/send-whatsapp-template"}]},{"group":"Conversations","pages":[{"title":"List conversations","description":"Returns a list of an agent's conversations on every channel, sorted by start time with the newest first, so pages don't shift as new messages arrive. Playground tests are included with `channel: playground`. Conversations where the user never sent a message aren't included, except API conversations.\n\nFilters combine with AND, and filters that take a comma-separated list match any of the values. Unknown query parameters return `validation_failed`, and IDs that match nothing return an empty list.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations","href":"/api-reference/v3/conversations/list-conversations"},{"title":"Start a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations","href":"/api-reference/v3/conversations/start-conversation"},{"title":"Retrieve a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}","href":"/api-reference/v3/conversations/get-conversation"},{"title":"Delete a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /conversations/{conversation}","href":"/api-reference/v3/conversations/delete-conversation"},{"title":"Update a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}","href":"/api-reference/v3/conversations/update-conversation"},{"title":"Retrieve a conversation's usage","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/usage","href":"/api-reference/v3/conversations/get-conversation-usage"},{"title":"List the messages of a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/messages","href":"/api-reference/v3/conversations/list-conversation-messages"},{"title":"Send a user message","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/messages","href":"/api-reference/v3/conversations/send-user-message"},{"title":"Update a message","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}/messages/{message}","href":"/api-reference/v3/conversations/update-message"},{"title":"Send a reply","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/replies","href":"/api-reference/v3/conversations/send-reply"},{"title":"Add a note","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/notes","href":"/api-reference/v3/conversations/send-note"},{"title":"End a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/end","href":"/api-reference/v3/conversations/end-conversation"},{"title":"Upload an attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/attachments","href":"/api-reference/v3/conversations/upload-attachment"},{"title":"Delete an attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /conversations/{conversation}/attachments/{attachment}","href":"/api-reference/v3/conversations/delete-attachment"},{"title":"Download a message attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/messages/{message}/attachments/{attachment}","href":"/api-reference/v3/conversations/download-message-attachment"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /contacts","href":"/api-reference/v3/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /contacts","href":"/api-reference/v3/contacts/create-contact"},{"title":"Retrieve a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /contacts/{contact}","href":"/api-reference/v3/contacts/get-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /contacts/{contact}","href":"/api-reference/v3/contacts/delete-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /contacts/{contact}","href":"/api-reference/v3/contacts/update-contact"}]},{"group":"Knowledge base","pages":[{"title":"Get a knowledge base summary","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/summary","href":"/api-reference/v3/knowledge-base/get-knowledge-base-summary"},{"title":"List knowledge base sources","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/sources","href":"/api-reference/v3/knowledge-base/list-knowledge-base-sources"},{"title":"Add a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources","href":"/api-reference/v3/knowledge-base/create-knowledge-base-source"},{"title":"Create a document upload","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/uploads","href":"/api-reference/v3/knowledge-base/create-knowledge-base-upload"},{"title":"Add knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch","href":"/api-reference/v3/knowledge-base/create-knowledge-base-sources"},{"title":"Retrieve a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/get-knowledge-base-source"},{"title":"Delete a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/delete-knowledge-base-source"},{"title":"Update a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/update-knowledge-base-source"},{"title":"Delete knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch-delete","href":"/api-reference/v3/knowledge-base/delete-knowledge-base-sources"},{"title":"Resync a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/{source}/resync","href":"/api-reference/v3/knowledge-base/resync-knowledge-base-source"},{"title":"Resync knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch-resync","href":"/api-reference/v3/knowledge-base/resync-knowledge-base-sources"}]},{"group":"Labels","pages":[{"title":"List labels","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /labels","href":"/api-reference/v3/labels/list-labels"},{"title":"Create a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /labels","href":"/api-reference/v3/labels/create-label"},{"title":"Retrieve a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /labels/{label}","href":"/api-reference/v3/labels/get-label"},{"title":"Delete a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /labels/{label}","href":"/api-reference/v3/labels/delete-label"},{"title":"Update a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /labels/{label}","href":"/api-reference/v3/labels/update-label"}]},{"group":"Teams","pages":[{"title":"List teams","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /teams","href":"/api-reference/v3/teams/list-teams"},{"title":"Create a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /teams","href":"/api-reference/v3/teams/create-team"},{"title":"Retrieve a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /teams/{team}","href":"/api-reference/v3/teams/get-team"},{"title":"Delete a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /teams/{team}","href":"/api-reference/v3/teams/delete-team"},{"title":"Update a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /teams/{team}","href":"/api-reference/v3/teams/update-team"},{"title":"Add a team member","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json put /teams/{team}/members/{account}","href":"/api-reference/v3/teams/add-team-member"},{"title":"Remove a team member","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /teams/{team}/members/{account}","href":"/api-reference/v3/teams/remove-team-member"}]},{"group":"Topics","pages":[{"title":"List topics","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /topics","href":"/api-reference/v3/topics/list-topics"}]},{"group":"Variables","pages":[{"title":"List variables","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /variables","href":"/api-reference/v3/variables/list-variables"},{"title":"Create a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /variables","href":"/api-reference/v3/variables/create-variable"},{"title":"Retrieve a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /variables/{variable}","href":"/api-reference/v3/variables/get-variable"},{"title":"Delete a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /variables/{variable}","href":"/api-reference/v3/variables/delete-variable"},{"title":"Update a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /variables/{variable}","href":"/api-reference/v3/variables/update-variable"}]},{"group":"Workflows","pages":[{"title":"List workflows","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows","href":"/api-reference/v3/workflows/list-workflows"},{"title":"Retrieve the workflow catalog","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/catalog","href":"/api-reference/v3/workflows/get-workflow-catalog"},{"title":"Retrieve a workflow","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}","href":"/api-reference/v3/workflows/get-workflow"},{"title":"Update a workflow","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /workflows/{workflow}","href":"/api-reference/v3/workflows/update-workflow"},{"title":"List workflow runs","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}/runs","href":"/api-reference/v3/workflows/list-workflow-runs"},{"title":"Retrieve a workflow run","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}/runs/{run}","href":"/api-reference/v3/workflows/get-workflow-run"}]}]}]}]},"basePath":"","title":"Send a WhatsApp template - Chatling Documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}