Cosend
app.cosend/mcp
Serveur MCP OK 164 outils
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
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/app.cosend/mcp)<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
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 07:59 | OK | 463 ms | 164 |
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ètre | Type | Requis | Description |
|---|---|---|---|
| state | string | non | Filter by conversation state: open, pending, snoozed or resolved. |
| control | string | non | Filter by who holds the conversation: bot, pending_human, human or app. |
| assignee_id | string | non | Only conversations assigned to this user id. |
| connection_id | string | non | Only conversations on this WhatsApp connection. |
| label | string | non | Only conversations carrying this label. |
| unread | boolean | non | true for conversations with unread inbound messages. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| q | string | oui | What to look for. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| conversation_id | string | non | The conversation to read. |
| contact_id | string | non | Messages with one contact instead of one conversation. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| conversation_id | string | oui | |
| type | enum: "text" | "image" | "audio" | "video" | "document" | "sticker" | "location" | "contacts" … | oui | |
| text | object | non | |
| image | object | non | Meta'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),… |
| audio | object | non | Meta'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),… |
| video | object | non | Meta'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),… |
| document | object | non | Meta'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),… |
| sticker | object | non | Meta'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),… |
| location | object | non | |
| contacts | array<object> | non | |
| interactive | object | object | object | object | object | object | object | non | Meta'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… |
| template | object | non | Meta'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… |
| reaction | object | non | |
| reply_to | string | null | non | |
| metadata | object | non | |
| source | enum: "customer" | "app" | "api" | "agent" | "automation" | "ai" | "notify" | "history" … | non | Who 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_mode | enum: "auto" | "strict" | non | |
| fallback_template | object | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| q | string | non | Free-text search over the display name. |
| tag | array<string> | non | Only contacts carrying this tag. Repeat for AND semantics. |
| connection_id | string | non | Only contacts on this WhatsApp connection. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | |
| name | string | null | non | |
| phone_e164 | string | null | non | |
| bsuid | string | null | non | |
| profile_name | string | null | non | |
| attributes | object | non | Free-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… |
| tags | array<string> | non | A new contact gets these tags. A contact that already exists gets them added to its own, and keeps every tag it has. |
| locale | string | null | non | |
| timezone | string | null | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| connection_id | string | non | |
| category | enum: "marketing" | "utility" | "authentication" | oui | |
| state | enum: "granted" | "withdrawn" | "unknown" | oui | |
| source | string | non | |
| evidence | object | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| status | string | non | Only templates in this review state, e.g. approved. |
| language | string | non | Only this language, e.g. en_US. |
| category | string | non | Only this category: marketing, utility or authentication. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | |
| display_name | string | non | The 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. |
| name | string | non | The 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. |
| language | string | non | The language, e.g. "en_US". Required on every category but authentication, which takes authentication.languages instead. |
| category | enum: "marketing" | "utility" | "authentication" | oui | |
| parameter_format | enum: "positional" | "named" | non | |
| components | array<object | object> | non | Meta'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,… |
| authentication | object | null | non | An 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_values | object | non | A 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| ir | object | oui |
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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | oui | |
| name | string | oui | |
| description | string | null | non | |
| connection_id | string | oui | The 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 `… |
| ir | object | oui | The 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_note | string | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| ir | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| version_id | string | non | |
| confirm_actions | array<string> | non | |
| actions | array<enum: "integration.call" | "whatsapp.send_text" | "whatsapp.send_template" | "whatsapp.send_media" | "whatsapp.send_interactive" | "whatsapp.mark_read" | "whatsapp.typing_on" | "whatsapp.send_list" …> | oui | Every 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| version_id | string | non | |
| actions | array<enum: "integration.call" | "whatsapp.send_text" | "whatsapp.send_template" | "whatsapp.send_media" | "whatsapp.send_interactive" | "whatsapp.mark_read" | "whatsapp.typing_on" | "whatsapp.send_list" …> | oui | Every 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | The 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 `… |
| name | string | non | Its name in Cosend. Left out, it takes the recipe’s name. |
| settings | object | oui | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “AI receptionist” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Order confirmation” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Shipping and cancellation updates” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Lead capture from ads” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Lead follow-up” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Quote requests” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Appointment reminder” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Welcome and away menu” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Payment reminder” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Review request” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Missed call text-back” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation set up from the “Warehouse arrival message” recipe whose settings change. |
| settings | object | oui | The settings to change, as the recipe’s settings form asks them. A setting left out keeps the value it has. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| automation_id | string | non | Only runs of this automation. |
| status | string | non | Only runs in this state: queued, running, waiting, success, failure, cancelled, timeout, skipped or unknown. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| period | string | non | Which 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| kind | enum: "connect_number" | "reconnect_number" | "connect_integrations" | "pick_google_file" | "upgrade" | "payment_method" | oui | |
| connection_id | string | non | The 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. |
| connectors | array<string> | non | The integrations the person signs in to, by key from GET /v1/connectors. The link completes when every one of them has an account. |
| account_id | string | non | The 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. |
| plan | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| country | string | oui | The country the number belongs to, as its two-letter ISO code: "GB", "US", "DE". A number of another country is refused. |
| number | string | oui | The 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. |
| message | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| category | enum: "marketing" | "utility" | "authentication" | oui | |
| language | string | non | The language, e.g. "en_US". Required on every category but authentication, which takes authentication.languages instead. |
| parameter_format | enum: "positional" | "named" | non | |
| components | array<object | object> | non | Meta's components, as POST /v1/templates takes them; required on every category but authentication, which takes authentication instead. |
| authentication | object | null | non | An 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_values | object | non | A 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ètre | Type | Requis | Description |
|---|---|---|---|
| country | string | oui | The country the messages go to, as its two-letter ISO code, e.g. GB or DE. |
| currency | string | oui | One 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| kind | array<string> | non | Activity view only: keep only these kinds of activity. Repeat for several. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How many records to return. Defaults to 25, maximum 100. |
| view | enum: "conversation" | "activity" | oui | conversation 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ètre | Type | Requis | Description |
|---|---|---|---|
| q | string | oui | The words to look for in message text. |
| connection_id | string | non | Only messages on this WhatsApp number. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | array<string> | non | Only this WhatsApp number; repeat it for several. Omit for every number you can see. |
| part | enum: "counts" | "labels" | "today" | "week" | oui | counts 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| where | enum: "phone_message" | "cosend" | "phone_thread" | oui | cosend 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| state | enum: "open" | "pending" | "snoozed" | "resolved" | non | |
| assignee_id | string | null | non | |
| snoozed_until | string | null | non | |
| labels | array<string> | non | |
| priority | enum: "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ètre | Type | Requis | Description |
|---|---|---|---|
| ids | array<string> | oui | |
| action | enum: "resolve" | "assign" | "label" | "priority" | "read" | oui | |
| assignee_id | string | null | non | |
| labels_add | array<string> | non | |
| labels_remove | array<string> | non | |
| priority | enum: "normal" | "priority" | "high_priority" | non | |
| read | boolean | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| control | enum: "pending_human" | "human" | oui | |
| reason | string | non | |
| pause_bot_until | string | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The conversation to ask for. |
| reason | string | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| body | string | non | |
| mentions | array<string> | non | |
| noteId | string | non | The noteId in the resource path. |
| action | enum: "add" | "edit" | "delete" | oui | add, edit or delete. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| name | string | non | |
| filters | object | non | |
| shared | enum: "private" | "workspace" | non | |
| id | string | non | The id in the resource path. |
| action | enum: "save" | "update" | "delete" | oui | save, update or delete. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| view | enum: "contact" | "chats" | "consent" | "window" | oui | contact 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| name | string | null | non | |
| profile_name | string | null | non | |
| attributes | object | non | Free-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… |
| tags | array<string> | non | |
| locale | string | null | non | |
| timezone | string | null | non | |
| is_blocked | boolean | non | |
| connection_id | string | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| tags | array<string> | oui | |
| action | enum: "add" | "remove" | oui | add 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ètre | Type | Requis | Description |
|---|---|---|---|
| add | array<string> | non | |
| remove | array<string> | non | |
| contact_ids | array<string> | non | |
| filter | object | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| purge | boolean | non | true 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| from | string | oui | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| key | string | non | |
| label | string | non | |
| type | enum: "text" | "number" | "date" | "boolean" | "choice" | non | |
| choices | array<string> | non | A choice field's options, 1 to 100 of them, each once; none otherwise. |
| required | boolean | non | |
| id | string | non | The id in the resource path. |
| action | enum: "create" | "update" | "delete" | oui | create, update or delete. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | |
| file_name | string | non | |
| data_base64 | string | non | The CSV file, base64-encoded. |
| media_id | string | non | A med_ id from POST /v1/media (text/plain or text/csv), instead of data_base64. |
| id | string | non | The id in the resource path. |
| mapping | object | non | |
| new_fields | array<object> | non | |
| consent | object | null | non | |
| details | boolean | non | Also answer the rows that will not be imported (the first 100) and five contacts as the import will write them. |
| tag | string | non | A 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. |
| step | enum: "start" | "map" | "check" | "run" | oui | start 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How many records to return. Defaults to 25, maximum 100. |
| id | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| status | string | non | Only numbers in this state, e.g. active. |
| mode | string | non | Only numbers connected this way: coexistence or cloud_api. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The WhatsApp number (connection) id; for view attempt_steps, the connect attempt id. |
| view | enum: "attempt_steps" | "summary" | "import_progress" | "connect_steps" | oui | summary 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ètre | Type | Requis | Description |
|---|---|---|---|
| country | string | non | For view available: US or CA. |
| area_code | string | non | For view available: a three-digit area code. |
| contains | string | non | For view available: 2 to 7 digits the number should contain. |
| view | enum: "held" | "available" | oui | held 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ètre | Type | Requis | Description |
|---|---|---|---|
| phone_number | string | oui | |
| country | enum: "US" | "CA" | oui | |
| locality | string | non | |
| region | string | non | |
| display_name | string | oui | |
| category | enum: "alcohol" | "apparel" | "automotive" | "beauty" | "education" | "entertainment" | "event_planning" | "finance" … | oui | |
| website | string | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The Cosend number (cnm_…) to stop. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The stopped Cosend number (cnm_…) to keep. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connector | string | non | Only accounts of this integration, by its Cosend key. |
| status | string | non | Only accounts in this state: active, needs_reauth, error, disabled or revoked. |
| connection_id | string | non | Only the accounts used on this WhatsApp number. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How many records to return. Defaults to 25, maximum 100. |
| id | string | non | One 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The template: its tpl_ id, or name:language. |
| name | string | non | The template's system name, which an edit keeps. Send the template's own name, or leave it out. |
| language | string | non | The template's language, which an edit keeps. Send the template's own language, or leave it out. |
| category | enum: "marketing" | "utility" | "authentication" | non | A new category, sent to Meta when it differs. Meta refuses a change on an approved template, so that is refused here first. |
| parameter_format | enum: "positional" | "named" | non | |
| components | array<object | object> | non | Meta's components, all of them; required on every category but authentication, which takes authentication instead. |
| authentication | object | null | non | An 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_values | object | non | A 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_id | string | non | The 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_name | string | non | A 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. |
| action | enum: "edit" | "copy" | "delete" | oui | edit 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation id. |
| expand | string | non | Comma-separated extras for view details: active_version, latest_version, ir, settings. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How many records to return. Defaults to 25, maximum 100. |
| range | string | non | For view stats: today or 7d. Defaults to today. |
| view | enum: "details" | "versions" | "stats" | oui | details 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation id. |
| name | string | non | |
| description | string | null | non | |
| connection_id | string | null | non | The 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. |
| refunds | enum: "off" | "ask_first" | "on_its_own" | non | This 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation to copy. |
| name | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation id. |
| to_version | integer | oui | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation to delete. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The automation id. |
| payload | object | non | Optional. Trigger subtrees (`message`, `order`, …) laid over the sample's, field by field. |
| fail_step | string | non | Optional. 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ètre | Type | Requis | Description |
|---|---|---|---|
| automation_id | string | oui | |
| payload | object | non | |
| actions | array<enum: "integration.call" | "whatsapp.send_text" | "whatsapp.send_template" | "whatsapp.send_media" | "whatsapp.send_interactive" | "whatsapp.mark_read" | "whatsapp.typing_on" | "whatsapp.send_list" …> | oui | Every 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Marks the recipes that cannot work on this WhatsApp number. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only 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ètre | Type | Requis | Description |
|---|---|---|---|
| invoiceId | string | non | The invoice’s Stripe id, from the invoice list (view invoice). |
| view | enum: "plans" | "subscription" | "invoices" | "invoice" | oui | subscription 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ètre | Type | Requis | Description |
|---|---|---|---|
| period | string | non | today, 7d (the default), 30d, or a calendar month as month:YYYY-MM, in the workspace’s time zone. Not with from and to. |
| from | string | non | A custom period’s first day (YYYY-MM-DD), with to. |
| to | string | non | A custom period’s last day (YYYY-MM-DD), with from. |
| connection_id | array<string> | non | Only this WhatsApp number; repeat it for several. |
| kind | string | non | For card response: first (the default) for each chat’s first answer, every for every answer. |
| card | enum: "response" | "receptionist" | "numbers" | "team" | "hours" | oui | response 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | oui | |
| mime_type | string | oui | One 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… |
| filename | string | null | non | |
| data_base64 | string | oui |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| business_name | string | non | |
| what_you_do | string | non | |
| tone | enum: "friendly" | "neutral" | "formal" | non | |
| may_quote_prices | boolean | non | |
| links | array<object> | non | |
| never_say | array<string> | non | |
| confidence_threshold | number | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How many records to return. Defaults to 25, maximum 100. |
| view | enum: "sources" | "summary" | "questions" | oui | sources 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| kind | enum: "file" | "text" | "url" | "place" | non | |
| media_id | string | non | A file uploaded on this automation’s number with POST /v1/media. A file uploaded on another number is refused with media_other_number. |
| text | string | non | |
| title | string | non | |
| url | string | non | |
| sourceId | string | non | The sourceId in the resource path. |
| suggestionId | string | non | The suggestionId in the resource path. |
| accepted | boolean | non | |
| question | string | non | |
| answer | string | non | |
| action | enum: "add" | "remove" | "refresh" | "review_suggestion" | "answer" | oui | add 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| message | string | oui | |
| history | array<object> | non | |
| automation_id | string | oui | The 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_id | string | non | For 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_message | string | non | Required with connection_id, and only with it: the message a customer is sent when the assistant cannot answer. |
| escalate_keywords | array<string> | non | With connection_id: the words that pass a chat to a person. |
| closed | object | non | With 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_id | string | null | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only the actions on this WhatsApp number. |
| conversation_id | string | non | Only the actions in this conversation. |
| state | string | non | Only 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. |
| capability | string | non | Only the actions of this capability: booking, crm, payments or orders. |
| test | string | non | true for the test actions from Try it only, false for the rest. |
| include_lookups | boolean | non | true to list the lookups too. Lookups: what the AI read to answer, such as free times; left out unless asked. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| setup | string | oui | A type of business, by its `key`. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| procedures | array<object> | oui | The whole list, in order: each a condition (`when`) and one to four steps (`steps`) that follow it. It replaces the list there. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| type | enum: "customer_service" | "sales" | non | customer_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. |
| booking | object | non | Bookings. 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… |
| crm | object | non | The 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… |
| payments | object | non | Payments: 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.… |
| selling | object | non | Selling. 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… |
| permissions | object | non | What it may do on its own, per action type: only the types sent change. An owner or an admin only. |
| location | object | object | null | non | The 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| tell_customer | boolean | non | Send the customer a WhatsApp message saying the team undid it (while WhatsApp lets a message through). On unless set to false. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| delivery_mode | enum: "stored" | "direct" | non | |
| retention_months | non | Retention is set once for the whole account, not per connection. Set it with PATCH /v1/account/data-policy. | |
| override_callback_url | string | null | non | Your 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_bookings | enum: "ask_me_first" | "send_right_away" | non | Before 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_conflicts | boolean | non | With 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_name | string | non | |
| about | string | non | |
| description | string | null | non | |
| address | string | null | non | |
| string | null | non | ||
| websites | array<string> | non | |
| vertical | enum: "alcohol" | "apparel" | "automotive" | "beauty" | "education" | "entertainment" | "event_planning" | "finance" … | null | non | |
| profile_picture | object | non | |
| action | enum: "settings" | "display_name" | "profile" | oui | settings 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| action | enum: "sync" | "recheck_payment" | "retry_verification" | oui | sync 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| days | string | non | With view appointments: how many days ahead to read, 1 to 30. Default 7. |
| spreadsheet_id | string | non | With view spreadsheets: read this one spreadsheet and its tabs. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How many records to return. Defaults to 25, maximum 100. |
| view | enum: "appointments" | "spreadsheets" | "forms" | oui | spreadsheets 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| connection_id | string | non | The connection_id in the resource path. |
| name | string | non | |
| config | object | non | |
| action | enum: "add_number" | "remove_number" | "update" | "test" | oui | update 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_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| title | string | oui | The spreadsheet’s name, in the owner’s words. |
| tab | string | oui | The one tab’s name. |
| columns | array<object> | oui | The header row, first column first: 26 at most, A to Z. |
| example_row | array<string> | non | One 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ètre | Type | Requis | Description |
|---|---|---|---|
| state | string | non | With view list: only approvals in this state. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How many records to return. Defaults to 25, maximum 100. |
| id | string | non | The id in the resource path. |
| view | enum: "list" | "one" | "action_types" | oui | list 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ètre | Type | Requis | Description |
|---|---|---|---|
| action | string | oui | |
| arguments | object | non | |
| preview | string | oui | |
| risk | enum: "low" | "medium" | "high" | non | |
| run_id | string | null | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| note | string | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| note | string | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| action_type | string | oui | |
| mode | enum: "ask" | "auto_approve" | "auto_reject" | oui | |
| risk_acknowledged | boolean | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | |
| connection_id | string | oui | |
| definition | object | oui |
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ètre | Type | Requis | Description |
|---|---|---|---|
| status | array<string> | non | Only campaigns in this state, e.g. draft or sending. Repeat for several. |
| connection_id | array<string> | non | Only campaigns on this WhatsApp number. Repeat for several. |
| q | string | non | Only campaigns whose name contains this. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| name | string | non | |
| connection_id | string | null | non | |
| auto_retry | boolean | non | Retries 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_hour | integer | null | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The id in the resource path. |
| name | string | non | |
| connection_id | string | non | |
| template_id | string | null | non | |
| variable_map | array<object> | non | |
| cards | array<object> | non | |
| header | object | object | object | null | non | |
| buttons | array<object | object> | non | |
| audience | object | non | |
| schedule | object | null | non | |
| quiet_hours | object | non | |
| track_clicks | boolean | non | |
| kind | enum: "one" | "sequence" | "ab" | non | |
| steps | array<object> | non | |
| ab | object | null | non | |
| reply_rules | array<object> | non | |
| let_join | boolean | non | |
| auto_retry | boolean | non | Retries 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_hour | integer | null | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The campaign to send. |
| estimate_id | string | oui | |
| confirm_text | string | non | |
| when | enum: "now" | "scheduled" | oui | now sends the draft now; scheduled schedules it for the time the draft has, in its time zone. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only this WhatsApp number’s products. |
| q | string | non | Words; each must start a word of the product’s name, SKU or a tag. |
| active | string | non | true for the products switched on, false for those off. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | The number the product belongs to. Optional with an API key made for one number, which already names it. |
| name | string | non | |
| photos | array<string> | non | Up 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. |
| variants | array<object> | non | Sizes, flavours or colours, each with its own price and SKU. Written whole. |
| price_tiers | array<object> | non | The price of a quantity, e.g. 1 for 590 and 3 for 1500. Each quantity once. Written whole. |
| currency | string | null | non | ISO 4217. Null uses the workspace’s currency (PATCH /v1/organizations/{id}). |
| short_description | string | null | non | 1 to 3 lines, shown on the product card. |
| details | string | null | non | |
| stock | enum: "in_stock" | "low" | "out_of_stock" | non | |
| stock_count | integer | null | non | |
| delivery_note | string | null | non | |
| tags | array<string> | non | |
| sku | string | null | non | |
| active | boolean | non | |
| answers | array<object> | non | Questions and the answers the business approved. Only these are ever sent automatically. Written whole. |
| id | string | non | The product to change, by its prd_ id. Left out, a new product is added. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only this WhatsApp number’s replies. |
| q | string | non | Words; each must start a word of the reply’s shortcut, folder or words. |
| folder | string | non | Only the replies in this folder. |
| shortcut | string | non | Every language version of one shortcut, e.g. precio, with or without the /. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only this WhatsApp number’s orders. |
| conversation_id | string | non | Only the orders of this chat. |
| contact_id | string | non | Only this customer’s orders. |
| status | string | non | draft, awaiting_customer, confirmed, out_for_delivery, delivered, cancelled, returned or problem. |
| payment_status | string | non | unpaid, deposit_paid, paid, cod_collected or refunded. |
| view | string | non | An 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). |
| from | string | non | Made on or after this day (YYYY-MM-DD). |
| to | string | non | Made on or before this day (YYYY-MM-DD). |
| city | string | non | Only orders delivered to this city. |
| ad_id | string | non | Only orders whose chat came from this Click-to-WhatsApp ad, by its ad_ id. |
| sort | string | non | newest (the default) or oldest first. |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The chat to read, by its cnv_ id. |
| from | enum: "seller" | "composer" | non | composer 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The order, by its ord_ id. |
| status | enum: "draft" | "awaiting_customer" | "confirmed" | "out_for_delivery" | "delivered" | "cancelled" | "returned" | "problem" | non | awaiting_customer sends the order to the customer for their Confirm tap (Starter and up). The other statuses are recorded as they are set. |
| payment_status | enum: "unpaid" | "deposit_paid" | "paid" | "cod_collected" | "refunded" | non | Set by the seller. A payment screenshot alone does not mark it paid. |
| payment_method | enum: "cod" | "payment_link" | "bank_transfer" | null | non | |
| items | array<object> | non | |
| delivery | object | non | |
| notes | string | null | non | |
| cancel_reason | enum: "changed_mind" | "too_expensive" | "too_slow" | "ordered_elsewhere" | "other" | "expired" | "seller" | null | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| ids | array<string> | oui | The orders, by ord_ id. |
| action | enum: "out_for_delivery" | "assign" | "export_csv" | "packing_slips" | oui | |
| assignee_id | string | null | non | For assign: a member’s usr_ id, or null to take the assignee off. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| ids | array<string> | oui | The orders, by ord_ id. |
| action | enum: "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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The WhatsApp number, by its conn_ id. |
| ai_drafts | boolean | non | |
| payment_methods | array<enum: "cod" | "payment_link" | "bank_transfer"> | non | |
| delivery_fee | string | null | non | |
| delivery_time | string | null | non | How long delivery takes, as you tell customers, like "2 to 3 business days". Null or empty: not said. |
| delivery_zones | array<object> | non | |
| confirm_before_shipping | boolean | non | |
| reminder_hours | integer | non | |
| deposit | object | null | non | |
| seller_confirm_by | enum: "email" | "whatsapp" | non | |
| seller_whatsapp | string | null | non | |
| delivery_messages | boolean | non | |
| sheets | object | null | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The WhatsApp number, by its conn_ id. |
| who_answers | enum: "card_then_ai" | "ai_first" | "card_then_you" | non | |
| delay_seconds | number | number | number | number | number | non | |
| hours | enum: "always" | "outside_business_hours" | non | |
| opening_hours | object | non | |
| weekly_hours | object | non | |
| greeting_id | string | null | non | |
| product_id | string | null | non | |
| question | string | non | |
| ads | array<object> | non | |
| follow_up | object | non | |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The follow-up, by its adl_ id. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| period | string | non | today, 7d (the default), 30d, or a calendar month as month:YYYY-MM, in the workspace’s time zone. Not with from and to. |
| from | string | non | A custom period’s first day (YYYY-MM-DD), with to. |
| to | string | non | A custom period’s last day (YYYY-MM-DD), with from. |
| connection_id | array<string> | non | Only 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The WhatsApp number, by its conn_ id. |
| enabled | boolean | non | Send this number’s orders to the CRM (Starter and up). |
| connector_account_id | string | non | A CRM account used on this number. Choosing another account clears the pipeline and stages chosen for the last one. |
| pipeline_id | string | null | non | A pipeline of the account; null is the CRM’s first. |
| stages | object | non | The stage per order status, only those given. Null puts a status back to its default. |
| confirmation_token | string | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| connection_id | string | non | Only this WhatsApp number’s quotes. |
| conversation_id | string | non | Only the quotes of this chat. |
| contact_id | string | non | Only this customer’s quotes. |
| status | string | non | draft, sent, accepted, declined or expired. |
| follow_up | string | non | due: the sent quotes to follow up today (day 2 or day 5 with no answer). |
| after | string | non | The next_cursor of the previous page, to read the page after it. Omit for the first page. |
| limit | integer | non | How 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| conversation_id | string | oui | The chat the quote is for: its number and its customer. |
| items | array<object> | oui | |
| discount | object | object | null | non | |
| tax_rate | string | null | non | A percentage of the subtotal after the discount, like "16". |
| deposit | object | object | null | non | Asked by payment link once the customer accepts: an amount, or a percentage of the total. |
| valid_until | string | null | non | The last day the customer can accept it. Needed to send it. |
| terms | string | null | non | |
| notes | string | null | non |
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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The quote, by its qt_ id. |
| confirmation_token | string | non | For 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.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://mcp.cosend.app/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http cosend https://mcp.cosend.app/mcpCustomize > Connectors > + Add > Add custom connector ; Name : cosend ; URL : https://mcp.cosend.app/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : cosend ; Server URL : https://mcp.cosend.app/mcp ; Create as a plugin{
"mcpServers": {
"cosend": {
"url": "https://mcp.cosend.app/mcp"
}
}
}{
"mcpServers": {
"cosend": {
"type": "http",
"url": "https://mcp.cosend.app/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"cosend": {
"url": "https://mcp.cosend.app/mcp"
}
}
}{
"mcpServers": {
"cosend": {
"httpUrl": "https://mcp.cosend.app/mcp"
}
}
}[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
[Cosend — L’Atlas](https://latlas.dev/mcp/app.cosend/mcp)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.