JetAPI
v1.0.3Send WhatsApp, Telegram, SMS and MAX messages, files and bulk mailings via JetAPI
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 JetAPI 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 JetAPI 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 JetAPI 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 for messengers, 160 for one SMS segment in 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 JetAPI should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = Tel… |
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 JetAPI 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. |
dispatch_routing | array | Channels in the order JetAPI should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = Tel… |
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 WhatsApp or Telegram. 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; jpeg, png, webp; mp4; vcf. Max 100 MB. Recipient rules are the same a…
| 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 JetAPI should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = Tel… |
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 JetAPI 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 JetAPI 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. |