{
"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": "ai_credits_exhausted",
"message": "This project has run out of AI credits, so the agent can't reply.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No agent with this ID exists, or this API key can't access it.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent’s intro messages aren’t added, and a chatbot’s flow doesn’t run.
A chatbot answers the first message from its knowledge base using the settings in ai, so ai is required with message for chatbots. Chatbot conversations don’t have variables.
All parameters, and the checks of Send a user message, are validated first, so a failed request creates nothing.
POST
/
conversations
curl --request POST \
--url https://api.chatling.ai/v3/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "3132353852",
"external_user_id": "user_123",
"contact_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"locale": "en-US",
"variables": {
"7c9e6679-7425-40de-944b-e07fc1f90ae7": "1042"
},
"message": "Can I get a refund?"
}
'
{
"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": "ai_credits_exhausted",
"message": "This project has run out of AI credits, so the agent can't reply.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No agent with this ID exists, or this API key can't access it.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.
Required string length: 1 - 255
Body
application/json
agent_id
string
required
ID of the AI agent or chatbot.
Maximum string length: 64
external_user_id
string | null
Your own ID for the user, such as their ID in your system. Can't contain control characters. Pass the same external_user_id in each of a person's conversations with an agent, and Chatling treats them as one user, with the same user_id. Blocking them, their contact, and per-user message limits then apply across those conversations. Each agent has its own users, so the same external_user_id with another agent is a different user. Without it, each conversation is a new user.
Required string length: 1 - 191
contact_id
string | null
ID of one of the agent's contacts to link to the conversation. The contact itself isn't changed. To change it, use Update a contact.
Maximum string length: 64
locale
string | null
The user's locale, such as en-US.
Maximum string length: 85
variables
object | null
AI agents only.
Values for the agent's custom variables, keyed by variable ID from List variables. System variables can't be set, and contact fields are changed with Update a contact. null keeps the default.
The AI settings for a chatbot's reply to message. Required with message, and only allowed with it.
Show child attributes
Response
The new conversation, its first messages, and any reply error.
object
any
required
id
string
required
Example:
"5f0c1c2e-6c1d-4a8f-9a59-0d4c4f1b2a10"
agent
object
required
The agent this belongs to.
Show child attributes
channel
enum<string>
required
Share links count as web. playground is a test from an AI agent's playground or a chatbot's builder preview.
Available options:
web,
api,
whatsapp,
instagram,
messenger,
telegram,
playground
user_id
string | null
required
Identifies the person chatting. It's the same in all their conversations with the agent, including for anonymous widget users who aren't contacts. On the web, it's the widget's ID for the user's browser. Through the API, it's derived from external_user_id, or new for each conversation without one. On WhatsApp, it's the user's phone number. On Instagram and Messenger, it's the user's ID for the account or page, and on Telegram, the chat ID. null for some older conversations.
Example:
"0b6f3c1e-8d2a-4f5b-9c7e-1a2b3c4d5e6f"
external_user_id
string | null
required
The external_user_id the conversation was started with through the API, if any.
status
enum<string>
required
Available options:
open,
resolved,
closed
mode
enum<string>
required
The agent only replies in ai mode. In live mode, the team replies. pending_handoff means the conversation is waiting for a team member to take over.
Available options:
ai,
live,
pending_handoff
ended_at
string<date-time> | null
required
Time at which the user's session ended. Ended conversations can't receive user messages.
read
boolean
required
Whether the team has read the latest user message. Read status is shared by the team.
important
boolean
required
priority
enum<string> | null
required
Available options:
low,
medium,
high,
urgent,
null
labels
object[]
required
Show child attributes
topics
object[]
required
Always [] for chatbot conversations.
Show child attributes
sentiment
enum<string> | null
required
null until the conversation is analysed, and always for chatbot conversations.
Available options:
positive,
neutral,
negative,
unknown,
null
assignee
object | null
required
The assigned team member.
Show child attributes
team
object | null
required
The assigned team.
Show child attributes
contact
object | null
required
The contact fields shown in the dashboard. zip is the postal code.
Show child attributes
variables
object[]
required
The AI agent's custom variables. System variables aren't included. Always [] for chatbot conversations.
Show child attributes
locale
string | null
required
country
string | null
required
The user's country as an ISO 3166-1 alpha-2 code, if known.
reply_window
object | null
required
null on channels without a reply window: web, API, and Telegram. On WhatsApp, Instagram, and Messenger, both times are null until the user writes.
Show child attributes
created_at
string<date-time> | null
required
last_message_at
string<date-time> | null
required
messages
object[]
required
The first user message and the replies to it, or [] without message.
Show child attributes
reply_error
object | null
required
Set if the user message was saved but the agent couldn't reply. No AI credits are used. Retrying with the same Idempotency-Key returns this response without saving the message again.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Chatling Documentation","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=b2dff50e5e554f9a1821ad6c4e86b8cd","dark":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo-white.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=7139297f08e04dea3d5f04e8ff00e18b"},"favicon":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/favicon.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=f0289a5a055de1338da1c4cd5d297893","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.chatling.ai/v3"}},"navbar":{"links":[{"href":"https://app.chatling.ai","label":"Dashboard"}]},"footer":{"socials":{"x":"https://twitter.com/chatlingai","linkedin":"https://www.linkedin.com/company/chatlingai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chatling-21192973","hasAudioNarration":false,"actualSubdomain":"chatling-21192973","customDomains":["docs.chatling.ai"],"gitSource":{"type":"github","owner":"ahm750","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0cf4ae9508b2d5f2b65fff","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Documentation","count":160},{"language":"default","tag":"API Reference","count":92},{"language":"default","tag":"Reference","count":87},{"language":"default","tag":"Chatbot","count":60},{"language":"default","tag":"Builder","count":50},{"language":"default","tag":"Blocks","count":35},{"language":"default","tag":"AI Agent","count":23},{"language":"default","tag":"Web Widget","count":23},{"language":"default","tag":"Conversations","count":15},{"language":"default","tag":"Live Chat","count":13}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/v3/conversations/start-conversation","slug":"/api-reference/v3/conversations/start-conversation","pageMetadata":{"title":"Start a conversation","description":"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent's intro messages aren't added, and a chatbot's flow doesn't run.\n\nA chatbot answers the first message from its knowledge base using the settings in `ai`, so `ai` is required with `message` for chatbots. Chatbot conversations don't have variables.\n\nAll parameters, and the checks of [Send a user message](/api-reference/v3/conversations/send-user-message), are validated first, so a failed request creates nothing.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations","href":"/api-reference/v3/conversations/start-conversation","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent’s intro messages aren’t added, and a chatbot’s flow doesn’t run.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A chatbot answers the first message from its knowledge base using the settings in \", _jsx(_components.code, {\n children: \"ai\"\n }), \", so \", _jsx(_components.code, {\n children: \"ai\"\n }), \" is required with \", _jsx(_components.code, {\n children: \"message\"\n }), \" for chatbots. Chatbot conversations don’t have variables.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"All parameters, and the checks of \", _jsx(_components.a, {\n href: \"/api-reference/v3/conversations/send-user-message\",\n children: \"Send a user message\"\n }), \", are validated first, so a failed request creates nothing.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start a conversation","description":"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent's intro messages aren't added, and a chatbot's flow doesn't run.\n\nA chatbot answers the first message from its knowledge base using the settings in `ai`, so `ai` is required with `message` for chatbots. Chatbot conversations don't have variables.\n\nAll parameters, and the checks of [Send a user message](/api-reference/v3/conversations/send-user-message), are validated first, so a failed request creates nothing.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations","href":"/api-reference/v3/conversations/start-conversation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"startConversation","tags":["Conversations"],"summary":"Start a conversation","description":"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent's intro messages aren't added, and a chatbot's flow doesn't run.\n\nA chatbot answers the first message from its knowledge base using the settings in `ai`, so `ai` is required with `message` for chatbots. Chatbot conversations don't have variables.\n\nAll parameters, and the checks of [Send a user message](/api-reference/v3/conversations/send-user-message), are validated first, so a failed request creates nothing.","x-chatling-permission":{"group":"conversations","access":"create"},"x-chatling-project-wide":false,"x-chatling-acts-as-user":true,"x-chatling-agent-types":["ai_agent","chatbot"],"parameters":["42f9e177-6335-4298-b1af-4898c1c6a94d"],"requestBody":"76d3b1bf-4462-4832-adc9-f1da31044947","responses":{"201":"487b611c-dbb2-4d1f-aba5-b75a30092eab","400":"24da6847-944b-45d6-b367-a5e7e63e8496","401":"24bcfb33-1233-453b-99bb-34c08fa18728","403":"28ed9cad-32b2-4b2d-9e52-63ebe92d42d1","404":"a02dd590-26a2-4cf1-8d86-4f0c009ac560","409":"775de912-5cb5-4555-982e-2b8b4c5079a5","422":"ac31f2fc-a967-4156-a3d7-0cd462689631","429":"b31eb3b5-4b81-4d02-849b-79c575e53fca"},"method":"post","type":"path","servers":["16086fde-3c32-456e-b395-21dafcd77092"],"security":["8529c987-60c7-4138-9cff-c6fa1c1f2729"],"path":"/conversations","baseUrlOptions":["https://api.chatling.ai/v3"],"title":"Start a conversation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"42f9e177-6335-4298-b1af-4898c1c6a94d":{"name":"Idempotency-Key","in":"header","description":"A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.","schema":{"type":"string","minLength":1,"maxLength":255,"description":"A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"agent_id":{"type":"string","maxLength":64,"description":"ID of the AI agent or chatbot.","isRequired":true,"uniqueKey":"agent_id","typeLabel":"string"},"external_user_id":{"oneOf":[{"type":"string","minLength":1,"maxLength":191,"description":"Your own ID for the user, such as their ID in your system. Can't contain control characters. Pass the same `external_user_id` in each of a person's conversations with an agent, and Chatling treats them as one user, with the same `user_id`. Blocking them, their contact, and per-user message limits then apply across those conversations. Each agent has its own users, so the same `external_user_id` with another agent is a different user. Without it, each conversation is a new user.","uniqueKey":"external_user_id.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":191,"description":"Your own ID for the user, such as their ID in your system. Can't contain control characters. Pass the same `external_user_id` in each of a person's conversations with an agent, and Chatling treats them as one user, with the same `user_id`. Blocking them, their contact, and per-user message limits then apply across those conversations. Each agent has its own users, so the same `external_user_id` with another agent is a different user. Without it, each conversation is a new user.","uniqueKey":"external_user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_id","typeLabel":"string | null"},"contact_id":{"oneOf":[{"type":"string","maxLength":64,"description":"ID of one of the agent's contacts to link to the conversation. The contact itself isn't changed. To change it, use [Update a contact](/api-reference/v3/contacts/update-contact).","uniqueKey":"contact_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":64,"description":"ID of one of the agent's contacts to link to the conversation. The contact itself isn't changed. To change it, use [Update a contact](/api-reference/v3/contacts/update-contact).","uniqueKey":"contact_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"contact_id","typeLabel":"string | null"},"locale":{"oneOf":[{"type":"string","maxLength":85,"description":"The user's locale, such as `en-US`.","uniqueKey":"locale.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":85,"description":"The user's locale, such as `en-US`.","uniqueKey":"locale.oneOf.1","typeLabel":"null"}],"uniqueKey":"locale","typeLabel":"string | null"},"variables":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"variables.oneOf.0.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"variables.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"variables.oneOf.0.additionalProperties","typeLabel":"string | null"},"description":"AI agents only.\n\nValues for the agent's custom variables, keyed by variable ID from [List variables](/api-reference/v3/variables/list-variables). System variables can't be set, and contact fields are changed with [Update a contact](/api-reference/v3/contacts/update-contact). `null` keeps the default.","example":{"7c9e6679-7425-40de-944b-e07fc1f90ae7":"1042"},"uniqueKey":"variables.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"variables.oneOf.1.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"variables.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"variables.oneOf.1.additionalProperties","typeLabel":"string | null"},"description":"AI agents only.\n\nValues for the agent's custom variables, keyed by variable ID from [List variables](/api-reference/v3/variables/list-variables). System variables can't be set, and contact fields are changed with [Update a contact](/api-reference/v3/contacts/update-contact). `null` keeps the default.","example":{"7c9e6679-7425-40de-944b-e07fc1f90ae7":"1042"},"uniqueKey":"variables.oneOf.1","typeLabel":"null"}],"uniqueKey":"variables","typeLabel":"object | null"},"message":{"oneOf":[{"type":"string","maxLength":20000,"description":"A first user message, answered as in [Send a user message](/api-reference/v3/conversations/send-user-message).","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":20000,"description":"A first user message, answered as in [Send a user message](/api-reference/v3/conversations/send-user-message).","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"ai":{"type":"object","additionalProperties":false,"required":["model"],"properties":{"model":{"type":"string","maxLength":64,"description":"ID of a model from [List AI models](/api-reference/v3/ai-models/list-models) that the project's plan includes.","example":"gpt-6-luna","isRequired":true,"uniqueKey":"ai.model","typeLabel":"string"},"temperature":{"oneOf":[{"type":"number","description":"The temperature, within the model's `temperature` range. Defaults to 0, or the model's minimum if higher. Not allowed for models whose `temperature` is `null`.","example":0.3,"uniqueKey":"ai.temperature.oneOf.0","typeLabel":"number"},{"type":"null","description":"The temperature, within the model's `temperature` range. Defaults to 0, or the model's minimum if higher. Not allowed for models whose `temperature` is `null`.","example":0.3,"uniqueKey":"ai.temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"ai.temperature","typeLabel":"number | null"},"instructions":{"oneOf":[{"type":"string","description":"Instructions for the reply, such as its tone or topics to avoid, up to the model's `max_instructions_length` characters. Trimmed before use.","example":"Answer in two sentences at most.","uniqueKey":"ai.instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"Instructions for the reply, such as its tone or topics to avoid, up to the model's `max_instructions_length` characters. Trimmed before use.","example":"Answer in two sentences at most.","uniqueKey":"ai.instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"ai.instructions","typeLabel":"string | null"}},"description":"For chatbots only.\n\nThe AI settings for a chatbot's reply to `message`. Required with `message`, and only allowed with it.","uniqueKey":"ai","typeLabel":"object"}},"required":["agent_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"ai_agent":{"title":"ai_agent","summary":"With an AI agent","value":{"agent_id":"3132353852","external_user_id":"user_123","contact_id":"0f8fad5b-d9cb-469f-a165-70867728950e","locale":"en-US","variables":{"7c9e6679-7425-40de-944b-e07fc1f90ae7":"1042"},"message":"Can I get a refund?"}},"chatbot":{"title":"chatbot","summary":"With a chatbot","value":{"agent_id":"6815096352","external_user_id":"user_123","message":"Can I get a refund?","ai":{"model":"gpt-6-luna","temperature":0.3,"instructions":"Answer in two sentences at most."}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"487b611c-dbb2-4d1f-aba5-b75a30092eab":{"description":"The new conversation, its first messages, and any reply error.","headers":{"Idempotent-Replayed":{"description":"`true` if this is the saved response of an earlier request with the same `Idempotency-Key`.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"type":"object","required":["messages","reply_error","object","id","agent","channel","user_id","external_user_id","status","mode","ended_at","read","important","priority","labels","topics","sentiment","assignee","team","contact","variables","locale","country","reply_window","created_at","last_message_at"],"properties":{"object":{"const":"conversation","isRequired":true,"uniqueKey":"object","typeLabel":"any"},"id":{"type":"string","example":"5f0c1c2e-6c1d-4a8f-9a59-0d4c4f1b2a10","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"agent":{"type":"object","description":"The agent this belongs to.","required":["id","type","name"],"properties":{"id":{"type":"string","description":"ID of the agent, as passed in `agent_id`.","example":"3132353852","isRequired":true,"uniqueKey":"agent.id","typeLabel":"string"},"type":{"type":"string","enum":["ai_agent","chatbot"],"description":"`ai_agent` for an AI agent, at `/agents`, or `chatbot` for a flow-builder chatbot, at `/chatbots`.","isRequired":true,"uniqueKey":"agent.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","example":"Support agent","isRequired":true,"uniqueKey":"agent.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"agent","typeLabel":"object"},"channel":{"type":"string","enum":["web","api","whatsapp","instagram","messenger","telegram","playground"],"description":"Share links count as `web`. `playground` is a test from an AI agent's playground or a chatbot's builder preview.","isRequired":true,"uniqueKey":"channel","typeLabel":"enum\u003cstring>"},"user_id":{"oneOf":[{"type":"string","description":"Identifies the person chatting. It's the same in all their conversations with the agent, including for anonymous widget users who aren't contacts. On the web, it's the widget's ID for the user's browser. Through the API, it's derived from `external_user_id`, or new for each conversation without one. On WhatsApp, it's the user's phone number. On Instagram and Messenger, it's the user's ID for the account or page, and on Telegram, the chat ID. `null` for some older conversations.","example":"0b6f3c1e-8d2a-4f5b-9c7e-1a2b3c4d5e6f","isRequired":true,"uniqueKey":"user_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identifies the person chatting. It's the same in all their conversations with the agent, including for anonymous widget users who aren't contacts. On the web, it's the widget's ID for the user's browser. Through the API, it's derived from `external_user_id`, or new for each conversation without one. On WhatsApp, it's the user's phone number. On Instagram and Messenger, it's the user's ID for the account or page, and on Telegram, the chat ID. `null` for some older conversations.","example":"0b6f3c1e-8d2a-4f5b-9c7e-1a2b3c4d5e6f","isRequired":true,"uniqueKey":"user_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"user_id","typeLabel":"string | null"},"external_user_id":{"oneOf":[{"type":"string","description":"The `external_user_id` the conversation was started with through the API, if any.","isRequired":true,"uniqueKey":"external_user_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `external_user_id` the conversation was started with through the API, if any.","isRequired":true,"uniqueKey":"external_user_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_id","typeLabel":"string | null"},"status":{"type":"string","enum":["open","resolved","closed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"mode":{"type":"string","enum":["ai","live","pending_handoff"],"description":"The agent only replies in `ai` mode. In `live` mode, the team replies. `pending_handoff` means the conversation is waiting for a team member to take over.","isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"ended_at":{"oneOf":[{"type":"string","format":"date-time","description":"Time at which the user's session ended. Ended conversations can't receive user messages.","isRequired":true,"uniqueKey":"ended_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Time at which the user's session ended. Ended conversations can't receive user messages.","isRequired":true,"uniqueKey":"ended_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"ended_at","typeLabel":"string\u003cdate-time> | null"},"read":{"type":"boolean","description":"Whether the team has read the latest user message. Read status is shared by the team.","isRequired":true,"uniqueKey":"read","typeLabel":"boolean"},"important":{"type":"boolean","isRequired":true,"uniqueKey":"important","typeLabel":"boolean"},"priority":{"oneOf":[{"type":"string","enum":["low","medium","high","urgent",null],"isRequired":true,"uniqueKey":"priority.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["low","medium","high","urgent",null],"isRequired":true,"uniqueKey":"priority.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"priority","typeLabel":"enum\u003cstring> | null"},"labels":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"labels.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"labels.items.[INDEX].name","typeLabel":"string"}},"description":"A label.","uniqueKey":"labels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"labels","typeLabel":"object[]"},"topics":{"type":"array","items":{"type":"object","required":["id","name","source"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"topics.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"topics.items.[INDEX].name","typeLabel":"string"},"source":{"type":"string","enum":["ai","user"],"isRequired":true,"uniqueKey":"topics.items.[INDEX].source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"topics.items.[INDEX]","typeLabel":"object"},"description":"Always `[]` for chatbot conversations.","isRequired":true,"uniqueKey":"topics","typeLabel":"object[]"},"sentiment":{"oneOf":[{"type":"string","enum":["positive","neutral","negative","unknown",null],"description":"`null` until the conversation is analysed, and always for chatbot conversations.","isRequired":true,"uniqueKey":"sentiment.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["positive","neutral","negative","unknown",null],"description":"`null` until the conversation is analysed, and always for chatbot conversations.","isRequired":true,"uniqueKey":"sentiment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sentiment","typeLabel":"enum\u003cstring> | null"},"assignee":{"oneOf":[{"type":"object","description":"The assigned team member.","required":["id","name"],"properties":{"id":{"type":"string","description":"The member's `account_id`, from [List members](/api-reference/v3/members/list-members).","isRequired":true,"uniqueKey":"assignee.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"assignee.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"assignee.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"assignee.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assignee","typeLabel":"object | null"},"team":{"oneOf":[{"type":"object","description":"The assigned team.","required":["id","name"],"properties":{"id":{"type":"string","description":"ID of the team, from [List teams](/api-reference/v3/teams/list-teams).","isRequired":true,"uniqueKey":"team.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"team.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"team.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"team.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"team","typeLabel":"object | null"},"contact":{"oneOf":[{"type":"object","description":"The contact fields shown in the dashboard. `zip` is the postal code.","required":["id","first_name","last_name","email","phone","job_title","company","website","industry","address","city","state","zip","country"],"properties":{"id":{"type":"string","description":"ID of the contact, for use with the Contacts endpoints.","isRequired":true,"uniqueKey":"contact.oneOf.0.id","typeLabel":"string"},"first_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.last_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.phone.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.phone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.phone","typeLabel":"string | null"},"job_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.job_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.job_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.job_title","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.company.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.company.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.company","typeLabel":"string | null"},"website":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.website.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.website.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.website","typeLabel":"string | null"},"industry":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.industry.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.industry.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.industry","typeLabel":"string | null"},"address":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.address.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.address.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.address","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.city.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.city","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.state","typeLabel":"string | null"},"zip":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.zip.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.zip.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.zip","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"contact.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.0.country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact.oneOf.0.country","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"contact.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"contact.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"contact","typeLabel":"object | null"},"variables":{"type":"array","items":{"type":"object","required":["id","name","value"],"properties":{"id":{"type":"string","description":"ID of the variable, from [List variables](/api-reference/v3/variables/list-variables).","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","isRequired":true,"uniqueKey":"variables.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","example":"order_id","isRequired":true,"uniqueKey":"variables.items.[INDEX].name","typeLabel":"string"},"value":{"oneOf":[{"type":"string","description":"The variable's value in this conversation, or its default if none is set.","isRequired":true,"uniqueKey":"variables.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The variable's value in this conversation, or its default if none is set.","isRequired":true,"uniqueKey":"variables.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"variables.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"variables.items.[INDEX]","typeLabel":"object"},"description":"The AI agent's custom variables. System variables aren't included. Always `[]` for chatbot conversations.","isRequired":true,"uniqueKey":"variables","typeLabel":"object[]"},"locale":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"locale.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"locale.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"locale","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"The user's country as an ISO 3166-1 alpha-2 code, if known.","isRequired":true,"uniqueKey":"country.oneOf.0","typeLabel":"string"},{"type":"null","description":"The user's country as an ISO 3166-1 alpha-2 code, if known.","isRequired":true,"uniqueKey":"country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"country","typeLabel":"string | null"},"reply_window":{"oneOf":[{"type":"object","description":"`null` on channels without a reply window: web, API, and Telegram. On WhatsApp, Instagram, and Messenger, both times are `null` until the user writes.","required":["closes_at","team_reply_closes_at"],"properties":{"closes_at":{"oneOf":[{"type":"string","format":"date-time","description":"Any reply can be sent until this time, including the AI agent's: 24 hours after the user's last message.","isRequired":true,"uniqueKey":"reply_window.oneOf.0.closes_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Any reply can be sent until this time, including the AI agent's: 24 hours after the user's last message.","isRequired":true,"uniqueKey":"reply_window.oneOf.0.closes_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reply_window.oneOf.0.closes_at","typeLabel":"string\u003cdate-time> | null"},"team_reply_closes_at":{"oneOf":[{"type":"string","format":"date-time","description":"A team member can reply until this time. Only later than `closes_at` on Messenger.","isRequired":true,"uniqueKey":"reply_window.oneOf.0.team_reply_closes_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"A team member can reply until this time. Only later than `closes_at` on Messenger.","isRequired":true,"uniqueKey":"reply_window.oneOf.0.team_reply_closes_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reply_window.oneOf.0.team_reply_closes_at","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"reply_window.oneOf.0","typeLabel":"object"},{"type":"null","description":"`null` on channels without a reply window: web, API, and Telegram. On WhatsApp, Instagram, and Messenger, both times are `null` until the user writes.","isRequired":true,"uniqueKey":"reply_window.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reply_window","typeLabel":"object | 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"},"last_message_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"last_message_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"last_message_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"last_message_at","typeLabel":"string\u003cdate-time> | null"},"messages":{"type":"array","items":{"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":"messages.items.[INDEX].object","typeLabel":"any"},"id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].id","typeLabel":"string"},"conversation_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].author.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].author.name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].author.name","typeLabel":"string | null"}},"description":"Who sent the message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["webpage","document_url","document",null],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX].title","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX].url","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.0.sources.items.[INDEX]","typeLabel":"object"},"description":"The knowledge base sources the AI used for this reply.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.0.sources","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.1.buttons.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.1.buttons.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.1.buttons.items.[INDEX].message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.1.buttons.items.[INDEX].message","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.1.buttons.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.1.selected_button_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.1.selected_button_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.2.kind","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","submitted","dismissed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].type","typeLabel":"string"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].label","typeLabel":"string | null"},"required":{"type":"boolean","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].id","typeLabel":"string"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].options.oneOf.0.items.[INDEX].label","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].options.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].value.oneOf.1","typeLabel":"boolean"},{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX].value","typeLabel":"string | boolean | string[] | null"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.2.fields","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.3.provider","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","booked","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.status","typeLabel":"enum\u003cstring>"},"title":{"oneOf":[{"type":"string","description":"The meeting title, if the provider returns one.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The meeting title, if the provider returns one.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.title","typeLabel":"string | null"},"starts_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.starts_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.starts_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.starts_at","typeLabel":"string\u003cdate-time> | null"},"ends_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.ends_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.ends_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.3.ends_at","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.4.rating.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.rating.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.rating","typeLabel":"integer | null"},"max_rating":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.max_rating.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.max_rating.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.max_rating","typeLabel":"integer | null"},"scale":{"oneOf":[{"type":"string","enum":["numeric","emoji",null],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.scale.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["numeric","emoji",null],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.scale.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.scale","typeLabel":"enum\u003cstring> | null"},"reasons":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].data.oneOf.4.reasons.items.[INDEX]","typeLabel":"string"},"description":"The reasons the user picked for their rating.","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.4.resolved.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.resolved","typeLabel":"string | null"},"feedback":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.feedback.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.feedback.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.4.feedback","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.5.ended_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.5.ended_by","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.6.status","typeLabel":"enum\u003cstring>"},"email":{"oneOf":[{"type":"string","description":"The address the user entered.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.6.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"The address the user entered.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.6.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.6.email","typeLabel":"string | null"},"required":{"type":"boolean","description":"Whether the user had to answer before continuing.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.6.required","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.7.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX].method.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX].method.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX].url","typeLabel":"string | null"},"status_code":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX].status_code.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX].status_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX].body_truncated","typeLabel":"boolean"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.7.requests.items.[INDEX]","typeLabel":"object"},"description":"The requests made, in order.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.7.requests","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.8.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.8.email.sender_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.sender_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.sender_name","typeLabel":"string | null"},"sender_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.sender_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.sender_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.sender_email","typeLabel":"string | null"},"to":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.to.items.[INDEX]","typeLabel":"string"},"description":"Recipient email addresses.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.to","typeLabel":"string[]"},"cc":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.cc.items.[INDEX]","typeLabel":"string"},"description":"CC email addresses.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.cc","typeLabel":"string[]"},"reply_to":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.reply_to.items.[INDEX]","typeLabel":"string"},"description":"Reply-to email addresses.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.reply_to","typeLabel":"string[]"},"subject":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.subject.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.subject.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.subject","typeLabel":"string | null"},"body_html":{"oneOf":[{"type":"string","description":"The body as HTML.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.body_html.oneOf.0","typeLabel":"string"},{"type":"null","description":"The body as HTML.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.body_html.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email.body_html","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.8.email","typeLabel":"object"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.9.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.9.summary.oneOf.0","typeLabel":"string"},{"type":"null","description":"The AI's summary of the conversation for the team.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.summary.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.summary","typeLabel":"string | null"},"priority":{"oneOf":[{"type":"string","enum":["low","medium","high","urgent",null],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.priority.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["low","medium","high","urgent",null],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.priority.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.9.sentiment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.9.sentiment","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.10.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.10.ticket.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.id","typeLabel":"string | null"},"subject":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.subject.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.subject.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.subject","typeLabel":"string | null"},"description_html":{"oneOf":[{"type":"string","description":"The description as HTML.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.description_html.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description as HTML.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.description_html.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.description_html","typeLabel":"string | null"},"requester_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.requester_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.requester_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.requester_name","typeLabel":"string | null"},"requester_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.requester_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.requester_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.requester_email","typeLabel":"string | null"},"priority":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.priority.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.priority.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.priority","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.type.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.type","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.status.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.status","typeLabel":"string | null"},"tags":{"oneOf":[{"type":"string","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.tags.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.tags.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.tags","typeLabel":"string | null"},"group_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.group_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.group_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.group_id","typeLabel":"string | null"},"assignee_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.assignee_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.assignee_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.assignee_email","typeLabel":"string | null"},"custom_fields":{"oneOf":[{"type":"string","description":"As configured.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.custom_fields.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.custom_fields.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket.custom_fields","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.10.ticket","typeLabel":"object"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.11.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.11.user.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.id","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.phone.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.phone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.phone","typeLabel":"string | null"},"role":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.role.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.role.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.role","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.external_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.external_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.external_id","typeLabel":"string | null"},"notes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.notes.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.notes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.notes","typeLabel":"string | null"},"details":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.details.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.details","typeLabel":"string | null"},"tags":{"oneOf":[{"type":"string","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.tags.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured, for example comma-separated.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.tags.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.tags","typeLabel":"string | null"},"organization_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.organization_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.organization_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.organization_id","typeLabel":"string | null"},"custom_fields":{"oneOf":[{"type":"string","description":"As configured.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.custom_fields.oneOf.0","typeLabel":"string"},{"type":"null","description":"As configured.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.custom_fields.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.custom_fields","typeLabel":"string | null"},"verified":{"oneOf":[{"type":"boolean","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.verified.oneOf.0","typeLabel":"boolean"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.verified.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user.verified","typeLabel":"boolean | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.11.user","typeLabel":"object"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.12.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.error","typeLabel":"string | null"},"operation":{"type":"string","enum":["find_rows","append_row","update_row","clear_rows","delete_rows"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.operation","typeLabel":"enum\u003cstring>"},"row_count":{"oneOf":[{"type":"integer","description":"The number of rows found or changed.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.row_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The number of rows found or changed.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.row_count.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.12.row_count","typeLabel":"integer | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.13.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.13.record_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The HubSpot record that was created, updated, or found.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.record_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.record_id","typeLabel":"string | null"},"record_count":{"oneOf":[{"type":"integer","description":"The number of records found.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.record_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The number of records found.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.record_count.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].name","typeLabel":"string | null"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].label","typeLabel":"string | null"},"value":{"oneOf":[{"type":"string","description":"The value as text.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value as text.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.13.properties.items.[INDEX]","typeLabel":"object"},"description":"The record's properties, up to 50.","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].record_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].record_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].name","typeLabel":"string | null"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value as text.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX].properties","typeLabel":"object[]"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records.items.[INDEX]","typeLabel":"object"},"description":"The records found, up to 10 with 10 properties each.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.13.records","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.14.action","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the action failed, or `null` if it succeeded.","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.error","typeLabel":"string | null"},"workflow_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.workflow_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.workflow_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.workflow_id","typeLabel":"string | null"},"workflow_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.workflow_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.workflow_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.workflow_name","typeLabel":"string | null"},"run_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.run_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.run_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.run_id","typeLabel":"string | null"},"run_status":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.run_status.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.run_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.14.run_status","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.15.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.15.url","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].id","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].title","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].description","typeLabel":"string | null"},"image_url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].image_url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].buttons.items.[INDEX].message","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX].buttons","typeLabel":"object[]"}},"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.16.\\items","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.17.first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.last_name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.company.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.company.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.company","typeLabel":"string | null"},"job_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.job_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.job_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.job_title","typeLabel":"string | null"},"phones":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].data.oneOf.17.phones.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.phones","typeLabel":"string[]"},"emails":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].data.oneOf.17.emails.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.emails","typeLabel":"string[]"},"urls":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].data.oneOf.17.urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].data.oneOf.17.urls","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].data.oneOf.18","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].attachments.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["image","video","audio","document"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].attachments.items.[INDEX].mime.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].attachments.items.[INDEX].filename.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].attachments.items.[INDEX].size.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].attachments.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].attachments.items.[INDEX].url_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].attachments.items.[INDEX].url_expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"messages.items.[INDEX].attachments.items.[INDEX]","typeLabel":"object"},"description":"Files sent with the message, in order. A caption is the message's `text`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].attachments","typeLabel":"object[]"},"is_note":{"type":"boolean","description":"Whether the message is an internal note, which the user never sees.","isRequired":true,"uniqueKey":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].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":"messages.items.[INDEX].rating.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].rating","typeLabel":"enum\u003cstring> | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"messages.items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"messages.items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"description":"The first user message and the replies to it, or `[]` without `message`.","isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"},"reply_error":{"oneOf":[{"type":"object","description":"Set if the user message was saved but the agent couldn't reply. No AI credits are used. Retrying with the same `Idempotency-Key` returns this response without saving the message again.","required":["code","message"],"properties":{"code":{"const":"ai_reply_failed","isRequired":true,"uniqueKey":"reply_error.oneOf.0.code","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"reply_error.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"reply_error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Set if the user message was saved but the agent couldn't reply. No AI credits are used. Retrying with the same `Idempotency-Key` returns this response without saving the message again.","isRequired":true,"uniqueKey":"reply_error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reply_error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"conversation","id":"5f0c1c2e-6c1d-4a8f-9a59-0d4c4f1b2a10","agent":{"id":"3132353852","type":"ai_agent","name":"Support agent"},"channel":"web","user_id":"0b6f3c1e-8d2a-4f5b-9c7e-1a2b3c4d5e6f","external_user_id":"\u003cstring>","status":"open","mode":"ai","ended_at":"2023-11-07T05:31:56Z","read":true,"important":true,"priority":"low","labels":[{"id":"\u003cstring>","name":"\u003cstring>"}],"topics":[{"id":"\u003cstring>","name":"\u003cstring>","source":"ai"}],"sentiment":"positive","assignee":{"id":"\u003cstring>","name":"\u003cstring>"},"team":{"id":"\u003cstring>","name":"\u003cstring>"},"contact":{"id":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","job_title":"\u003cstring>","company":"\u003cstring>","website":"\u003cstring>","industry":"\u003cstring>","address":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","zip":"\u003cstring>","country":"\u003cstring>"},"variables":[{"id":"7c9e6679-7425-40de-944b-e07fc1f90ae7","name":"order_id","value":"\u003cstring>"}],"locale":"\u003cstring>","country":"\u003cstring>","reply_window":{"closes_at":"2023-11-07T05:31:56Z","team_reply_closes_at":"2023-11-07T05:31:56Z"},"created_at":"2023-11-07T05:31:56Z","last_message_at":"2023-11-07T05:31:56Z","messages":[{"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"}],"reply_error":{"code":"ai_reply_failed","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"24da6847-944b-45d6-b367-a5e7e63e8496":{"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"},"24bcfb33-1233-453b-99bb-34c08fa18728":{"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"},"28ed9cad-32b2-4b2d-9e52-63ebe92d42d1":{"description":"`insufficient_permission`, `agent_suspended`, `user_blocked`, `ai_credits_exhausted`, `agent_credit_limit_reached`, `project_suspended`, or `plan_feature_unavailable`. Nothing is saved.","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":"ai_credits_exhausted","message":"This project has run out of AI credits, so the agent can't reply.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"permission_error","code":"ai_credits_exhausted","message":"This project has run out of AI credits, so the agent can't reply.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a02dd590-26a2-4cf1-8d86-4f0c009ac560":{"description":"`resource_not_found`: No agent with this ID exists in the project, or the key can't access it.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No agent with this ID exists, or this API key can't access it.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No agent with this ID exists, or this API key can't access it.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"775de912-5cb5-4555-982e-2b8b4c5079a5":{"description":"`idempotency_request_in_progress`: A request with this `Idempotency-Key` is still running. Retry shortly.","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"},"ac31f2fc-a967-4156-a3d7-0cd462689631":{"description":"`validation_failed`, or `idempotency_key_reused` if the `Idempotency-Key` was already used for a different request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"validation_failed","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","errors":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"b31eb3b5-4b81-4d02-849b-79c575e53fca":{"description":"`rate_limit_exceeded`: The API key's rate limit or the agent's per-user message limit was reached. Nothing is saved.","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":"Start a conversation - Chatling Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T03:59:48.037Z","originalFileLocation":"api-reference/v3/conversations/start-conversation.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=\"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent\u0026#x27;s intro messages aren\u0026#x27;t added, and a chatbot\u0026#x27;s flow doesn\u0026#x27;t run. A chatbot answers the first message from its knowledge base using the settings in ai, so ai is required with message for chatbots. Chatbot conversations don\u0026#x27;t have variables. All parameters, and the checks of Send a user message, are validated first, so a failed request creates nothing.\">\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=\"Start a conversation - Chatling Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent\u0026#x27;s intro messages aren\u0026#x27;t added, and a chatbot\u0026#x27;s flow doesn\u0026#x27;t run. A chatbot answers the first message from its knowledge base using the settings in ai, so ai is required with message for chatbots. Chatbot conversations don\u0026#x27;t have variables. All parameters, and the checks of Send a user message, are validated first, so a failed request creates nothing.\">\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/start-conversation\">\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=Start+a+conversation\u0026amp;description=Starts+an+API+channel+conversation+with+an+AI+agent+or+chatbot%2C+optionally+with+a+first+user+message.+The+agent%27s+intro+messages+aren%27t+added%2C+and+a+chatbot%27s+f\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=a63e45f76c7667ccc4eaa8b71d52cb8d1ede77448ec3da35cfb4a7cea25b1773\">\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=\"Start a conversation - Chatling Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent\u0026#x27;s intro messages aren\u0026#x27;t added, and a chatbot\u0026#x27;s flow doesn\u0026#x27;t run. A chatbot answers the first message from its knowledge base using the settings in ai, so ai is required with message for chatbots. Chatbot conversations don\u0026#x27;t have variables. All parameters, and the checks of Send a user message, are validated first, so a failed request creates nothing.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chatling-21192973.mintlify.site/_mintlify/api/og/v2?division=Conversations\u0026amp;title=Start+a+conversation\u0026amp;description=Starts+an+API+channel+conversation+with+an+AI+agent+or+chatbot%2C+optionally+with+a+first+user+message.+The+agent%27s+intro+messages+aren%27t+added%2C+and+a+chatbot%27s+f\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=a63e45f76c7667ccc4eaa8b71d52cb8d1ede77448ec3da35cfb4a7cea25b1773\">\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/start-conversation\">\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/start-conversation.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/start-conversation#webpage\",\"url\":\"https://docs.chatling.ai/api-reference/v3/conversations/start-conversation\",\"name\":\"Start a conversation\",\"description\":\"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent's intro messages aren't added, and a chatbot's flow doesn't run. A chatbot answers the first message from its knowledge base using the settings in ai, so ai is required with message for chatbots. Chatbot conversations don't have variables. All parameters, and the checks of Send a user message, are validated first, so a failed request creates nothing.\",\"dateModified\":\"2026-11-30T03:59:48.037Z\",\"isPartOf\":{\"@id\":\"https://docs.chatling.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/start-conversation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/start-conversation#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\":\"Start a conversation\",\"item\":\"https://docs.chatling.ai/api-reference/v3/conversations/start-conversation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/start-conversation#apireference\",\"headline\":\"Start a conversation\",\"name\":\"Start a conversation\",\"description\":\"Starts an API channel conversation with an AI agent or chatbot, optionally with a first user message. The agent's intro messages aren't added, and a chatbot's flow doesn't run. A chatbot answers the first message from its knowledge base using the settings in ai, so ai is required with message for chatbots. Chatbot conversations don't have variables. All parameters, and the checks of Send a user message, are validated first, so a failed request creates nothing.\",\"url\":\"https://docs.chatling.ai/api-reference/v3/conversations/start-conversation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/conversations/start-conversation#webpage\"},\"dateModified\":\"2026-11-30T03:59:48.037Z\",\"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/start-conversation.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","description":"Returns a list of an agent's conversations on every channel, sorted by start time with the newest first, so pages don't shift as new messages arrive. Playground tests are included with `channel: playground`. Conversations where the user never sent a message aren't included, except API conversations.\n\nFilters combine with AND, and filters that take a comma-separated list match any of the values. Unknown query parameters return `validation_failed`, and IDs that match nothing return an empty list.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations","href":"/api-reference/v3/conversations/list-conversations"},{"title":"Start a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations","href":"/api-reference/v3/conversations/start-conversation"},{"title":"Retrieve a conversation","description":"Retrieves a conversation on any channel, including playground tests. Retrieving a conversation doesn't mark it as read.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}","href":"/api-reference/v3/conversations/get-conversation"},{"title":"Delete a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /conversations/{conversation}","href":"/api-reference/v3/conversations/delete-conversation"},{"title":"Update a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}","href":"/api-reference/v3/conversations/update-conversation"},{"title":"Retrieve a conversation's usage","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/usage","href":"/api-reference/v3/conversations/get-conversation-usage"},{"title":"List the messages of a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/messages","href":"/api-reference/v3/conversations/list-conversation-messages"},{"title":"Send a user message","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/messages","href":"/api-reference/v3/conversations/send-user-message"},{"title":"Update a message","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}/messages/{message}","href":"/api-reference/v3/conversations/update-message"},{"title":"Send a reply","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/replies","href":"/api-reference/v3/conversations/send-reply"},{"title":"Add a note","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/notes","href":"/api-reference/v3/conversations/send-note"},{"title":"End a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/end","href":"/api-reference/v3/conversations/end-conversation"},{"title":"Upload an attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/attachments","href":"/api-reference/v3/conversations/upload-attachment"},{"title":"Delete an attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /conversations/{conversation}/attachments/{attachment}","href":"/api-reference/v3/conversations/delete-attachment"},{"title":"Download a message attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/messages/{message}/attachments/{attachment}","href":"/api-reference/v3/conversations/download-message-attachment"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /contacts","href":"/api-reference/v3/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /contacts","href":"/api-reference/v3/contacts/create-contact"},{"title":"Retrieve a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /contacts/{contact}","href":"/api-reference/v3/contacts/get-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /contacts/{contact}","href":"/api-reference/v3/contacts/delete-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /contacts/{contact}","href":"/api-reference/v3/contacts/update-contact"}]},{"group":"Knowledge base","pages":[{"title":"Get a knowledge base summary","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/summary","href":"/api-reference/v3/knowledge-base/get-knowledge-base-summary"},{"title":"List knowledge base sources","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/sources","href":"/api-reference/v3/knowledge-base/list-knowledge-base-sources"},{"title":"Add a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources","href":"/api-reference/v3/knowledge-base/create-knowledge-base-source"},{"title":"Create a document upload","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/uploads","href":"/api-reference/v3/knowledge-base/create-knowledge-base-upload"},{"title":"Add knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch","href":"/api-reference/v3/knowledge-base/create-knowledge-base-sources"},{"title":"Retrieve a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/get-knowledge-base-source"},{"title":"Delete a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/delete-knowledge-base-source"},{"title":"Update a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/update-knowledge-base-source"},{"title":"Delete knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch-delete","href":"/api-reference/v3/knowledge-base/delete-knowledge-base-sources"},{"title":"Resync a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/{source}/resync","href":"/api-reference/v3/knowledge-base/resync-knowledge-base-source"},{"title":"Resync knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch-resync","href":"/api-reference/v3/knowledge-base/resync-knowledge-base-sources"}]},{"group":"Labels","pages":[{"title":"List labels","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /labels","href":"/api-reference/v3/labels/list-labels"},{"title":"Create a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /labels","href":"/api-reference/v3/labels/create-label"},{"title":"Retrieve a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /labels/{label}","href":"/api-reference/v3/labels/get-label"},{"title":"Delete a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /labels/{label}","href":"/api-reference/v3/labels/delete-label"},{"title":"Update a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /labels/{label}","href":"/api-reference/v3/labels/update-label"}]},{"group":"Teams","pages":[{"title":"List teams","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /teams","href":"/api-reference/v3/teams/list-teams"},{"title":"Create a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /teams","href":"/api-reference/v3/teams/create-team"},{"title":"Retrieve a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /teams/{team}","href":"/api-reference/v3/teams/get-team"},{"title":"Delete a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /teams/{team}","href":"/api-reference/v3/teams/delete-team"},{"title":"Update a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /teams/{team}","href":"/api-reference/v3/teams/update-team"},{"title":"Add a team member","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json put /teams/{team}/members/{account}","href":"/api-reference/v3/teams/add-team-member"},{"title":"Remove a team member","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /teams/{team}/members/{account}","href":"/api-reference/v3/teams/remove-team-member"}]},{"group":"Topics","pages":[{"title":"List topics","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /topics","href":"/api-reference/v3/topics/list-topics"}]},{"group":"Variables","pages":[{"title":"List variables","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /variables","href":"/api-reference/v3/variables/list-variables"},{"title":"Create a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /variables","href":"/api-reference/v3/variables/create-variable"},{"title":"Retrieve a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /variables/{variable}","href":"/api-reference/v3/variables/get-variable"},{"title":"Delete a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /variables/{variable}","href":"/api-reference/v3/variables/delete-variable"},{"title":"Update a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /variables/{variable}","href":"/api-reference/v3/variables/update-variable"}]},{"group":"Workflows","pages":[{"title":"List workflows","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows","href":"/api-reference/v3/workflows/list-workflows"},{"title":"Retrieve the workflow catalog","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/catalog","href":"/api-reference/v3/workflows/get-workflow-catalog"},{"title":"Retrieve a workflow","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}","href":"/api-reference/v3/workflows/get-workflow"},{"title":"Update a workflow","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /workflows/{workflow}","href":"/api-reference/v3/workflows/update-workflow"},{"title":"List workflow runs","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}/runs","href":"/api-reference/v3/workflows/list-workflow-runs"},{"title":"Retrieve a workflow run","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}/runs/{run}","href":"/api-reference/v3/workflows/get-workflow-run"}]}]}]}]},"basePath":"","title":"Start a conversation - 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"]}