JetAPI

v1.0.3
io.github.jetapi/jetapi-mcp-server Checked 3 days ago Published 2 months ago

Send 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…

ParameterTypeDescription
text *stringMessage text. Max 3500 chars for messengers, 160 for one SMS segment in Latin characters.
callback_urlstringURL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200).
dispatch_routingarrayChannels 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_idstringYour client-side ID for this message (idempotency ID).
phonestringRecipient phone in international format, e.g. 79991234567. Optional if username/tdlib_user_id is used for tdlib.
prioritystringSending priority. Chosen automatically if omitted.
reply_to_message_idstringID of the message to reply to, taken from an incoming-message webhook.
scheduled_atstringDelayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead.
sender_namestringRegistered SMS sender name (see get_balance → sender names).
simulate_typingbooleanDefault true: show a typing indicator in WhatsApp before sending. false sends instantly.
tdlib_user_idstringTelegram user ID (positive = private chat, negative = group chat). tdlib channel only.
usernamestringTelegram username (format: username or @username). tdlib only.
utm_markstringLabel for tracking dispatches (see get_utm_tags).
whatsapp_lidstringWhatsApp 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.

ParameterTypeDescription
id *integerDelivery 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.

ParameterTypeDescription
delivery_id *integerID 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.

ParameterTypeDescription
phones_numbers *arrayPhone numbers in international format, e.g. ["79991234567", "+995598464533"].
text *stringMessage text.
dispatch_routingarrayChannels 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_atstringDelayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead.
sender_namestringRegistered SMS sender name (see get_balance → sender names).
tdlib_user_idstringTelegram user ID (positive = private chat, negative = group chat). tdlib channel only.
usernamesarrayTelegram usernames (tdlib only): requires "tdlib" in dispatch_routing.
utm_markstringLabel 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.

ParameterTypeDescription
phone *stringPhone 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…

ParameterTypeDescription
callback_urlstringURL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200).
captionstringDescription below the file (WhatsApp only).
customer_idstringInternal client ID.
dispatch_routingarrayChannels 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_idstringYour client-side ID for this message (idempotency ID).
file_base64stringFile content as base64 (a data: URL is accepted too). Requires file_name.
file_namestringFilename with extension, e.g. document.pdf. Defaults to the name from file_path or file_url.
file_pathstringAbsolute path of a local file to upload (~ is expanded).
file_urlstringPublic http(s) URL of the file; the server downloads and uploads it.
phonestringRecipient phone in international format. Optional if username is used (tdlib).
prioritystringSending priority. Chosen automatically if omitted.
reply_to_message_idstringID of the message to reply to, taken from an incoming-message webhook.
scheduled_atstringDelayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead.
sender_namestringRegistered SMS sender name (see get_balance → sender names).
simulate_typingbooleanDefault true: show a typing indicator in WhatsApp before sending. false sends instantly.
tdlib_user_idstringTelegram user ID (positive = private chat, negative = group chat). tdlib channel only.
typestringdocument = send as file, image = send as photo (WhatsApp/tdlib).
usernamestringTelegram username (tdlib only).
utm_markstringLabel 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.

ParameterTypeDescription
types *arrayEvent 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 *stringHTTPS 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.

ParameterTypeDescription
id *integerWebhook 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.

ParameterTypeDescription
id *integerWebhook 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.

ParameterTypeDescription
id *integerWebhook ID (from create_webhook or list_webhooks).
typesarrayNew list of event types (replaces the current list).
urlstringNew URL.