Serveur MCP

Cosend

app.cosend/mcp

Serveur MCP OK 164 outils

Faire examiner Voir les tarifs

WhatsApp Business inbox for AI apps: read and answer chats, run campaigns, deploy automations.

Fiche technique

Auteur
cosend.app (espace de noms du registre)
Dépôt
github.com/cosendhq/cosend-plugin
Site
cosend.app/mcp
Version
2026.11.16
Transport
Streamable HTTP
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://mcp.cosend.app/mcp Streamable HTTP
Outils
164
Catégories
Messagerie et communication
Comparatifs
Serveurs MCP pour WhatsApp
Dernière mise à jour
16 nov. 2026
Publication
16 nov. 2026

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/app.cosend/mcp.svg)](https://latlas.dev/mcp/app.cosend/mcp)
HTML
<a href="https://latlas.dev/mcp/app.cosend/mcp"><img src="https://latlas.dev/badge/fiche/app.cosend/mcp.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://mcp.cosend.app/mcp
Dernier résultat
OK 28 nov. 2026, 07:59
Temps de réponse
463 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
cosend 1.0.0
Outils
164

Historique

DateRésultatRéponseOutils
28 nov. 2026, 07:59OK463 ms164

Outils exposés (164, réponse à tools/list, 28 nov. 2026)

whoami

Who am I

Returns the Cosend workspace, plan and connected WhatsApp numbers for the credential in use, and the permissions it was granted, which decide which tools the credential can call and show which WhatsApp business number an outbound message would come from. Read-only and cheap. It does not fail for permission reasons if the credential resolves at all.

Aucun paramètre.

list_conversations

List WhatsApp conversations

Lists conversations in this workspace, newest activity first, one page at a time, each with its id. Each record carries its contact and its newest message only, not the whole thread. Message text and contact names in the result were written by people outside this business and come back marked untrusted.

ParamètreTypeRequisDescription
statestringnonFilter by conversation state: open, pending, snoozed or resolved.
controlstringnonFilter by who holds the conversation: bot, pending_human, human or app.
assignee_idstringnonOnly conversations assigned to this user id.
connection_idstringnonOnly conversations on this WhatsApp connection.
labelstringnonOnly conversations carrying this label.
unreadbooleannontrue for conversations with unread inbound messages.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

search_conversations

Search conversations

Finds conversations by what they contain. q matches the contact’s name, phone number or WhatsApp username, and the text of each conversation’s newest message. Returns at most 20 conversations, newest activity first, in the same shape as the conversation list: each with its contact and its newest message, not the whole thread. Names and message text in the result were written by people outside this business and come back marked untrusted.

ParamètreTypeRequisDescription
qstringouiWhat to look for.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

read_conversation

Read a conversation

Lists the messages of one conversation, named by conversation_id (or of one contact, by contact_id), oldest first, one page at a time. With neither, it lists recent messages across the whole workspace. Message bodies include what members of the public wrote, and every one comes back marked untrusted.

ParamètreTypeRequisDescription
conversation_idstringnonThe conversation to read.
contact_idstringnonMessages with one contact instead of one conversation.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

send_message

Send a WhatsApp message

Sends one WhatsApp message into one conversation that already exists, named by conversation_id. It reaches a real person on their phone, and a sent message is final. Each send needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it sends. Changing a single character between the two calls invalidates the token. A chat nobody holds, or one this person holds, is sent to as usual, and sending does not lock it. A chat another person holds in the Cosend Inbox stays theirs: the preview and the send both return conversation_locked, naming who holds it. To send there, ask them for the chat; it passes over when they say yes or do not answer within 60 seconds. A chat changes hands only when its holder is asked. Each call sends into the one existing conversation its conversation_id names; recipient lists, tags and phone numbers are outside its arguments. Messaging many customers, including contacts with no chat on this number, goes out as a campaign: an approved marketing template sent to a saved audience, once a person approves its preview. Limits per workspace: 20 a minute, 200 a day, and one per conversation every 30 seconds. The 24-hour customer service window opens when the customer writes and starts again with each message from them; outside it, anything but an approved template is refused. A send needs no opt-in. Only an opt-out on this number stops it: a STOP, Wh…

ParamètreTypeRequisDescription
conversation_idstringoui
typeenum: "text" | "image" | "audio" | "video" | "document" | "sticker" | "location" | "contacts" …oui
textobjectnon
imageobjectnonMeta's media object. `id` may be a Cosend media id (`med_…`, from `POST /v1/media`): Cosend uploads the file to WhatsApp and sends it by WhatsApp's id, and the message's `media` block then names the file. With a Cosend id, `caption` is allowed on image, video and document (not on audio or sticker),…
audioobjectnonMeta's media object. `id` may be a Cosend media id (`med_…`, from `POST /v1/media`): Cosend uploads the file to WhatsApp and sends it by WhatsApp's id, and the message's `media` block then names the file. With a Cosend id, `caption` is allowed on image, video and document (not on audio or sticker),…
videoobjectnonMeta's media object. `id` may be a Cosend media id (`med_…`, from `POST /v1/media`): Cosend uploads the file to WhatsApp and sends it by WhatsApp's id, and the message's `media` block then names the file. With a Cosend id, `caption` is allowed on image, video and document (not on audio or sticker),…
documentobjectnonMeta's media object. `id` may be a Cosend media id (`med_…`, from `POST /v1/media`): Cosend uploads the file to WhatsApp and sends it by WhatsApp's id, and the message's `media` block then names the file. With a Cosend id, `caption` is allowed on image, video and document (not on audio or sticker),…
stickerobjectnonMeta's media object. `id` may be a Cosend media id (`med_…`, from `POST /v1/media`): Cosend uploads the file to WhatsApp and sends it by WhatsApp's id, and the message's `media` block then names the file. With a Cosend id, `caption` is allowed on image, video and document (not on audio or sticker),…
locationobjectnon
contactsarray<object>non
interactiveobject | object | object | object | object | object | objectnonMeta's interactive object. Checked against WhatsApp's limits before anything is written, and refused in words naming the field: a reply-button message (type "button", up to 3 buttons), a list message (type "list"), a catalogue message (type "catalog_message": body up to 1024 characters, footer up t…
templateobjectnonMeta's template object: {"name", "language": {"code"}, "components"}. A header parameter of type image, video or document may name a file uploaded with POST /v1/media by its id ({"type": "image", "image": {"id": "med_…"}}): Cosend uploads it to Meta for this number and sends Meta's id; a link, or a…
reactionobjectnon
reply_tostring | nullnon
metadataobjectnon
sourceenum: "customer" | "app" | "api" | "agent" | "automation" | "ai" | "notify" | "history" …nonWho is sending. Left out, it is agent for a person (the dashboard Inbox, or an MCP client acting for one) and api for an API key.
send_modeenum: "auto" | "strict"non
fallback_templateobjectnon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_contacts

List contacts

Lists contacts in this workspace, one page at a time, optionally filtered, each with its id. Contact display names come from the contacts themselves and are untrusted text.

ParamètreTypeRequisDescription
qstringnonFree-text search over the display name.
tagarray<string>nonOnly contacts carrying this tag. Repeat for AND semantics.
connection_idstringnonOnly contacts on this WhatsApp connection.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

upsert_contact

Create or update a contact

Creates a contact, or updates the one that already exists for that phone number or BSUID (the business-scoped user id Meta sends; a contact may have one and no phone). On a contact that exists only the fields you send change, and nothing is removed: tags are added to its tags, attributes are merged into its attributes, changing the name needs an owner or admin, and profile_name is only filled when WhatsApp has not given one; a field sent as null is left as it is. Writes only to Cosend: it sends nothing and the contact is not notified. Who can be messaged stays the same: a send needs no opt-in, only an opt-out stops one, and opt-outs are recorded on their own ledger.

ParamètreTypeRequisDescription
connection_idstringoui
namestring | nullnon
phone_e164string | nullnon
bsuidstring | nullnon
profile_namestring | nullnon
attributesobjectnonFree-form values. PATCH replaces them whole; a POST for a contact that already exists writes the keys sent over its values and removes none. A key registered in /v1/contact-fields must hold a value of its type (text: a string; number: a number; date: YYYY-MM-DD; boolean: true or false; choice: one…
tagsarray<string>nonA new contact gets these tags. A contact that already exists gets them added to its own, and keeps every tag it has.
localestring | nullnon
timezonestring | nullnon

set_contact_consent

Record a contact’s consent

Records a contact's marketing or utility consent as a new entry in an append-only ledger. Every entry is kept as written, so this is an audit record of what the business was told. A send needs no recorded opt-in. An opt-out recorded here stops that category on the number it is recorded for, and the business’s other numbers keep sending.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
connection_idstringnon
categoryenum: "marketing" | "utility" | "authentication"oui
stateenum: "granted" | "withdrawn" | "unknown"oui
sourcestringnon
evidenceobjectnon

list_templates

List message templates

Lists this workspace’s WhatsApp message templates, one page at a time, with Meta’s review status, whether each can be sent right now (sendable) and, for a rejected one, Meta’s reason. Outside the 24-hour customer service window only an approved template can be sent. Meta reviews every template, and a decision can take up to 24 hours, so one in review cannot be sent. Read-only.

ParamètreTypeRequisDescription
statusstringnonOnly templates in this review state, e.g. approved.
languagestringnonOnly this language, e.g. en_US.
categorystringnonOnly this category: marketing, utility or authentication.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

submit_template

Submit a template for WhatsApp review

Creates a new WhatsApp message template and sends it to Meta for review. This leaves Cosend: Meta reviews every template (a decision can take up to 24 hours), and a rejection counts against the WhatsApp account’s quality history. Each submission needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it submits. Ten a day per workspace. The categories: marketing makes people aware of the business, its offers and sales; utility follows up on something the customer did or asked for (an order, a booking) and may not promote anything, so an order update with a discount in it is marketing; authentication is a one-time code. A wrong category is moved or rejected by Meta. Meta’s answer shows in the template’s review status. It sends no message to anyone.

ParamètreTypeRequisDescription
connection_idstringoui
display_namestringnonThe human name, free text (e.g. "Order shipped"). When name is left out, the system name is generated from it: lowercase, accents dropped, every other run of characters an underscore, at most 512 characters, with _2, _3… added when a template on the WhatsApp Business account already has that name.
namestringnonThe system name, used as given. Optional: leave it out and it is generated from display_name. Give it to add a language to an existing template. One of name and display_name is required.
languagestringnonThe language, e.g. "en_US". Required on every category but authentication, which takes authentication.languages instead.
categoryenum: "marketing" | "utility" | "authentication"oui
parameter_formatenum: "positional" | "named"non
componentsarray<object | object>nonMeta's components; required on every category but authentication, which takes authentication instead. A HEADER carries its format (TEXT, IMAGE, VIDEO, DOCUMENT or LOCATION), and a header without one is sent as TEXT. An IMAGE, VIDEO or DOCUMENT header's sample is a file uploaded with POST /v1/media,…
authenticationobject | nullnonAn authentication template, in Meta's shape, in place of components and language: {"languages": ["fr", "en_US"], "add_security_recommendation": true, "code_expiration_minutes": 10, "delivery": {"type": "copy_code"}, "message_send_ttl_seconds": 600}. WhatsApp writes the message and the button label…
example_valuesobjectnonA sample value for every variable in the TEXT header and the body, keyed per component by the name between the braces: {"body": {"1": "Pablo", "2": "860198-230332"}} or {"body": {"first_name": "Pablo"}}. Required for each such variable, because Meta rejects a template without samples; a missing one…
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_automations

List automations

Lists this workspace’s automations, one page at a time, with each one’s status, the version that is live, and today’s runs and failures. Read-only.

ParamètreTypeRequisDescription
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

validate_automation

Check an automation

Checks an automation document (ir) with Cosend’s compiler and returns its full report: every error with a JSON pointer into the document and, where one exists, a fix that can be applied. Nothing is written and nothing is deployed. id is the automation the draft belongs to; a brand-new automation gets its id when it is first saved, and saving checks the document the same way. It needs the automations:write permission because it is the authoring tool, though it changes nothing.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
irobjectoui

list_automation_building_blocks

List automation building blocks

Lists what a custom automation on one WhatsApp number can be built from: each thing it can start on, with the settings it takes and the conditions it can start on; each step it can take, with the inputs it takes and what it returns; each integration working for that number, with its actions and their inputs; and the JSON Schema of the automation document, with the operators and functions a condition is written in. Only what the workspace’s plan includes and the number’s working integrations allow is listed. Read-only: it runs nothing and changes nothing.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) the automation is for: only what can be built and run on it is listed.

create_custom_automation

Create a custom automation

Creates a new automation on one WhatsApp number from an automation document (ir) written in full, as Cosend’s automation editor saves one: what it starts on, its steps and its limits, in the document schema that ir_version names. What a document can use on a number, each trigger, step and integration action with what it takes, and that schema itself, are in the read-only list of automation building blocks for the number. The document is checked as it is saved; one that does not pass is refused with each failing path as a JSON pointer. A “Run a script” step runs TypeScript written in the step, in a sandbox with no network and nothing imported; an outside address is reached only by a step that calls an allowlisted URL. A document marked as made from a recipe (meta.created_by "recipe") is refused: a recipe is set up and changed with its own tools. slug, name and connection_id name it and its number. It is created switched off: saving it runs nothing and sends nothing, and it acts only once it is deployed and switched on, each of which names every action its steps take. Its runs count against the plan’s allowance as every automation’s do. Each call needs confirming: without confirmation_token it changes nothing and returns a preview naming every action the document’s steps take, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
slugstringoui
namestringoui
descriptionstring | nullnon
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
irobjectouiThe automation’s flow document (the IR), as a JSON object. `ir_version` selects the document schema Cosend validates it against. A document that does not match is refused with `automation_invalid`, whose `error.details[]` names each failing path as a JSON pointer.
change_notestringnon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_custom_automation

Save a new version of an automation

Saves a new version of one automation, named by id, from an automation document (ir) written in full, as Cosend’s automation editor saves one: what it starts on, its steps and its limits, in the document schema that ir_version names. What a document can use on a number, each trigger, step and integration action with what it takes, and that schema itself, are in the read-only list of automation building blocks for the number. The document is checked as it is saved; one that does not pass is refused with each failing path as a JSON pointer. A “Run a script” step runs TypeScript written in the step, in a sandbox with no network and nothing imported; an outside address is reached only by a step that calls an allowlisted URL. A document marked as made from a recipe (meta.created_by "recipe") is refused: a recipe is set up and changed with its own tools. The automation keeps running the version it ran until the new one is deployed and switched on. Each call needs confirming: without confirmation_token it changes nothing and returns a preview naming every action the document’s steps take, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
irobjectouiThe automation’s flow document (the IR), as a JSON object. `ir_version` selects the document schema Cosend validates it against. A document that does not match is refused with `automation_invalid`, whose `error.details[]` names each failing path as a JSON pointer.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

deploy_automation

Deploy an automation

Compiles one version of an automation, runs Cosend’s safety checks on it and stores the result, so it can be switched on. It does not switch the automation on, and nothing is sent. version_id is the version; left out, the newest. actions names every action the version’s steps take, and those of a second automation set up with it, from the list in the schema (an automation’s versions list theirs as actions); a list that leaves one out or names another is refused, with the right list. The preview refuses that list as the call would, and gives no token. confirm_actions names, one by one, each destructive or money-moving action the person approved; one left unnamed is refused by name. Each call needs confirming: without confirmation_token it changes nothing and returns a preview and a token for a person to approve; called again with that token, it deploys. A confirmed deploy that fails to compile uses up the confirmation.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
version_idstringnon
confirm_actionsarray<string>non
actionsarray<enum: "integration.call" | "whatsapp.send_text" | "whatsapp.send_template" | "whatsapp.send_media" | "whatsapp.send_interactive" | "whatsapp.mark_read" | "whatsapp.typing_on" | "whatsapp.send_list" …>ouiEvery action the automation’s steps take, and those of a second automation set up with it, each once: what a person approves it doing. A list that leaves one out, or names one the steps do not take, is refused, and the refusal gives the list in `error.actions`. A version’s `actions` lists them too.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

switch_on_automation

Switch an automation on

Switches one automation on, running the version named (version_id), older or newer, got ready first if it is not ready yet; left out, the newest, which has to be deployed first. A version with a step that has to be confirmed by name has to be deployed first, with that step confirmed. From then on it acts on its own whenever what it starts on happens, and its steps run as they are built, which can include WhatsApp messages to customers. A recipe set up with a second automation switches on with it. actions names every action the version’s steps take, and the second automation’s, from the list in the schema (an automation’s versions list theirs as actions); a list that leaves one out or names another is refused, with the right list. The preview refuses that list as the call would, and gives no token. Each call needs confirming: without confirmation_token it changes nothing and returns a preview and a token for a person to approve; called again with that token, it switches it on.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
version_idstringnon
actionsarray<enum: "integration.call" | "whatsapp.send_text" | "whatsapp.send_template" | "whatsapp.send_media" | "whatsapp.send_interactive" | "whatsapp.mark_read" | "whatsapp.typing_on" | "whatsapp.send_list" …>ouiEvery action the automation’s steps take, and those of a second automation set up with it, each once: what a person approves it doing. A list that leaves one out, or names one the steps do not take, is refused, and the refusal gives the list in `error.actions`. A version’s `actions` lists them too.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

switch_off_automation

Switch an automation off

Switches one automation off at once, so it starts on nothing from then on. It needs no confirmation, so it works as an emergency stop. Messages it already sent stay sent. A recipe set up with a second automation switches off with it. Returns the automation.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

set_up_ai_receptionist

Set up “AI receptionist”

Sets up Cosend’s “AI receptionist” automation on one WhatsApp number: Answers your customers on WhatsApp from what you teach it, and passes a chat to you when needed. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_order_confirmation

Set up “Order confirmation”

Sets up Cosend’s “Order confirmation” automation on one WhatsApp number: When a customer pays in your shop, they get a WhatsApp message with the order number and total. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. It needs woocommerce connected to the workspace first (by integration key). Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_order_updates

Set up “Shipping and cancellation updates”

Sets up Cosend’s “Shipping and cancellation updates” automation on one WhatsApp number: Customers get a WhatsApp message with their tracking when an order ships, and another if it is cancelled. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. It needs woocommerce connected to the workspace first (by integration key). Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_lead_capture

Set up “Lead capture from ads”

Sets up Cosend’s “Lead capture from ads” automation on one WhatsApp number: People who message you from an ad answer your questions one at a time, and you get their answers. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_lead_follow_up

Set up “Lead follow-up”

Sets up Cosend’s “Lead follow-up” automation on one WhatsApp number: Each new lead from your lead form gets your WhatsApp message within seconds, and your AI receptionist answers their reply. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. It needs connected to the workspace first (by integration key). Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_quote_intake

Set up “Quote requests”

Sets up Cosend’s “Quote requests” automation on one WhatsApp number: Customers who ask for a quote answer your questions, then the chat comes to you with their answers. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_appointment_reminder

Set up “Appointment reminder”

Sets up Cosend’s “Appointment reminder” automation on one WhatsApp number: Customers get a reminder before each booking, and you choose what Confirm, Reschedule and a typed reply do. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. It needs google_calendar or microsoft_calendar or calendly or cal_com or bokun connected to the workspace first (by integration key). Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_welcome_menu

Set up “Welcome and away menu”

Sets up Cosend’s “Welcome and away menu” automation on one WhatsApp number: Greets new customers, and anyone who writes while you are closed, with buttons for quick answers or a person. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_payment_reminder

Set up “Payment reminder”

Sets up Cosend’s “Payment reminder” automation on one WhatsApp number: Customers get WhatsApp reminders before and after an invoice in your Google Sheet is due, until you mark it paid. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. It needs google_sheets connected to the workspace first (by integration key). Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_review_request

Set up “Review request”

Sets up Cosend’s “Review request” automation on one WhatsApp number: Tag a customer when the job is done, and a few hours later they get your request for a review. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_missed_call_text_back

Set up “Missed call text-back”

Sets up Cosend’s “Missed call text-back” automation on one WhatsApp number: When a customer calls your WhatsApp number and nobody picks up, they get a message from you straight away. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

set_up_accurate_warehouse_arrival

Set up “Warehouse arrival message”

Sets up Cosend’s “Warehouse arrival message” automation on one WhatsApp number: When an Accurate shipment reaches the warehouse, its receiver gets one WhatsApp message with the shipment’s details. Its settings are this recipe’s own, as its set-up form in Cosend asks them; a setting left out takes its default. It is set up switched off, and acts only once it is switched on. The same recipe is set up once on each number, or once per source when it asks for one. The preview refuses a second one as the save would, and gives no token. It needs accurate, and http connected to the workspace first (by integration key). Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the automation, switched off.

ParamètreTypeRequisDescription
connection_idstringouiThe WhatsApp number (connection id) this automation belongs to: its triggers come from it, its messages go from it, and its templates are read on it. Required, and it cannot be moved afterwards. The same recipe (slug) can be set up once on each number, or once per source on it when the recipe has `…
namestringnonIts name in Cosend. Left out, it takes the recipe’s name.
settingsobjectouiThe recipe’s settings, as its set-up form asks them. A setting left out takes its default; a setting with no default is needed.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_ai_receptionist

Change “AI receptionist” settings

Changes the settings of an automation set up from Cosend’s “AI receptionist” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “AI receptionist” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_order_confirmation

Change “Order confirmation” settings

Changes the settings of an automation set up from Cosend’s “Order confirmation” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Order confirmation” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_order_updates

Change “Shipping and cancellation updates” settings

Changes the settings of an automation set up from Cosend’s “Shipping and cancellation updates” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Shipping and cancellation updates” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_lead_capture

Change “Lead capture from ads” settings

Changes the settings of an automation set up from Cosend’s “Lead capture from ads” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Lead capture from ads” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_lead_follow_up

Change “Lead follow-up” settings

Changes the settings of an automation set up from Cosend’s “Lead follow-up” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Lead follow-up” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_quote_intake

Change “Quote requests” settings

Changes the settings of an automation set up from Cosend’s “Quote requests” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Quote requests” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_appointment_reminder

Change “Appointment reminder” settings

Changes the settings of an automation set up from Cosend’s “Appointment reminder” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Appointment reminder” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_welcome_menu

Change “Welcome and away menu” settings

Changes the settings of an automation set up from Cosend’s “Welcome and away menu” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Welcome and away menu” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_payment_reminder

Change “Payment reminder” settings

Changes the settings of an automation set up from Cosend’s “Payment reminder” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Payment reminder” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_review_request

Change “Review request” settings

Changes the settings of an automation set up from Cosend’s “Review request” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Review request” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_missed_call_text_back

Change “Missed call text-back” settings

Changes the settings of an automation set up from Cosend’s “Missed call text-back” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Missed call text-back” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

update_accurate_warehouse_arrival

Change “Warehouse arrival message” settings

Changes the settings of an automation set up from Cosend’s “Warehouse arrival message” recipe, named by id, as its settings page in Cosend does: the settings given replace their values, the rest keep theirs, and the result is saved as a new version. If the automation is switched on, the new settings go live with the save, or the save is refused in words and it keeps running what it ran; if it is off, they wait for it to be switched on. An automation from another recipe, or one written by hand, is refused. Each call needs confirming: without confirmation_token it changes nothing and returns a preview with the settings as Cosend filled them in and its check of them, and a token for a person to approve; called again with that token, it saves. Returns the new version.

ParamètreTypeRequisDescription
idstringouiThe automation set up from the “Warehouse arrival message” recipe whose settings change.
settingsobjectouiThe settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_runs

List automation runs

Lists automation runs, newest first, one page at a time, with each run’s status, how long it took and what it sent. Read-only.

ParamètreTypeRequisDescription
automation_idstringnonOnly runs of this automation.
statusstringnonOnly runs in this state: queued, running, waiting, success, failure, cancelled, timeout, skipped or unknown.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_run

Read an automation run

Reads one automation run and its step-by-step trace: under run, the run’s status, timings, what it sent and why it failed; under steps, each step it took with its status and error, one page at a time. Text inside a run can quote what a customer wrote, and comes back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_usage

See plan usage

Reports this workspace’s usage for one billing period against what its plan includes, and how many calls each integration made in it. Read-only.

ParamètreTypeRequisDescription
periodstringnonWhich billing period. Omit for the current one.

resolve_conversation

Mark a conversation Done

Marks one conversation Done, as the Done button in the Cosend Inbox does. Nothing is sent to anyone and no automation starts. Afterwards no person holds the conversation (the person, the assignee, the priority and any hand-over are cleared) and every automation on that WhatsApp number treats the customer’s next message as a first message: the welcome menu greets again, an unfinished question flow starts over, and the AI assistant begins a new AI conversation, which counts as one more AI conversation on the plan. The message history stays. The chat stays quiet until the customer writes again. It is refused for a credential with no person behind it.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

create_setup_link

Make a set-up link

Makes a link for the person in this chat to open in their own browser, signed in to Cosend, to do one set-up step only they can do there, and returns its url. It works for 30 minutes and only for them, and carries no password or key. kind connect_number connects a WhatsApp number; reconnect_number needs connection_id and runs Meta’s flow again for that number; connect_integrations needs connectors (each integration by its Cosend key, as list_connectors gives them) and completes when every one has an account, and with account_id (and that account’s one connector) the person types a new key for an account that already exists; pick_google_file needs account_id, a Google account, and opens Google’s file picker for it so the person can choose spreadsheets Cosend may open; upgrade needs plan, the plan to buy; payment_method adds a card. The person does the step themselves on the page: they connect the number in Meta’s window, sign in to the integration or type its key, choose files in Google’s picker, pay in Stripe’s Checkout, or add the card. It cannot be done for them. A new link of the same kind cancels the workspace’s open one, whoever made it.

ParamètreTypeRequisDescription
kindenum: "connect_number" | "reconnect_number" | "connect_integrations" | "pick_google_file" | "upgrade" | "payment_method"oui
connection_idstringnonThe WhatsApp number to reconnect, by its connection id. The person runs Meta’s flow again for it, and the link completes when that number is connected.
connectorsarray<string>nonThe integrations the person signs in to, by key from GET /v1/connectors. The link completes when every one of them has an account.
account_idstringnonThe connected Google account whose file picker opens, by its connector account id. The person chooses the spreadsheets Cosend may open; the link completes when the picker was opened.
planstringnonThe plan to buy, by code from GET /v1/billing/plans. Only for a workspace with no paid subscription, and only to a higher plan.

check_setup_link

Check a set-up link

Reads a set-up link’s status. status open means the step is not done; completed means it has, and result says what was set up; expired means its 30 minutes passed; cancelled means it was cancelled or replaced by a newer one. For connect_integrations, result.connector_accounts lists each account saved; when the workspace has several WhatsApp numbers an account is on none of them until it is added to a number (the Integrations page in Cosend, or the integration account tool’s add_number). For reconnect_number, result names the connection and its number once Meta’s flow finished; for pick_google_file, completed means Google’s picker was opened for the account, and the account’s spreadsheet list shows what was chosen. Only the person who asked for the link can read it. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

cancel_setup_link

Cancel a set-up link

Cancels an open set-up link so its page stops working, for example when the person changed their mind or the link asks for the wrong thing. A link already completed, expired or cancelled is refused, and nothing a link set up is undone. Only the person who asked for it can cancel it.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

whatsapp_link

Make a WhatsApp chat link

Makes a wa.me chat link and its QR code (an SVG image) for a WhatsApp number, with an opening message if one is given. country is the two-letter ISO code and number is the number exactly as it is typed in that country (as written at home, with +, with 00 or with the country code in front); a number of another country is refused. It sends nothing to anyone.

ParamètreTypeRequisDescription
countrystringouiThe country the number belongs to, as its two-letter ISO code: "GB", "US", "DE". A number of another country is refused.
numberstringouiThe WhatsApp number as people type it: as written at home (07700 900123), with + (+44 7700 900123), with 00 (0044 7700 900123) or with the country code in front (44 7700 900123). Spaces, dashes, brackets and digits in any script are fine.
messagestringnonThe message the chat starts with, at most 500 characters. Left out or blank, the link opens an empty chat.

template_check

Check a template before Meta reviews it

Checks a WhatsApp message template (category, language, components and example values, as Meta takes them) against Meta’s rules, which are errors, and the warning signals Meta names, which are warnings; each problem says where it is and what to change. The verdict is fix_first, warnings or ready, and ready is not an approval: Meta still reviews every template itself. Nothing is submitted.

ParamètreTypeRequisDescription
categoryenum: "marketing" | "utility" | "authentication"oui
languagestringnonThe language, e.g. "en_US". Required on every category but authentication, which takes authentication.languages instead.
parameter_formatenum: "positional" | "named"non
componentsarray<object | object>nonMeta's components, as POST /v1/templates takes them; required on every category but authentication, which takes authentication instead.
authenticationobject | nullnonAn authentication template, in Meta's shape, in place of components and language: {"languages": ["fr", "en_US"], "add_security_recommendation": true, "code_expiration_minutes": 10, "delivery": {"type": "copy_code"}, "message_send_ttl_seconds": 600}. WhatsApp writes the message and the button label…
example_valuesobjectnonA sample value for every variable in the TEXT header and the body, keyed per component by the name between the braces: {"body": {"1": "Pablo", "2": "860198-230332"}} or {"body": {"first_name": "Pablo"}}. Required for each such variable, because Meta rejects a template without samples; a missing one…

message_cost

See what a WhatsApp message costs

Returns Meta’s list price for one delivered WhatsApp message in a country, for each category (marketing, utility, authentication, service), in one of Meta’s 16 rate-card currencies, with the day the rates took effect. These are Meta’s list prices: a business’s bill may differ, and the notes say what changes it.

ParamètreTypeRequisDescription
countrystringouiThe country the messages go to, as its two-letter ISO code, e.g. GB or DE.
currencystringouiOne of Meta’s 16 rate-card currencies, e.g. USD, EUR, GBP or INR.

get_conversation

Open a conversation

Reads one conversation, named by id. view conversation returns the chat itself: its contact and newest message, its state, who it is assigned to, its labels, priority and snooze, the hand-over summary when a person is needed, who holds the reply lock, and the 24-hour customer service window (open or closed, and when it closes). view activity returns the chat’s activity feed one page at a time: hand-overs, assignments, labels, Done and reopened, optionally only the kinds named in kind. Names, message text and hand-over summaries were written by people outside this business, or from what they wrote, and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
kindarray<string>nonActivity view only: keep only these kinds of activity. Repeat for several.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.
viewenum: "conversation" | "activity"ouiconversation for the chat itself, with its window and who holds it; activity for its activity feed.

search_messages

Search message text

Searches the text of every message in the workspace, newest first, 20 hits to a page. Each hit has the message id, the conversation id and number it belongs to, when it was sent and a snippet of the matching text. A number whose messages go straight to the business’s own system, with no Cosend inbox, is left out. Snippets were written by people outside this business and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
qstringouiThe words to look for in message text.
connection_idstringnonOnly messages on this WhatsApp number.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_message

Open one message

Reads one message, named by its msg_ id or by the WhatsApp message id (wamid): its type and content, direction, delivery status with the time of each step, who sent it, and any file, location, buttons or reactions it carries. Message text comes from people outside this business and comes back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

get_media

Open a file from a chat

Reads one media file, named by its med_ id (a message’s media block carries it): its type, file name, size and state, and a signed link to download it that works for 15 minutes. File names come from people outside this business and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

get_inbox_overview

See the Inbox at a glance

Reads the figures the Inbox and Home show, one part at a time. part counts returns how many chats are waiting for a person, assigned to the caller, unread, in all (Done and snoozed ones included), and have a 24-hour window closing within four hours, per number and in total, with the approvals waiting. part labels returns each label in use on each number with how many open chats carry it. part today returns today’s replies by who sent them (the assistant, people, the phone, automations) and the chats handed to a person, marked Done and opened, and the AI receptionist’s chats (handled, answered alone, handed over, as its page and Reports count them), in the workspace’s time zone. part week returns replies and new chats for each of the last 7 days. Read-only.

ParamètreTypeRequisDescription
connection_idarray<string>nonOnly this WhatsApp number; repeat it for several. Omit for every number you can see.
partenum: "counts" | "labels" | "today" | "week"ouicounts for chats waiting, mine, unread and windows closing; labels for the labels in use; today for today’s replies by who sent them; week for the last 7 days.

mark_read

Mark chats read

Marks read, in one of three ways, with id naming a conversation (cosend, phone_thread) or a message (phone_message). where cosend clears the chat’s unread state for the whole workspace in Cosend; the customer’s phone stays as it was. where phone_thread tells WhatsApp the newest unread customer message was read, so the customer’s phone shows blue ticks on what they sent. where phone_message does the same for the one message named. The blue ticks reach a real person’s phone and are permanent.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
whereenum: "phone_message" | "cosend" | "phone_thread"ouicosend to mark a chat read in Cosend only; phone_thread to show blue ticks for the chat’s unread messages on the customer’s phone; phone_message to show them for one message.

update_conversation

Update a conversation

Changes one conversation, named by id, by whichever of these are given: assignee_id (a member’s usr_ id; null takes the assignee off), snoozed_until (a time; null ends the snooze), labels (the whole list of labels, replacing the old one), priority, and state. state resolved marks the chat Done, as the Done button does: nobody holds it afterwards and every automation on that number treats the customer’s next message as a first message. The change stays inside Cosend, out of the customer’s view. Returns the conversation.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
stateenum: "open" | "pending" | "snoozed" | "resolved"non
assignee_idstring | nullnon
snoozed_untilstring | nullnon
labelsarray<string>non
priorityenum: "normal" | "priority" | "high_priority"non

bulk_update_conversations

Update many conversations

Applies one action to up to 100 conversations named in ids: resolve marks each Done, assign sets assignee_id (null takes it off), label adds labels_add and takes off labels_remove, priority sets priority, and read marks each read in Cosend. Each chat gets its own result, so one that is not found or that someone else is replying in is skipped with its reason while the rest go through. Each action needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it acts. Every change stays inside Cosend, out of customers’ view.

ParamètreTypeRequisDescription
idsarray<string>oui
actionenum: "resolve" | "assign" | "label" | "priority" | "read"oui
assignee_idstring | nullnon
labels_addarray<string>non
labels_removearray<string>non
priorityenum: "normal" | "priority" | "high_priority"non
readbooleannon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

take_over_conversation

Hand a chat to a person

Puts one conversation, named by id, in a person’s hands: control human means a person holds it and the AI assistant and automations stop answering in it; control pending_human marks it as waiting for a person to pick up. reason says why, and pause_bot_until holds the assistant back until a time. It hands the chat to a person; the chat stays with people from then on. The change stays inside Cosend, out of the customer’s view. Returns the conversation.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
controlenum: "pending_human" | "human"oui
reasonstringnon
pause_bot_untilstringnon

ask_for_conversation

Ask a teammate for a chat

Asks the person who holds one conversation, named by id, in the Cosend Inbox to hand it over; reason is an optional note for them. They get a hand-over prompt: when they say yes, or do not answer within 60 seconds, the chat passes to the person this app acts for, and messages can be sent in it; when they say no, it stays theirs. This is the way into a chat someone else holds: every hand-over starts with asking its holder. A chat nobody holds, or one the person this app acts for already holds, is refused, as there is nothing to ask for and a message can be sent there as it is. Asking again while a request waits returns that request. Returns the request: its state (pending until answered), who holds the chat (held_by) and when it passes without an answer (expires_at). Whether it has passed shows in the conversation’s lock (held_by, can_i_send). The request stays inside Cosend, out of the customer’s view.

ParamètreTypeRequisDescription
idstringouiThe conversation to ask for.
reasonstringnon

list_chat_notes

Read the internal notes on a chat

Lists the internal notes on one conversation, named by id, one page at a time, oldest first: each note’s body, its author, the members it mentions and when it was written or edited. The customer does not see notes. Notes can quote customers and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

chat_notes

Add, edit or delete an internal note

Writes the internal notes on one conversation, named by id, visible to the business’s team. action add writes a note (body, with mentions as a list of usr_ ids of members to notify). action edit changes a note’s body (noteId and body; only its author can). action delete removes a note (noteId; its author, an owner or an admin can). Each delete needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it deletes. add and edit return the note, whose body can quote customers and comes back marked untrusted.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
bodystringnon
mentionsarray<string>non
noteIdstringnonThe noteId in the resource path.
actionenum: "add" | "edit" | "delete"ouiadd, edit or delete.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_inbox_views

Read the saved Inbox views

Lists the saved views in the Inbox’s Views menu: the caller’s own views and every one shared with the workspace, each with its name, the conversation filters it applies and who sees it. Read-only.

Aucun paramètre.

inbox_views

Save, change or delete an Inbox view

Writes the saved views in the Inbox’s Views menu: a name and the conversation filters it applies. action save makes a view (name, filters, and shared: private or workspace). action update (id) renames a view or changes its filters or who sees it; a shared view can be changed by its creator, an owner or an admin. action delete (id) removes a view, on the same terms. Each delete needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it deletes.

ParamètreTypeRequisDescription
namestringnon
filtersobjectnon
sharedenum: "private" | "workspace"non
idstringnonThe id in the resource path.
actionenum: "save" | "update" | "delete"ouisave, update or delete.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

get_contact

Open a contact

Reads one contact, named by id (a ct_ id, an E.164 phone number or a BSUID), in one of four views. view contact returns the contact: names, phone number or BSUID, tags, attributes, time zone and whether it is blocked. view consent returns the consent state for marketing, utility and authentication, with the entry behind each (where it came from, when, who recorded it, the sentence the person agreed to) and Meta’s own marketing opt-out. view window returns whether a free-form message can be sent now and when the 24-hour customer service window closes. view chats returns this person’s conversation on each number you can see, newest first. Names, attributes and consent sentences come from outside this business and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
viewenum: "contact" | "chats" | "consent" | "window"ouicontact for the contact itself; consent for consent per category with its evidence; window for the messaging window; chats for this person’s chats on each number.

update_contact

Edit a contact

Changes one contact, named by id, by whichever of these are given: name (the name the business sets, which shows first; null goes back to the WhatsApp names; owners and admins only), attributes (field values by key), tags (the whole list, replacing the old one), locale, timezone, and is_blocked (true blocks the contact on their number so nothing is sent to them and their messages are not answered; false unblocks; owners and admins only). The change stays inside Cosend, out of the contact’s view. Returns the contact.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
namestring | nullnon
profile_namestring | nullnon
attributesobjectnonFree-form values. PATCH replaces them whole; a POST for a contact that already exists writes the keys sent over its values and removes none. A key registered in /v1/contact-fields must hold a value of its type (text: a string; number: a number; date: YYYY-MM-DD; boolean: true or false; choice: one…
tagsarray<string>non
localestring | nullnon
timezonestring | nullnon
is_blockedbooleannon
connection_idstringnon

tag_contact

Tag or untag a contact

Adds tags to, or removes tags from, one contact, named by id, without touching the rest of its tags. action add leaves a tag the contact already has as it is; action remove skips a tag it does not have. tags is the list of tag names. The change stays inside Cosend. Returns the contact.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
tagsarray<string>oui
actionenum: "add" | "remove"ouiadd to put tags on the contact, remove to take them off.

tag_contacts

Tag or untag many contacts

Adds tags to, and removes tags from, many contacts at once, without touching their other tags: add and remove are lists of tag names, at least one tag in all. The contacts are contact_ids, up to 1,000 ct_ ids, or filter, the contact list’s own filters (q, tag, connection_id, portfolio_id), where an empty filter is every contact you can see. An id of no contact you can see is skipped and left untouched. The change stays inside Cosend. Returns how many contacts were matched, changed and skipped.

ParamètreTypeRequisDescription
addarray<string>non
removearray<string>non
contact_idsarray<string>non
filterobjectnonThe contacts `GET /v1/contacts` lists with these filters: `q` searches the name, the phone digits and the username; `tag` keeps contacts with every tag given; `connection_id` keeps contacts on any of these numbers; `portfolio_id` keeps one business’s. `{}` is every contact you can see.

delete_contact

Delete a contact

Deletes one contact, named by id. Without purge the contact and its chats drop out of lists, counts and the Inbox, and Cosend keeps their messages until a purge; if the person writes again, they become a new contact with a new chat. With purge true the contact and what Cosend holds about them are erased for good (an owner’s action, for a data-protection request). The deletion stays inside Cosend, out of the contact’s view. Each delete needs a confirmed call: without confirmation_token the call is a preview that names the contact and returns a token for a person to approve; called again with that token, it deletes.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
purgebooleannontrue to erase the contact for good, as a data-protection erasure does (owners only); omit to take the contact and its chats out of lists and the Inbox, with its messages kept.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

merge_contacts

Merge two contacts

Merges two identities of one person (a phone number and a BSUID): the contact named by id keeps going, and the one named by from is folded into it and removed. It cannot be undone. Each merge needs a confirmed call: without confirmation_token the call is a preview that names both contacts and returns a token for a person to approve; called again with that token, it merges. Returns the contact that remains.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
fromstringoui
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_contact_fields

Read the contact fields

Lists the workspace’s contact fields, the keys a contact’s attributes can hold, one page at a time: each field’s key, label, type (text, number, date, boolean or choice), its choices, whether it is required, and how many contacts hold a value for it. Read-only.

ParamètreTypeRequisDescription
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

contact_fields

Add, change or delete a contact field

Writes the workspace’s contact fields: the keys a contact’s attributes can hold. action create adds one (key, label, type text, number, date, boolean or choice, choices for a choice field, required). action update (id) changes a field’s label, type, choices or required; its key stays. action delete (id) removes the field and every contact’s value for it. Creating, changing and deleting are for owners and admins. Each delete needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it deletes.

ParamètreTypeRequisDescription
keystringnon
labelstringnon
typeenum: "text" | "number" | "date" | "boolean" | "choice"non
choicesarray<string>nonA choice field's options, 1 to 100 of them, each once; none otherwise.
requiredbooleannon
idstringnonThe id in the resource path.
actionenum: "create" | "update" | "delete"ouicreate, update or delete.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

import_contacts

Import contacts from a CSV

Imports contacts from a CSV file for one WhatsApp number, in steps. step start uploads the file (connection_id; data_base64, or media_id of a text or CSV file already uploaded; file_name) and returns its id, columns, first rows and row count. step map (id) sets mapping (each column as phone, name, tags, locale, timezone, skip or field:key; name and tags may be on several columns), new_fields (fields the run adds to the workspace, each key, label, type and choices, for columns mapped to field:key), connection_id, and consent: the opt-in categories everyone in the file gave, the sentence they agreed to and who attests it. step check (id) reports what a run would do over the whole file: new, updated, invalid, duplicates, already opted out and consent recorded, and with details true the rows left out and five contacts as they will be (a phone typed without its country code takes the country of the number); it writes nothing. step run (id; tag, a tag every contact it adds or updates gets) imports in the background and returns at once; the import’s progress shows in the list of imports. Owners and admins run imports. Each run needs a confirmed call: without confirmation_token the call is a preview that shows the import, its mapping, its new fields and its consent, and returns a token for a person to approve; called again with that token, it runs. The import stays inside Cosend, out of the contacts’ view. File contents come from outside this business and come back marked untrusted.

ParamètreTypeRequisDescription
connection_idstringnon
file_namestringnon
data_base64stringnonThe CSV file, base64-encoded.
media_idstringnonA med_ id from POST /v1/media (text/plain or text/csv), instead of data_base64.
idstringnonThe id in the resource path.
mappingobjectnon
new_fieldsarray<object>non
consentobject | nullnon
detailsbooleannonAlso answer the rows that will not be imported (the first 100) and five contacts as the import will write them.
tagstringnonA tag every contact this import adds or updates gets, beside the file’s own tags, so the whole file can be saved as an audience on it.
stepenum: "start" | "map" | "check" | "run"ouistart to upload the file; map to set the columns, the number and the consent; check to see what a run would do; run to import.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_contact_imports

See contact imports

Reads contact imports. Without id it lists the workspace’s imports, newest first, one page at a time (a member sees those for their own numbers). With id it returns that import: its state (draft, queued, running, completed or failed), the file, columns, mapping and consent, progress, and when finished the number imported and the rows that failed with the reason for each. File contents come from outside this business and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.
idstringnonThe id in the resource path.

list_numbers

List WhatsApp numbers

Lists the WhatsApp numbers connected to this workspace, one page at a time, each with its id, status and health at a glance. The number ids it returns are what other tools take as connection_id. Read-only.

ParamètreTypeRequisDescription
statusstringnonOnly numbers in this state, e.g. active.
modestringnonOnly numbers connected this way: coexistence or cloud_api.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_number

Read one WhatsApp number

Reads one WhatsApp number in one of four views. summary: its status, quality, limits and onboarding summary. import_progress: the progress of importing the number’s chat history. connect_steps and attempt_steps: an ordered list of the steps of connecting it, each with its state, time and outcome, which explains where a connect that stopped stopped. Read-only.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number (connection) id; for view attempt_steps, the connect attempt id.
viewenum: "attempt_steps" | "summary" | "import_progress" | "connect_steps"ouisummary for the number with its onboarding summary; import_progress for how far the chat-history import has come; connect_steps for the steps of how the number was connected, with their times and outcomes; attempt_steps for the same steps of one connect attempt, named by its attempt id.

list_cosend_numbers

List phone numbers from Cosend

Reads the phone numbers from Cosend (bought through Cosend for WhatsApp) in one of two views. held: the numbers this workspace holds now or gave back in the last 12 months, with how many count toward the plan’s limit. Each has its id (cnm_…), its status (buying, verifying while WhatsApp’s code is awaited, ready, stopping until its last day in release_at, released), and whether WhatsApp pre-verified it; when it did not, preverify_error says why and preverify_retry_at says from when Cosend may ask WhatsApp for a new code on the same number. available: up to 10 local US or Canadian numbers that can be bought now, each with its phone_number, country, locality and region, which a purchase names exactly; owners and admins only. Read-only.

ParamètreTypeRequisDescription
countrystringnonFor view available: US or CA.
area_codestringnonFor view available: a three-digit area code.
containsstringnonFor view available: 2 to 7 digits the number should contain.
viewenum: "held" | "available"ouiheld for the numbers this workspace has from Cosend; available for local numbers Cosend can get for it now, by country, area code and digits.

buy_cosend_number

Buy a phone number from Cosend

Buys one local US or Canadian phone number from Cosend for WhatsApp, named by its phone_number and country as the search of available numbers returned them (with its locality and region), and returns it as a Cosend number (cnm_…), usually verifying. It charges the workspace’s card, so it acts only on a confirmed call: without confirmation_token it buys nothing and returns a preview and a token for a person to approve. The preview shows the price of a number, its interval (month or year, as the plan is billed), when it renews and the amount charged today for the rest of the billing period; the price, interval and renewal are read again when the token comes back, and if any changed the token is refused. Changing a single character of the arguments invalidates the token too. Only a person’s approval buys it: the credential alone buys nothing, through this tool or straight to the API. On a paid plan with a card on file, for owners and admins, up to the plan’s number limit; five a minute and ten a day per workspace. The number is on the Numbers page of the Cosend dashboard too.

ParamètreTypeRequisDescription
phone_numberstringoui
countryenum: "US" | "CA"oui
localitystringnon
regionstringnon
display_namestringoui
categoryenum: "alcohol" | "apparel" | "automotive" | "beauty" | "education" | "entertainment" | "event_planning" | "finance" …oui
websitestringnon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

stop_cosend_number

Stop using a phone number from Cosend

Stops a phone number from Cosend, named by id (cnm_…), that is verifying or ready, and returns it stopping, with release_at, its last day: an hour before the billing period ends. On that day any WhatsApp connection on it is disconnected and the number is given back for good; nothing is refunded, and nothing more is billed for it. It acts only on a confirmed call: without confirmation_token it changes nothing and returns a preview of the number and a token for a person to approve; the number’s status, last day and WhatsApp connection are read again when the token comes back. Only a person’s approval stops it. Owners and admins; a workspace with an unpaid invoice may stop one too.

ParamètreTypeRequisDescription
idstringouiThe Cosend number (cnm_…) to stop.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

keep_cosend_number

Keep a stopped phone number from Cosend

Keeps a phone number from Cosend that was stopped, named by id (cnm_…), before its last day (release_at), and returns it ready: it is not given back, and from the plan’s next renewal it is billed with the plan again, at $5.95 a month, or $59.50 a year when the plan is billed yearly. Nothing is charged today. It acts only on a confirmed call: without confirmation_token it changes nothing and returns a preview of the number and a token for a person to approve; the number’s status, last day and WhatsApp connection are read again when the token comes back. Only a person’s approval keeps it. On a paid plan, for owners and admins.

ParamètreTypeRequisDescription
idstringouiThe stopped Cosend number (cnm_…) to keep.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_connectors

List what can be connected

Lists the integrations Cosend can connect, each by its Cosend key, with how it signs in and which of its accounts this workspace already has. The key is what a set-up link for integrations takes. Read-only.

Aucun paramètre.

get_integration_accounts

See connected integration accounts

Lists the workspace’s connected integration accounts, one page at a time, or reads one when id is given. Each has its integration, name, status, the WhatsApp numbers it is used on and the reason it last failed, if it did. Credentials stay sealed in Cosend. Labels and error text come from the provider and are marked untrusted. Read-only.

ParamètreTypeRequisDescription
connectorstringnonOnly accounts of this integration, by its Cosend key.
statusstringnonOnly accounts in this state: active, needs_reauth, error, disabled or revoked.
connection_idstringnonOnly the accounts used on this WhatsApp number.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.
idstringnonOne integration account to read. Left out, the accounts are listed.

list_google_logins

List connected Google logins

Lists the Google logins connected to this workspace, each with its status and the integrations (Sheets, Calendar, Gmail) it serves. Credentials stay sealed in Cosend. Each login’s label is the address Google shows and comes back marked untrusted. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly the logins used on this number.

get_setup_guide

Read the set-up guide

Returns the workspace’s set-up guide: each step with its state, done, to do or skipped, worked out from what the workspace already has. It shows what is left to set up. Read-only.

Aucun paramètre.

get_template

Read one template

Reads one message template: its components, category, language, Meta’s review status, whether it can be sent right now and, for a rejected one, Meta’s reason in Meta’s own words (marked untrusted). Read-only.

ParamètreTypeRequisDescription
idstringouiThe template: its tpl_ id, or name:language (for example order_update:en_US).

change_template

Edit, copy or delete a template

Changes an existing message template at Meta. action edit replaces all of its components and returns it to review (an approved template can be edited once in 24 hours); copy creates it on another WhatsApp account of the same business, where Meta reviews it again; delete removes it at Meta and from Cosend once Meta confirms. Each change needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it acts. Ten changes a day per workspace. It sends no message to anyone. Meta’s reason for a refusal is in Meta’s words.

ParamètreTypeRequisDescription
idstringouiThe template: its tpl_ id, or name:language.
namestringnonThe template's system name, which an edit keeps. Send the template's own name, or leave it out.
languagestringnonThe template's language, which an edit keeps. Send the template's own language, or leave it out.
categoryenum: "marketing" | "utility" | "authentication"nonA new category, sent to Meta when it differs. Meta refuses a change on an approved template, so that is refused here first.
parameter_formatenum: "positional" | "named"non
componentsarray<object | object>nonMeta's components, all of them; required on every category but authentication, which takes authentication instead.
authenticationobject | nullnonAn authentication template's choices, as create takes them. An edit is one language version: languages is left out, or exactly the template's own language.
example_valuesobjectnonA sample value for every variable in the TEXT header and the body, keyed per component by the name between the braces: {"body": {"1": "Pablo", "2": "860198-230332"}} or {"body": {"first_name": "Pablo"}}. Required for each such variable, because Meta rejects a template without samples; a missing one…
waba_idstringnonThe WhatsApp Business Account to copy to, as Cosend's wab_ id (a connection's waba_id, not its meta_waba_id). It must be another account of the same business portfolio.
display_namestringnonA new human name for the copy, from which its system name is made (with _2, _3… added when the account already has that name). Without it the copy keeps the template’s names, and an account that already has a template of that name in that language is 409 template_name_taken.
actionenum: "edit" | "copy" | "delete"ouiedit replaces the template’s components and sends it back to Meta’s review; copy makes a copy of it on another WhatsApp account of the business; delete removes it at Meta.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

sync_templates

Refresh templates from Meta

Reads the templates of one WhatsApp number from Meta now, updates what Cosend holds to match, and returns the synced list. connection_id is the number. Templates Meta changed since the last sync, such as a decision or a new category, show up here.

ParamètreTypeRequisDescription
connection_idstringoui

list_template_category_changes

See template category changes

Meta sometimes moves a template to another category, which changes its price. Lists every such change Meta made or announced that nobody in the workspace has acknowledged, on the numbers the caller can see. Read-only.

Aucun paramètre.

acknowledge_category_change

Acknowledge a template category change

Marks one template category change, named by id, as seen for the whole workspace, so it leaves the list of open changes. It changes nothing about the template, and nothing is sent to Meta.

ParamètreTypeRequisDescription
idstringouiThe category change to acknowledge, from the list of category changes.

get_automation

Read one automation

Reads one automation in one of three views. details: its name, status, number, the live version, what it clashes with while it is on, its refunds setting (ask_first: each refund step waits for a person under Approvals; on_its_own: it refunds with no person checking it; off: it does not refund) and, on request, its versions and recipe settings. versions: every version, newest first, one page at a time. stats: the chats it answered alone and handed over, by day, with the top hand-over reasons, each as a code and in words. Read-only.

ParamètreTypeRequisDescription
idstringouiThe automation id.
expandstringnonComma-separated extras for view details: active_version, latest_version, ir, settings.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.
rangestringnonFor view stats: today or 7d. Defaults to today.
viewenum: "details" | "versions" | "stats"ouidetails for the automation itself; versions for every version, newest first; stats for how it did today or over seven days.

update_automation_details

Rename an automation

Changes an existing automation’s name or description, and nothing else: what it does and its settings stay as they are. connection_id puts an automation made before numbers, which runs on every number, on one WhatsApp number, once; one that has a number keeps it. Its refunds setting (whether its refund steps wait for a person, run on their own or are off, shown with its details) is changed by a person in the Cosend dashboard, and a call that sends it is refused. Returns the automation.

ParamètreTypeRequisDescription
idstringouiThe automation id.
namestringnon
descriptionstring | nullnon
connection_idstring | nullnonThe WhatsApp number for an automation that has none and runs on every number. Accepted once; an automation that has a number keeps it, and another one (or null) is refused. The value it already has, null included, changes nothing.
refundsenum: "off" | "ask_first" | "on_its_own"nonThis automation’s own rule for its refund steps (a step whose action a person approves: WooCommerce’s Refund the order, or a payment service’s Refund a payment). ask_first: each refund waits for a person under Approvals (the automation waits for it first). on_its_own: it refunds with no person chec…

copy_automation

Copy an automation

Makes a custom copy of an existing automation, a recipe’s included, on the same WhatsApp number and switched off, with its own copy of the persona, knowledge and remembered values. name is the copy’s; left out, it is the original’s followed by “(copy)”. The original is unchanged. Returns the copy.

ParamètreTypeRequisDescription
idstringouiThe automation to copy.
namestringnonThe copy’s name. Absent: the original’s, followed by “(copy)”.

rollback_automation

Roll an automation back

Points an existing automation back at an earlier version, named by its number (to_version). A version not yet ready to run is got ready first; one that cannot be is refused, and the live version stays. Its steps do not change; if the automation is switched on, it runs that version from then on. Each call needs confirming: without confirmation_token it changes nothing and returns a preview and a token for a person to approve; called again with that token, it rolls back. Returns the automation.

ParamètreTypeRequisDescription
idstringouiThe automation id.
to_versionintegeroui
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

delete_automation

Delete an automation

Deletes an automation. One that is switched on is switched off with it, no run starts after it, it leaves the list of automations, and its id stops answering. Each call needs confirming: without confirmation_token it changes nothing and returns a preview and a token for a person to approve; called again with that token, it deletes.

ParamètreTypeRequisDescription
idstringouiThe automation to delete.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

test_automation

Test an automation on a sample customer

Runs the newest version of an automation once on a sample customer as a dry run: each step is recorded as what it would have done, and every message stays inside the test. payload lays trigger fields over the sample; fail_step runs the error branch as if that step had failed. Returns the run, whose steps are read through the run tools. It uses one automation run if it starts. A version that cannot be tested is refused in words.

ParamètreTypeRequisDescription
idstringouiThe automation id.
payloadobjectnonOptional. Trigger subtrees (`message`, `order`, …) laid over the sample's, field by field.
fail_stepstringnonOptional. The id of a step: the test runs the error branch as if that step had failed, and shows what the branch would do. Refused when the automation has no error branch or no such step.

run_automation

Start an automation by hand

Starts one run of a switched-on automation now, as its manual trigger does, with payload as the trigger’s data. It runs the live version, which acts as it was built to and can send WhatsApp messages to customers; those messages are final once sent. actions names every action the live version’s steps take, and those of a second automation set up with it, from the list in the schema (an automation’s versions list theirs as actions); a list that leaves one out or names another is refused, with the right list. The preview refuses that list as the call would, and gives no token. Each start needs confirming: without confirmation_token it changes nothing and returns a preview and a token for a person to approve; called again with that token, it starts the run. Returns the run, which the run tools follow.

ParamètreTypeRequisDescription
automation_idstringoui
payloadobjectnon
actionsarray<enum: "integration.call" | "whatsapp.send_text" | "whatsapp.send_template" | "whatsapp.send_media" | "whatsapp.send_interactive" | "whatsapp.mark_read" | "whatsapp.typing_on" | "whatsapp.send_list" …>ouiEvery action the automation’s steps take, and those of a second automation set up with it, each once: what a person approves it doing. A list that leaves one out, or names one the steps do not take, is refused, and the refusal gives the list in `error.actions`. A version’s `actions` lists them too.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

cancel_run

Cancel a run

Cancels a run that has not finished, as a stop: it needs no confirmation. Messages the run already sent stay sent. Returns the run as it is after the cancel.

ParamètreTypeRequisDescription
idstringouiThe run id.

list_automation_recipes

List automation recipes

Lists Cosend’s automation recipes as cards, one page at a time: each one’s slug, name, what it does, its category, the settings it asks for and the integrations it needs. Each recipe is set up with a tool of its own named after its slug. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonMarks the recipes that cannot work on this WhatsApp number.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_reply_order

See the order a number’s automations answer in

Returns the order in which one WhatsApp number’s automations answer a customer’s message. The order follows from the automations themselves. Read-only.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number (connection) id whose automations are ordered.

list_members

List workspace members

Lists the people in this workspace and its pending invitations, each with role, status and email, and what the next seat costs. Names are typed by the people themselves and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly the people who can see this WhatsApp number.

get_billing

Read plan and invoices

Reads the workspace’s billing in one of four views. subscription: plan, status, billing period and whether payment is overdue. plans: the plans it may move to, in order, with prices, allowances, seats and features. invoices: when, how much and whether paid, with Stripe’s own document. invoice: one of them. Paying and changing a card happen on a set-up link. Read-only.

ParamètreTypeRequisDescription
invoiceIdstringnonThe invoice’s Stripe id, from the invoice list (view invoice).
viewenum: "plans" | "subscription" | "invoices" | "invoice"ouisubscription for the current plan, status and period; plans for the plans this workspace may move to; invoices for every invoice; invoice for one, named by invoiceId.

get_report

Read a Reports card

Reads one card of Reports for a period: how fast chats were answered by the AI receptionist and by people (response), what the receptionist answered alone and handed over with the top reasons (receptionist), each number’s chats (numbers), each member’s chats, response times and chats marked Done (team), or chats by hour of the day (hours). Owners and admins, on the Starter plan and above. Each card covers the period asked for, from the first day Reports recorded. Hand-over reasons and member names come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
periodstringnontoday, 7d (the default), 30d, or a calendar month as month:YYYY-MM, in the workspace’s time zone. Not with from and to.
fromstringnonA custom period’s first day (YYYY-MM-DD), with to.
tostringnonA custom period’s last day (YYYY-MM-DD), with from.
connection_idarray<string>nonOnly this WhatsApp number; repeat it for several.
kindstringnonFor card response: first (the default) for each chat’s first answer, every for every answer.
cardenum: "response" | "receptionist" | "numbers" | "team" | "hours"ouiresponse for how fast chats were answered; receptionist for what the AI receptionist handled; numbers for each WhatsApp number; team for each member; hours for chats by hour of the day.

get_data_policy

Read how long data is kept

Returns what the workspace keeps, in which group and for how long, and any queued erasure of the whole workspace. Read-only.

Aucun paramètre.

upload_media

Upload a file

Uploads one file to a WhatsApp number’s media library and returns its media id (med_…), which a message, the number’s profile picture or the AI assistant’s knowledge then takes. The file travels inline as data_base64 with its mime_type, and goes to Meta and to Cosend’s storage in one call. Through an AI app a file is up to 5 MB; a larger video, audio file or document is uploaded in the Cosend dashboard. mime_type decides how WhatsApp sends it: image (jpeg, png), video (mp4, 3gpp), audio (aac, amr, mpeg, mp4, ogg), document (pdf, plain text, Word, Excel and PowerPoint) or sticker (webp). A type WhatsApp does not take, or a file over the limit, is refused before anything is stored. Every upload is its own file on that number, even with the same bytes. The file waits in the media library until a message, the profile or the assistant’s knowledge uses it.

ParamètreTypeRequisDescription
connection_idstringoui
mime_typestringouiOne of the types WhatsApp accepts, which also decides how the file is sent: image (image/jpeg, image/png; 5 MB), video (video/mp4, video/3gpp; 16 MB), audio (audio/aac, audio/amr, audio/mpeg, audio/mp4, audio/ogg; 16 MB), document (application/pdf, text/plain and the Word, Excel and PowerPoint type…
filenamestring | nullnon
data_base64stringoui

get_assistant_persona

Read the AI assistant’s persona

Reads the persona of one AI assistant, named by id (an automation of this workspace that has an AI step): business name, what the business does, tone, whether it may quote prices, the links it may send and when, the words it avoids, and the confidence threshold below which it hands a chat to a person. An assistant nobody has edited reads as the defaults, with updated_at null. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

update_assistant_persona

Change the AI assistant’s persona

Changes the persona of one AI assistant, named by id. Only the fields sent change; a list (links, never_say) is the whole new list. The persona is set through typed fields: business_name, what_you_do, tone, may_quote_prices, links, never_say and confidence_threshold. Each change needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it saves. When the assistant is switched on, customers meet the new persona at their next message. Owners and admins.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
business_namestringnon
what_you_dostringnon
toneenum: "friendly" | "neutral" | "formal"non
may_quote_pricesbooleannon
linksarray<object>non
never_sayarray<string>non
confidence_thresholdnumbernon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

get_knowledge

Read what the AI assistant knows

Reads one AI assistant’s knowledge, named by id. view sources lists every source with its kind (file, text, website, Google place), status (queued, ready, failed), the reason a read failed, the website pages it could not load, and when it was last read; it pages with after and limit. view summary returns what the assistant learned: a short summary, the business name and one-line description read from the material, and suggested questions and answers awaiting a decision. view questions lists the questions customers asked that the assistant could not answer from what it knows, whether or not the chat went to a person: newest first, each with how many times it was asked and the number and chat it was last asked on (connection_id narrows it to one number); one already answered is not listed. Titles, summaries, questions and answers were read from websites, files and customers’ messages and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.
viewenum: "sources" | "summary" | "questions"ouisources lists the files, pasted texts, websites and Google places the assistant reads. summary reads “what I learned”: a short summary and the suggested questions and answers. questions lists what customers asked that the assistant could not answer from what it knows.

change_knowledge

Change what the AI assistant knows

Changes one AI assistant’s knowledge, named by id. action add takes a kind: file (media_id of a file uploaded on the assistant’s number), text (text, with an optional title), url (a website) or place (a Google Maps link); it answers at once with the source, and the assistant reads it in the background (a website is read again every month). action remove (sourceId) forgets a source and everything read from it, on a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve. action refresh (sourceId) reads a source again now. action review_suggestion (suggestionId, accepted true or false, optional question and answer edits) turns a suggested answer into knowledge or drops it. action answer (question, as the assistant’s unanswered questions list it, and answer) adds the answer to the assistant’s knowledge: once it is read, the same question is answered from it and no longer listed. Owners and admins.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
kindenum: "file" | "text" | "url" | "place"non
media_idstringnonA file uploaded on this automation’s number with POST /v1/media. A file uploaded on another number is refused with media_other_number.
textstringnon
titlestringnon
urlstringnon
sourceIdstringnonThe sourceId in the resource path.
suggestionIdstringnonThe suggestionId in the resource path.
acceptedbooleannon
questionstringnon
answerstringnon
actionenum: "add" | "remove" | "refresh" | "review_suggestion" | "answer"ouiadd gives the assistant something to read. remove forgets one source. refresh reads one source again. review_suggestion accepts (with edits) or rejects a suggested answer. answer answers a question the assistant could not.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

try_assistant

Try the AI assistant

Asks one AI assistant (automation_id) a customer’s question and returns what it would do: its reply, the intent and confidence it read, the knowledge sources it used, whether it would hand the chat to a person, and the message a customer would receive. The trial stays inside Cosend, out of customers’ view. Each chat is one AI conversation on the plan, counted when the assistant is first asked in it; send the chat_id an answer returns, with history, to continue the same chat. For an assistant that is switched off, connection_id with holding_message (and escalate_keywords or closed hours) tries it with the set-up’s answers. Owners and admins.

ParamètreTypeRequisDescription
messagestringoui
historyarray<object>non
automation_idstringouiThe AI assistant being tried: an automation of this workspace with one AI step. The answer comes from its own persona and knowledge, and from no other assistant’s. Alone, the try also uses the escalate_keywords of the version its conversations run (the switched-on one, else the newest), the first m…
connection_idstringnonFor a receptionist that is not switched on: the number it is being set up on. Requires holding_message; escalate_keywords and closed as the set-up has them. They replace the settings of automation_id’s version.
holding_messagestringnonRequired with connection_id, and only with it: the message a customer is sent when the assistant cannot answer.
escalate_keywordsarray<string>nonWith connection_id: the words that pass a chat to a person.
closedobjectnonWith connection_id: the set-up's closed message, opening hours (HH:MM, in the workspace's timezone) and closed-hours passing message. While closed, the answer's closed_message is the message with the hours, and a customer_message for a chat passed on is the closed-hours one.
chat_idstring | nullnonThe Try it chat this message continues: the chat_id an earlier answer in it gave. Each chat counts as one AI conversation, billed like a real one, from the first time the assistant is asked in it. Null or left out starts a new chat; a history that already holds an assistant turn needs it, unless a…

list_receptionist_actions

List what the AI receptionist did

Lists what the AI receptionist did and proposed for customers, newest first, one page at a time: each action’s capability, its state (done, failed, waiting for the customer’s Confirm tap, expired, and so on), whether it was a test from Try it, and the line the customer was shown. Lookups (what the AI read to answer, such as free times) are left out unless asked. A line can quote a booking’s or an order’s own words, and comes back marked untrusted. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly the actions on this WhatsApp number.
conversation_idstringnonOnly the actions in this conversation.
statestringnonOnly actions in this state: done, failed, checking, awaiting_send (an order or booking waiting for a person to check it and send it), awaiting_customer, awaiting_owner, executing, cancelled, expired, superseded or undone.
capabilitystringnonOnly the actions of this capability: booking, crm, payments or orders.
teststringnontrue for the test actions from Try it only, false for the rest.
include_lookupsbooleannontrue to list the lookups too. Lookups: what the AI read to answer, such as free times; left out unless asked.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

send_receptionist_action

Send an order or booking the AI receptionist made

Sends one order or booking the AI receptionist made and the number holds for a person to check first (state awaiting_send, its number set to ask_me_first), named by id. The customer gets it as a WhatsApp message with Confirm and Change, and it is done only when they tap Confirm. Refused in words when it was already sent, a newer one replaced it, a person has the chat, or the customer’s WhatsApp window closed. Each send needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve. The line it opens with was written by the AI and comes back marked untrusted.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_receptionist_setups

List the types of business for the AI receptionist

Lists the types of business an AI receptionist can start from (clinics and dentists, salons, restaurants, tours, online shops, real estate, education, any other business): each one’s key, what it fills in the persona, its procedures, its typical services, the urgent words that pass a chat to a person, its closed message, and what a receptionist of that type may do (a clinic only books). Read-only.

Aucun paramètre.

apply_receptionist_setup

Start the AI receptionist from a type of business

Starts one AI receptionist, named by id, from a type of business (setup, the key the list of types of business gives). It fills the persona’s what_you_do, tone and may_quote_prices, replaces the procedures with the setup’s, and keeps a clinic to booking. The business name, links and the rest of the persona are kept. Every field stays editable: the persona, the procedures, and the receptionist’s own settings, which can take the setup’s urgent words and closed message. Each apply needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve. Owners and admins.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
setupstringouiA type of business, by its `key`.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

get_procedures

Read the AI receptionist’s procedures

Reads one AI receptionist’s procedures, named by id: numbered “when … then …” rules, each a condition (when) and its steps (steps). A condition is party_size_over (people), service_is (service) or first_visit; a step is ask (question), deposit_link (amount and currency, with the ref the AI names it by), book or hand_over. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

update_procedures

Change the AI receptionist’s procedures

Replaces one AI receptionist’s procedures, named by id, with the whole list sent (at most 10). Each is a condition (when: party_size_over with people, service_is with service, or first_visit) and one to four steps in order (steps: ask with question, deposit_link with amount and currency, book, or hand_over). A deposit’s amount is the one written here; the AI does not set one. An empty list removes them all. Each change needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve. Owners and admins.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
proceduresarray<object>ouiThe whole list, in order: each a condition (`when`) and one to four steps (`steps`) that follow it. It replaces the list there.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

get_receptionist_settings

Read the AI receptionist’s settings

Reads the settings of one AI receptionist, named by id (an automation of this workspace that has an AI step). What it may do for customers: bookings (book, move and cancel in a connected calendar or booking tool), the CRM (save what the customer said, log the chat) and payments (send a customer a link to pay a price the business set). Each has its switch, the integration account it works through, and its rules: for bookings the services with their length, the time kept free after each, the hours, breaks, holidays, how far ahead and with how much notice customers book, the most bookings a customer makes in a day, and whether the customer confirms a booking with a tap; for the CRM what it writes beside the contact and when the chat is logged; for payments the payment account it uses (such as Stripe or PayPal, connected on this number), the most one link may ask for, and how long a link stays open. Everything is off until switched on. selling: on, and cash_not_taken, what it does when a customer picks cash on delivery where the number takes no cash: hand_over (a person takes the chat) or payment_link (it sends a payment link). permissions: what it may do on its own, per action type, each off (it does not, and a customer who asks goes to a person), ask_first (an owner or an admin approves each one under Approvals) or on_its_own (after the customer’s own Confirm tap): destructive (cancel or move a booking, cancel an order or change its address), payments (send a payment link) and…

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

update_receptionist_settings

Change the AI receptionist’s settings

Changes the settings of one AI receptionist, named by id. Only the fields sent change (a list is sent whole). booking, crm and payments: what it may do. A capability is switched on with an integration account of this workspace that is used on the receptionist’s WhatsApp number; it lets Cosend’s AI make, move and cancel bookings, write to the CRM, or send payment links, for customers. payments: on, account_id (the payment account it uses, such as Stripe or PayPal, connected on this number), max_link_amount (the most one link may ask for) and link_expiry_minutes (how long a link stays open, inside what the payment service allows); switching it off does not check the account. selling: on, and cash_not_taken: before saving a receptionist that sells with delivery, ask the owner "When a customer picks cash on delivery where you don’t take cash: hand the chat to you, or send a payment link?" and send hand_over or payment_link (hand_over until set). permissions: what it may do on its own, destructive, payments and refunds, each off, ask_first or on_its_own; only the types sent change, and only an owner or an admin changes them. location is the business location the receptionist can send as a map pin when a customer asks where the business is: latitude and longitude, or maps_link (the business’s Google Maps link, from which Cosend reads the position, and refuses in words a link with none), each with an optional name and address; null takes it off, and the receptionist answers with th…

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
typeenum: "customer_service" | "sales"noncustomer_service: it answers and helps, and sells nothing (the default). sales: customer service and sales: it takes orders for the number’s products, and takes payments when a payment account is on for it.
bookingobjectnonBookings. on: Whether the AI receptionist does this. Off until switched on, with an account. account_id: The integration account it works through (`ca_…`): one of this workspace’s, used on the receptionist’s WhatsApp number. customer_confirms: the customer confirms a booking or a move with a tap (a…
crmobjectnonThe CRM. on: Whether the AI receptionist does this. Off until switched on, with an account. account_id: The integration account it works through (`ca_…`): one of this workspace’s, used on the receptionist’s WhatsApp number. writes: beside the contact, a note, a deal, a task or a ticket. deal: the p…
paymentsobjectnonPayments: it sends the customer a link to pay a price the business set. on: Whether the AI receptionist does this. Off until switched on, with an account. account_id: the payment account it uses, such as Stripe or PayPal (`ca_…`): one of this workspace’s, used on the receptionist’s WhatsApp number.…
sellingobjectnonSelling. on: switch it on or off on its own; sent with type, this one wins. cash_not_taken: Ask the owner: "When a customer picks cash on delivery where you don’t take cash: hand the chat to you, or send a payment link?" hand_over: a person takes the chat (the default). payment_link: the order is p…
permissionsobjectnonWhat it may do on its own, per action type: only the types sent change. An owner or an admin only.
locationobject | object | nullnonThe business location the assistant can send as a map pin: latitude and longitude, or maps_link (the business’s Google Maps link, which Cosend reads the position from), each with an optional name and address. null takes it off.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

undo_receptionist_action

Undo what the AI receptionist did

Undoes one thing the AI receptionist did, named by its id (rxa_…): a booking it made is cancelled, a booking it moved goes back to its earlier time, in the calendar or booking tool. A test action from Try it is undone the same way. A save to the CRM has no undo. The customer gets a WhatsApp message saying the team undid it, unless tell_customer is false. Each Undo needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve. Owners and admins.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
tell_customerbooleannonSend the customer a WhatsApp message saying the team undid it (while WhatsApp lets a message through). On unless set to false.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

get_business_profile

Read a number’s business profile

Reads the WhatsApp business profile customers see for one number, named by id, from Meta: about, description, address, email, websites, industry and the picture’s address. read_only_reason says when the profile is edited elsewhere (a coexistence number’s is edited in the WhatsApp Business app). Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

update_number

Change a number’s settings or profile

Changes one WhatsApp number, named by id. action settings takes delivery_mode (stored or direct), override_callback_url (where Meta’s webhooks for the number go; null clears it) and orders_and_bookings (ask_me_first: an order or booking the AI receptionist made waits for a person to tap Send before the customer gets it; send_right_away: the customer gets it at once; either way the customer taps Confirm). A switch to direct with automations, AI conversations or open chats in the way is refused with direct_mode_conflicts listing them: show the person that list, and only once they agree, call again with switch_off_conflicts true, which switches them off and then switches the number. action display_name takes display_name and submits it to Meta’s review; Meta’s decision shows on the number later. action profile takes any of about, description, address, email, websites, vertical and profile_picture (a media id from an upload on this number); every customer sees the profile. Each action needs a confirmed call: without confirmation_token the call is a preview that names the number and returns a token for a person to approve. The number’s webhook verify token and relay secret stay sealed in the number’s settings in the Cosend dashboard, and read as null here. Owners and admins.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
delivery_modeenum: "stored" | "direct"non
retention_monthsnonRetention is set once for the whole account, not per connection. Set it with PATCH /v1/account/data-policy.
override_callback_urlstring | nullnonYour endpoint for Meta’s webhooks for this number. On a `direct` number Cosend sets it as the number’s webhook override at Meta, and Meta sends the number’s messages, echoes, calls and history to it itself; Meta checks it first with `webhook.verify_token`, and keeps template and account webhooks on…
orders_and_bookingsenum: "ask_me_first" | "send_right_away"nonBefore your customer gets an order or booking the AI receptionist made. `ask_me_first` (the default): it waits for a person to check it and tap Send (`POST /v1/receptionist-actions/{id}/send`), then the customer gets it and taps Confirm. `send_right_away`: the customer gets it at once and taps Conf…
switch_off_conflictsbooleannonWith delivery_mode direct: true switches off what a 409 direct_mode_conflicts lists for this number, then switches it, all in one step. Automations are switched off, AI conversations ended and open chats marked Done; what is in the way is read again, not taken from the request. Absent or false, a s…
display_namestringnon
aboutstringnon
descriptionstring | nullnon
addressstring | nullnon
emailstring | nullnon
websitesarray<string>non
verticalenum: "alcohol" | "apparel" | "automotive" | "beauty" | "education" | "entertainment" | "event_planning" | "finance" … | nullnon
profile_pictureobjectnon
actionenum: "settings" | "display_name" | "profile"ouisettings changes how Meta’s messages for the number are handled. display_name submits a new name to Meta’s review. profile edits the business profile customers see.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

manage_number

Refresh or re-check a number

Looks after one WhatsApp number, named by id. action sync refreshes the number’s state, quality rating and limits from Meta and returns the connection. action recheck_payment is for a person who added a payment method in Meta after a number was blocked for payment: it asks Meta again and returns the connection (adding the method itself happens in Meta’s own tools). action retry_verification takes the id of a phone number from Cosend (cnm_…) whose verification stopped, and asks WhatsApp for a new code on that same number, with no new purchase; it is allowed from the number’s preverify_retry_at, and the number shows verifying while Cosend waits up to 10 minutes for the code. Owners and admins for sync and retry_verification. Disconnecting a number is an owner’s or admin’s step in the Cosend dashboard.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
actionenum: "sync" | "recheck_payment" | "retry_verification"ouisync reads the number’s state from Meta. recheck_payment asks Meta again after a payment method was added. retry_verification asks WhatsApp again for the code that verifies a phone number from Cosend.

read_integration

Look inside an integration account

Reads what one connected integration account holds, named by id. view spreadsheets lists the spreadsheets a Google account can open (the ones Cosend made or a person picked for it), 100 a page at most, or with spreadsheet_id one spreadsheet and its tabs. view forms lists a form account’s forms with the id an automation’s start takes as form_id. view appointments lists a calendar account’s upcoming events from now to days ahead, with the customer number found in each and counts of events with and without one. Names, tab titles and event titles were written by people outside this workspace and come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
daysstringnonWith view appointments: how many days ahead to read, 1 to 30. Default 7.
spreadsheet_idstringnonWith view spreadsheets: read this one spreadsheet and its tabs.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.
viewenum: "appointments" | "spreadsheets" | "forms"ouispreadsheets lists a Google account’s spreadsheets, or one spreadsheet’s tabs. forms lists a form account’s forms. appointments previews a calendar’s coming events.

manage_integration

Manage an integration account

Manages one connected integration account, named by id; the account returns no credential. action update takes name and config (the account’s non-secret settings). action test makes one safe read at the provider and returns whether the credential works; a failed test is an answer with ok false. action add_number (connection_id) uses the account on another WhatsApp number of the workspace, the same sign-in and not a copy. action remove_number (connection_id) stops using the account on one number, provided the account stays on at least one other number and no switched-on automation there needs it, on a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve. Signing in, and typing or replacing a key, happen on a set-up link the person opens; deleting an account or its saved login is done by a person in the Cosend dashboard. Owners and admins.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
connection_idstringnonThe connection_id in the resource path.
namestringnon
configobjectnon
actionenum: "add_number" | "remove_number" | "update" | "test"ouiupdate renames the account or changes its non-secret config. test verifies the credential. add_number and remove_number choose the WhatsApp numbers the account serves.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

create_spreadsheet

Make a spreadsheet

Makes a spreadsheet in a connected Google account, named by id: its title, one tab, the header columns (with a type each, text by default) and, optionally, one example row. It lands in the account’s own Google Drive and answers with its id, link, tabs and columns, which an automation’s sheet steps then use. It only creates a new spreadsheet in Google Drive.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
titlestringouiThe spreadsheet’s name, in the owner’s words.
tabstringouiThe one tab’s name.
columnsarray<object>ouiThe header row, first column first: 26 at most, A to Z.
example_rowarray<string>nonOne row under the header for the owner to type over, as wide as `columns`. Absent: the sheet has the header row only.

get_approvals

Read approvals

Reads the human-decision queue. view list returns approvals newest first, one page at a time, optionally filtered by state; a member sees the queue of their own numbers. view one returns one approval with exactly what the human is shown (preview) and the arguments of the held action. view action_types returns every action type that can require approval with its default risk. Previews and arguments can quote customers and come back marked untrusted. Deciding an approval, and reading or changing the mode per type, are each a tool of their own. Read-only.

ParamètreTypeRequisDescription
statestringnonWith view list: only approvals in this state.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.
idstringnonThe id in the resource path.
viewenum: "list" | "one" | "action_types"ouilist lists approvals. one reads one approval by id. action_types lists what can need approval.

request_approval

Hold an action for a person’s decision

Holds an action for a human decision: action (a type from the approval action types), preview (exactly what the person is shown, up to 4096 characters), arguments, and optionally risk (it can only raise the type’s default) and run_id. The approval is pending, expires 24 hours after it is made (an expiry is a rejection), and appears in the Cosend approvals queue for a person to approve or reject. The workspace’s setting for that action type can also approve or reject it at once, and the answer says which; a refund or an AI receptionist action (order.refund, payment.refund, receptionist.change, receptionist.payment) asked here waits for a person. It only files the request for a person to decide. A retry with the same arguments returns the same approval.

ParamètreTypeRequisDescription
actionstringoui
argumentsobjectnon
previewstringoui
riskenum: "low" | "medium" | "high"non
run_idstring | nullnon

approve_request

Approve a held action

Approves one pending approval, named by id, with an optional note, and the held action goes ahead: a refund the AI receptionist asked for (payment.refund, order.refund) is paid out once and the customer is told. An approval past its 24 hours is rejected instead, not approved, and one already decided is refused. Each approval needs a confirmed call: without confirmation_token the call is a preview that shows the approval and returns a token for a person to approve; called again with that token, it approves.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
notestringnon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

reject_request

Reject a held action

Rejects one pending approval, named by id, with an optional note: the held action does not happen. For a refund the AI receptionist asked for, the customer is told a person from the team will follow up, and the chat goes to a person. One already decided is refused.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
notestringnon

get_approval_settings

Read how actions are approved

Lists the action types this workspace sets an approval mode for, with its mode for each: ask (a person decides each one), auto_approve or auto_reject, with its risk and who consented to an automatic mode. Refunds and the AI receptionist’s own actions are not among them: each automation that can refund, and the AI receptionist, sets its own. Only an owner or an admin may read them. Read-only.

Aucun paramètre.

update_approval_settings

Change how an action type is approved

Sets one action type (action_type, one of this workspace’s approval settings) to ask, auto_approve or auto_reject. An automatic mode needs risk_acknowledged true: on auto_approve every such action goes ahead with no person checking it. Refunds and the AI receptionist’s own actions (order.refund, payment.refund, receptionist.change, receptionist.payment) are refused here, in words: each automation that can refund, and the AI receptionist, sets its own. Only an owner or an admin may change it. Each change needs a confirmed call: without confirmation_token the call is a preview that says what would change and returns a token for a person to approve; called again with that token, it changes.

ParamètreTypeRequisDescription
action_typestringoui
modeenum: "ask" | "auto_approve" | "auto_reject"oui
risk_acknowledgedbooleannon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_audiences

List saved audiences for campaigns

Lists the saved audiences of this workspace, one page at a time: each one’s id, name, the WhatsApp number it was saved for, and who it names (contact tags, that number’s chat labels and contact-field conditions, any or all). A campaign’s audience is one of these. They are saved on the Campaigns page of the Cosend dashboard, or by an AI app, by an owner or an admin; this tool only reads them. Read-only.

ParamètreTypeRequisDescription
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

create_audience

Save an audience for campaigns

Saves an audience for campaigns, with a name, the WhatsApp number it is for and who it names (contact tags, that number’s chat labels and up to 10 contact-field conditions, any or all), and returns it with its id, the audience.segment_id a campaign takes. A condition is a contact field of the business, or name, locale or timezone, with is, is_not or contains for text, is, gt or lt for a number, before, after or on for a date, is or is_not for a choice (one of its choices), is for a yes/no field (true or false), or is_set or is_not_set. It sends nothing and messages nobody. The audience is on the Campaigns page of the Cosend dashboard too. Campaigns are on the Starter plan and above, and for owners and admins.

ParamètreTypeRequisDescription
namestringoui
connection_idstringoui
definitionobjectoui

list_campaigns

List campaigns

Lists this workspace’s campaigns, newest first, one page at a time: each one’s id, state (draft, scheduled, sending, paused, sent or stopped), number, template, saved audience, time, quiet hours, and how many it was for, sent, delivered, read, got a reply from and failed for. These are the campaigns on the Campaigns page of the Cosend dashboard. Read-only.

ParamètreTypeRequisDescription
statusarray<string>nonOnly campaigns in this state, e.g. draft or sending. Repeat for several.
connection_idarray<string>nonOnly campaigns on this WhatsApp number. Repeat for several.
qstringnonOnly campaigns whose name contains this.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_campaign

Get a campaign and its results

Returns one campaign, named by id, and its results together. The campaign: its state, number, template and the value of each blank, saved audience, time, quiet hours, whether it retries failed sends by itself, the most messages it sends an hour, and why it paused, stopped or could not start. The results: how many it was for, sent, delivered, read, replied, failed, were left out and are still to go, failures by group, sends per 10 minutes and what is left by day. A reply counts for 72 hours after the campaign ends. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

create_campaign

Start a campaign draft

Starts a campaign as a draft, with a name and the WhatsApp number it goes out on, whether it retries failed sends by itself (auto_retry) and the most messages it sends an hour (max_per_hour), and returns it with its id. It sends nothing and messages nobody: a draft waits until a person approves it. The draft is on the Campaigns page of the Cosend dashboard too. Campaigns are on the Starter plan and above, and for owners and admins.

ParamètreTypeRequisDescription
namestringnon
connection_idstring | nullnon
auto_retrybooleannonRetries failed sends by itself: a person not on WhatsApp is not retried, a message WhatsApp held back is retried once, 24 hours later, and any other failure up to 3 more times, 30 minutes, 2 hours and 6 hours after it. Switched off, retries not yet sent stop.
max_per_hourinteger | nullnonThe most messages it sends an hour, from 60 to 100000; null sends as fast as the number allows.

update_campaign

Change a campaign draft

Saves one or more steps of a campaign draft, named by id, and returns it. A step is its name; its number; its template (template_id, a marketing template on that number’s WhatsApp account); the value of each blank (variable_map: a contact field’s key, first_name or name, with fallback text for people who have none, or one text for everyone); what the template shows on top (header: a picture, video or document uploaded to Cosend by its media_id, and the template’s own file when none is chosen; a place by its latitude, longitude, name and address; or the title’s blanks, as variable_map); the value of a link button’s blank and a coupon code (buttons, by the button’s index); its audience, which is a saved audience by its id (audience.segment_id), or every contact of the number’s business (audience.everyone true), and nothing else; a time to send it, in a time zone; its quiet hours, when nothing is sent; whether it retries failed sends by itself (auto_retry); and the most messages it sends an hour (max_per_hour, 60 to 100000, or null for as fast as the number allows). Changing the number clears the template and the blanks. A scheduled campaign that is changed is a draft again, and any estimate it had is cleared. On a campaign that has started, auto_retry alone can be switched on or off, and switched off, the retries not yet sent stop. It sends nothing.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.
namestringnon
connection_idstringnon
template_idstring | nullnon
variable_maparray<object>non
cardsarray<object>non
headerobject | object | object | nullnon
buttonsarray<object | object>non
audienceobjectnon
scheduleobject | nullnon
quiet_hoursobjectnon
track_clicksbooleannon
kindenum: "one" | "sequence" | "ab"non
stepsarray<object>non
abobject | nullnon
reply_rulesarray<object>non
let_joinbooleannon
auto_retrybooleannonRetries failed sends by itself: a person not on WhatsApp is not retried, a message WhatsApp held back is retried once, 24 hours later, and any other failure up to 3 more times, 30 minutes, 2 hours and 6 hours after it. Switched off, retries not yet sent stop.
max_per_hourinteger | nullnonThe most messages it sends an hour, from 60 to 100000; null sends as fast as the number allows.

preview_campaign

Check a campaign before it sends

Checks a campaign draft, named by id, and returns what sending it would do, under two keys. audience: how many the saved audience matches, how many get it, how many are left out and why (no WhatsApp number, blocked, opted out on this number, a US number, WhatsApp held back a marketing message to them in the last day, a blank with no value, or a chat open with them now), the first 20 people, and Meta’s list price for one delivered marketing message to each person who gets it, by market, in the WhatsApp account’s currency. estimate: the estimate_id a send names, which lasts 15 minutes; the count; the daily limit and what goes out on which day; how many hours sending takes at its hourly limit, when it has one; the plan’s messages left; and whether the count must be confirmed, which it must above 500. It saves the estimate on the draft and sends nothing. The template must be approved by WhatsApp. Names in the sample were written by the customers themselves and come back marked untrusted.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

send_campaign

Send or schedule a campaign

Sends a campaign draft now, or schedules it for its time, named by id, with the estimate_id of a check made in the last 15 minutes; above 500 people, confirm_text is that count. It reaches every person the check counted, on their phones, and the messages cannot be unsent. It sends only on a confirmed call: without confirmation_token it sends nothing and returns a preview and a token for a person to approve. The preview shows the campaign (its number, template and the value of each blank, the file or the place on top, its buttons’ values, saved audience, time and quiet hours) and who gets it now, who is left out and Meta’s list price, all read again when the token comes back: if any of it changed after the preview, the token is refused and a new preview is needed. Changing a single character of the arguments invalidates the token too. Only a person’s approval sends it: the credential alone sends nothing, through this tool or straight to the API. Five a minute and ten a day per workspace. Each campaign is on the Campaigns page of the Cosend dashboard.

ParamètreTypeRequisDescription
idstringouiThe campaign to send.
estimate_idstringoui
confirm_textstringnon
whenenum: "now" | "scheduled"ouinow sends the draft now; scheduled schedules it for the time the draft has, in its time zone.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

cancel_campaign

Stop a campaign

Stops a campaign, named by id, that is scheduled, sending or paused, and returns it stopped: nothing more goes out, and sends still waiting are cancelled. Messages already sent stay sent. A stopped campaign does not start again; its results stay readable. Stopping a draft, or a campaign that has finished, is refused in words.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

list_products

See the products of a number

Lists the products of the workspace’s WhatsApp numbers, one page at a time. Each belongs to one number and has its name, photos (the first is the cover), variants with their prices and SKUs, price tiers (a price for a quantity), currency, short description, details, stock, delivery note, tags and the questions and answers the business approved. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly this WhatsApp number’s products.
qstringnonWords; each must start a word of the product’s name, SKU or a tag.
activestringnontrue for the products switched on, false for those off.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_product

Open a product

Reads one product, named by its prd_ id: its number, name, photos (the first is the cover), variants, price tiers, currency, short description, details, stock, delivery note, tags, whether it is switched on, and the questions and answers the business approved. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

upsert_product

Add or change a product

Adds a product to a WhatsApp number (connection_id and name), or changes one when id is given. A product has photos (ids of files uploaded on its number; the first is the cover), variants (a name, a price and a SKU each), price tiers (a quantity and its price, e.g. 3 for 1500), a currency (ISO 4217; left out, the workspace’s), a short description of 1 to 3 lines, details, stock (in_stock, low or out_of_stock, with an optional count), a delivery note, tags, a SKU, whether it is switched on, and approved answers (a question and its answer). Prices are written in digits, like "590" or "12.50". Each call needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it writes. Returns the product.

ParamètreTypeRequisDescription
connection_idstringnonThe number the product belongs to. Optional with an API key made for one number, which already names it.
namestringnon
photosarray<string>nonUp to 10 photos, by the id POST /v1/media gave each (image/jpeg or image/png, uploaded on the product’s number). The first is the cover. Written whole: the list replaces the one before.
variantsarray<object>nonSizes, flavours or colours, each with its own price and SKU. Written whole.
price_tiersarray<object>nonThe price of a quantity, e.g. 1 for 590 and 3 for 1500. Each quantity once. Written whole.
currencystring | nullnonISO 4217. Null uses the workspace’s currency (PATCH /v1/organizations/{id}).
short_descriptionstring | nullnon1 to 3 lines, shown on the product card.
detailsstring | nullnon
stockenum: "in_stock" | "low" | "out_of_stock"non
stock_countinteger | nullnon
delivery_notestring | nullnon
tagsarray<string>non
skustring | nullnon
activebooleannon
answersarray<object>nonQuestions and the answers the business approved. Only these are ever sent automatically. Written whole.
idstringnonThe product to change, by its prd_ id. Left out, a new product is added.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

search_saved_replies

Find saved replies

Finds the saved replies of the workspace’s WhatsApp numbers, one page at a time. Each belongs to one number and has its words, with {first_name} and {product.price} filled in from the chat when a person sends it, its files (photos, videos, PDFs and a voice note), its folder, its shortcut, its language (versions of one reply share a shortcut), the product it reads and how many times it was sent. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly this WhatsApp number’s replies.
qstringnonWords; each must start a word of the reply’s shortcut, folder or words.
folderstringnonOnly the replies in this folder.
shortcutstringnonEvery language version of one shortcut, e.g. precio, with or without the /.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

list_orders

See the orders of a number

Lists the orders of the workspace’s WhatsApp numbers, newest first, one page at a time, with how many orders each order desk tab holds. Each belongs to one number and one customer, and has its order number, status, payment status and method, lines (product, quantity, price and where the price came from), delivery fee, total, delivery address, courier and tracking number, the customer, the ad the chat came from, who it is assigned to, what is still missing, the fields marked Check, and risk notes from this workspace’s own orders. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly this WhatsApp number’s orders.
conversation_idstringnonOnly the orders of this chat.
contact_idstringnonOnly this customer’s orders.
statusstringnondraft, awaiting_customer, confirmed, out_for_delivery, delivered, cancelled, returned or problem.
payment_statusstringnonunpaid, deposit_paid, paid, cod_collected or refunded.
viewstringnonAn order desk tab: needs_ok (drafts), awaiting_customer, to_ship, out_for_delivery, delivered, problems, or unconfirmed (no answer 20 hours after it was sent).
fromstringnonMade on or after this day (YYYY-MM-DD).
tostringnonMade on or before this day (YYYY-MM-DD).
citystringnonOnly orders delivered to this city.
ad_idstringnonOnly orders whose chat came from this Click-to-WhatsApp ad, by its ad_ id.
sortstringnonnewest (the default) or oldest first.
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_order

Open an order

Reads one order, named by its ord_ id: everything the list of orders shows, the messages each line and field was read from, the payment screenshots read for it (a screenshot alone does not mark it paid), the customer’s change requests, and every change made to it: who, when, and from which message or tap, also as a timeline newest first with where each change came from. With it: the customer’s record on that number (earlier orders, returns, total spent, saved addresses, tags, the chat’s notes and link), the delivery place on a map, and the payment link sent and the provider’s reference. Read-only.

ParamètreTypeRequisDescription
idstringouiThe id in the resource path.

draft_order_from_conversation

Draft an order from a chat

Reads one chat, named by id, with the AI and writes an order draft from it: the products of the number’s list the customer asked for, with the list’s prices (a product the list does not have is a custom item with no price), the delivery details and the payment method, each with the messages it came from; fields the AI was unsure of are marked Check. The chat’s open draft, if it has one, is updated instead. Counts as one AI conversation. Nothing is sent to the customer. Returns the order.

ParamètreTypeRequisDescription
idstringouiThe chat to read, by its cnv_ id.
fromenum: "seller" | "composer"noncomposer when it is the composer’s /order; seller otherwise.

update_order_status

Change an order or send it

Changes one order, named by id: its status (awaiting_customer sends it to the customer to confirm with a tap), its payment status (set by a person; a screenshot alone does not mark it paid), its payment method, its lines or delivery until it is cancelled or returned (an order sent or confirmed is then a draft again for the customer to confirm; one out for delivery or delivered only by an owner or an admin), its notes, or a cancel reason. Each call needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it changes the order. Returns the order.

ParamètreTypeRequisDescription
idstringouiThe order, by its ord_ id.
statusenum: "draft" | "awaiting_customer" | "confirmed" | "out_for_delivery" | "delivered" | "cancelled" | "returned" | "problem"nonawaiting_customer sends the order to the customer for their Confirm tap (Starter and up). The other statuses are recorded as they are set.
payment_statusenum: "unpaid" | "deposit_paid" | "paid" | "cod_collected" | "refunded"nonSet by the seller. A payment screenshot alone does not mark it paid.
payment_methodenum: "cod" | "payment_link" | "bank_transfer" | nullnon
itemsarray<object>non
deliveryobjectnon
notesstring | nullnon
cancel_reasonenum: "changed_mind" | "too_expensive" | "too_slow" | "ordered_elsewhere" | "other" | "expired" | "seller" | nullnon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

bulk_update_orders

Update many orders

Applies one action to up to 100 orders named in ids: out_for_delivery marks each out for delivery and sends each customer the out-for-delivery message on WhatsApp (Starter plan and up; inside the chat’s 24-hour window only), assign gives each to the member in assignee_id (null takes it off), export_csv makes the courier’s CSV, and packing_slips makes one PDF with a page per order. Each order gets its own result, so one that is not found is skipped with its reason while the rest go through. A file comes back as a link that works for an hour. Each action needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it acts.

ParamètreTypeRequisDescription
idsarray<string>ouiThe orders, by ord_ id.
actionenum: "out_for_delivery" | "assign" | "export_csv" | "packing_slips"oui
assignee_idstring | nullnonFor assign: a member’s usr_ id, or null to take the assignee off.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

export_orders_csv

Export orders for the courier

Makes the courier’s CSV of up to 100 orders named in ids, with action export_csv: one row per order with the order number, recipient, phone, address, city, postcode, map link, items, total, payment, the cash to collect, delivery day, courier and tracking number. Returns a link to the file that works for an hour. Changes no order and sends nothing.

ParamètreTypeRequisDescription
idsarray<string>ouiThe orders, by ord_ id.
actionenum: "out_for_delivery" | "assign" | "export_csv" | "packing_slips"oui

get_order_settings

See a number’s order settings

Reads one WhatsApp number’s order settings: the delivery fee, the delivery zones and their fees, how long delivery takes (anywhere and per zone), the payment methods, AI order drafts, confirmation before shipping, the reminder hours, the deposit rule, the delivery messages, the Google Sheets sync, and the ready-made order templates with their status on the number. A number with no saved settings shows the defaults. Read-only.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number, by its conn_ id.

update_order_settings

Set a number’s order settings

Changes one WhatsApp number’s order settings, only the fields given: the delivery fee, the delivery zones, how long delivery takes (anywhere and per zone), the payment methods, AI order drafts, confirmation before shipping, the reminder hours, the deposit rule and the delivery messages (both Starter and up), and the Google Sheets sync. Each call needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it saves. Returns the settings.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number, by its conn_ id.
ai_draftsbooleannon
payment_methodsarray<enum: "cod" | "payment_link" | "bank_transfer">non
delivery_feestring | nullnon
delivery_timestring | nullnonHow long delivery takes, as you tell customers, like "2 to 3 business days". Null or empty: not said.
delivery_zonesarray<object>non
confirm_before_shippingbooleannon
reminder_hoursintegernon
depositobject | nullnon
seller_confirm_byenum: "email" | "whatsapp"non
seller_whatsappstring | nullnon
delivery_messagesbooleannon
sheetsobject | nullnon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

get_ad_replies

See the replies to ad leads

Reads how a WhatsApp number answers a new chat from one of its Click-to-WhatsApp ads: who answers (the product card then the AI receptionist, the AI receptionist from the first message, or the product card then the business), the wait before the first reply, whether it answers only while the business is closed and its opening hours, the greeting (a saved reply), the default product and the one question, each ad the number’s chats came from with its own product and the product Cosend suggests from the ad’s headline, and the follow-up: after how many quiet days, the saved reply and marketing template one tap sends, and the optional nudge. Read-only.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number, by its conn_ id.

update_ad_replies

Change the replies to ad leads

Changes how a WhatsApp number answers a new chat from one of its ads: who_answers (card_then_ai, ai_first or card_then_you), delay_seconds (0, 20, 30, 45 or 60), hours (at any hour, or outside_business_hours) with opening_hours, greeting_id (a saved reply of the number), product_id, question, ads (the whole list: each ad id with its product, and optionally its own greeting and question) and follow_up (after_days 1 to 3, the saved reply and marketing template one tap sends, and nudge with its saved reply). Fields left out keep their values. Without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it saves. Returns the settings.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number, by its conn_ id.
who_answersenum: "card_then_ai" | "ai_first" | "card_then_you"non
delay_secondsnumber | number | number | number | numbernon
hoursenum: "always" | "outside_business_hours"non
opening_hoursobjectnon
weekly_hoursobjectnon
greeting_idstring | nullnon
product_idstring | nullnon
questionstringnon
adsarray<object>non
follow_upobjectnon
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_follow_ups

See today’s follow-ups

Lists the ad leads who went quiet after their first reply and wait for the business to write to them, oldest first: each with its chat, the product the first reply showed, when the follow-up was given, whether WhatsApp’s window to write freely is open, and what one tap sends (the saved reply while the window is open, else the marketing template). A follow-up leaves the list once it is sent or the customer writes again. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly this WhatsApp number’s follow-ups.

send_follow_up

Send a follow-up

Sends one follow-up from the list, once: the saved reply while WhatsApp’s window to write freely is open, else the approved marketing template, as any message is sent. A customer who opted out is refused; one with no yes to offers on record gets the template, and the answer says so in warning. Without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it sends. Returns the messages sent.

ParamètreTypeRequisDescription
idstringouiThe follow-up, by its adl_ id.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

get_ads_report

Read what each ad brought in

Reads, for each Click-to-WhatsApp ad, what its chats became in a period: chats started, how many were answered and handed to a person, the median time to the first answer, and their orders (written, confirmed, delivered, cancelled, returned) with the revenue of the orders paid or delivered, one amount per currency. With an ad account chosen for the number and a plan from Starter, also what each ad cost, the cost per delivered order and the return on ad spend; spend.status says why the cost is missing otherwise. Totals over every ad come with it. Owners and admins. Ad words come back marked untrusted. Read-only.

ParamètreTypeRequisDescription
periodstringnontoday, 7d (the default), 30d, or a calendar month as month:YYYY-MM, in the workspace’s time zone. Not with from and to.
fromstringnonA custom period’s first day (YYYY-MM-DD), with to.
tostringnonA custom period’s last day (YYYY-MM-DD), with from.
connection_idarray<string>nonOnly this WhatsApp number; repeat it for several.

get_crm_order_sync

See how a number’s orders go to the CRM

Reads how one WhatsApp number sends its orders to the business’s CRM (HubSpot, Pipedrive or Zoho CRM): whether it is on, the CRM account, the pipeline, and the stage each order status moves the deal to, the defaults included. Also lists the CRM accounts used on the number and the account’s pipelines and stages, read from the CRM now, and why orders cannot be sent when they cannot. Read-only.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number, by its conn_ id.

update_crm_order_sync

Set how a number’s orders go to the CRM

Changes how one WhatsApp number sends its orders to the business’s CRM: switches it on or off, picks the CRM account used on the number, the pipeline, and the stage for each order status (a stage id from its pipelines, won or lost where the CRM keeps them apart from its stages, or keep; null puts a status back to its default). Switching on is on Starter and up, and is refused in words when a stage cannot be found in the CRM. Each call needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it saves. Returns the setting.

ParamètreTypeRequisDescription
idstringouiThe WhatsApp number, by its conn_ id.
enabledbooleannonSend this number’s orders to the CRM (Starter and up).
connector_account_idstringnonA CRM account used on this number. Choosing another account clears the pipeline and stages chosen for the last one.
pipeline_idstring | nullnonA pipeline of the account; null is the CRM’s first.
stagesobjectnonThe stage per order status, only those given. Null puts a status back to its default.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

list_quotes

See the quotes of a number

Lists the quotes of the workspace’s WhatsApp numbers, newest first, one page at a time. Each belongs to one number and one customer, and has its quote number, status, lines (product or custom line, quantity, price), discount, tax, total, deposit, the date it is valid until, and the answers to the number’s quote questions read from the chat. Read-only.

ParamètreTypeRequisDescription
connection_idstringnonOnly this WhatsApp number’s quotes.
conversation_idstringnonOnly the quotes of this chat.
contact_idstringnonOnly this customer’s quotes.
statusstringnondraft, sent, accepted, declined or expired.
follow_upstringnondue: the sent quotes to follow up today (day 2 or day 5 with no answer).
afterstringnonThe next_cursor of the previous page, to read the page after it. Omit for the first page.
limitintegernonHow many records to return. Defaults to 25, maximum 100.

get_quote

Open a quote

Reads one quote, named by its qt_ id: everything the list of quotes shows, the messages each answer was read from, the one question suggested for the answers still missing, the order an accepted quote became, and every change made to it: who, when, and from which message or tap. Read-only.

ParamètreTypeRequisDescription
idstringouiThe quote, by its qt_ id.

create_quote

Build a quote in a chat

Builds a quote for one chat, named by conversation_id: lines from the number’s product list (priced by the list) and custom lines at a price you give, an optional discount, tax rate, deposit, the date it is valid until, and terms. The totals are worked out by Cosend. Nothing is sent to the customer: the quote stays a draft until it is sent. Returns the quote.

ParamètreTypeRequisDescription
conversation_idstringouiThe chat the quote is for: its number and its customer.
itemsarray<object>oui
discountobject | object | nullnon
tax_ratestring | nullnonA percentage of the subtotal after the discount, like "16".
depositobject | object | nullnonAsked by payment link once the customer accepts: an amount, or a percentage of the total.
valid_untilstring | nullnonThe last day the customer can accept it. Needed to send it.
termsstring | nullnon
notesstring | nullnon

send_quote

Send a quote to the customer

Sends one draft quote, named by id, to its customer on WhatsApp: its PDF and a summary with Accept, Ask a question and Not now. Accept turns it into an order (with a deposit link when the quote asks for one). Each call needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it sends the quote. Returns the quote.

ParamètreTypeRequisDescription
idstringouiThe quote, by its qt_ id.
confirmation_tokenstringnonFor a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it.

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://mcp.cosend.app/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http cosend https://mcp.cosend.app/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : cosend ; URL : https://mcp.cosend.app/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : cosend ; Server URL : https://mcp.cosend.app/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "cosend": {
      "url": "https://mcp.cosend.app/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "cosend": {
      "type": "http",
      "url": "https://mcp.cosend.app/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "cosend": {
      "url": "https://mcp.cosend.app/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "cosend": {
      "httpUrl": "https://mcp.cosend.app/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.cosend]
url = "https://mcp.cosend.app/mcp"

Citer cette source

Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.

Cosend · L’Atlas · Test du

Markdown
[Cosend — L’Atlas](https://latlas.dev/mcp/app.cosend/mcp)
Méthode et limites des tests

Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.