2Chat MCP
_2chat_mcpManage 2Chat WhatsApp, WhatsApp Business API, SMS, voice numbers, contacts, tags, and conversations through 2Chat's hosted MCP server.
Acciones disponibles (75)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Add tag to conversation_2CHAT_MCP_ADD_TAG_TO_CONVERSATIONAcciónPut an existing tag on a conversation. Use create_tag to create a new tag and tag the conversation in one call.
_2CHAT_MCP_ADD_TAG_TO_CONVERSATIONAcciónPut an existing tag on a conversation. Use create_tag to create a new tag and tag the conversation in one call.
Parámetros de entrada
tag_uuidstringObligatorioUUID of the tag (starts with TAG). Get it from list_tags.
session_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Assign conversation to team_2CHAT_MCP_ASSIGN_CONVERSATION_TO_TEAMAcciónAssign a WhatsApp or WABA conversation to a team of the account, so every member can open it.
Replaces the team it was assigned to before, if any; the user assignment stays.
_2CHAT_MCP_ASSIGN_CONVERSATION_TO_TEAMAcciónAssign a WhatsApp or WABA conversation to a team of the account, so every member can open it. Replaces the team it was assigned to before, if any; the user assignment stays.
Parámetros de entrada
team_uuidstringObligatorioUUID of a team of the account. Get it from list_account_teams.
session_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Assign conversation to user_2CHAT_MCP_ASSIGN_CONVERSATION_TO_USERAcciónAssign a WhatsApp or WABA conversation to a user of the account, as in the live chat.
Replaces the user it was assigned to before, if any; the team assignment stays. Admins can assign
any active user; other users can only assign users who have access to the conversation's number.
_2CHAT_MCP_ASSIGN_CONVERSATION_TO_USERAcciónAssign a WhatsApp or WABA conversation to a user of the account, as in the live chat. Replaces the user it was assigned to before, if any; the team assignment stays. Admins can assign any active user; other users can only assign users who have access to the conversation's number.
Parámetros de entrada
user_uuidstringObligatorioUUID of an active user of the account (starts with USR). Get it from list_account_users.
session_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Calculate waba template cost_2CHAT_MCP_CALCULATE_WABA_TEMPLATE_COSTAcciónCalculate the cost of sending a WABA template message for a given plan, country, and template type.
_2CHAT_MCP_CALCULATE_WABA_TEMPLATE_COSTAcciónCalculate the cost of sending a WABA template message for a given plan, country, and template type.
Parámetros de entrada
countrystringObligatorioTwo-letter ISO country code of the recipient (e.g. "US", "BR", "MX").
plan_namestringThe 2Chat plan name (e.g. "single", "basic", "pro"). Defaults to the authenticated account's plan.
template_typestringObligatorioThe WABA template category (e.g. "marketing", "utility", "authentication").
Parámetros de salida
Sin parámetros.
Cancel number reservation_2CHAT_MCP_CANCEL_NUMBER_RESERVATIONAcciónCancel an active virtual phone number reservation, releasing the number back into the available pool.
_2CHAT_MCP_CANCEL_NUMBER_RESERVATIONAcciónCancel an active virtual phone number reservation, releasing the number back into the available pool.
Parámetros de entrada
reservation_uuidstringObligatorioThe reservation UUID, from reserve_number or list_number_reservations.
Parámetros de salida
Sin parámetros.
Check if number is on whatsapp_2CHAT_MCP_CHECK_IF_NUMBER_IS_ON_WHATSAPPAcciónCheck whether a single phone number has a WhatsApp account, so the user does not message a number that cannot receive WhatsApp.
Use it for one number at a time that the user already has (a customer, lead or contact they
named), typically right before send_whatsapp_message. The check runs from one of the user's
own connected WhatsApp numbers and every call is billed to the user's 2Chat account. It
returns only whether the number is valid and reachable on WhatsApp, never profile details.
Do not use it to scan, enumerate or bulk-verify lists of numbers, or to look up people the
user has no relationship with; refuse such requests.
_2CHAT_MCP_CHECK_IF_NUMBER_IS_ON_WHATSAPPAcciónCheck whether a single phone number has a WhatsApp account, so the user does not message a number that cannot receive WhatsApp. Use it for one number at a time that the user already has (a customer, lead or contact they named), typically right before send_whatsapp_message. The check runs from one of the user's own connected WhatsApp numbers and every call is billed to the user's 2Chat account. It returns only whether the number is valid and reachable on WhatsApp, never profile details. Do not use it to scan, enumerate or bulk-verify lists of numbers, or to look up people the user has no relationship with; refuse such requests.
Parámetros de entrada
phone_numberstringObligatorioThe single phone number to check in E.164 format (e.g. +1234567890), provided by the user.
source_numberstringObligatorioOne of the user's own connected WhatsApp numbers in E.164 format (e.g. +1234567890). You can get them using the get_whatsapp_numbers tool.
Parámetros de salida
Sin parámetros.
Connect whatsapp number_2CHAT_MCP_CONNECT_WHATSAPP_NUMBERAcciónBring a WhatsApp Web number connected to 2Chat online and generate a QR code for authentication.
_2CHAT_MCP_CONNECT_WHATSAPP_NUMBERAcciónBring a WhatsApp Web number connected to 2Chat online and generate a QR code for authentication.
Parámetros de entrada
channel_uuidstringObligatorioUUID of the WhatsApp channel (e.g. WPN582e4db7-...). Obtain via get_whatsapp_numbers.
Parámetros de salida
Sin parámetros.
Create contact_2CHAT_MCP_CREATE_CONTACTAcciónCreate a new contact in your 2Chat account.
_2CHAT_MCP_CREATE_CONTACTAcciónCreate a new contact in your 2Chat account.
Parámetros de entrada
last_namestringContact's last name (optional).
first_namestringObligatorioContact's first name (required).
channel_uuidstringWhatsApp channel UUID to sync this contact to a connected number (optional).
contact_detailarrayObligatorioList of detail objects, each with 'type' and 'value' keys. Allowed types: 'E' (email), 'A' (address), 'PH' (phone), 'WAPH' (WhatsApp phone). Phone values must be in international (E.164) format. At least one detail required.
profile_pic_urlstringPublicly accessible image URL for the contact's avatar (optional).
Parámetros de salida
Sin parámetros.
Create conversation note_2CHAT_MCP_CREATE_CONVERSATION_NOTEAcciónAdd an internal note to a WhatsApp or WABA conversation. Notes are only visible to the team in the live chat; they are never sent to the contact.
To mention users, list their UUIDs in `mentions` and write each UUID in `text` where the mention
should go (a mentioned UUID missing from `text` is put at the beginning). Mentioned users get notified
and must be able to open the conversation.
_2CHAT_MCP_CREATE_CONVERSATION_NOTEAcciónAdd an internal note to a WhatsApp or WABA conversation. Notes are only visible to the team in the live chat; they are never sent to the contact. To mention users, list their UUIDs in `mentions` and write each UUID in `text` where the mention should go (a mentioned UUID missing from `text` is put at the beginning). Mentioned users get notified and must be able to open the conversation.
Parámetros de entrada
textstringObligatorioThe note, plain text, up to 2000 characters.
mentionsanyOptional UUIDs of users to mention (up to 20). Get them from list_account_users.
session_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Create tag_2CHAT_MCP_CREATE_TAGAcciónCreate a tag in the 2Chat account and, optionally, put it on a conversation in the same call.
_2CHAT_MCP_CREATE_TAGAcciónCreate a tag in the 2Chat account and, optionally, put it on a conversation in the same call.
Parámetros de entrada
namestringObligatorioName of the tag, up to 100 characters. Unique per account, ignoring case.
session_keystringOptional conversation to put the tag on (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Create waba template_2CHAT_MCP_CREATE_WABA_TEMPLATEAcciónCreate a WABA (WhatsApp Business API) message template and submit it to WhatsApp for review.
Approval is not instant: the template is created with status PENDING and reviewed by WhatsApp,
usually within minutes but occasionally up to 24 hours. It cannot be sent until its status is
APPROVED — poll get_waba_template with the returned uuid, or subscribe to the
whatsapp.waba.template.status.updated webhook. Some templates (authentication ones in particular)
are approved during this call, so read template.status instead of assuming PENDING.
WhatsApp keys a template by name + language, so the same name can be reused once per language;
that is how a template is offered in several languages. A rejected template cannot be edited —
fix the content and create a new one. WhatsApp allows 40 creations per hour per WABA number and
100 per hour per 2Chat account.
_2CHAT_MCP_CREATE_WABA_TEMPLATEAcciónCreate a WABA (WhatsApp Business API) message template and submit it to WhatsApp for review. Approval is not instant: the template is created with status PENDING and reviewed by WhatsApp, usually within minutes but occasionally up to 24 hours. It cannot be sent until its status is APPROVED — poll get_waba_template with the returned uuid, or subscribe to the whatsapp.waba.template.status.updated webhook. Some templates (authentication ones in particular) are approved during this call, so read template.status instead of assuming PENDING. WhatsApp keys a template by name + language, so the same name can be reused once per language; that is how a template is offered in several languages. A rejected template cannot be edited — fix the content and create a new one. WhatsApp allows 40 creations per hour per WABA number and 100 per hour per 2Chat account.
Parámetros de entrada
bodystringMessage body, up to 1024 characters, with variables written {{1}}, {{2}}, ... Required except for AUTHENTICATION templates, where WhatsApp writes the body.
namestringObligatorioTemplate name. Lowercase letters, digits and underscores only, up to 512 characters.
footerstringOptional footer text, up to 60 characters. No variables allowed.
headeranyOptional header. Text header: {"format": "TEXT", "text": "..."} (max 60 chars, at most one variable). Media header: {"format": "IMAGE"|"VIDEO"|"DOCUMENT", "media_url": "https://..."} — a publicly reachable sample file used only for WhatsApp's review (JPEG/PNG up to 5 MB, MP4 up to 16 MB, PDF up to 100 MB). text and media_url are mutually exclusive.
buttonsanyOptional list of button objects. QUICK_REPLY {"type": "QUICK_REPLY", "text": "..."} up to 10; URL {"type": "URL", "text": "...", "url": "...", "example": "..."} up to 2, with example required when the URL contains {{1}}; PHONE_NUMBER {"type": "PHONE_NUMBER", "text": "...", "phone_number": "..."} up to 1; OTP {"type": "OTP", "otp_type": "COPY_CODE"|"ONE_TAP", "text": "..."} exactly one, AUTHENTICATION only. QUICK_REPLY buttons cannot be mixed with URL or PHONE_NUMBER buttons, and at most 2 call-to-action buttons are allowed in total.
categorystringObligatorioOne of MARKETING, UTILITY or AUTHENTICATION. WhatsApp may recategorize the template — read template.category in the response.
examplesanySample values per component, e.g. {"body": ["Ada"], "header": ["A-8871"], "button": ["summer"]}. Required for every component that contains variables — one value per variable, in order. The keys match the params keys of send_waba_message.
languagestringObligatorioWhatsApp language code, exactly as WhatsApp lists it — lowercase language, uppercase region, joined by an underscore (e.g. en, en_US, es_MX, pt_BR). "es" and "es_MX" are different templates.
descriptionstringOptional note stored with the template in 2Chat. Only kept for Gupshup-backed channels.
phone_numberstringObligatorioYour WABA number in E.164 format (e.g. +5215512345432).
code_expiration_minutesintegerAUTHENTICATION only. Between 1 and 90. Adds an expiry line to the footer. Omit or 0 to skip.
add_security_recommendationbooleanAUTHENTICATION only. When true, WhatsApp appends its "do not share this code" line.
Parámetros de salida
Sin parámetros.
Delete contact_2CHAT_MCP_DELETE_CONTACTAcciónPermanently delete a contact from your 2Chat account.
_2CHAT_MCP_DELETE_CONTACTAcciónPermanently delete a contact from your 2Chat account.
Parámetros de entrada
contact_uuidstringObligatorioThe UUID of the contact to delete (e.g. CONd9bedfb7-...).
Parámetros de salida
Sin parámetros.
Delete tag_2CHAT_MCP_DELETE_TAGAcciónDelete a tag and remove it from every conversation that has it. This cannot be undone.
_2CHAT_MCP_DELETE_TAGAcciónDelete a tag and remove it from every conversation that has it. This cannot be undone.
Parámetros de entrada
tag_uuidstringObligatorioUUID of the tag (starts with TAG). Get it from list_tags.
Parámetros de salida
Sin parámetros.
Delete virtual number_2CHAT_MCP_DELETE_VIRTUAL_NUMBERAcciónDelete a virtual phone number from your 2Chat account.
The number is cancelled and stops working, and the caller IDs and webhooks attached to it are
deleted. This cannot be undone with these tools.
_2CHAT_MCP_DELETE_VIRTUAL_NUMBERAcciónDelete a virtual phone number from your 2Chat account. The number is cancelled and stops working, and the caller IDs and webhooks attached to it are deleted. This cannot be undone with these tools.
Parámetros de entrada
virtual_number_uuidstringObligatorioThe UUID of the virtual number to delete. Must start with DID (e.g. DID64a54de2-8ebe-4c01-838f-a2235815dab4). Obtain via list_virtual_numbers.
Parámetros de salida
Sin parámetros.
Delete waba template_2CHAT_MCP_DELETE_WABA_TEMPLATEAcciónDelete a WABA message template from the 2Chat account and from the messaging provider (Meta or Gupshup).
Deletion is permanent and cannot be undone. If the template has multiple language variants, all variants are deleted.
_2CHAT_MCP_DELETE_WABA_TEMPLATEAcciónDelete a WABA message template from the 2Chat account and from the messaging provider (Meta or Gupshup). Deletion is permanent and cannot be undone. If the template has multiple language variants, all variants are deleted.
Parámetros de entrada
template_uuidstringObligatorioThe UUID of the template to delete, starting with TMP (e.g. TMP1b44a079-c75c-4403-bc8f-a75c4ce5cd23).
Parámetros de salida
Sin parámetros.
Disconnect whatsapp number_2CHAT_MCP_DISCONNECT_WHATSAPP_NUMBERAcciónTake a WhatsApp Web number connected to 2Chat offline without removing it from 2Chat.
While disconnected, the number cannot send or receive messages through 2Chat.
_2CHAT_MCP_DISCONNECT_WHATSAPP_NUMBERAcciónTake a WhatsApp Web number connected to 2Chat offline without removing it from 2Chat. While disconnected, the number cannot send or receive messages through 2Chat.
Parámetros de entrada
channel_uuidstringObligatorioUUID of the WhatsApp channel (e.g. WPN582e4db7-...). Obtain via get_whatsapp_numbers.
Parámetros de salida
Sin parámetros.
Get available numbers_2CHAT_MCP_GET_AVAILABLE_NUMBERSAcciónGet specific available virtual phone numbers within a number group that you can reserve and purchase.
_2CHAT_MCP_GET_AVAILABLE_NUMBERSAcciónGet specific available virtual phone numbers within a number group that you can reserve and purchase.
Parámetros de entrada
group_idstringObligatorioThe group ID from search_number_groups.
number_containsstringFilter numbers containing this digit sequence (optional).
Parámetros de salida
Sin parámetros.
Get billing info_2CHAT_MCP_GET_BILLING_INFOAcciónGet current account billing, plan limits, and API usage for the authenticated account.
Returns:
A dict with success status, an `account` object (name, uuid, on_trial, blocked,
created_at, expires_at), a `limits` object (requests_per_minute), and a `usage`
object (api_request_count, max_api_request_count, number_check_count,
max_number_check_count).
_2CHAT_MCP_GET_BILLING_INFOAcciónGet current account billing, plan limits, and API usage for the authenticated account. Returns: A dict with success status, an `account` object (name, uuid, on_trial, blocked, created_at, expires_at), a `limits` object (requests_per_minute), and a `usage` object (api_request_count, max_api_request_count, number_check_count, max_number_check_count).
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
Get call details_2CHAT_MCP_GET_CALL_DETAILSAcciónGet full details of a single call by its CDR UUID.
_2CHAT_MCP_GET_CALL_DETAILSAcciónGet full details of a single call by its CDR UUID.
Parámetros de entrada
call_uuidstringObligatorioThe UUID of the call detail record. Obtain via get_call_history.
Parámetros de salida
Sin parámetros.
Get call history_2CHAT_MCP_GET_CALL_HISTORYAcciónGet call detail records (CDRs) from your 2Chat account, optionally filtered.
_2CHAT_MCP_GET_CALL_HISTORYAcciónGet call detail records (CDRs) from your 2Chat account, optionally filtered.
Parámetros de entrada
pageintegerPage number (0-indexed, default 0).
directionstringFilter by direction; one of 'inbound' or 'outbound' (optional, default no filter).
to_numberstringFor outbound calls, filter by called number in E.164 format (optional).
from_numberstringFor inbound calls, filter by calling number in E.164 format (optional).
Parámetros de salida
Sin parámetros.
Get call price_2CHAT_MCP_GET_CALL_PRICEAcciónEstimate the per-minute outbound call price to a destination phone number.
_2CHAT_MCP_GET_CALL_PRICEAcciónEstimate the per-minute outbound call price to a destination phone number.
Parámetros de entrada
phone_numberstringObligatorioDestination number in international format, with or without leading '+'.
Parámetros de salida
Sin parámetros.
Get contact_2CHAT_MCP_GET_CONTACTAcciónRetrieve a single contact by its UUID.
_2CHAT_MCP_GET_CONTACTAcciónRetrieve a single contact by its UUID.
Parámetros de entrada
contact_uuidstringObligatorioThe UUID of the contact (e.g. CON58147f7c-3756-4ca1-893c-c3360342b424).
Parámetros de salida
Sin parámetros.
Get conversation assignment_2CHAT_MCP_GET_CONVERSATION_ASSIGNMENTAcciónGet the user and the team a WhatsApp or WABA conversation is assigned to.
_2CHAT_MCP_GET_CONVERSATION_ASSIGNMENTAcciónGet the user and the team a WhatsApp or WABA conversation is assigned to.
Parámetros de entrada
session_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176). Get it from search_conversations, list_whatsapp_conversations or list_waba_conversations.
Parámetros de salida
Sin parámetros.
Get conversation tags_2CHAT_MCP_GET_CONVERSATION_TAGSAcciónGet the tags a conversation has.
_2CHAT_MCP_GET_CONVERSATION_TAGSAcciónGet the tags a conversation has.
Parámetros de entrada
session_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Get did types_2CHAT_MCP_GET_DID_TYPESAcciónList all available DID (Direct Inward Dialing) number types for purchasing virtual phone numbers.
Known types are global, local, mobile, national, sharedcost, and tollfree. Use them
to filter number group searches.
Returns:
A dict with success status and a data.did_types list, each with id and name.
_2CHAT_MCP_GET_DID_TYPESAcciónList all available DID (Direct Inward Dialing) number types for purchasing virtual phone numbers. Known types are global, local, mobile, national, sharedcost, and tollfree. Use them to filter number group searches. Returns: A dict with success status and a data.did_types list, each with id and name.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
Get number cities_2CHAT_MCP_GET_NUMBER_CITIESAcciónGet available cities for a given country, optionally filtered by region, to browse virtual phone numbers for purchase.
_2CHAT_MCP_GET_NUMBER_CITIESAcciónGet available cities for a given country, optionally filtered by region, to browse virtual phone numbers for purchase.
Parámetros de entrada
regionstringRegion ID to filter cities, from get_number_regions (optional).
countrystringObligatorioTwo-letter ISO country code (e.g. "US", "BR", "DE").
Parámetros de salida
Sin parámetros.
Get number regions_2CHAT_MCP_GET_NUMBER_REGIONSAcciónGet available regions for a given country to browse virtual phone numbers for purchase.
This is the first step when searching for purchasable phone numbers by location.
_2CHAT_MCP_GET_NUMBER_REGIONSAcciónGet available regions for a given country to browse virtual phone numbers for purchase. This is the first step when searching for purchasable phone numbers by location.
Parámetros de entrada
countrystringObligatorioTwo-letter ISO country code (e.g. "US", "BR", "DE").
Parámetros de salida
Sin parámetros.
Get number requirements_2CHAT_MCP_GET_NUMBER_REQUIREMENTSAcciónGet regulatory requirements for purchasing virtual phone numbers in a specific country.
Depending on the jurisdiction, requirements may include identity verification or proof
of address documentation. Check these before purchasing to avoid number suspension.
_2CHAT_MCP_GET_NUMBER_REQUIREMENTSAcciónGet regulatory requirements for purchasing virtual phone numbers in a specific country. Depending on the jurisdiction, requirements may include identity verification or proof of address documentation. Check these before purchasing to avoid number suspension.
Parámetros de entrada
countrystringObligatorioTwo-letter ISO country code (e.g. "US", "BR", "DE").
did_typestringDID type ID to filter requirements, from get_did_types (optional).
Parámetros de salida
Sin parámetros.
Get sms channel_2CHAT_MCP_GET_SMS_CHANNELAcciónGet the details/status of a single SMS channel owned by your account.
_2CHAT_MCP_GET_SMS_CHANNELAcciónGet the details/status of a single SMS channel owned by your account.
Parámetros de entrada
channel_uuidstringObligatorioUUID of the SMS channel (e.g. SMS582e4db7-...). Obtain via list_sms_channels.
Parámetros de salida
Sin parámetros.
Get sms message_2CHAT_MCP_GET_SMS_MESSAGEAcciónGet a single SMS message by its UUID.
_2CHAT_MCP_GET_SMS_MESSAGEAcciónGet a single SMS message by its UUID.
Parámetros de entrada
message_uuidstringObligatorioUUID of the SMS message — `SMI…` for inbound or `SMO…` for outbound (e.g. SMI582e4db7-... / SMO582e4db7-...).
Parámetros de salida
Sin parámetros.
Get sms messages_2CHAT_MCP_GET_SMS_MESSAGESAcciónGet the SMS thread (inbound + outbound merged, oldest -> newest) between an SMS channel and a contact.
_2CHAT_MCP_GET_SMS_MESSAGESAcciónGet the SMS thread (inbound + outbound merged, oldest -> newest) between an SMS channel and a contact.
Parámetros de entrada
limitintegerResults per page, 1-200 (default 50).
before_tsintegerOptional unix-seconds older-than cursor for paging back in time (default 0 = newest).
channel_uuidstringObligatorioUUID of the SMS channel (e.g. SMS582e4db7-...). Obtain via list_sms_channels.
contact_numberstringObligatorioThe contact's phone number in E.164 format (e.g. +1234567890).
Parámetros de salida
Sin parámetros.
Get waba ads report_2CHAT_MCP_GET_WABA_ADS_REPORTAcciónReport how many WhatsApp conversations each Meta Click-to-WhatsApp ad started on the account's WABA numbers, day by day.
A conversation counts once, on the day the person first wrote from the ad. Days are counted in the
account's timezone. Requires a plan that includes the ads report.
_2CHAT_MCP_GET_WABA_ADS_REPORTAcciónReport how many WhatsApp conversations each Meta Click-to-WhatsApp ad started on the account's WABA numbers, day by day. A conversation counts once, on the day the person first wrote from the ad. Days are counted in the account's timezone. Requires a plan that includes the ads report.
Parámetros de entrada
daysintegerHow many days back to report, today included: 7, 15 or 30 (default 15).
from_numberstringOptional WABA number in E.164 format (e.g. +12025550100) to narrow the report to the ads that came in through it.
Parámetros de salida
Sin parámetros.
Get waba conversation window_2CHAT_MCP_GET_WABA_CONVERSATION_WINDOWAcciónCheck whether the WhatsApp 24-hour customer service window is open for a contact before sending a free-form message.
When the window is closed, only template messages can be sent to the contact.
_2CHAT_MCP_GET_WABA_CONVERSATION_WINDOWAcciónCheck whether the WhatsApp 24-hour customer service window is open for a contact before sending a free-form message. When the window is closed, only template messages can be sent to the contact.
Parámetros de entrada
to_numberstringObligatorioThe contact's phone number in E.164 format (e.g. +15552223333).
from_numberstringObligatorioYour WABA phone number in E.164 format (e.g. +15550001111).
Parámetros de salida
Sin parámetros.
Get waba message_2CHAT_MCP_GET_WABA_MESSAGEAcciónGet a single WABA (WhatsApp Business API) message by its UUID, within the conversation it belongs to.
Both values come back on every message returned by get_waba_messages and on every outbound webhook.
_2CHAT_MCP_GET_WABA_MESSAGEAcciónGet a single WABA (WhatsApp Business API) message by its UUID, within the conversation it belongs to. Both values come back on every message returned by get_waba_messages and on every outbound webhook.
Parámetros de entrada
session_keystringObligatorioThe session_key of the conversation holding the message.
message_uuidstringObligatorioThe UUID of the message (e.g. MSG55f0b9bf-1111-4ac9-b046-47f4a823166f).
Parámetros de salida
Sin parámetros.
Get waba messages_2CHAT_MCP_GET_WABA_MESSAGESAcciónGet WABA (WhatsApp Business API) messages on one of your numbers, newest first, optionally scoped to a single contact.
_2CHAT_MCP_GET_WABA_MESSAGESAcciónGet WABA (WhatsApp Business API) messages on one of your numbers, newest first, optionally scoped to a single contact.
Parámetros de entrada
pageinteger0-indexed page number (default 0), paging back in time.
limitintegerMessages per page, between 1 and 200 (default 50).
to_numberstringThe contact's phone number in E.164 format (e.g. +15552223333). When provided, only the conversation between from_number and this contact is returned; when omitted, messages across every conversation the number holds are returned. A contact you have never exchanged messages with returns an empty messages list.
from_numberstringObligatorioYour WABA phone number in E.164 format (e.g. +15550001111).
Parámetros de salida
Sin parámetros.
Get waba number_2CHAT_MCP_GET_WABA_NUMBERAcciónGet full details of a single WABA (WhatsApp Business API) number by its UUID.
_2CHAT_MCP_GET_WABA_NUMBERAcciónGet full details of a single WABA (WhatsApp Business API) number by its UUID.
Parámetros de entrada
waba_uuidstringObligatorioThe UUID of the WABA number (e.g. WAN3ff9fb72-6ecd-4c2a-9055-4836d8ed33d7).
Parámetros de salida
Sin parámetros.
Get waba numbers_2CHAT_MCP_GET_WABA_NUMBERSAcciónList WABA (WhatsApp Business API) numbers connected to the account.
_2CHAT_MCP_GET_WABA_NUMBERSAcciónList WABA (WhatsApp Business API) numbers connected to the account.
Parámetros de entrada
pageintegerPage number (0-based, default 0).
limitintegerResults per page (min 10, max 200, default 10).
Parámetros de salida
Sin parámetros.
Get waba received messages_2CHAT_MCP_GET_WABA_RECEIVED_MESSAGESAcciónGet the last 10 messages received on one of your WABA (WhatsApp Business API) numbers, across every conversation.
This is a quick unpaged look at inbound traffic only. Use get_waba_messages to page through
the full history or to include the messages you sent.
_2CHAT_MCP_GET_WABA_RECEIVED_MESSAGESAcciónGet the last 10 messages received on one of your WABA (WhatsApp Business API) numbers, across every conversation. This is a quick unpaged look at inbound traffic only. Use get_waba_messages to page through the full history or to include the messages you sent.
Parámetros de entrada
from_numberstringObligatorioYour WABA phone number in E.164 format (e.g. +15550001111).
Parámetros de salida
Sin parámetros.
Get waba template_2CHAT_MCP_GET_WABA_TEMPLATEAcciónGet a single WABA template by UUID, including the variables required to send it and a ready-to-copy example payload.
_2CHAT_MCP_GET_WABA_TEMPLATEAcciónGet a single WABA template by UUID, including the variables required to send it and a ready-to-copy example payload.
Parámetros de entrada
fields_formatstringSet to "flat" to additionally receive a flat "fields" array useful for rendering forms (optional).
template_uuidstringObligatorioThe UUID of the template, starting with TMP (e.g. TMP1b44a079-c75c-4403-bc8f-a75c4ce5cd23).
Parámetros de salida
Sin parámetros.
Get waba templates_2CHAT_MCP_GET_WABA_TEMPLATESAcciónList WABA message templates for the account, optionally filtered by phone number.
_2CHAT_MCP_GET_WABA_TEMPLATESAcciónList WABA message templates for the account, optionally filtered by phone number.
Parámetros de entrada
pageintegerPage number (0-based, default 0).
limitintegerResults per page (min 10, max 200, default 10).
phone_numberstringWABA phone number in E.164 format to filter templates (optional).
Parámetros de salida
Sin parámetros.
Get whatsapp group messages_2CHAT_MCP_GET_WHATSAPP_GROUP_MESSAGESAcciónGet messages from a WhatsApp group.
Only messages exchanged after the channel was connected to 2Chat are returned.
_2CHAT_MCP_GET_WHATSAPP_GROUP_MESSAGESAcciónGet messages from a WhatsApp group. Only messages exchanged after the channel was connected to 2Chat are returned.
Parámetros de entrada
pageinteger0-indexed page number (default 0). Each page returns up to 50 messages, newest first.
group_uuidstringObligatorioUUID of the group (e.g. WAG768beeef-...). Obtain via list_whatsapp_groups.
Parámetros de salida
Sin parámetros.
Get whatsapp messages_2CHAT_MCP_GET_WHATSAPP_MESSAGESAcciónGet WhatsApp Web messages exchanged through a connected number, optionally scoped to a specific contact.
_2CHAT_MCP_GET_WHATSAPP_MESSAGESAcciónGet WhatsApp Web messages exchanged through a connected number, optionally scoped to a specific contact.
Parámetros de entrada
pageinteger0-indexed page number (default 0). Each page returns up to 100 messages, oldest first within the page.
your_numberstringObligatorioThe WhatsApp phone number you connected to 2Chat, in E.164 format (e.g. +595981048477).
remote_numberstringThe contact's phone number in E.164 format. If provided, returns only the conversation between your_number and this contact; if omitted, returns messages across all contacts.
Parámetros de salida
Sin parámetros.
Get whatsapp number_2CHAT_MCP_GET_WHATSAPP_NUMBERAcciónGet full details of a single connected WhatsApp Web number (channel) by UUID.
_2CHAT_MCP_GET_WHATSAPP_NUMBERAcciónGet full details of a single connected WhatsApp Web number (channel) by UUID.
Parámetros de entrada
channel_uuidstringObligatorioUUID of the WhatsApp channel (e.g. WPN582e4db7-6391-4e58-b79e-1b92e93a8374). Can be obtained via get_whatsapp_numbers.
Parámetros de salida
Sin parámetros.
Get whatsapp numbers_2CHAT_MCP_GET_WHATSAPP_NUMBERSAcciónGet all WhatsApp numbers connected to the account via QR-code connection.
_2CHAT_MCP_GET_WHATSAPP_NUMBERSAcciónGet all WhatsApp numbers connected to the account via QR-code connection.
Parámetros de entrada
pageintegerPage number (0-based, default 0).
limitintegerResults per page (min 10, max 200, default 10).
statusstringStatus of the WhatsApp numbers to get (one of "connected", "disconnected", "all").
Parámetros de salida
Sin parámetros.
Get who am i_2CHAT_MCP_GET_WHO_AM_IAcciónReturns information about the authenticated user.
Returns:
A dict with user information.
_2CHAT_MCP_GET_WHO_AM_IAcciónReturns information about the authenticated user. Returns: A dict with user information.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
List account teams_2CHAT_MCP_LIST_ACCOUNT_TEAMSAcciónList the teams of the authenticated account.
Useful for discovering team UUIDs, e.g. to assign a conversation with assign_conversation_to_team.
Returns:
A dict with success status and a `data.teams` list, where each team has
`uuid` and `name`. On error, a dict with success=False and an error message.
_2CHAT_MCP_LIST_ACCOUNT_TEAMSAcciónList the teams of the authenticated account. Useful for discovering team UUIDs, e.g. to assign a conversation with assign_conversation_to_team. Returns: A dict with success status and a `data.teams` list, where each team has `uuid` and `name`. On error, a dict with success=False and an error message.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
List account users_2CHAT_MCP_LIST_ACCOUNT_USERSAcciónList ACTIVE users in the authenticated account.
Useful for discovering user UUIDs (e.g. when minting per-user JWTs for the 2Chat SDK).
Returns:
A dict with success status and a `data.users` list, where each user has
`uuid`, `first_name`, `last_name`, and `email`. On error, a dict with
success=False and an error message.
_2CHAT_MCP_LIST_ACCOUNT_USERSAcciónList ACTIVE users in the authenticated account. Useful for discovering user UUIDs (e.g. when minting per-user JWTs for the 2Chat SDK). Returns: A dict with success status and a `data.users` list, where each user has `uuid`, `first_name`, `last_name`, and `email`. On error, a dict with success=False and an error message.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
List contacts_2CHAT_MCP_LIST_CONTACTSAcciónList contacts in your 2Chat account, optionally filtered by connected channel.
_2CHAT_MCP_LIST_CONTACTSAcciónList contacts in your 2Chat account, optionally filtered by connected channel.
Parámetros de entrada
pageintegerPage number (0-indexed, default 0).
limitintegerResults per page (min 1, max 100, default 10).
channel_uuidstringUUID of a connected number to scope contacts to that channel (optional).
Parámetros de salida
Sin parámetros.
List number reservations_2CHAT_MCP_LIST_NUMBER_RESERVATIONSAcciónList all active virtual phone number reservations for your 2Chat account.
Returns:
A dict with success status and a data object containing the active reservations.
_2CHAT_MCP_LIST_NUMBER_RESERVATIONSAcciónList all active virtual phone number reservations for your 2Chat account. Returns: A dict with success status and a data object containing the active reservations.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
List sms channels_2CHAT_MCP_LIST_SMS_CHANNELSAcciónList the SMS channels (numbers) on your account.
_2CHAT_MCP_LIST_SMS_CHANNELSAcciónList the SMS channels (numbers) on your account.
Parámetros de entrada
pageinteger0-indexed page number (default 0).
limitintegerResults per page, 1-200 (default 200).
Parámetros de salida
Sin parámetros.
List sms conversations_2CHAT_MCP_LIST_SMS_CONVERSATIONSAcciónList the conversations (distinct contacts with their latest message) on an SMS channel, newest first.
_2CHAT_MCP_LIST_SMS_CONVERSATIONSAcciónList the conversations (distinct contacts with their latest message) on an SMS channel, newest first.
Parámetros de entrada
pageinteger0-indexed page number (default 0).
limitintegerResults per page, 1-200 (default 20).
channel_uuidstringObligatorioUUID of the SMS channel (e.g. SMS582e4db7-...). Obtain via list_sms_channels.
Parámetros de salida
Sin parámetros.
List tags_2CHAT_MCP_LIST_TAGSAcciónList the tags of the 2Chat account, page by page.
_2CHAT_MCP_LIST_TAGSAcciónList the tags of the 2Chat account, page by page.
Parámetros de entrada
pageintegerPage to return (0-based, default 0).
page_sizeintegerTags per page (min 1, max 50, default 10).
Parámetros de salida
Sin parámetros.
List virtual numbers_2CHAT_MCP_LIST_VIRTUAL_NUMBERSAcciónList virtual phone numbers (VoIP) connected to your 2Chat account.
_2CHAT_MCP_LIST_VIRTUAL_NUMBERSAcciónList virtual phone numbers (VoIP) connected to your 2Chat account.
Parámetros de entrada
pageintegerPage number (0-indexed, default 0).
limitintegerResults per page (default 50).
Parámetros de salida
Sin parámetros.
List waba conversations_2CHAT_MCP_LIST_WABA_CONVERSATIONSAcciónList the conversations of a WABA (WhatsApp Business API) channel, most recent activity first.
Each conversation is one contact with the state of its latest activity.
_2CHAT_MCP_LIST_WABA_CONVERSATIONSAcciónList the conversations of a WABA (WhatsApp Business API) channel, most recent activity first. Each conversation is one contact with the state of its latest activity.
Parámetros de entrada
pageinteger0-indexed page number (default 0).
limitintegerConversations per page, between 1 and 200 (default 10).
channel_uuidstringObligatorioThe UUID of the WABA number, as returned by get_waba_numbers (e.g. WAN3ff9fb72-6ecd-4c2a-9055-4836d8ed33d7).
phone_numberstringOptional 3-20 character substring to narrow the list to contacts whose phone number contains it.
Parámetros de salida
Sin parámetros.
List whatsapp catalog products_2CHAT_MCP_LIST_WHATSAPP_CATALOG_PRODUCTSAcciónList products from a WhatsApp Business catalog visible to a connected WhatsApp Web number. Some products may not
be visible to all WhatsApp Business accounts.
_2CHAT_MCP_LIST_WHATSAPP_CATALOG_PRODUCTSAcciónList products from a WhatsApp Business catalog visible to a connected WhatsApp Web number. Some products may not be visible to all WhatsApp Business accounts.
Parámetros de entrada
from_numberstringObligatorioThe connected 2Chat WhatsApp number in E.164 format (e.g. +595981461442). This is the number whose linked catalog will be queried.
phone_numberstringOptional target WhatsApp Business account number in E.164 format. When provided, returns the catalog products of that other business account instead of the catalog linked to from_number.
Parámetros de salida
Sin parámetros.
List whatsapp conversations_2CHAT_MCP_LIST_WHATSAPP_CONVERSATIONSAcciónList WhatsApp Web conversations (sessions) for a connected channel, ordered by most recent activity.
_2CHAT_MCP_LIST_WHATSAPP_CONVERSATIONSAcciónList WhatsApp Web conversations (sessions) for a connected channel, ordered by most recent activity.
Parámetros de entrada
pageinteger0-indexed page number (default 0 = newest 10 conversations). Each page returns 10 items.
channel_uuidstringObligatorioUUID of the WhatsApp channel to list conversations for (e.g. WPN582e4db7-...).
phone_numberstringOptional 3-20 digit substring to filter conversations whose phone number contains it.
Parámetros de salida
Sin parámetros.
List whatsapp group participants_2CHAT_MCP_LIST_WHATSAPP_GROUP_PARTICIPANTSAcciónList participants of a WhatsApp group.
_2CHAT_MCP_LIST_WHATSAPP_GROUP_PARTICIPANTSAcciónList participants of a WhatsApp group.
Parámetros de entrada
group_uuidstringObligatorioUUID of the group (e.g. WAG768beeef-2b96-4bc7-9b7f-045078568723). Obtain via list_whatsapp_groups.
Parámetros de salida
Sin parámetros.
List whatsapp groups_2CHAT_MCP_LIST_WHATSAPP_GROUPSAcciónList WhatsApp groups visible to a connected number.
Note: only groups joined after connecting to 2Chat are listed; the initial sync after
a fresh connection can take 5-30 minutes.
_2CHAT_MCP_LIST_WHATSAPP_GROUPSAcciónList WhatsApp groups visible to a connected number. Note: only groups joined after connecting to 2Chat are listed; the initial sync after a fresh connection can take 5-30 minutes.
Parámetros de entrada
phone_numberstringObligatorioThe connected 2Chat WhatsApp number in E.164 format (e.g. +595981048477).
Parámetros de salida
Sin parámetros.
Purchase number_2CHAT_MCP_PURCHASE_NUMBERAcciónPurchase virtual phone numbers for your 2Chat account: one specific number, or every number you have reserved.
This charges your 2Chat account the setup and monthly price of each number purchased. With
number, that number is purchased (from its reservation if it has one, otherwise directly if it is
still available). If number is omitted, EVERY number currently reserved by the account is
purchased in one call (see list_number_reservations); it fails if there are no reservations.
Check get_number_requirements for the country first to avoid the number being suspended for
missing regulatory documentation.
_2CHAT_MCP_PURCHASE_NUMBERAcciónPurchase virtual phone numbers for your 2Chat account: one specific number, or every number you have reserved. This charges your 2Chat account the setup and monthly price of each number purchased. With number, that number is purchased (from its reservation if it has one, otherwise directly if it is still available). If number is omitted, EVERY number currently reserved by the account is purchased in one call (see list_number_reservations); it fails if there are no reservations. Check get_number_requirements for the country first to avoid the number being suspended for missing regulatory documentation.
Parámetros de entrada
numberstringThe number to purchase in E.164 format, from get_available_numbers or a reservation. Omit it only to purchase all of the account's reserved numbers.
Parámetros de salida
Sin parámetros.
Remove tag from conversation_2CHAT_MCP_REMOVE_TAG_FROM_CONVERSATIONAcciónTake a tag off a conversation without deleting the tag.
_2CHAT_MCP_REMOVE_TAG_FROM_CONVERSATIONAcciónTake a tag off a conversation without deleting the tag.
Parámetros de entrada
tag_uuidstringObligatorioUUID of the tag (starts with TAG). Get it from list_tags or get_conversation_tags.
session_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Reserve number_2CHAT_MCP_RESERVE_NUMBERAcciónReserve a virtual phone number before purchasing it. Reservations expire after a set period.
If number is omitted, a random available number from the group is reserved. Complete the
purchase with purchase_number before the reservation expires.
_2CHAT_MCP_RESERVE_NUMBERAcciónReserve a virtual phone number before purchasing it. Reservations expire after a set period. If number is omitted, a random available number from the group is reserved. Complete the purchase with purchase_number before the reservation expires.
Parámetros de entrada
numberstringA specific number to reserve in E.164 format, from get_available_numbers (optional).
group_idstringObligatorioThe group ID from search_number_groups.
Parámetros de salida
Sin parámetros.
Search contacts_2CHAT_MCP_SEARCH_CONTACTSAcciónSearch contacts in your 2Chat account by name or phone number.
_2CHAT_MCP_SEARCH_CONTACTSAcciónSearch contacts in your 2Chat account by name or phone number.
Parámetros de entrada
pageintegerPage number (0-indexed, default 0).
limitintegerResults per page (min 1, max 100, default 10).
querystringObligatorioSearch term — matches against contact name or phone number.
channel_uuidstringUUID of a connected number to scope the search to that channel (optional).
Parámetros de salida
Sin parámetros.
Search conversations_2CHAT_MCP_SEARCH_CONVERSATIONSAcciónSearch all conversations in your 2Chat account by contact name, phone number, or message text.
This is the same account-wide search as the live chat's search box, across every connected
channel (WhatsApp, WABA, SMS). Use it to find who you talked to or where something was said;
then open the conversation with the channel-specific tools (e.g. get_whatsapp_messages) using
the returned channel_uuid and phone_number. Each call costs 5 API credits.
_2CHAT_MCP_SEARCH_CONVERSATIONSAcciónSearch all conversations in your 2Chat account by contact name, phone number, or message text. This is the same account-wide search as the live chat's search box, across every connected channel (WhatsApp, WABA, SMS). Use it to find who you talked to or where something was said; then open the conversation with the channel-specific tools (e.g. get_whatsapp_messages) using the returned channel_uuid and phone_number. Each call costs 5 API credits.
Parámetros de entrada
pageintegerPage number of the messages group (0-indexed, default 0). Contacts are never paginated.
limitintegerMessages per page (min 1, max 100, default 20).
querystringObligatorioSearch term (min 2 characters). Matched against contact names, phone numbers, and message text.
contacts_limitintegerMax matching contacts to return (min 1, max 50, default 20).
Parámetros de salida
Sin parámetros.
Search number groups_2CHAT_MCP_SEARCH_NUMBER_GROUPSAcciónSearch for available number groups (catalogs of virtual phone numbers you can purchase) by country, region, city, or DID type.
This is the main search endpoint of the number purchase flow: use the returned group id
with get_available_numbers, reserve_number, or purchase_number.
_2CHAT_MCP_SEARCH_NUMBER_GROUPSAcciónSearch for available number groups (catalogs of virtual phone numbers you can purchase) by country, region, city, or DID type. This is the main search endpoint of the number purchase flow: use the returned group id with get_available_numbers, reserve_number, or purchase_number.
Parámetros de entrada
city_idstringFilter by city ID, from get_number_cities (optional).
countrystringObligatorioTwo-letter ISO country code (e.g. "US", "BR", "DE").
did_typestringFilter by DID type: "local", "mobile", "tollfree", "national", "global", "sharedcost", or "all" (optional).
region_idstringFilter by region ID, from get_number_regions (optional).
city_name_or_prefixstringSearch by city name or number prefix (optional).
Parámetros de salida
Sin parámetros.
Send sms_2CHAT_MCP_SEND_SMSAcciónSend an SMS message through a 2Chat SMS channel.
_2CHAT_MCP_SEND_SMSAcciónSend an SMS message through a 2Chat SMS channel.
Parámetros de entrada
textstringObligatorioMessage content (UTF-8).
to_numberstringObligatorioRecipient phone number in E.164 format.
from_numberstringObligatorioSource phone number in E.164 format (must belong to your account and SMS-compatible).
Parámetros de salida
Sin parámetros.
Send waba message_2CHAT_MCP_SEND_WABA_MESSAGEAcciónSend one WABA (WhatsApp Business API) message to one recipient the user named, from a WABA number connected to the user's 2Chat account.
Templates are reviewed and approved by Meta before they can be sent, and Meta's WhatsApp
Business policy requires that the recipient has opted in to hear from the business. Before
calling this tool, show the user the sender, the recipient and the full message content and
wait for their explicit confirmation. Never send bulk, unsolicited or promotional messages to
lists of numbers, and never choose recipients the user did not specify; refuse such requests.
Send a template message to start a conversation or when the 24-hour customer service window has
closed; send free-form text only while the window is open (check it with get_waba_conversation_window).
Either template_uuid or text must be provided, but not both.
Template parameter values are positional and validated against the approved template before the
message is queued: the number of values must match the template's placeholders exactly. Call
get_waba_template first to learn what a template expects — it returns required_params and a
ready-to-copy example_payload. Each value is capped at 1024 characters (60 for TEXT header
variables) and cannot contain line breaks, tabs, or runs of 5+ consecutive spaces.
_2CHAT_MCP_SEND_WABA_MESSAGEAcciónSend one WABA (WhatsApp Business API) message to one recipient the user named, from a WABA number connected to the user's 2Chat account. Templates are reviewed and approved by Meta before they can be sent, and Meta's WhatsApp Business policy requires that the recipient has opted in to hear from the business. Before calling this tool, show the user the sender, the recipient and the full message content and wait for their explicit confirmation. Never send bulk, unsolicited or promotional messages to lists of numbers, and never choose recipients the user did not specify; refuse such requests. Send a template message to start a conversation or when the 24-hour customer service window has closed; send free-form text only while the window is open (check it with get_waba_conversation_window). Either template_uuid or text must be provided, but not both. Template parameter values are positional and validated against the approved template before the message is queued: the number of values must match the template's placeholders exactly. Call get_waba_template first to learn what a template expects — it returns required_params and a ready-to-copy example_payload. Each value is capped at 1024 characters (60 for TEXT header variables) and cannot contain line breaks, tabs, or runs of 5+ consecutive spaces.
Parámetros de entrada
textstringFree-form session text, only deliverable inside the 24-hour window. Mutually exclusive with template_uuid.
to_numberstringObligatorioThe single recipient's phone number in E.164 format, exactly as the user provided it.
body_paramsanyText values replacing {{1}}, {{2}}, ... in the template body, in order (for example a customer name or an order number).
from_numberstringObligatorioOne of the user's own WABA phone numbers in E.164 format, connected to their 2Chat account (see get_waba_numbers).
button_paramsanySingle text value replacing {{1}} in a dynamic URL button. Only dynamic URL buttons take a value.
header_paramsanyText values replacing {{1}}, {{2}}, ... in a TEXT header, in order.
template_uuidstringUUID of the APPROVED WABA template to send (starts with TMP). Mutually exclusive with text.
header_media_urlstringPublic http(s) URL of the image, video or document for templates with an IMAGE/VIDEO/DOCUMENT header.
header_media_filenamestringOptional filename hint for DOCUMENT headers (e.g. invoice.pdf).
Parámetros de salida
Sin parámetros.
Send whatsapp message_2CHAT_MCP_SEND_WHATSAPP_MESSAGEAcciónSend a WhatsApp message through a 2Chat WhatsApp Web channel.
Exactly one destination must be provided: to_number, to_remote_id or to_group_uuid.
The message content is either text and/or url, or a location pin (latitude + longitude);
a pin cannot be combined with text or url.
_2CHAT_MCP_SEND_WHATSAPP_MESSAGEAcciónSend a WhatsApp message through a 2Chat WhatsApp Web channel. Exactly one destination must be provided: to_number, to_remote_id or to_group_uuid. The message content is either text and/or url, or a location pin (latitude + longitude); a pin cannot be combined with text or url.
Parámetros de entrada
urlstringPublicly accessible media attachment URL (image, video, document, audio, etc.), up to 16 MB.
textstringMessage text content.
latitudeanyLatitude of a location pin, between -90 and 90. Requires longitude.
longitudeanyLongitude of a location pin, between -180 and 180. Requires latitude.
to_numberstringRecipient phone number in E.164 format (e.g. +1234567890). Use this whenever the number is known.
from_numberstringObligatorioSource WhatsApp phone number in E.164 format (e.g. +1234567890). Must be connected to your account.
location_urlstringOptional link attached to the location pin.
to_remote_idstringRecipient WhatsApp LID, digits followed by @lid (e.g. 123123123123@lid). Only for contacts who kept their phone number private and shared a username instead. LIDs are delivered in the `remote_id` field of inbound-message webhooks; they cannot be derived from a phone number.
location_namestringOptional name shown on the location pin, up to 200 characters.
to_group_uuidstringUUID of a WhatsApp group to post to (e.g. WAG768beeef-2b96-4bc7-9b7f-045078568723). Obtain it via list_whatsapp_groups.
location_addressstringOptional address shown on the location pin, up to 300 characters.
Parámetros de salida
Sin parámetros.
Set whatsapp image status_2CHAT_MCP_SET_WHATSAPP_IMAGE_STATUSAcciónSet an ephemeral image status (Story-style) on a connected WhatsApp number.
_2CHAT_MCP_SET_WHATSAPP_IMAGE_STATUSAcciónSet an ephemeral image status (Story-style) on a connected WhatsApp number.
Parámetros de entrada
image_urlstringObligatorioA publicly accessible URL to the image file.
from_numberstringObligatorioThe connected 2Chat WhatsApp number in E.164 format (e.g. +1234567890).
Parámetros de salida
Sin parámetros.
Set whatsapp text status_2CHAT_MCP_SET_WHATSAPP_TEXT_STATUSAcciónSet an ephemeral text status (Story-style) on a connected WhatsApp number.
_2CHAT_MCP_SET_WHATSAPP_TEXT_STATUSAcciónSet an ephemeral text status (Story-style) on a connected WhatsApp number.
Parámetros de entrada
fontintegerOptional font style identifier (integer, e.g. 10). Pass 0 to omit.
textstringObligatorioText content of the status.
from_numberstringObligatorioThe connected 2Chat WhatsApp number in E.164 format (e.g. +1234567890).
background_colorstringOptional hex color code for the background (e.g. '#0275d8').
Parámetros de salida
Sin parámetros.
Set whatsapp video status_2CHAT_MCP_SET_WHATSAPP_VIDEO_STATUSAcciónSet an ephemeral video status (Story-style) on a connected WhatsApp number.
_2CHAT_MCP_SET_WHATSAPP_VIDEO_STATUSAcciónSet an ephemeral video status (Story-style) on a connected WhatsApp number.
Parámetros de entrada
video_urlstringObligatorioA publicly accessible URL to the video file.
from_numberstringObligatorioThe connected 2Chat WhatsApp number in E.164 format (e.g. +1234567890).
Parámetros de salida
Sin parámetros.
Subscribe to waba webhook_2CHAT_MCP_SUBSCRIBE_TO_WABA_WEBHOOKAcciónSubscribe to a WABA (WhatsApp Business API) event, so 2Chat calls your URL when it happens.
_2CHAT_MCP_SUBSCRIBE_TO_WABA_WEBHOOKAcciónSubscribe to a WABA (WhatsApp Business API) event, so 2Chat calls your URL when it happens.
Parámetros de entrada
hook_urlstringObligatorioA publicly reachable URL that 2Chat will invoke when the event is triggered.
on_numberstringObligatorioThe WABA phone number connected to 2Chat, in E.164 format (e.g. +16173518454).
event_namestringObligatorioThe event to subscribe to. One of whatsapp.waba.message.sent (a message was sent), whatsapp.waba.message.received (a message arrived on your WABA number), whatsapp.waba.message.receipt.sent (a sent message reached the WhatsApp network), whatsapp.waba.message.receipt.received (a sent message reached the recipient's app), whatsapp.waba.template.created (a template was submitted to WhatsApp through 2Chat, via API or web app), whatsapp.waba.template.status.updated (WhatsApp finished reviewing a template or changed its status later), whatsapp.waba.template.deleted (a template was deleted through 2Chat or in WhatsApp Manager).
Parámetros de salida
Sin parámetros.
Sync waba templates_2CHAT_MCP_SYNC_WABA_TEMPLATESAcciónTrigger a background sync of WABA templates from the provider for a given number.
The templates stored in 2Chat for that number are overwritten with the provider's current state,
and templates that no longer exist at the provider are disabled in 2Chat; campaigns still sending
with a disabled template are stopped. Limited to 20 syncs per hour per number.
_2CHAT_MCP_SYNC_WABA_TEMPLATESAcciónTrigger a background sync of WABA templates from the provider for a given number. The templates stored in 2Chat for that number are overwritten with the provider's current state, and templates that no longer exist at the provider are disabled in 2Chat; campaigns still sending with a disabled template are stopped. Limited to 20 syncs per hour per number.
Parámetros de entrada
phone_numberstringObligatorioWABA phone number in E.164 format (e.g. +1234567890).
Parámetros de salida
Sin parámetros.
Unassign conversation_2CHAT_MCP_UNASSIGN_CONVERSATIONAcciónRemove the assigned user, the assigned team, or both from a WhatsApp or WABA conversation.
Removing something that isn't assigned is not an error.
_2CHAT_MCP_UNASSIGN_CONVERSATIONAcciónRemove the assigned user, the assigned team, or both from a WhatsApp or WABA conversation. Removing something that isn't assigned is not an error.
Parámetros de entrada
removestringenum"user" removes only the user (keeps the team), "team" removes only the team (keeps the user), "both" removes both (default).
userteambothsession_keystringObligatorioThe conversation's session_key (e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176).
Parámetros de salida
Sin parámetros.
Update contact_2CHAT_MCP_UPDATE_CONTACTAcciónUpdate an existing contact. Only fields you pass are modified.
_2CHAT_MCP_UPDATE_CONTACTAcciónUpdate an existing contact. Only fields you pass are modified.
Parámetros de entrada
last_namestringNew last name (optional).
first_namestringNew first name (optional).
channel_uuidstringWhatsApp channel UUID to (re)associate with this contact (optional).
contact_uuidstringObligatorioThe UUID of the contact to update (e.g. CON58147f7c-...).
contact_detailsanyList of detail objects with 'type' and 'value' keys, same shape as create_contact's contact_detail (types: 'E', 'A', 'PH', 'WAPH'). Optional.
profile_pic_urlstringNew publicly accessible avatar URL (optional).
Parámetros de salida
Sin parámetros.
Update tag_2CHAT_MCP_UPDATE_TAGAcciónRename a tag or change its color. Send at least one of name or color.
_2CHAT_MCP_UPDATE_TAGAcciónRename a tag or change its color. Send at least one of name or color.
Parámetros de entrada
namestringOptional new name, up to 100 characters. Can't match another tag of the account, ignoring case.
colorstringOptional hex color in #RRGGBB format (e.g. #378ADD).
tag_uuidstringObligatorioUUID of the tag (starts with TAG). Get it from list_tags.
Parámetros de salida
Sin parámetros.