{
"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": "permission_error",
"code": "insufficient_permission",
"message": "This API key doesn't have delete access to agents.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No message with this ID exists in this conversation.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "message_not_rateable",
"message": "Only answers the AI wrote can be rated.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "The name field is required.",
"param": "name",
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw",
"errors": [
{
"param": "name",
"message": "The name field is required."
}
]
}
}
Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only rating can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 message_not_rateable. A chatbot’s AI answers from its knowledge base can be rated, but its other flow messages can’t.
{
"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": "permission_error",
"code": "insufficient_permission",
"message": "This API key doesn't have delete access to agents.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No message with this ID exists in this conversation.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "message_not_rateable",
"message": "Only answers the AI wrote can be rated.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "The name field is required.",
"param": "name",
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw",
"errors": [
{
"param": "name",
"message": "The name field is 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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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/conversations/update-message","slug":"/api-reference/v3/conversations/update-message","pageMetadata":{"title":"Update a message","description":"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only `rating` can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 `message_not_rateable`. A chatbot's AI answers from its knowledge base can be rated, but its other flow messages can't.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}/messages/{message}","href":"/api-reference/v3/conversations/update-message","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only \", _jsx(_components.code, {\n children: \"rating\"\n }), \" can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 \", _jsx(_components.code, {\n children: \"message_not_rateable\"\n }), \". A chatbot’s AI answers from its knowledge base can be rated, but its other flow messages can’t.\"]\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":"Update a message","description":"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only `rating` can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 `message_not_rateable`. A chatbot's AI answers from its knowledge base can be rated, but its other flow messages can't.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}/messages/{message}","href":"/api-reference/v3/conversations/update-message","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateMessage","tags":["Conversations"],"summary":"Update a message","description":"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only `rating` can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 `message_not_rateable`. A chatbot's AI answers from its knowledge base can be rated, but its other flow messages can't.","x-chatling-permission":{"group":"conversations","access":"update"},"x-chatling-project-wide":false,"x-chatling-acts-as-user":true,"x-chatling-agent-types":["ai_agent","chatbot"],"requestBody":"c238a5ea-353c-4be9-ac4e-2722a645fe48","responses":{"200":"ac2fcee5-6f75-47ce-b819-d579ed1dfcd6","400":"7e24212d-0567-49fd-b0de-58f49a73f8d2","401":"c0019669-dce4-4c0d-a901-6069a89c8c7e","403":"86437eac-f09c-4c53-871e-74c1cc298aec","404":"1c2bb6ba-84a1-4820-973a-b24883614d78","409":"6ba40dc3-d56f-415b-9a37-9779059c2d17","422":"d3ac9131-4a72-4e5b-89e4-c616b7283676","429":"4a4a5915-5940-402f-8ddf-208f7ce91ac4"},"method":"patch","type":"path","servers":["16086fde-3c32-456e-b395-21dafcd77092"],"security":["8529c987-60c7-4138-9cff-c6fa1c1f2729"],"path":"/conversations/{conversation}/messages/{message}","baseUrlOptions":["https://api.chatling.ai/v3"],"title":"Update a message","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0f0927ec-1021-42f3-a5f1-c1168f51f9a4":{"name":"conversation","in":"path","required":true,"description":"ID of the conversation.","schema":{"type":"string","isRequired":true,"description":"ID of the conversation.","uniqueKey":"","typeLabel":"string"},"example":"5f0c1c2e-6c1d-4a8f-9a59-0d4c4f1b2a10"},"d9aeaf09-4c22-42c0-8537-1ad6024cc6ce":{"name":"message","in":"path","required":true,"description":"ID of the message.","schema":{"type":"string","isRequired":true,"description":"ID of the message.","uniqueKey":"","typeLabel":"string"},"example":"9b2f4c1e-3d7a-4e5b-8c6f-1a2b3c4d5e6f"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["rating"],"properties":{"rating":{"oneOf":[{"type":"string","enum":["positive","negative",null],"description":"`null` clears the rating.","isRequired":true,"uniqueKey":"rating.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["positive","negative",null],"description":"`null` clears the rating.","isRequired":true,"uniqueKey":"rating.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"rating","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"rating":"positive"},"examples":{"Example":{"title":"Example","value":{"rating":"positive"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ac2fcee5-6f75-47ce-b819-d579ed1dfcd6":{"description":"The updated message.","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"},"7e24212d-0567-49fd-b0de-58f49a73f8d2":{"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"},"c0019669-dce4-4c0d-a901-6069a89c8c7e":{"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"},"86437eac-f09c-4c53-871e-74c1cc298aec":{"description":"`insufficient_permission`, `project_suspended`, or `plan_feature_unavailable`.","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":"permission_error","code":"insufficient_permission","message":"This API key doesn't have delete access to agents.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"permission_error","code":"insufficient_permission","message":"This API key doesn't have delete access to agents.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"1c2bb6ba-84a1-4820-973a-b24883614d78":{"description":"`resource_not_found`: The conversation doesn't exist, the key can't access it, or the conversation has no message with this ID.","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":"not_found_error","code":"resource_not_found","message":"No message with this ID exists in this conversation.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No message with this ID exists in this conversation.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"6ba40dc3-d56f-415b-9a37-9779059c2d17":{"description":"`message_not_rateable`: Only AI-written answers can be rated.","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":"message_not_rateable","message":"Only answers the AI wrote can be rated.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"message_not_rateable","message":"Only answers the AI wrote can be rated.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d3ac9131-4a72-4e5b-89e4-c616b7283676":{"description":"`validation_failed`, or `invalid_cursor` for lists.","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":"validation_failed","message":"The name field is required.","param":"name","request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw","errors":[{"param":"name","message":"The name field is required."}]}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"validation_failed","message":"The name field is required.","param":"name","request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw","errors":[{"param":"name","message":"The name field is required."}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"4a4a5915-5940-402f-8ddf-208f7ce91ac4":{"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"}},"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":"Update a message - Chatling Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T03:59:48.160Z","originalFileLocation":"api-reference/v3/conversations/update-message.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=\"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only rating can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 message_not_rateable. A chatbot\u0026#x27;s AI answers from its knowledge base can be rated, but its other flow messages can\u0026#x27;t.\">\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=\"Update a message - Chatling Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only rating can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 message_not_rateable. A chatbot\u0026#x27;s AI answers from its knowledge base can be rated, but its other flow messages can\u0026#x27;t.\">\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/conversations/update-message\">\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=Conversations\u0026amp;title=Update+a+message\u0026amp;description=Sets+or+clears+the+rating+of+an+AI-written+answer%2C+like+the+thumbs+up+or+down+a+user+gives+in+the+widget.+Only+%60rating%60+can+be+updated.+Other+messages%2C+such+as+\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=300e5a662052024fb4528d4e71c56f9d419f79340a10511b0aeaa0d593574d93\">\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=\"Update a message - Chatling Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only rating can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 message_not_rateable. A chatbot\u0026#x27;s AI answers from its knowledge base can be rated, but its other flow messages can\u0026#x27;t.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chatling-21192973.mintlify.site/_mintlify/api/og/v2?division=Conversations\u0026amp;title=Update+a+message\u0026amp;description=Sets+or+clears+the+rating+of+an+AI-written+answer%2C+like+the+thumbs+up+or+down+a+user+gives+in+the+widget.+Only+%60rating%60+can+be+updated.+Other+messages%2C+such+as+\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=300e5a662052024fb4528d4e71c56f9d419f79340a10511b0aeaa0d593574d93\">\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/conversations/update-message\">\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/conversations/update-message.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/conversations/update-message#webpage\",\"url\":\"https://docs.chatling.ai/api-reference/v3/conversations/update-message\",\"name\":\"Update a message\",\"description\":\"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only rating can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 message_not_rateable. A chatbot's AI answers from its knowledge base can be rated, but its other flow messages can't.\",\"dateModified\":\"2026-11-30T03:59:48.160Z\",\"isPartOf\":{\"@id\":\"https://docs.chatling.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/update-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/update-message#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\":\"Conversations\",\"item\":\"https://docs.chatling.ai/api-reference/v3/conversations/list-conversations\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a message\",\"item\":\"https://docs.chatling.ai/api-reference/v3/conversations/update-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/update-message#apireference\",\"headline\":\"Update a message\",\"name\":\"Update a message\",\"description\":\"Sets or clears the rating of an AI-written answer, like the thumbs up or down a user gives in the widget. Only rating can be updated. Other messages, such as intro, workflow, team, and user messages, return 409 message_not_rateable. A chatbot's AI answers from its knowledge base can be rated, but its other flow messages can't.\",\"url\":\"https://docs.chatling.ai/api-reference/v3/conversations/update-message\",\"mainEntityOfPage\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/update-message#webpage\"},\"dateModified\":\"2026-11-30T03:59:48.160Z\",\"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/conversations/update-message.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","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","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","description":"Sends a message as the user of an API channel conversation and returns the agent's replies.\n\nAI agents reply using their own AI settings, actions, and knowledge base. Chatbots don't run their flow through the API. Instead, a chatbot answers from its knowledge base using the model, temperature, and instructions in `ai`, which is required for chatbots and not allowed for AI agents. These settings apply to that reply only and aren't saved, so pass them with every message. A chatbot replies with one `text` message with its `sources`.\n\nTo send files to an AI agent, upload each file with [Upload an attachment](/api-reference/v3/conversations/upload-attachment), then pass the IDs in `attachment_ids`. `text` is then optional. In `ai` mode, the AI agent sees the images, and each image is charged like an image sent in the chat widget. Chatbots don't accept attachments.\n\nAll checks run before the message is saved, so a failed request saves nothing. Then the message is saved, resolved and closed conversations reopen, and in `ai` mode the agent replies. In `live` and `pending_handoff` modes, the message is saved for the team and `replies` is empty.\n\nIf the agent fails to reply after the message is saved, the response is still 201, with `reply_error` set. Retrying with the same `Idempotency-Key` returns this response without saving the message again.\n\nWith `stream: true`, the response is a `text/event-stream`, sent as soon as the user message is saved. Errors before that, such as `conversation_ended`, are regular JSON responses. A chatbot's reply arrives in one `reply.delta`. If the client disconnects, the reply is still saved and charged, and retrying with the same `Idempotency-Key` returns the finished turn as JSON.","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","description":"Sends a reply from a team member to the user on the conversation's channel. The agent doesn't reply to it, and no AI credits are used.\n\nAs in the inbox, a conversation in `ai` mode switches to `live` so the AI agent stops replying, an unassigned conversation is assigned to the author, and a resolved or closed conversation reopens. These changes show as made by `API key \"\u003ckey name>\"`.\n\nOn WhatsApp, Instagram, and Messenger, you can only reply while the reply window is open (see the conversation's `reply_window`). If the channel rejects the reply, it's still saved and `delivery_error` is set. Replies support text only.","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":"Update a message - 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"]}