Queues the message for sending and responds right away with a jobId. The message is sent in
the background, because communicating with the provider can take a few seconds.
The type field defines the kind of message being sent.
Recipient. Provide one of these, in this order of precedence:
field
when to use
ticketId
Send inside a ticket that already exists. Takes precedence over the other two.
contactId
Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over number.
number
Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number.
The recipient is checked before the message is queued:
code
when it happens
ERR_API_CONTACT_NOT_IDENTIFIED (400)
None of ticketId, contactId or number — or only number on a channel without a phone number.
ERR_API_CONTACT_NOT_FOUND (404)
contactId does not exist or belongs to another company.
ERR_API_CONTACT_UNREACHABLE (422)
The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels).
Interactive on Webchat. The webchat renders the same interactive messages as the official
WhatsApp API that do not depend on a Meta resource: button, list, cta_url,
location_request_message and carousel. On it, interactive is checked before the message is
queued, with the WhatsApp limits, and the problem comes back right away: 422 with the code
ERR_API_INTERACTIVE_INVALID and, in message, the field and the reason (for example
interactive.action.buttons: de 1 a 3 botões). flow, product, product_list,
catalog_message, address_message, voice_call and call_permission_request do not exist on
webchat. On the other channels the provider does the checking, during the send.
Use Idempotency-Key here. If the call times out and you retry without this key, the
contact may receive the same message twice.
Media is checked before it enters the queue. With type: media, the file is read during the
call itself, and not during the background send — so a problematic file gets a 400 right away,
instead of returning a jobId that would fail later with no warning:
code
when it happens
ERR_API_MEDIA_EMPTY
The uploaded file has 0 bytes.
ERR_API_MEDIA_TYPE_UNKNOWN
There is no way to tell the type: the name came without an extension and the Content-Type of the multipart part was not provided.
ERR_API_MEDIA_TYPE_MISMATCH
The file contents contradict the declared type (for example, a PDF sent as an image).
A difference only in format within the same category is not rejected: a PNG declared as JPEG is
sent normally. The type used for sending is always the one from the file contents.
Unique key for the operation. If you repeat the call with the same key and the same body, you get the stored response.
Maximum string length: 200
Body
application/jsonmultipart/form-data
channelId
integer
required
Channel where the conversation takes place. See the available channels at GET /channels.
Example:
4
type
enum<string>
default:text
Type of message. It defines which other fields are required:
value
what it requires
text
body with the text.
media
Sent as multipart/form-data, with the file in medias.
template
template with name and parameters. Required outside the WhatsApp 24h window.
interactive
interactive in the official WhatsApp API format (buttons, list, link, location request, carousel).
Available options:
text,
media,
template,
interactive
number
string
Recipient on phone channels (WhatsApp, RCS): digits only, with country and area code. If there is no contact with this number yet, one is created. Not valid on channels without a phone number.
Example:
"5511999999999"
contactId
integer
Recipient by the id of a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. The contact must belong to the token's company. Takes precedence over number.
Example:
842
ticketId
integer
Sends inside a ticket that already exists. Takes precedence over contactId and number.
Example:
9034
contactName
string
Name given to the contact if it is created by this send (only with number).
Example:
"Marina Alves"
body
string
Message text, or caption when type: media. Accepts system variables (e.g. {{name}}).
Example:
"Olá, Marina! Seu pedido #88213 foi confirmado."
template
object
Required when type: template. Accepts the simple form ({ name, parameters }), which is the recommended one: the API validates the template and builds the message. It also accepts the fully built object with components, for those who already work with that format.
With media in the header (in the fully built object, with the link in the header component), the conversation shows a copy of the file, kept in the company storage, and the template text with the variables. The copy accepts a JPEG or PNG image, an MP4 or 3GPP video and a PDF document, within Meta limits, and counts toward storage. If the copy is not possible (internal address, type outside the list, above the limit, too slow or storage full), the message is sent all the same, just without the media in the conversation.
Required when type: interactive. The interactive object of the official WhatsApp API (Cloud API),
the same on every channel that has interactive messages: the payload you already send to official
WhatsApp works on Webchat with no changes.
On Webchat, the types and the limits checked during the call:
type
what it takes
limits
button
body, action.buttons[] (type: reply, reply.id, reply.title); optional header and footer
1 to 3 buttons; title up to 20; id up to 256, no repeats
list
body, action.button (text of the button that opens the list), action.sections[].rows[] (id, title, description); optional text header and footer
1 to 10 sections, 1 to 10 rows in total; button up to 20; row title up to 24; description up to 72; section title up to 24 (required with more than one section); id up to 200
cta_url
body, action.name: cta_url, action.parameters.display_text and url (http or https); optional header and footer
button text up to 20
location_request_message
body, action.name: send_location
no header
carousel
body, action.cards[]: header (image or video), body and one link button (action.name: cta_url) or reply buttons (action.buttons[], type: quick_reply)
1 to 10 cards
On all of them: body.text is required, up to 1024 characters (list: 4096); text header up to 60;
footer up to 60. A media header (image, video, document) only by public http(s) link —
the webchat does not use media by Meta id.
The contact's choice arrives as it does on WhatsApp: a text message with the option title,
replying to (quoting) the interactive message.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Connecta DESK","description":"Documentação da API pública do Connecta DESK.","colors":{"primary":"#6600CB","light":"#A700E3","dark":"#4D0099"},"logo":{"light":"https://mintcdn.com/connectacx/Zc_LQh8Yyx38544Q/logo/light.png?fit=max\u0026auto=format\u0026n=Zc_LQh8Yyx38544Q\u0026q=85\u0026s=85d9b71a8b3fdb4f14dba571d7c0299c","dark":"https://mintcdn.com/connectacx/Zc_LQh8Yyx38544Q/logo/dark.png?fit=max\u0026auto=format\u0026n=Zc_LQh8Yyx38544Q\u0026q=85\u0026s=e1cd298dfd51f2fcd900d86d88642aba"},"favicon":"https://mintcdn.com/connectacx/s1UZNYBcmXRITwHp/favicon.png?fit=max\u0026auto=format\u0026n=s1UZNYBcmXRITwHp\u0026q=85\u0026s=b1882dd2c71739a63327ee90b4ca912b","api":{"openapi":"api-reference/openapi.yaml"},"navbar":{"primary":{"type":"button","label":"Acessar plataforma","href":"https://app.connectadesk.com"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/connectacx","instagram":"https://www.instagram.com/connecta.cx"}},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"languages":[{"language":"pt-BR","default":true,"navbar":{"primary":{"type":"button","label":"Acessar plataforma","href":"https://app.connectadesk.com"}},"href":"introduction"},{"language":"en","navbar":{"primary":{"type":"button","label":"Access platform","href":"https://app.connectadesk.com"}},"href":"en/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"connectacx","hasAudioNarration":false,"actualSubdomain":"connectacx","customDomains":["docs.connectadesk.com"],"gitSource":{"type":"github","owner":"connectacx","repo":"connecta-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0a21a7a6507e80616728dc","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"pt-BR","tag":"Referência da API","count":155},{"language":"en","tag":"API Reference","count":155},{"language":"pt-BR","tag":"Endpoints","count":154},{"language":"en","tag":"Endpoints","count":154},{"language":"pt-BR","tag":"CRM","count":25},{"language":"en","tag":"CRM","count":25},{"language":"pt-BR","tag":"Produtos","count":14},{"language":"pt-BR","tag":"Relatórios","count":14},{"language":"en","tag":"Products","count":14},{"language":"en","tag":"Reports","count":14},{"language":"pt-BR","tag":"Documentação","count":13},{"language":"pt-BR","tag":"Campanhas","count":13},{"language":"pt-BR","tag":"Campos personalizados","count":13},{"language":"en","tag":"Documentation","count":13},{"language":"en","tag":"Campaigns","count":13},{"language":"en","tag":"Custom fields","count":13},{"language":"pt-BR","tag":"Contatos","count":10},{"language":"en","tag":"Contacts","count":10},{"language":"pt-BR","tag":"Qualificações","count":8},{"language":"en","tag":"Wrap-up types","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/messages/send-message-asynchronous","slug":"/api-reference/messages/send-message-asynchronous","pageMetadata":{"title":"Send message (asynchronous)","description":"Queues the message for sending and responds right away with a `jobId`. The message is sent in\nthe background, because communicating with the provider can take a few seconds.\n\nThe `type` field defines the kind of message being sent.\n\n**Recipient.** Provide one of these, in this order of precedence:\n\n| field | when to use |\n| --- | --- |\n| `ticketId` | Send inside a ticket that already exists. Takes precedence over the other two. |\n| `contactId` | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over `number`. |\n| `number` | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. |\n\nThe recipient is checked before the message is queued:\n\n| code | when it happens |\n| --- | --- |\n| `ERR_API_CONTACT_NOT_IDENTIFIED` (`400`) | None of `ticketId`, `contactId` or `number` — or only `number` on a channel without a phone number. |\n| `ERR_API_CONTACT_NOT_FOUND` (`404`) | `contactId` does not exist or belongs to another company. |\n| `ERR_API_CONTACT_UNREACHABLE` (`422`) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). |\n\n**Interactive on Webchat.** The webchat renders the same interactive messages as the official\nWhatsApp API that do not depend on a Meta resource: `button`, `list`, `cta_url`,\n`location_request_message` and `carousel`. On it, `interactive` is checked before the message is\nqueued, with the WhatsApp limits, and the problem comes back right away: `422` with the code\n`ERR_API_INTERACTIVE_INVALID` and, in `message`, the field and the reason (for example\n`interactive.action.buttons: de 1 a 3 botões`). `flow`, `product`, `product_list`,\n`catalog_message`, `address_message`, `voice_call` and `call_permission_request` do not exist on\nwebchat. On the other channels the provider does the checking, during the send.\n\n**Use `Idempotency-Key` here.** If the call times out and you retry without this key, the\ncontact may receive the same message twice.\n\n**Media is checked before it enters the queue.** With `type: media`, the file is read during the\ncall itself, and not during the background send — so a problematic file gets a `400` right away,\ninstead of returning a `jobId` that would fail later with no warning:\n\n| code | when it happens |\n| --- | --- |\n| `ERR_API_MEDIA_EMPTY` | The uploaded file has 0 bytes. |\n| `ERR_API_MEDIA_TYPE_UNKNOWN` | There is no way to tell the type: the name came without an extension and the `Content-Type` of the multipart part was not provided. |\n| `ERR_API_MEDIA_TYPE_MISMATCH` | The file contents contradict the declared type (for example, a PDF sent as an image). |\n\nA difference only in format within the same category is not rejected: a PNG declared as JPEG is\nsent normally. The type used for sending is always the one from the file contents.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /messages","href":"/api-reference/messages/send-message-asynchronous","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Queues the message for sending and responds right away with a \", _jsx(_components.code, {\n children: \"jobId\"\n }), \". The message is sent in\\nthe background, because communicating with the provider can take a few seconds.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The \", _jsx(_components.code, {\n children: \"type\"\n }), \" field defines the kind of message being sent.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Recipient.\"\n }), \" Provide one of these, in this order of precedence:\"]\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"field\"\n }), _jsx(_components.th, {\n children: \"when to use\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"ticketId\"\n })\n }), _jsx(_components.td, {\n children: \"Send inside a ticket that already exists. Takes precedence over the other two.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"contactId\"\n })\n }), _jsxs(_components.td, {\n children: [\"Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over \", _jsx(_components.code, {\n children: \"number\"\n }), \".\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"number\"\n })\n }), _jsx(_components.td, {\n children: \"Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number.\"\n })]\n })]\n })]\n }), \"\\n\", _jsx(_components.p, {\n children: \"The recipient is checked before the message is queued:\"\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"code\"\n }), _jsx(_components.th, {\n children: \"when it happens\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"ERR_API_CONTACT_NOT_IDENTIFIED\"\n }), \" (\", _jsx(_components.code, {\n children: \"400\"\n }), \")\"]\n }), _jsxs(_components.td, {\n children: [\"None of \", _jsx(_components.code, {\n children: \"ticketId\"\n }), \", \", _jsx(_components.code, {\n children: \"contactId\"\n }), \" or \", _jsx(_components.code, {\n children: \"number\"\n }), \" — or only \", _jsx(_components.code, {\n children: \"number\"\n }), \" on a channel without a phone number.\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"ERR_API_CONTACT_NOT_FOUND\"\n }), \" (\", _jsx(_components.code, {\n children: \"404\"\n }), \")\"]\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"contactId\"\n }), \" does not exist or belongs to another company.\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"ERR_API_CONTACT_UNREACHABLE\"\n }), \" (\", _jsx(_components.code, {\n children: \"422\"\n }), \")\"]\n }), _jsx(_components.td, {\n children: \"The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels).\"\n })]\n })]\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Interactive on Webchat.\"\n }), \" The webchat renders the same interactive messages as the official\\nWhatsApp API that do not depend on a Meta resource: \", _jsx(_components.code, {\n children: \"button\"\n }), \", \", _jsx(_components.code, {\n children: \"list\"\n }), \", \", _jsx(_components.code, {\n children: \"cta_url\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"location_request_message\"\n }), \" and \", _jsx(_components.code, {\n children: \"carousel\"\n }), \". On it, \", _jsx(_components.code, {\n children: \"interactive\"\n }), \" is checked before the message is\\nqueued, with the WhatsApp limits, and the problem comes back right away: \", _jsx(_components.code, {\n children: \"422\"\n }), \" with the code\\n\", _jsx(_components.code, {\n children: \"ERR_API_INTERACTIVE_INVALID\"\n }), \" and, in \", _jsx(_components.code, {\n children: \"message\"\n }), \", the field and the reason (for example\\n\", _jsx(_components.code, {\n children: \"interactive.action.buttons: de 1 a 3 botões\"\n }), \"). \", _jsx(_components.code, {\n children: \"flow\"\n }), \", \", _jsx(_components.code, {\n children: \"product\"\n }), \", \", _jsx(_components.code, {\n children: \"product_list\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"catalog_message\"\n }), \", \", _jsx(_components.code, {\n children: \"address_message\"\n }), \", \", _jsx(_components.code, {\n children: \"voice_call\"\n }), \" and \", _jsx(_components.code, {\n children: \"call_permission_request\"\n }), \" do not exist on\\nwebchat. On the other channels the provider does the checking, during the send.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [\"Use \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" here.\"]\n }), \" If the call times out and you retry without this key, the\\ncontact may receive the same message twice.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Media is checked before it enters the queue.\"\n }), \" With \", _jsx(_components.code, {\n children: \"type: media\"\n }), \", the file is read during the\\ncall itself, and not during the background send — so a problematic file gets a \", _jsx(_components.code, {\n children: \"400\"\n }), \" right away,\\ninstead of returning a \", _jsx(_components.code, {\n children: \"jobId\"\n }), \" that would fail later with no warning:\"]\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"code\"\n }), _jsx(_components.th, {\n children: \"when it happens\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"ERR_API_MEDIA_EMPTY\"\n })\n }), _jsx(_components.td, {\n children: \"The uploaded file has 0 bytes.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"ERR_API_MEDIA_TYPE_UNKNOWN\"\n })\n }), _jsxs(_components.td, {\n children: [\"There is no way to tell the type: the name came without an extension and the \", _jsx(_components.code, {\n children: \"Content-Type\"\n }), \" of the multipart part was not provided.\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"ERR_API_MEDIA_TYPE_MISMATCH\"\n })\n }), _jsx(_components.td, {\n children: \"The file contents contradict the declared type (for example, a PDF sent as an image).\"\n })]\n })]\n })]\n }), \"\\n\", _jsx(_components.p, {\n children: \"A difference only in format within the same category is not rejected: a PNG declared as JPEG is\\nsent normally. The type used for sending is always the one from the file contents.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send message (asynchronous)","description":"Queues the message for sending and responds right away with a `jobId`. The message is sent in\nthe background, because communicating with the provider can take a few seconds.\n\nThe `type` field defines the kind of message being sent.\n\n**Recipient.** Provide one of these, in this order of precedence:\n\n| field | when to use |\n| --- | --- |\n| `ticketId` | Send inside a ticket that already exists. Takes precedence over the other two. |\n| `contactId` | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over `number`. |\n| `number` | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. |\n\nThe recipient is checked before the message is queued:\n\n| code | when it happens |\n| --- | --- |\n| `ERR_API_CONTACT_NOT_IDENTIFIED` (`400`) | None of `ticketId`, `contactId` or `number` — or only `number` on a channel without a phone number. |\n| `ERR_API_CONTACT_NOT_FOUND` (`404`) | `contactId` does not exist or belongs to another company. |\n| `ERR_API_CONTACT_UNREACHABLE` (`422`) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). |\n\n**Interactive on Webchat.** The webchat renders the same interactive messages as the official\nWhatsApp API that do not depend on a Meta resource: `button`, `list`, `cta_url`,\n`location_request_message` and `carousel`. On it, `interactive` is checked before the message is\nqueued, with the WhatsApp limits, and the problem comes back right away: `422` with the code\n`ERR_API_INTERACTIVE_INVALID` and, in `message`, the field and the reason (for example\n`interactive.action.buttons: de 1 a 3 botões`). `flow`, `product`, `product_list`,\n`catalog_message`, `address_message`, `voice_call` and `call_permission_request` do not exist on\nwebchat. On the other channels the provider does the checking, during the send.\n\n**Use `Idempotency-Key` here.** If the call times out and you retry without this key, the\ncontact may receive the same message twice.\n\n**Media is checked before it enters the queue.** With `type: media`, the file is read during the\ncall itself, and not during the background send — so a problematic file gets a `400` right away,\ninstead of returning a `jobId` that would fail later with no warning:\n\n| code | when it happens |\n| --- | --- |\n| `ERR_API_MEDIA_EMPTY` | The uploaded file has 0 bytes. |\n| `ERR_API_MEDIA_TYPE_UNKNOWN` | There is no way to tell the type: the name came without an extension and the `Content-Type` of the multipart part was not provided. |\n| `ERR_API_MEDIA_TYPE_MISMATCH` | The file contents contradict the declared type (for example, a PDF sent as an image). |\n\nA difference only in format within the same category is not rejected: a PNG declared as JPEG is\nsent normally. The type used for sending is always the one from the file contents.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /messages","href":"/api-reference/messages/send-message-asynchronous","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["messages"],"summary":"Send message (asynchronous)","description":"Queues the message for sending and responds right away with a `jobId`. The message is sent in\nthe background, because communicating with the provider can take a few seconds.\n\nThe `type` field defines the kind of message being sent.\n\n**Recipient.** Provide one of these, in this order of precedence:\n\n| field | when to use |\n| --- | --- |\n| `ticketId` | Send inside a ticket that already exists. Takes precedence over the other two. |\n| `contactId` | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over `number`. |\n| `number` | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. |\n\nThe recipient is checked before the message is queued:\n\n| code | when it happens |\n| --- | --- |\n| `ERR_API_CONTACT_NOT_IDENTIFIED` (`400`) | None of `ticketId`, `contactId` or `number` — or only `number` on a channel without a phone number. |\n| `ERR_API_CONTACT_NOT_FOUND` (`404`) | `contactId` does not exist or belongs to another company. |\n| `ERR_API_CONTACT_UNREACHABLE` (`422`) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). |\n\n**Interactive on Webchat.** The webchat renders the same interactive messages as the official\nWhatsApp API that do not depend on a Meta resource: `button`, `list`, `cta_url`,\n`location_request_message` and `carousel`. On it, `interactive` is checked before the message is\nqueued, with the WhatsApp limits, and the problem comes back right away: `422` with the code\n`ERR_API_INTERACTIVE_INVALID` and, in `message`, the field and the reason (for example\n`interactive.action.buttons: de 1 a 3 botões`). `flow`, `product`, `product_list`,\n`catalog_message`, `address_message`, `voice_call` and `call_permission_request` do not exist on\nwebchat. On the other channels the provider does the checking, during the send.\n\n**Use `Idempotency-Key` here.** If the call times out and you retry without this key, the\ncontact may receive the same message twice.\n\n**Media is checked before it enters the queue.** With `type: media`, the file is read during the\ncall itself, and not during the background send — so a problematic file gets a `400` right away,\ninstead of returning a `jobId` that would fail later with no warning:\n\n| code | when it happens |\n| --- | --- |\n| `ERR_API_MEDIA_EMPTY` | The uploaded file has 0 bytes. |\n| `ERR_API_MEDIA_TYPE_UNKNOWN` | There is no way to tell the type: the name came without an extension and the `Content-Type` of the multipart part was not provided. |\n| `ERR_API_MEDIA_TYPE_MISMATCH` | The file contents contradict the declared type (for example, a PDF sent as an image). |\n\nA difference only in format within the same category is not rejected: a PNG declared as JPEG is\nsent normally. The type used for sending is always the one from the file contents.","parameters":["c57a96df-c83e-46aa-86c3-5694c3f0855a"],"requestBody":"133be8c9-6d82-4630-9141-88d0161c48a6","responses":{"202":"d157e8b4-b42c-4acc-a225-71c174035ca5","400":"84d266a5-1e1b-45f7-adb4-9b2671a9fc79","402":"85e69087-40ec-4949-a356-0661a14dc61d","404":"71cb806e-2a84-4996-ab8c-aa9947e20d54","409":"92531822-8068-4cb1-8b71-09bad0f00987","422":"748a3dde-e9fb-4077-b2ab-94e1c83acdc1"},"method":"post","type":"path","servers":["3be57593-1160-4779-82dc-35be75306e68"],"security":["54cfd5f7-e0f8-45f0-80b3-cff08977184a"],"path":"/messages","baseUrlOptions":["https://api.connectadesk.com/api/v1"],"title":"Send message (asynchronous)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c57a96df-c83e-46aa-86c3-5694c3f0855a":{"name":"Idempotency-Key","in":"header","description":"Unique key for the operation. If you repeat the call with the same key and the same body, you get the stored response.","schema":{"type":"string","maxLength":200,"description":"Unique key for the operation. If you repeat the call with the same key and the same body, you get the stored response.","uniqueKey":"","typeLabel":"string"},"example":"pedido-88213-confirmacao"}},"requestBody":{"required":true,"content":{"application/json":{"examples":{"texto":{"title":"texto","summary":"Text","value":{"channelId":4,"type":"text","number":"5511999999999","contactName":"Marina Alves","body":"Olá, Marina! Seu pedido #88213 foi confirmado."}},"template":{"title":"template","summary":"Template","value":{"channelId":4,"type":"template","number":"5511999999999","template":{"name":"confirmacao_pedido","parameters":["Marina","88213"]}}},"porContato":{"title":"porContato","summary":"By contact (channel without a phone number)","value":{"channelId":11,"type":"text","contactId":842,"body":"Oi, Maria! Seu pedido saiu para entrega."}},"dentroDeUmAtendimento":{"title":"dentroDeUmAtendimento","summary":"Within a ticket","value":{"channelId":4,"type":"text","ticketId":9034,"body":"Seu pedido saiu para entrega.","closeTicket":true,"wrapupTypeId":12}},"interativa":{"title":"interativa","summary":"Interactive","value":{"channelId":4,"type":"interactive","number":"5511999999999","interactive":{"type":"button","body":{"text":"Podemos confirmar a entrega para amanhã?"},"action":{"buttons":[{"type":"reply","reply":{"id":"sim","title":"Sim"}},{"type":"reply","reply":{"id":"nao","title":"Reagendar"}}]}}}},"interativaLista":{"title":"interativaLista","summary":"Interactive: list (webchat)","value":{"channelId":11,"type":"interactive","contactId":842,"interactive":{"type":"list","header":{"type":"text","text":"Cardápio"},"body":{"text":"O que você vai pedir?"},"footer":{"text":"Entrega em até 40 min"},"action":{"button":"Ver cardápio","sections":[{"title":"Lanches","rows":[{"id":"x-burger","title":"X-Burger","description":"Bun, patty and cheese"},{"id":"x-salada","title":"X-Salada"}]},{"title":"Bebidas","rows":[{"id":"suco","title":"Suco natural"}]}]}}}},"interativaLink":{"title":"interativaLink","summary":"Interactive: link button","value":{"channelId":11,"type":"interactive","ticketId":9034,"interactive":{"type":"cta_url","header":{"type":"image","image":{"link":"https://cdn.loja.com.br/pedido.png"}},"body":{"text":"Seu pedido saiu para entrega."},"action":{"name":"cta_url","parameters":{"display_text":"Rastrear pedido","url":"https://loja.com.br/pedidos/88213"}}}}},"interativaLocalizacao":{"title":"interativaLocalizacao","summary":"Interactive: location request","value":{"channelId":11,"type":"interactive","ticketId":9034,"interactive":{"type":"location_request_message","body":{"text":"Envie sua localização para calcularmos o frete."},"action":{"name":"send_location"}}}},"interativaCarrossel":{"title":"interativaCarrossel","summary":"Interactive: carousel","value":{"channelId":11,"type":"interactive","ticketId":9034,"interactive":{"type":"carousel","body":{"text":"Ofertas da semana"},"action":{"cards":[{"card_index":0,"type":"cta_url","header":{"type":"image","image":{"link":"https://cdn.loja.com.br/tenis.png"}},"body":{"text":"Tênis de corrida"},"action":{"name":"cta_url","parameters":{"display_text":"Comprar","url":"https://loja.com.br/tenis"}}},{"card_index":1,"type":"button","header":{"type":"image","image":{"link":"https://cdn.loja.com.br/camiseta.png"}},"body":{"text":"Camiseta dry-fit"},"action":{"buttons":[{"type":"quick_reply","quick_reply":{"id":"quero-camiseta","title":"Quero"}}]}}]}}}}},"schema":{"type":"object","required":["channelId"],"properties":{"channelId":{"type":"integer","description":"Channel where the conversation takes place. See the available channels at `GET /channels`.","example":4,"isRequired":true,"uniqueKey":"channelId","typeLabel":"integer"},"type":{"type":"string","enum":["text","media","template","interactive"],"description":"Type of message. It defines which other fields are required:\n\n| value | what it requires |\n| --- | --- |\n| `text` | `body` with the text. |\n| `media` | Sent as `multipart/form-data`, with the file in `medias`. |\n| `template` | `template` with name and parameters. Required outside the WhatsApp 24h window. |\n| `interactive` | `interactive` in the official WhatsApp API format (buttons, list, link, location request, carousel). |","default":"text","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","description":"Recipient on phone channels (WhatsApp, RCS): digits only, with country and area code. If there is no contact with this number yet, one is created. Not valid on channels without a phone number.","example":"5511999999999","uniqueKey":"number","typeLabel":"string"},"contactId":{"type":"integer","description":"Recipient by the id of a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. The contact must belong to the token's company. Takes precedence over `number`.","example":842,"uniqueKey":"contactId","typeLabel":"integer"},"ticketId":{"type":"integer","description":"Sends inside a ticket that already exists. Takes precedence over `contactId` and `number`.","example":9034,"uniqueKey":"ticketId","typeLabel":"integer"},"contactName":{"type":"string","description":"Name given to the contact if it is created by this send (only with `number`).","example":"Marina Alves","uniqueKey":"contactName","typeLabel":"string"},"body":{"type":"string","description":"Message text, or caption when `type: media`. Accepts system variables (e.g. `{{name}}`).","example":"Olá, Marina! Seu pedido #88213 foi confirmado.","uniqueKey":"body","typeLabel":"string"},"template":{"type":"object","description":"Required when `type: template`. Accepts the simple form (`{ name, parameters }`), which is the recommended one: the API validates the template and builds the message. It also accepts the fully built object with `components`, for those who already work with that format.\n\nWith media in the header (in the fully built object, with the `link` in the `header` component), the conversation shows a copy of the file, kept in the company storage, and the template text with the variables. The copy accepts a JPEG or PNG image, an MP4 or 3GPP video and a PDF document, within Meta limits, and counts toward storage. If the copy is not possible (internal address, type outside the list, above the limit, too slow or storage full), the message is sent all the same, just without the media in the conversation.","required":["name"],"example":{"name":"confirmacao_pedido","parameters":{"body":["Maria","12345"]}},"properties":{"name":{"type":"string","description":"Exact name of the approved template. You can look it up at `GET /channels/{id}/templates`.","example":"confirmacao_pedido","isRequired":true,"uniqueKey":"template.name","typeLabel":"string"},"language":{"type":"string","description":"Template language. Only needed when there is more than one template with the same name in different languages.","example":"pt_BR","uniqueKey":"template.language","typeLabel":"string"},"parameters":{"type":"object","properties":{"body":{"type":"array","description":"One item per `{{n}}` variable in the body, in order.","items":{"type":"string","uniqueKey":"template.parameters.body.items.[INDEX]","typeLabel":"string"},"example":["Maria","12345"],"uniqueKey":"template.parameters.body","typeLabel":"string[]"},"header":{"type":"array","description":"One item per variable in a text header. A media header does not use this field.","items":{"type":"string","uniqueKey":"template.parameters.header.items.[INDEX]","typeLabel":"string"},"uniqueKey":"template.parameters.header","typeLabel":"string[]"}},"example":["Marina","88213"],"uniqueKey":"template.parameters","typeLabel":"object"}},"uniqueKey":"template","typeLabel":"object"},"interactive":{"type":"object","description":"Required when `type: interactive`. The `interactive` object of the official WhatsApp API (Cloud API),\nthe same on every channel that has interactive messages: the payload you already send to official\nWhatsApp works on Webchat with no changes.\n\nOn Webchat, the types and the limits checked during the call:\n\n| `type` | what it takes | limits |\n| --- | --- | --- |\n| `button` | `body`, `action.buttons[]` (`type: reply`, `reply.id`, `reply.title`); optional `header` and `footer` | 1 to 3 buttons; title up to 20; id up to 256, no repeats |\n| `list` | `body`, `action.button` (text of the button that opens the list), `action.sections[].rows[]` (`id`, `title`, `description`); optional text `header` and `footer` | 1 to 10 sections, 1 to 10 rows in total; button up to 20; row title up to 24; description up to 72; section title up to 24 (required with more than one section); id up to 200 |\n| `cta_url` | `body`, `action.name: cta_url`, `action.parameters.display_text` and `url` (http or https); optional `header` and `footer` | button text up to 20 |\n| `location_request_message` | `body`, `action.name: send_location` | no header |\n| `carousel` | `body`, `action.cards[]`: `header` (image or video), `body` and one link button (`action.name: cta_url`) or reply buttons (`action.buttons[]`, `type: quick_reply`) | 1 to 10 cards |\n\nOn all of them: `body.text` is required, up to 1024 characters (list: 4096); text `header` up to 60;\n`footer` up to 60. A media `header` (`image`, `video`, `document`) only by public http(s) `link` —\nthe webchat does not use media by Meta id.\n\nThe contact's choice arrives as it does on WhatsApp: a text message with the option title,\nreplying to (quoting) the interactive message.","example":{"type":"button","body":{"text":"Podemos confirmar a entrega para amanhã?"},"action":{"buttons":[{"type":"reply","reply":{"id":"sim","title":"Sim"}},{"type":"reply","reply":{"id":"nao","title":"Reagendar"}}]}},"uniqueKey":"interactive","typeLabel":"object"},"queueId":{"type":"integer","description":"Moves the ticket to this queue after sending.","example":7,"uniqueKey":"queueId","typeLabel":"integer"},"openTicket":{"type":"boolean","description":"Reopens the ticket if it is closed.","uniqueKey":"openTicket","typeLabel":"boolean"},"closeTicket":{"type":"boolean","description":"Closes the ticket after sending.","uniqueKey":"closeTicket","typeLabel":"boolean"},"wrapupTypeId":{"type":"integer","description":"Wrap-up recorded when the ticket is closed with `closeTicket`.","example":12,"uniqueKey":"wrapupTypeId","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"},"multipart/form-data":{"schema":{"type":"object","required":["channelId"],"properties":{"channelId":{"type":"integer","description":"Channel where the conversation takes place. See the available channels at `GET /channels`.","example":4,"isRequired":true,"uniqueKey":"channelId","typeLabel":"integer"},"type":{"type":"string","enum":["text","media","template","interactive"],"description":"Type of message. It defines which other fields are required:\n\n| value | what it requires |\n| --- | --- |\n| `text` | `body` with the text. |\n| `media` | Sent as `multipart/form-data`, with the file in `medias`. |\n| `template` | `template` with name and parameters. Required outside the WhatsApp 24h window. |\n| `interactive` | `interactive` in the official WhatsApp API format (buttons, list, link, location request, carousel). |","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","description":"Recipient on phone channels. See `number` in the JSON body.","example":"5511999999999","uniqueKey":"number","typeLabel":"string"},"contactId":{"type":"integer","description":"Recipient by the id of an existing contact. See `contactId` in the JSON body.","example":842,"uniqueKey":"contactId","typeLabel":"integer"},"ticketId":{"type":"integer","description":"Ticket the message belongs to.","example":9034,"uniqueKey":"ticketId","typeLabel":"integer"},"body":{"type":"string","example":"Olá, Marina! Seu pedido #88213 foi confirmado.","uniqueKey":"body","typeLabel":"string"},"medias":{"type":"string","format":"binary","description":"File to send. Required when `type: media`.","uniqueKey":"medias","typeLabel":"file"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"channelId":4,"number":"5511999999999","contactId":842,"ticketId":9034,"body":"Olá, Marina! Seu pedido #88213 foi confirmado.","medias":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"examples"},"responses":{"d157e8b4-b42c-4acc-a225-71c174035ca5":{"description":"Accepted and queued for sending.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"jobId":{"type":"string","example":"1841","uniqueKey":"data.jobId","typeLabel":"string"},"status":{"type":"string","example":"queued","uniqueKey":"data.status","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"jobId":"1841","status":"queued"}}}},"exampleType":"generated"}},"exampleType":"generated"},"84d266a5-1e1b-45f7-adb4-9b2671a9fc79":{"description":"Invalid request body.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Fixed error code, so your system can handle each case.","example":"ERR_API_FORBIDDEN_SCOPE","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"ERR_API_VALIDATION","message":"O campo `number` é obrigatório."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"ERR_API_VALIDATION","message":"O campo `number` é obrigatório."}}}},"exampleType":"examples"}},"exampleType":"examples"},"85e69087-40ec-4949-a356-0661a14dc61d":{"description":"The message is not queued. Two reasons:\n\n- `ERR_API_NO_WHATSAPP_CREDITS`: WhatsApp Business channel with WhatsApp billing enabled and\n the company out of credit. Top up the credits to send through this channel again. The minimum\n balance depends on the type: `template` requires a balance above the price of a marketing\n message; `text`, `media` and `interactive`, above the price of a service message.\n- `ERR_API_ACTIVE_CONTACTS_LIMIT_REACHED`: the company reached its monthly active contacts\n limit and the recipient has not exchanged messages with it this month yet. A contact counts\n once per month, at the first message exchanged (sent or received); contacts that already\n counted keep receiving normally. The count resets on the 1st. Does not apply to `web_whatsapp`\n channels.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Fixed error code, so your system can handle each case.","example":"ERR_API_FORBIDDEN_SCOPE","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"semCredito":{"title":"semCredito","summary":"Out of WhatsApp credit","value":{"error":{"code":"ERR_API_NO_WHATSAPP_CREDITS","message":"a empresa está sem crédito de WhatsApp. Recarregue os créditos para voltar a enviar por este canal."}}},"limiteContatosAtivos":{"title":"limiteContatosAtivos","summary":"Monthly active contacts limit","value":{"error":{"code":"ERR_API_ACTIVE_CONTACTS_LIMIT_REACHED","message":"a empresa atingiu o limite de contatos ativos do mês e este contato ainda não conversou com ela neste mês. Contrate mais contatos ativos ou aguarde a virada do mês."}}}},"exampleType":"examples"}},"exampleType":"examples"},"71cb806e-2a84-4996-ab8c-aa9947e20d54":{"description":"The resource does not exist or belongs to another company. For security, the response is the same in both cases.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Fixed error code, so your system can handle each case.","example":"ERR_API_FORBIDDEN_SCOPE","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"ERR_API_NOT_FOUND","message":"Registro não encontrado."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"ERR_API_NOT_FOUND","message":"Registro não encontrado."}}}},"exampleType":"examples"}},"exampleType":"examples"},"92531822-8068-4cb1-8b71-09bad0f00987":{"description":"`Idempotency-Key` conflict.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Fixed error code, so your system can handle each case.","example":"ERR_API_FORBIDDEN_SCOPE","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"ERR_API_IDEMPOTENCY_KEY_REUSED","message":"Idempotency-Key já usada com um corpo diferente."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"ERR_API_IDEMPOTENCY_KEY_REUSED","message":"Idempotency-Key já usada com um corpo diferente."}}}},"exampleType":"examples"}},"exampleType":"examples"},"748a3dde-e9fb-4077-b2ab-94e1c83acdc1":{"description":"The body is well formed, but a required field is missing or a value is not accepted. For example, `application` other than `contact`/`card`, an empty `orderedIds` or a blank `name`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Fixed error code, so your system can handle each case.","example":"ERR_API_FORBIDDEN_SCOPE","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"ERR_API_VALIDATION","message":"O parâmetro `application` é obrigatório e aceita \"contact\" ou \"card\"."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"ERR_API_VALIDATION","message":"O parâmetro `application` é obrigatório e aceita \"contact\" ou \"card\"."}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"54cfd5f7-e0f8-45f0-80b3-cff08977184a":{"apiToken":{"type":"http","scheme":"bearer","description":"API token in the `sk_live_…` format.","scopes":[],"schemeName":"apiToken"}}},"servers":{"3be57593-1160-4779-82dc-35be75306e68":{"url":"https://api.connectadesk.com/api/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API token in the `sk_live_…` format.","scopes":[],"schemeName":"apiToken"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API token in the `sk_live_…` format.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiToken","name":"Authorization"}],"title":"apiToken"}]},"originalFileLocation":"api-reference/openapi.en.yaml"},"subdomain":"connectacx","siteName":"Connecta DESK","title":"Send message (asynchronous) - Connecta DESK","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/introduction","matchLevel":4},"en":{"href":"/api-reference/messages/send-message-asynchronous","matchLevel":0}}},"lastModified":"2026-11-28T00:34:56.876Z","originalFileLocation":"api-reference/messages/send-message-asynchronous.mdx","locale":"en"},"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=\"Queues the message for sending and responds right away with a jobId. The message is sent in the background, because communicating with the provider can take a few seconds. The type field defines the kind of message being sent. Recipient. Provide one of these, in this order of precedence: | field | when to use | | --- | --- | | ticketId | Send inside a ticket that already exists. Takes precedence over the other two. | | contactId | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over number. | | number | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. | The recipient is checked before the message is queued: | code | when it happens | | --- | --- | | ERR_API_CONTACT_NOT_IDENTIFIED (400) | None of ticketId, contactId or number — or only number on a channel without a phone number. | | ERR_API_CONTACT_NOT_FOUND (404) | contactId does not exist or belongs to another company. | | ERR_API_CONTACT_UNREACHABLE (422) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). | Interactive on Webchat. The webchat renders the same interactive messages as the official WhatsApp API that do not depend on a Meta resource: button, list, cta_url, location_request_message and carousel. On it, interactive is checked before the message is queued, with the WhatsApp limits, and the problem comes back right away: 422 with the code ERR_API_INTERACTIVE_INVALID and, in message, the field and the reason (for example interactive.action.buttons: de 1 a 3 botões). flow, product, product_list, catalog_message, address_message, voice_call and call_permission_request do not exist on webchat. On the other channels the provider does the checking, during the send. Use Idempotency-Key here. If the call times out and you retry without this key, the contact may receive the same message twice. Media is checked before it enters the queue. With type: media, the file is read during the call itself, and not during the background send — so a problematic file gets a 400 right away, instead of returning a jobId that would fail later with no warning: | code | when it happens | | --- | --- | | ERR_API_MEDIA_EMPTY | The uploaded file has 0 bytes. | | ERR_API_MEDIA_TYPE_UNKNOWN | There is no way to tell the type: the name came without an extension and the Content-Type of the multipart part was not provided. | | ERR_API_MEDIA_TYPE_MISMATCH | The file contents contradict the declared type (for example, a PDF sent as an image). | A difference only in format within the same category is not rejected: a PNG declared as JPEG is sent normally. The type used for sending is always the one from the file contents.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Connecta DESK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_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/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_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/connectacx/mVa3BfMA-rex3vQM/_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/connectacx/mVa3BfMA-rex3vQM/_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/connectacx/mVa3BfMA-rex3vQM/_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/connectacx/mVa3BfMA-rex3vQM/_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/connectacx/mVa3BfMA-rex3vQM/_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/connectacx/mVa3BfMA-rex3vQM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send message (asynchronous) - Connecta DESK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Queues the message for sending and responds right away with a jobId. The message is sent in the background, because communicating with the provider can take a few seconds. The type field defines the kind of message being sent. Recipient. Provide one of these, in this order of precedence: | field | when to use | | --- | --- | | ticketId | Send inside a ticket that already exists. Takes precedence over the other two. | | contactId | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over number. | | number | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. | The recipient is checked before the message is queued: | code | when it happens | | --- | --- | | ERR_API_CONTACT_NOT_IDENTIFIED (400) | None of ticketId, contactId or number — or only number on a channel without a phone number. | | ERR_API_CONTACT_NOT_FOUND (404) | contactId does not exist or belongs to another company. | | ERR_API_CONTACT_UNREACHABLE (422) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). | Interactive on Webchat. The webchat renders the same interactive messages as the official WhatsApp API that do not depend on a Meta resource: button, list, cta_url, location_request_message and carousel. On it, interactive is checked before the message is queued, with the WhatsApp limits, and the problem comes back right away: 422 with the code ERR_API_INTERACTIVE_INVALID and, in message, the field and the reason (for example interactive.action.buttons: de 1 a 3 botões). flow, product, product_list, catalog_message, address_message, voice_call and call_permission_request do not exist on webchat. On the other channels the provider does the checking, during the send. Use Idempotency-Key here. If the call times out and you retry without this key, the contact may receive the same message twice. Media is checked before it enters the queue. With type: media, the file is read during the call itself, and not during the background send — so a problematic file gets a 400 right away, instead of returning a jobId that would fail later with no warning: | code | when it happens | | --- | --- | | ERR_API_MEDIA_EMPTY | The uploaded file has 0 bytes. | | ERR_API_MEDIA_TYPE_UNKNOWN | There is no way to tell the type: the name came without an extension and the Content-Type of the multipart part was not provided. | | ERR_API_MEDIA_TYPE_MISMATCH | The file contents contradict the declared type (for example, a PDF sent as an image). | A difference only in format within the same category is not rejected: a PNG declared as JPEG is sent normally. The type used for sending is always the one from the file contents.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Connecta DESK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://connectacx.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+message+%28asynchronous%29\u0026amp;description=Queues+the+message+for+sending+and+responds+right+away+with+a+%60jobId%60.+The+message+is+sent+in%0Athe+background%2C+because+communicating+with+the+provider+can+take+a\u0026amp;theme=ec01e76e0b1dcb7d20511983\u0026amp;signature=cbd76a9100a5aa2693f9131b1c07e5c16b263fbe958c13613b3f371d45feae55\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send message (asynchronous) - Connecta DESK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Queues the message for sending and responds right away with a jobId. The message is sent in the background, because communicating with the provider can take a few seconds. The type field defines the kind of message being sent. Recipient. Provide one of these, in this order of precedence: | field | when to use | | --- | --- | | ticketId | Send inside a ticket that already exists. Takes precedence over the other two. | | contactId | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over number. | | number | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. | The recipient is checked before the message is queued: | code | when it happens | | --- | --- | | ERR_API_CONTACT_NOT_IDENTIFIED (400) | None of ticketId, contactId or number — or only number on a channel without a phone number. | | ERR_API_CONTACT_NOT_FOUND (404) | contactId does not exist or belongs to another company. | | ERR_API_CONTACT_UNREACHABLE (422) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). | Interactive on Webchat. The webchat renders the same interactive messages as the official WhatsApp API that do not depend on a Meta resource: button, list, cta_url, location_request_message and carousel. On it, interactive is checked before the message is queued, with the WhatsApp limits, and the problem comes back right away: 422 with the code ERR_API_INTERACTIVE_INVALID and, in message, the field and the reason (for example interactive.action.buttons: de 1 a 3 botões). flow, product, product_list, catalog_message, address_message, voice_call and call_permission_request do not exist on webchat. On the other channels the provider does the checking, during the send. Use Idempotency-Key here. If the call times out and you retry without this key, the contact may receive the same message twice. Media is checked before it enters the queue. With type: media, the file is read during the call itself, and not during the background send — so a problematic file gets a 400 right away, instead of returning a jobId that would fail later with no warning: | code | when it happens | | --- | --- | | ERR_API_MEDIA_EMPTY | The uploaded file has 0 bytes. | | ERR_API_MEDIA_TYPE_UNKNOWN | There is no way to tell the type: the name came without an extension and the Content-Type of the multipart part was not provided. | | ERR_API_MEDIA_TYPE_MISMATCH | The file contents contradict the declared type (for example, a PDF sent as an image). | A difference only in format within the same category is not rejected: a PNG declared as JPEG is sent normally. The type used for sending is always the one from the file contents.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://connectacx.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+message+%28asynchronous%29\u0026amp;description=Queues+the+message+for+sending+and+responds+right+away+with+a+%60jobId%60.+The+message+is+sent+in%0Athe+background%2C+because+communicating+with+the+provider+can+take+a\u0026amp;theme=ec01e76e0b1dcb7d20511983\u0026amp;signature=cbd76a9100a5aa2693f9131b1c07e5c16b263fbe958c13613b3f371d45feae55\">\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/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Connecta DESK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6600CB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/messages/send-message-asynchronous.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.connectadesk.com/#organization\",\"name\":\"Connecta DESK\",\"url\":\"https://docs.connectadesk.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/connectacx/Zc_LQh8Yyx38544Q/logo/light.png?fit=max\u0026auto=format\u0026n=Zc_LQh8Yyx38544Q\u0026q=85\u0026s=85d9b71a8b3fdb4f14dba571d7c0299c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.connectadesk.com#website\",\"name\":\"Connecta DESK\",\"url\":\"https://docs.connectadesk.com\",\"publisher\":{\"@id\":\"https://docs.connectadesk.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous#webpage\",\"url\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous\",\"name\":\"Send message (asynchronous)\",\"description\":\"Queues the message for sending and responds right away with a jobId. The message is sent in the background, because communicating with the provider can take a few seconds. The type field defines the kind of message being sent. Recipient. Provide one of these, in this order of precedence: | field | when to use | | --- | --- | | ticketId | Send inside a ticket that already exists. Takes precedence over the other two. | | contactId | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over number. | | number | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. | The recipient is checked before the message is queued: | code | when it happens | | --- | --- | | ERR_API_CONTACT_NOT_IDENTIFIED (400) | None of ticketId, contactId or number — or only number on a channel without a phone number. | | ERR_API_CONTACT_NOT_FOUND (404) | contactId does not exist or belongs to another company. | | ERR_API_CONTACT_UNREACHABLE (422) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). | Interactive on Webchat. The webchat renders the same interactive messages as the official WhatsApp API that do not depend on a Meta resource: button, list, cta_url, location_request_message and carousel. On it, interactive is checked before the message is queued, with the WhatsApp limits, and the problem comes back right away: 422 with the code ERR_API_INTERACTIVE_INVALID and, in message, the field and the reason (for example interactive.action.buttons: de 1 a 3 botões). flow, product, product_list, catalog_message, address_message, voice_call and call_permission_request do not exist on webchat. On the other channels the provider does the checking, during the send. Use Idempotency-Key here. If the call times out and you retry without this key, the contact may receive the same message twice. Media is checked before it enters the queue. With type: media, the file is read during the call itself, and not during the background send — so a problematic file gets a 400 right away, instead of returning a jobId that would fail later with no warning: | code | when it happens | | --- | --- | | ERR_API_MEDIA_EMPTY | The uploaded file has 0 bytes. | | ERR_API_MEDIA_TYPE_UNKNOWN | There is no way to tell the type: the name came without an extension and the Content-Type of the multipart part was not provided. | | ERR_API_MEDIA_TYPE_MISMATCH | The file contents contradict the declared type (for example, a PDF sent as an image). | A difference only in format within the same category is not rejected: a PNG declared as JPEG is sent normally. The type used for sending is always the one from the file contents.\",\"dateModified\":\"2026-11-28T00:34:56.876Z\",\"isPartOf\":{\"@id\":\"https://docs.connectadesk.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.connectadesk.com/api-reference/contacts/list-contacts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send message (asynchronous)\",\"item\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous#apireference\",\"headline\":\"Send message (asynchronous)\",\"name\":\"Send message (asynchronous)\",\"description\":\"Queues the message for sending and responds right away with a jobId. The message is sent in the background, because communicating with the provider can take a few seconds. The type field defines the kind of message being sent. Recipient. Provide one of these, in this order of precedence: | field | when to use | | --- | --- | | ticketId | Send inside a ticket that already exists. Takes precedence over the other two. | | contactId | Send to a contact that already exists, on any channel. Required on channels without a phone number (Instagram, Facebook/Messenger, Webchat, Telegram) — on them you can only message someone who has already talked to the channel. Takes precedence over number. | | number | Phone channels (WhatsApp, RCS). If there is no contact with this number yet, one is created. Not valid on channels without a phone number. | The recipient is checked before the message is queued: | code | when it happens | | --- | --- | | ERR_API_CONTACT_NOT_IDENTIFIED (400) | None of ticketId, contactId or number — or only number on a channel without a phone number. | | ERR_API_CONTACT_NOT_FOUND (404) | contactId does not exist or belongs to another company. | | ERR_API_CONTACT_UNREACHABLE (422) | The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels). | Interactive on Webchat. The webchat renders the same interactive messages as the official WhatsApp API that do not depend on a Meta resource: button, list, cta_url, location_request_message and carousel. On it, interactive is checked before the message is queued, with the WhatsApp limits, and the problem comes back right away: 422 with the code ERR_API_INTERACTIVE_INVALID and, in message, the field and the reason (for example interactive.action.buttons: de 1 a 3 botões). flow, product, product_list, catalog_message, address_message, voice_call and call_permission_request do not exist on webchat. On the other channels the provider does the checking, during the send. Use Idempotency-Key here. If the call times out and you retry without this key, the contact may receive the same message twice. Media is checked before it enters the queue. With type: media, the file is read during the call itself, and not during the background send — so a problematic file gets a 400 right away, instead of returning a jobId that would fail later with no warning: | code | when it happens | | --- | --- | | ERR_API_MEDIA_EMPTY | The uploaded file has 0 bytes. | | ERR_API_MEDIA_TYPE_UNKNOWN | There is no way to tell the type: the name came without an extension and the Content-Type of the multipart part was not provided. | | ERR_API_MEDIA_TYPE_MISMATCH | The file contents contradict the declared type (for example, a PDF sent as an image). | A difference only in format within the same category is not rejected: a PNG declared as JPEG is sent normally. The type used for sending is always the one from the file contents.\",\"url\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous\",\"mainEntityOfPage\":{\"@id\":\"https://docs.connectadesk.com/api-reference/messages/send-message-asynchronous#webpage\"},\"dateModified\":\"2026-11-28T00:34:56.876Z\",\"publisher\":{\"@id\":\"https://docs.connectadesk.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.connectadesk.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Connecta DESK\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Connecta DESK\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/messages/send-message-asynchronous.md","siteName":"Connecta DESK","nav":{"global":null,"languages":[{"language":"pt-BR","default":true,"navbar":{"primary":{"type":"button","label":"Acessar plataforma","href":"https://app.connectadesk.com"}},"pages":[{"title":"pt-BR","href":"/introduction"}]},{"language":"en","navbar":{"primary":{"type":"button","label":"Access platform","href":"https://app.connectadesk.com"}},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","sidebarTitle":"Overview","href":"/en/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"group":"Contacts","icon":"user","expanded":false,"pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /contacts","href":"/api-reference/contacts/create-contact"},{"title":"Create or update by number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /contacts/upsert","href":"/api-reference/contacts/create-or-update-by-number"},{"title":"Get contact base metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /contacts/insights","href":"/api-reference/contacts/get-contact-base-metrics"},{"title":"Get contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /contacts/{id}","href":"/api-reference/contacts/get-contact"},{"title":"Update contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /contacts/{id}","href":"/api-reference/contacts/update-contact"},{"title":"Delete contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /contacts/{id}","href":"/api-reference/contacts/delete-contact"},{"title":"List open tickets of the contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /contacts/{id}/tickets","href":"/api-reference/contacts/list-open-tickets-of-the-contact"},{"title":"Apply tag to the contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /contacts/{contactId}/tags/{tagId}","href":"/api-reference/contacts/apply-tag-to-the-contact"},{"title":"Remove tag from the contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /contacts/{contactId}/tags/{tagId}","href":"/api-reference/contacts/remove-tag-from-the-contact"}]},{"group":"Tickets","icon":"message-square","expanded":false,"pages":[{"title":"List tickets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /tickets","href":"/api-reference/tickets/list-tickets"},{"title":"Open ticket","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /tickets","href":"/api-reference/tickets/open-ticket"},{"title":"Get conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /tickets/{id}","href":"/api-reference/tickets/get-conversation"},{"title":"Update conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /tickets/{id}","href":"/api-reference/tickets/update-conversation"},{"title":"Close ticket","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /tickets/{id}/close","href":"/api-reference/tickets/close-ticket"},{"title":"Transfer queue and/or agent","description":"Transfers the ticket to another queue, another agent, or both. The ticket moves to `pending`. Provide at least one of the two fields.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /tickets/{id}/transfer","href":"/api-reference/tickets/transfer-queue-andor-agent"}]},{"group":"Messages","icon":"send","expanded":false,"pages":[{"title":"Send message (asynchronous)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /messages","href":"/api-reference/messages/send-message-asynchronous"},{"title":"Get send status","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /messages/jobs/{jobId}","href":"/api-reference/messages/get-send-status"},{"title":"Delete message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /messages/{id}","href":"/api-reference/messages/delete-message"},{"title":"List messages of the conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /tickets/{ticketId}/messages","href":"/api-reference/messages/list-messages-of-the-conversation"},{"title":"List messages of a protocol","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /protocols/{protocol}/messages","href":"/api-reference/messages/list-messages-of-a-protocol"}]},{"group":"Channels","icon":"smartphone","expanded":false,"pages":[{"title":"List channels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /channels","href":"/api-reference/channels/list-channels"},{"title":"List channel templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /channels/{id}/templates","href":"/api-reference/channels/list-channel-templates"},{"title":"Get channel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /channels/{id}","href":"/api-reference/channels/get-channel"}]},{"group":"Webchat","icon":"messages-square","expanded":false,"pages":[{"title":"List webchats","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /webchat","href":"/api-reference/webchat/list-webchats"},{"title":"Open (or resume) a visitor session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /webchat/{slug}/sessions","href":"/api-reference/webchat/open-or-resume-a-visitor-session"},{"title":"Get session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /webchat/{slug}/sessions/{sessionId}","href":"/api-reference/webchat/get-session"},{"title":"List session messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /webchat/{slug}/sessions/{sessionId}/messages","href":"/api-reference/webchat/list-session-messages"},{"title":"Send a visitor message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /webchat/{slug}/sessions/{sessionId}/messages","href":"/api-reference/webchat/send-a-visitor-message"},{"title":"Mark company messages as read","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /webchat/{slug}/sessions/{sessionId}/read","href":"/api-reference/webchat/mark-company-messages-as-read"},{"title":"Close session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /webchat/{slug}/sessions/{sessionId}/close","href":"/api-reference/webchat/close-session"}]},{"group":"Tags","icon":"tags","expanded":false,"pages":[{"title":"List tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /tags","href":"/api-reference/tags/list-tags"},{"title":"Create tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /tags","href":"/api-reference/tags/create-tag"},{"title":"Get tag usage metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /tags/insights","href":"/api-reference/tags/get-tag-usage-metrics"},{"title":"Get tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /tags/{id}","href":"/api-reference/tags/get-tag"},{"title":"Update tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /tags/{id}","href":"/api-reference/tags/update-tag"},{"title":"Delete tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /tags/{id}","href":"/api-reference/tags/delete-tag"},{"title":"List contacts marked with the tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /tags/{id}/contacts","href":"/api-reference/tags/list-contacts-marked-with-the-tag"}]},{"group":"Queues","icon":"list-video","expanded":false,"pages":[{"title":"List queues","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /queues","href":"/api-reference/queues/list-queues"},{"title":"Create queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /queues","href":"/api-reference/queues/create-queue"},{"title":"Get queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /queues/{id}","href":"/api-reference/queues/get-queue"},{"title":"Update queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /queues/{id}","href":"/api-reference/queues/update-queue"},{"title":"Delete queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /queues/{id}","href":"/api-reference/queues/delete-queue"},{"title":"Restore deleted queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /queues/{id}/restore","href":"/api-reference/queues/restore-deleted-queue"},{"title":"List agents of the queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /queues/{id}/users","href":"/api-reference/queues/list-agents-of-the-queue"}]},{"group":"Wrap-up types","icon":"award","expanded":false,"pages":[{"title":"List wrap-up types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /wrapup-types","href":"/api-reference/wrapups/list-wrap-up-types"},{"title":"Create wrap-up type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /wrapup-types","href":"/api-reference/wrapups/create-wrap-up-type"},{"title":"Get wrap-up type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /wrapup-types/{id}","href":"/api-reference/wrapups/get-wrap-up-type"},{"title":"Update wrap-up type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /wrapup-types/{id}","href":"/api-reference/wrapups/update-wrap-up-type"},{"title":"Delete wrap-up type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /wrapup-types/{id}","href":"/api-reference/wrapups/delete-wrap-up-type"},{"title":"Activate or deactivate wrap-up type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /wrapup-types/{id}/active","href":"/api-reference/wrapups/activate-or-deactivate-wrap-up-type"},{"title":"List queues of the wrap-up type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /wrapup-types/{id}/queues","href":"/api-reference/wrapups/list-queues-of-the-wrap-up-type"},{"title":"List wrap-up types of the queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /queues/{queueId}/wrapup-types","href":"/api-reference/wrapups/list-wrap-up-types-of-the-queue"}]},{"group":"Users","icon":"user-cog","expanded":false,"pages":[{"title":"List users","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /users","href":"/api-reference/users/list-users"},{"title":"Invite user to the company","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /users/invites","href":"/api-reference/users/invite-user-to-the-company"},{"title":"Revoke pending invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /users/invites/{id}","href":"/api-reference/users/revoke-pending-invitation"},{"title":"Get service metrics per user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /users/metrics","href":"/api-reference/users/get-service-metrics-per-user"},{"title":"Get user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /users/{id}","href":"/api-reference/users/get-user"},{"title":"Update the user's membership in the company","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /users/{id}","href":"/api-reference/users/update-the-users-membership-in-the-company"},{"title":"Activate or deactivate user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /users/{id}/active","href":"/api-reference/users/activate-or-deactivate-user"}]},{"group":"Permission profiles","icon":"shield-check","expanded":false,"pages":[{"title":"List permission profiles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /profiles","href":"/api-reference/profiles/list-permission-profiles"}]},{"group":"Scheduled messages","icon":"calendar","expanded":false,"pages":[{"title":"List scheduled messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /schedules","href":"/api-reference/schedules/list-scheduled-messages"},{"title":"Create scheduled message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /schedules","href":"/api-reference/schedules/create-scheduled-message"},{"title":"Get scheduled message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /schedules/{id}","href":"/api-reference/schedules/get-scheduled-message"},{"title":"Update scheduled message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /schedules/{id}","href":"/api-reference/schedules/update-scheduled-message"},{"title":"Cancel scheduled message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /schedules/{id}","href":"/api-reference/schedules/cancel-scheduled-message"},{"title":"Attach file to the scheduled message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /schedules/{id}/media","href":"/api-reference/schedules/attach-file-to-the-scheduled-message"},{"title":"Remove the scheduled message attachment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /schedules/{id}/media","href":"/api-reference/schedules/remove-the-scheduled-message-attachment"}]},{"group":"Quick replies","icon":"zap","expanded":false,"pages":[{"title":"List quick replies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /quick-messages","href":"/api-reference/quick-messages/list-quick-replies"},{"title":"Create quick reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /quick-messages","href":"/api-reference/quick-messages/create-quick-reply"},{"title":"Get quick reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /quick-messages/{id}","href":"/api-reference/quick-messages/get-quick-reply"},{"title":"Update quick reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /quick-messages/{id}","href":"/api-reference/quick-messages/update-quick-reply"},{"title":"Delete quick reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /quick-messages/{id}","href":"/api-reference/quick-messages/delete-quick-reply"},{"title":"Attach file to the quick reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /quick-messages/{id}/media","href":"/api-reference/quick-messages/attach-file-to-the-quick-reply"},{"title":"Remove the quick reply attachment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /quick-messages/{id}/media","href":"/api-reference/quick-messages/remove-the-quick-reply-attachment"}]},{"group":"Campaigns","icon":"megaphone","expanded":false,"pages":[{"title":"List campaigns","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /campaigns","href":"/api-reference/campaigns/list-campaigns"},{"title":"Create campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns","href":"/api-reference/campaigns/create-campaign"},{"title":"Get campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /campaigns/{id}","href":"/api-reference/campaigns/get-campaign"},{"title":"Update campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /campaigns/{id}","href":"/api-reference/campaigns/update-campaign"},{"title":"Pause the sending","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns/{id}/pause","href":"/api-reference/campaigns/pause-the-sending"},{"title":"Resume paused campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns/{id}/resume","href":"/api-reference/campaigns/resume-paused-campaign"},{"title":"Cancel campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns/{id}/cancel","href":"/api-reference/campaigns/cancel-campaign"},{"title":"Restart the sending from the beginning","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns/{id}/restart","href":"/api-reference/campaigns/restart-the-sending-from-the-beginning"},{"title":"Retry those that failed for lack of RCS balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns/{id}/retry-no-balance/rcs","href":"/api-reference/campaigns/retry-those-that-failed-for-lack-of-rcs-balance"},{"title":"Retry those that failed for lack of WhatsApp credit","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns/{id}/retry-no-balance/whatsapp","href":"/api-reference/campaigns/retry-those-that-failed-for-lack-of-whatsapp-credit"},{"title":"Resume a campaign paused by the active contacts limit","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /campaigns/{id}/retry-active-contacts-limit","href":"/api-reference/campaigns/resume-a-campaign-paused-by-the-active-contacts-limit"},{"title":"List campaign recipients","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /campaigns/{id}/contacts","href":"/api-reference/campaigns/list-campaign-recipients"},{"title":"Get consolidated campaign result","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /campaigns/{id}/report","href":"/api-reference/campaigns/get-consolidated-campaign-result"}]},{"group":"CRM","icon":"kanban","expanded":false,"pages":[{"title":"List boards","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /crm/boards","href":"/api-reference/crm/list-boards"},{"title":"Create board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /crm/boards","href":"/api-reference/crm/create-board"},{"title":"Get board with stages and cards","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /crm/boards/{boardId}","href":"/api-reference/crm/get-board-with-stages-and-cards"},{"title":"Update board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /crm/boards/{boardId}","href":"/api-reference/crm/update-board"},{"title":"Delete board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /crm/boards/{boardId}","href":"/api-reference/crm/delete-board"},{"title":"Archive board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /crm/boards/{boardId}/archive","href":"/api-reference/crm/archive-board"},{"title":"Restore archived board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /crm/boards/{boardId}/restore","href":"/api-reference/crm/restore-archived-board"},{"title":"Create stage on the board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /crm/boards/{boardId}/lists","href":"/api-reference/crm/create-stage-on-the-board"},{"title":"Search cards on the board","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /crm/boards/{boardId}/cards","href":"/api-reference/crm/search-cards-on-the-board"},{"title":"Delete stage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /crm/lists/{listId}","href":"/api-reference/crm/delete-stage"},{"title":"List statuses configured on the stage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /crm/lists/{listId}/statuses","href":"/api-reference/crm/list-statuses-configured-on-the-stage"},{"title":"Create card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /crm/cards","href":"/api-reference/crm/create-card"},{"title":"Write the card's custom fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /crm/cards/{cardId}/custom-fields","href":"/api-reference/crm/write-the-cards-custom-fields"},{"title":"Replace the card's products","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /crm/cards/{cardId}/products","href":"/api-reference/crm/replace-the-cards-products"},{"title":"Edit the card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /crm/cards/{cardId}","href":"/api-reference/crm/edit-the-card"},{"title":"Delete card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /crm/cards/{cardId}","href":"/api-reference/crm/delete-card"},{"title":"Get card history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /crm/cards/{cardId}/history","href":"/api-reference/crm/get-card-history"},{"title":"Add note to the card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /crm/cards/{cardId}/notes","href":"/api-reference/crm/add-note-to-the-card"},{"title":"Update note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /crm/cards/notes/{noteId}","href":"/api-reference/crm/update-note"},{"title":"Delete note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /crm/cards/notes/{noteId}","href":"/api-reference/crm/delete-note"},{"title":"Link or unlink contact from the card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /crm/cards/{cardId}/contacts","href":"/api-reference/crm/link-or-unlink-contact-from-the-card"},{"title":"Choose the card's primary contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /crm/cards/{cardId}/primary-contact","href":"/api-reference/crm/choose-the-cards-primary-contact"},{"title":"List origins","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /crm/origins","href":"/api-reference/crm/list-origins"},{"title":"Delete origin","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /crm/origins/{originId}","href":"/api-reference/crm/delete-origin"},{"title":"List businesses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /crm/businesses","href":"/api-reference/crm/list-businesses"}]},{"group":"Products","icon":"package","expanded":false,"pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /products","href":"/api-reference/products/list-products"},{"title":"Create product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /products","href":"/api-reference/products/create-product"},{"title":"Get catalog summary","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /products/insights","href":"/api-reference/products/get-catalog-summary"},{"title":"Suggest an SKU from the name","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /products/generate-sku","href":"/api-reference/products/suggest-an-sku-from-the-name"},{"title":"Get product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /products/{id}","href":"/api-reference/products/get-product"},{"title":"Update product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /products/{id}","href":"/api-reference/products/update-product"},{"title":"Get sales performance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /products/{id}/performance","href":"/api-reference/products/get-sales-performance"},{"title":"Upload the product image","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /products/{id}/image","href":"/api-reference/products/upload-the-product-image"},{"title":"Remove the product image","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /products/{id}/image","href":"/api-reference/products/remove-the-product-image"},{"title":"List categories","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /product-categories","href":"/api-reference/products/list-categories"},{"title":"Create category","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /product-categories","href":"/api-reference/products/create-category"},{"title":"Get category","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /product-categories/{categoryId}","href":"/api-reference/products/get-category"},{"title":"Update category","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /product-categories/{categoryId}","href":"/api-reference/products/update-category"},{"title":"Delete category","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /product-categories/{categoryId}","href":"/api-reference/products/delete-category"}]},{"group":"Custom fields","icon":"list-plus","expanded":false,"pages":[{"title":"List custom fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /custom-fields","href":"/api-reference/custom-fields/list-custom-fields"},{"title":"Create custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /custom-fields","href":"/api-reference/custom-fields/create-custom-field"},{"title":"Get count by target","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /custom-fields/insights","href":"/api-reference/custom-fields/get-count-by-target"},{"title":"List existing groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /custom-fields/groups","href":"/api-reference/custom-fields/list-existing-groups"},{"title":"Reorder the fields within a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /custom-fields/reorder","href":"/api-reference/custom-fields/reorder-the-fields-within-a-group"},{"title":"Get custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /custom-fields/{id}","href":"/api-reference/custom-fields/get-custom-field"},{"title":"Update custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /custom-fields/{id}","href":"/api-reference/custom-fields/update-custom-field"},{"title":"Delete custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /custom-fields/{id}","href":"/api-reference/custom-fields/delete-custom-field"},{"title":"List global variables","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /global-variables","href":"/api-reference/custom-fields/list-global-variables"},{"title":"Create global variable","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /global-variables","href":"/api-reference/custom-fields/create-global-variable"},{"title":"Get global variable","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /global-variables/{variableId}","href":"/api-reference/custom-fields/get-global-variable"},{"title":"Update global variable","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml put /global-variables/{variableId}","href":"/api-reference/custom-fields/update-global-variable"},{"title":"Delete global variable","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml delete /global-variables/{variableId}","href":"/api-reference/custom-fields/delete-global-variable"}]},{"group":"Reports","icon":"chart-column","expanded":false,"pages":[{"title":"Get conversations report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/conversations","href":"/api-reference/reports/get-conversations-report"},{"title":"Get automations report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/automations","href":"/api-reference/reports/get-automations-report"},{"title":"Dashboard: Service","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/service","href":"/api-reference/reports/dashboard:-service"},{"title":"Dashboard: Service users table","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/service/users","href":"/api-reference/reports/dashboard:-service-users-table"},{"title":"Dashboard: Satisfaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/csat","href":"/api-reference/reports/dashboard:-satisfaction"},{"title":"Dashboard: Monitoring","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/monitoring","href":"/api-reference/reports/dashboard:-monitoring"},{"title":"Dashboard: users in Monitoring","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/monitoring/users","href":"/api-reference/reports/dashboard:-users-in-monitoring"},{"title":"Dashboard: a user in Monitoring","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/monitoring/users/{userId}","href":"/api-reference/reports/dashboard:-a-user-in-monitoring"},{"title":"Dashboard: queues in Monitoring","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/monitoring/queues","href":"/api-reference/reports/dashboard:-queues-in-monitoring"},{"title":"Dashboard: a queue in Monitoring","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/monitoring/queues/{queueId}","href":"/api-reference/reports/dashboard:-a-queue-in-monitoring"},{"title":"Dashboard: open conversations in Monitoring","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/monitoring/chats","href":"/api-reference/reports/dashboard:-open-conversations-in-monitoring"},{"title":"Dashboard: Usage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/usage","href":"/api-reference/reports/dashboard:-usage"},{"title":"Dashboard: CRM tab","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/crm","href":"/api-reference/reports/dashboard:-crm-tab"},{"title":"Dashboard: CRM goals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /reports/dashboard/crm/goals","href":"/api-reference/reports/dashboard:-crm-goals"}]}]}]}]}]},"basePath":"","title":"Send message (asynchronous) - Connecta DESK","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"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","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","SectionHeading-DyxPTJti.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.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"]}