ChatPush: WhatsApp, Telegram, MAX & SMS
v1.1.1WhatsApp, Telegram, MAX & SMS for AI agents: send messages, files and bulk mailings via ChatPush
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_account Get account
Get full ChatPush account information including token, balance, dispatch routing, sender names, subscription status and Telegram/WhatsApp sessions count. Use it to verify the token works, check whether the subscription is active, or diagnose undelivered messages (e.g. WhatsApp or Telegram not authorized). For just the balance use get_balance.
get_balance Get balance
Get ChatPush account balance, customer ID, available dispatch routing channels, and registered sender names. Use it when the user asks how much money is left, before a large mailing, or to find a valid sender_name for SMS.
get_utm_tags Get UTM tags
Get list of all UTM tags (utm_marks) configured in the ChatPush account for tracking message dispatches. Use it to reuse an existing label as utm_mark in send_message, send_bulk or send_file, so statistics stay grouped.
send_message Send message
Send a text message via WhatsApp, Telegram (tdlib), Telegram Bot, SMS, VK/OK (notify), or MAX (max), with optional cascade fallback between channels. Supports scheduling, priority, reply-to, typing simulation, and delivery callbacks. Use it when the user asks to text, message, notify or reply to one person or group chat. For many phone numbers use send_bulk; for documents, images, audio or video use send_file. Recipient: `phone` is required, except for personal Telegram (dispatch_routing ["tdlib"]) where `username` or `tdlib_user_id` can be used instead, and WhatsApp where `whatsapp_lid` can…
| Parameter | Type | Description |
|---|---|---|
text * | string | Message text. Max 3500 chars; 938 when dispatch_routing (or the account default routing) includes SMS. One SMS segment is 160 Latin characters. |
callback_url | string | URL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200). |
dispatch_routing | array | Channels in the order ChatPush should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = T… |
external_id | string | Your client-side ID for this message (idempotency ID). |
phone | string | Recipient phone in international format, e.g. 79991234567. Optional if username/tdlib_user_id is used for tdlib. |
priority | string | Sending priority. Chosen automatically if omitted. |
reply_to_message_id | string | ID of the message to reply to, taken from an incoming-message webhook. |
scheduled_at | string | Delayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead. |
sender_name | string | Registered SMS sender name (see get_balance → sender names). |
simulate_typing | boolean | Default true: show a typing indicator in WhatsApp before sending. false sends instantly. |
tdlib_user_id | string | Telegram user ID (positive = private chat, negative = group chat). tdlib channel only. |
username | string | Telegram username (format: username or @username). tdlib only. |
utm_mark | string | Label for tracking dispatches (see get_utm_tags). |
whatsapp_lid | string | WhatsApp LID. Format: 43445322325 or 43445322325@lid. WhatsApp only. |
get_delivery_status Get delivery status
Get the current status and full details of a specific message delivery by its ID. Returns status, operator info, phone, scheduled time, costs and more. Use it after send_message or send_file when the user asks whether a message was delivered or read, or why it failed — the status is explained in plain words.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Delivery ID from the send_message or send_file response. |
delete_delivery Delete delivery
Delete a sent message from WhatsApp or Telegram (tdlib). Only works for messages with final 'Delivered' status. Deletion occurs on all recipient devices. Only messages sent through ChatPush via the tdlib or whatsapp channels can be deleted; SMS cannot. Use it when the user asks to unsend or recall a message.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | integer | ID of the delivered message to delete (delivery.id from send_message). |
send_bulk Send bulk message
Send the same message to multiple phone numbers at once. Supports scheduling, UTM marks, dispatch routing cascade, Telegram usernames and tdlib user IDs. Use it for announcements, campaigns or reminders to a list of recipients. For one recipient, or when a delivery ID is needed for tracking, use send_message.
| Parameter | Type | Description |
|---|---|---|
phones_numbers * | array | Phone numbers in international format, e.g. ["79991234567", "+995598464533"]. |
text * | string | Message text. Max 3500 chars; 938 when dispatch_routing (or the account default routing) includes SMS. One SMS segment is 160 Latin characters. |
dispatch_routing | array | Channels in the order ChatPush should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = T… |
scheduled_at | string | Delayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead. |
sender_name | string | Registered SMS sender name (see get_balance → sender names). |
tdlib_user_id | string | Telegram user ID (positive = private chat, negative = group chat). tdlib channel only. |
usernames | array | Telegram usernames (tdlib only): requires "tdlib" in dispatch_routing. |
utm_mark | string | Label for tracking dispatches (see get_utm_tags). |
get_phone_info Get phone info
Look up phone number information including country, mobile operator name and brand. Useful before sending to verify the number and determine routing. Also returns the number normalized to international format, e.g. when the user wrote it with spaces or brackets.
| Parameter | Type | Description |
|---|---|---|
phone * | string | Phone in international format. Special characters allowed, e.g. +995 (598) 46-45-33. |
send_file Send file
Send a file (document, image, audio, video, contact) to a recipient via MAX, WhatsApp or Telegram (set the channel in dispatch_routing; SMS cannot carry files). File is uploaded as multipart/form-data. Images under 10MB sent natively, larger files as download links active for 7 days. Use it when the user wants to share a document, photo, voice message, video or contact card. Provide the file as exactly one of: file_path (local file), file_url (downloaded by the server) or file_base64 (with file_name). Supported: pdf, doc, docx, ppt, pptx, xls, xlsx, zip, 7z; ogg, opus, mp3, aac, amr, 3gp; jp…
| Parameter | Type | Description |
|---|---|---|
callback_url | string | URL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200). |
caption | string | Description below the file (WhatsApp only). |
customer_id | string | Internal client ID. |
dispatch_routing | array | Channels in the order ChatPush should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = T… |
external_id | string | Your client-side ID for this message (idempotency ID). |
file_base64 | string | File content as base64 (a data: URL is accepted too). Requires file_name. |
file_name | string | Filename with extension, e.g. document.pdf. Defaults to the name from file_path or file_url. |
file_path | string | Absolute path of a local file to upload (~ is expanded). |
file_url | string | Public http(s) URL of the file; the server downloads and uploads it. |
phone | string | Recipient phone in international format. Optional if username is used (tdlib). |
priority | string | Sending priority. Chosen automatically if omitted. |
reply_to_message_id | string | ID of the message to reply to, taken from an incoming-message webhook. |
scheduled_at | string | Delayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead. |
sender_name | string | Registered SMS sender name (see get_balance → sender names). |
simulate_typing | boolean | Default true: show a typing indicator in WhatsApp before sending. false sends instantly. |
tdlib_user_id | string | Telegram user ID (positive = private chat, negative = group chat). tdlib channel only. |
type | string | document = send as file, image = send as photo (WhatsApp/tdlib). |
username | string | Telegram username (tdlib only). |
utm_mark | string | Label for tracking dispatches (see get_utm_tags). |
create_webhook Create webhook
Register a webhook URL to receive real-time notifications for specific ChatPush events (e.g. whatsapp_log_out, delivery status updates, incoming messages). Use it when the user wants their server, CRM or automation (n8n, Make, Zapier) to receive replies or react to WhatsApp/Telegram events.
| Parameter | Type | Description |
|---|---|---|
types * | array | Event types: whatsapp_log_out (WhatsApp account disconnected); whatsapp_log_in (WhatsApp account connected); whatsapp_incoming_msg (incoming and outgoing WhatsApp messages (with file download links) a… |
url * | string | HTTPS URL to receive notifications as POST requests. |
get_webhook Get webhook
Get details of a specific webhook by its ID: the URL it posts to and the event types it subscribes to.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Webhook ID (from create_webhook or list_webhooks). |
list_webhooks List webhooks
List all registered webhooks for this ChatPush account. Use it to see where events are delivered or to find a webhook ID before updating or deleting it.
delete_webhook Delete webhook
Delete a webhook by ID. The webhook will stop receiving notifications.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Webhook ID to delete. |
update_webhook Update webhook
Update an existing webhook — change its URL or the list of event types it subscribes to. Pass only what should change; types replaces the whole list.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Webhook ID (from create_webhook or list_webhooks). |
types | array | New list of event types (replaces the current list). |
url | string | New URL. |
set_chat_client_name Set client name in chat
Rename a contact in the ChatPush web messenger, so operators see a person's real name instead of a phone number. The name is stored as the CRM client name of the conversation. Find the conversation by phone, Telegram username or Telegram user ID — at least one is required. If the contact has both WhatsApp and Telegram conversations, both are renamed.
| Parameter | Type | Description |
|---|---|---|
name * | string | New name for the contact, e.g. the customer name from your CRM. |
phone | string | Contact phone number in international format. |
tdlib_user_id | string | Contact's Telegram user ID. |
tdlib_username | string | Contact's Telegram username. |
get_messenger_auth_link Get messenger authorization link
Get a link to the QR-code page that connects a WhatsApp or personal Telegram account to ChatPush. Open the link in a browser and scan the code with the phone that will send messages. Use it when sending fails because the messenger is not connected (WhatsApp session not started, Telegram not authorized), or when setting the account up for the first time. Check the result afterwards with get_account.
| Parameter | Type | Description |
|---|---|---|
messenger * | string | Messenger to connect: "whatsapp" for WhatsApp, "tdlib" for a personal Telegram account. |
create_sub_customer Create sub-customer
Create a sub-client under your ChatPush multi-customer account. The response contains the sub-customer's own API token — it is shown only here, so save it. Use it when onboarding a new client of a platform built on ChatPush: each sub-customer gets a separate account, its own messengers and its own subscription. Requires a multi-customer account: a ChatPush client that may create sub-clients through the API.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the sub-customer, e.g. the client's company name. |
list_sub_customers List sub-customers
List the sub-clients of your ChatPush multi-customer account with their subscription status and whether WhatsApp and Telegram are connected. Requires a multi-customer account: a ChatPush client that may create sub-clients through the API.
| Parameter | Type | Description |
|---|---|---|
include_tokens | boolean | Show the full sub-customer tokens. Default false: tokens are masked. |
get_sub_customer Get sub-customer
Show one sub-client by its customer_id: subscription status and expiry, and whether WhatsApp and Telegram are connected. Requires a multi-customer account: a ChatPush client that may create sub-clients through the API.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | Internal ChatPush ID of the sub-customer. |
include_tokens | boolean | Show the full sub-customer tokens. Default false: tokens are masked. |