Volver al catálogo

2Chat MCP

_2chat_mcp

Manage 2Chat WhatsApp, WhatsApp Business API, SMS, voice numbers, contacts, tags, and conversations through 2Chat's hosted MCP server.

Acciones
75
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Put 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_uuidstringObligatorio

    UUID of the tag (starts with TAG). Get it from list_tags.

  • session_keystringObligatorio

    The 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ón

Assign 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_uuidstringObligatorio

    UUID of a team of the account. Get it from list_account_teams.

  • session_keystringObligatorio

    The 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ón

Assign 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_uuidstringObligatorio

    UUID of an active user of the account (starts with USR). Get it from list_account_users.

  • session_keystringObligatorio

    The 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ón

Calculate the cost of sending a WABA template message for a given plan, country, and template type.

Parámetros de entrada

  • countrystringObligatorio

    Two-letter ISO country code of the recipient (e.g. "US", "BR", "MX").

  • plan_namestring

    The 2Chat plan name (e.g. "single", "basic", "pro"). Defaults to the authenticated account's plan.

  • template_typestringObligatorio

    The WABA template category (e.g. "marketing", "utility", "authentication").

Parámetros de salida

Sin parámetros.

Cancel number reservation_2CHAT_MCP_CANCEL_NUMBER_RESERVATIONAcción

Cancel an active virtual phone number reservation, releasing the number back into the available pool.

Parámetros de entrada

  • reservation_uuidstringObligatorio

    The 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ón

Check 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_numberstringObligatorio

    The single phone number to check in E.164 format (e.g. +1234567890), provided by the user.

  • source_numberstringObligatorio

    One 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ón

Bring a WhatsApp Web number connected to 2Chat online and generate a QR code for authentication.

Parámetros de entrada

  • channel_uuidstringObligatorio

    UUID 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ón

Create a new contact in your 2Chat account.

Parámetros de entrada

  • last_namestring

    Contact's last name (optional).

  • first_namestringObligatorio

    Contact's first name (required).

  • channel_uuidstring

    WhatsApp channel UUID to sync this contact to a connected number (optional).

  • contact_detailarrayObligatorio

    List 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_urlstring

    Publicly accessible image URL for the contact's avatar (optional).

Parámetros de salida

Sin parámetros.

Create conversation note_2CHAT_MCP_CREATE_CONVERSATION_NOTEAcción

Add 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

  • textstringObligatorio

    The note, plain text, up to 2000 characters.

  • mentionsany

    Optional UUIDs of users to mention (up to 20). Get them from list_account_users.

  • session_keystringObligatorio

    The 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ón

Create a tag in the 2Chat account and, optionally, put it on a conversation in the same call.

Parámetros de entrada

  • namestringObligatorio

    Name of the tag, up to 100 characters. Unique per account, ignoring case.

  • session_keystring

    Optional 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ón

Create 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

  • bodystring

    Message body, up to 1024 characters, with variables written {{1}}, {{2}}, ... Required except for AUTHENTICATION templates, where WhatsApp writes the body.

  • namestringObligatorio

    Template name. Lowercase letters, digits and underscores only, up to 512 characters.

  • footerstring

    Optional footer text, up to 60 characters. No variables allowed.

  • headerany

    Optional 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.

  • buttonsany

    Optional 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.

  • categorystringObligatorio

    One of MARKETING, UTILITY or AUTHENTICATION. WhatsApp may recategorize the template — read template.category in the response.

  • examplesany

    Sample 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.

  • languagestringObligatorio

    WhatsApp 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.

  • descriptionstring

    Optional note stored with the template in 2Chat. Only kept for Gupshup-backed channels.

  • phone_numberstringObligatorio

    Your WABA number in E.164 format (e.g. +5215512345432).

  • code_expiration_minutesinteger

    AUTHENTICATION only. Between 1 and 90. Adds an expiry line to the footer. Omit or 0 to skip.

  • add_security_recommendationboolean

    AUTHENTICATION 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ón

Permanently delete a contact from your 2Chat account.

Parámetros de entrada

  • contact_uuidstringObligatorio

    The UUID of the contact to delete (e.g. CONd9bedfb7-...).

Parámetros de salida

Sin parámetros.

Delete tag_2CHAT_MCP_DELETE_TAGAcción

Delete a tag and remove it from every conversation that has it. This cannot be undone.

Parámetros de entrada

  • tag_uuidstringObligatorio

    UUID 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ón

Delete 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_uuidstringObligatorio

    The 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ón

Delete 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_uuidstringObligatorio

    The 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ón

Take 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_uuidstringObligatorio

    UUID 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ón

Get specific available virtual phone numbers within a number group that you can reserve and purchase.

Parámetros de entrada

  • group_idstringObligatorio

    The group ID from search_number_groups.

  • number_containsstring

    Filter numbers containing this digit sequence (optional).

Parámetros de salida

Sin parámetros.

Get billing info_2CHAT_MCP_GET_BILLING_INFOAcción

Get 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ón

Get full details of a single call by its CDR UUID.

Parámetros de entrada

  • call_uuidstringObligatorio

    The 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ón

Get call detail records (CDRs) from your 2Chat account, optionally filtered.

Parámetros de entrada

  • pageinteger

    Page number (0-indexed, default 0).

  • directionstring

    Filter by direction; one of 'inbound' or 'outbound' (optional, default no filter).

  • to_numberstring

    For outbound calls, filter by called number in E.164 format (optional).

  • from_numberstring

    For 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ón

Estimate the per-minute outbound call price to a destination phone number.

Parámetros de entrada

  • phone_numberstringObligatorio

    Destination number in international format, with or without leading '+'.

Parámetros de salida

Sin parámetros.

Get contact_2CHAT_MCP_GET_CONTACTAcción

Retrieve a single contact by its UUID.

Parámetros de entrada

  • contact_uuidstringObligatorio

    The 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ón

Get the user and the team a WhatsApp or WABA conversation is assigned to.

Parámetros de entrada

  • session_keystringObligatorio

    The 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ón

Get the tags a conversation has.

Parámetros de entrada

  • session_keystringObligatorio

    The 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ón

List 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ón

Get available cities for a given country, optionally filtered by region, to browse virtual phone numbers for purchase.

Parámetros de entrada

  • regionstring

    Region ID to filter cities, from get_number_regions (optional).

  • countrystringObligatorio

    Two-letter ISO country code (e.g. "US", "BR", "DE").

Parámetros de salida

Sin parámetros.

Get number regions_2CHAT_MCP_GET_NUMBER_REGIONSAcción

Get 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

  • countrystringObligatorio

    Two-letter ISO country code (e.g. "US", "BR", "DE").

Parámetros de salida

Sin parámetros.

Get number requirements_2CHAT_MCP_GET_NUMBER_REQUIREMENTSAcción

Get 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

  • countrystringObligatorio

    Two-letter ISO country code (e.g. "US", "BR", "DE").

  • did_typestring

    DID 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ón

Get the details/status of a single SMS channel owned by your account.

Parámetros de entrada

  • channel_uuidstringObligatorio

    UUID 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ón

Get a single SMS message by its UUID.

Parámetros de entrada

  • message_uuidstringObligatorio

    UUID 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ón

Get the SMS thread (inbound + outbound merged, oldest -> newest) between an SMS channel and a contact.

Parámetros de entrada

  • limitinteger

    Results per page, 1-200 (default 50).

  • before_tsinteger

    Optional unix-seconds older-than cursor for paging back in time (default 0 = newest).

  • channel_uuidstringObligatorio

    UUID of the SMS channel (e.g. SMS582e4db7-...). Obtain via list_sms_channels.

  • contact_numberstringObligatorio

    The 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ón

Report 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

  • daysinteger

    How many days back to report, today included: 7, 15 or 30 (default 15).

  • from_numberstring

    Optional 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ón

Check 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_numberstringObligatorio

    The contact's phone number in E.164 format (e.g. +15552223333).

  • from_numberstringObligatorio

    Your 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ón

Get 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_keystringObligatorio

    The session_key of the conversation holding the message.

  • message_uuidstringObligatorio

    The 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ón

Get WABA (WhatsApp Business API) messages on one of your numbers, newest first, optionally scoped to a single contact.

Parámetros de entrada

  • pageinteger

    0-indexed page number (default 0), paging back in time.

  • limitinteger

    Messages per page, between 1 and 200 (default 50).

  • to_numberstring

    The 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_numberstringObligatorio

    Your 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ón

Get full details of a single WABA (WhatsApp Business API) number by its UUID.

Parámetros de entrada

  • waba_uuidstringObligatorio

    The 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ón

List WABA (WhatsApp Business API) numbers connected to the account.

Parámetros de entrada

  • pageinteger

    Page number (0-based, default 0).

  • limitinteger

    Results 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ón

Get 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_numberstringObligatorio

    Your 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ón

Get 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_formatstring

    Set to "flat" to additionally receive a flat "fields" array useful for rendering forms (optional).

  • template_uuidstringObligatorio

    The 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ón

List WABA message templates for the account, optionally filtered by phone number.

Parámetros de entrada

  • pageinteger

    Page number (0-based, default 0).

  • limitinteger

    Results per page (min 10, max 200, default 10).

  • phone_numberstring

    WABA 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ón

Get messages from a WhatsApp group. Only messages exchanged after the channel was connected to 2Chat are returned.

Parámetros de entrada

  • pageinteger

    0-indexed page number (default 0). Each page returns up to 50 messages, newest first.

  • group_uuidstringObligatorio

    UUID 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ón

Get WhatsApp Web messages exchanged through a connected number, optionally scoped to a specific contact.

Parámetros de entrada

  • pageinteger

    0-indexed page number (default 0). Each page returns up to 100 messages, oldest first within the page.

  • your_numberstringObligatorio

    The WhatsApp phone number you connected to 2Chat, in E.164 format (e.g. +595981048477).

  • remote_numberstring

    The 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ón

Get full details of a single connected WhatsApp Web number (channel) by UUID.

Parámetros de entrada

  • channel_uuidstringObligatorio

    UUID 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ón

Get all WhatsApp numbers connected to the account via QR-code connection.

Parámetros de entrada

  • pageinteger

    Page number (0-based, default 0).

  • limitinteger

    Results per page (min 10, max 200, default 10).

  • statusstring

    Status 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ón

Returns 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ón

List 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ón

List 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ón

List contacts in your 2Chat account, optionally filtered by connected channel.

Parámetros de entrada

  • pageinteger

    Page number (0-indexed, default 0).

  • limitinteger

    Results per page (min 1, max 100, default 10).

  • channel_uuidstring

    UUID 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ón

List 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ón

List the SMS channels (numbers) on your account.

Parámetros de entrada

  • pageinteger

    0-indexed page number (default 0).

  • limitinteger

    Results per page, 1-200 (default 200).

Parámetros de salida

Sin parámetros.

List sms conversations_2CHAT_MCP_LIST_SMS_CONVERSATIONSAcción

List the conversations (distinct contacts with their latest message) on an SMS channel, newest first.

Parámetros de entrada

  • pageinteger

    0-indexed page number (default 0).

  • limitinteger

    Results per page, 1-200 (default 20).

  • channel_uuidstringObligatorio

    UUID 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ón

List the tags of the 2Chat account, page by page.

Parámetros de entrada

  • pageinteger

    Page to return (0-based, default 0).

  • page_sizeinteger

    Tags per page (min 1, max 50, default 10).

Parámetros de salida

Sin parámetros.

List virtual numbers_2CHAT_MCP_LIST_VIRTUAL_NUMBERSAcción

List virtual phone numbers (VoIP) connected to your 2Chat account.

Parámetros de entrada

  • pageinteger

    Page number (0-indexed, default 0).

  • limitinteger

    Results per page (default 50).

Parámetros de salida

Sin parámetros.

List waba conversations_2CHAT_MCP_LIST_WABA_CONVERSATIONSAcción

List 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

  • pageinteger

    0-indexed page number (default 0).

  • limitinteger

    Conversations per page, between 1 and 200 (default 10).

  • channel_uuidstringObligatorio

    The UUID of the WABA number, as returned by get_waba_numbers (e.g. WAN3ff9fb72-6ecd-4c2a-9055-4836d8ed33d7).

  • phone_numberstring

    Optional 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ón

List 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_numberstringObligatorio

    The connected 2Chat WhatsApp number in E.164 format (e.g. +595981461442). This is the number whose linked catalog will be queried.

  • phone_numberstring

    Optional 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ón

List WhatsApp Web conversations (sessions) for a connected channel, ordered by most recent activity.

Parámetros de entrada

  • pageinteger

    0-indexed page number (default 0 = newest 10 conversations). Each page returns 10 items.

  • channel_uuidstringObligatorio

    UUID of the WhatsApp channel to list conversations for (e.g. WPN582e4db7-...).

  • phone_numberstring

    Optional 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ón

List participants of a WhatsApp group.

Parámetros de entrada

  • group_uuidstringObligatorio

    UUID 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ón

List 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_numberstringObligatorio

    The connected 2Chat WhatsApp number in E.164 format (e.g. +595981048477).

Parámetros de salida

Sin parámetros.

Purchase number_2CHAT_MCP_PURCHASE_NUMBERAcción

Purchase 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

  • numberstring

    The 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ón

Take a tag off a conversation without deleting the tag.

Parámetros de entrada

  • tag_uuidstringObligatorio

    UUID of the tag (starts with TAG). Get it from list_tags or get_conversation_tags.

  • session_keystringObligatorio

    The 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ón

Reserve 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

  • numberstring

    A specific number to reserve in E.164 format, from get_available_numbers (optional).

  • group_idstringObligatorio

    The group ID from search_number_groups.

Parámetros de salida

Sin parámetros.

Search contacts_2CHAT_MCP_SEARCH_CONTACTSAcción

Search contacts in your 2Chat account by name or phone number.

Parámetros de entrada

  • pageinteger

    Page number (0-indexed, default 0).

  • limitinteger

    Results per page (min 1, max 100, default 10).

  • querystringObligatorio

    Search term — matches against contact name or phone number.

  • channel_uuidstring

    UUID 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ón

Search 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

  • pageinteger

    Page number of the messages group (0-indexed, default 0). Contacts are never paginated.

  • limitinteger

    Messages per page (min 1, max 100, default 20).

  • querystringObligatorio

    Search term (min 2 characters). Matched against contact names, phone numbers, and message text.

  • contacts_limitinteger

    Max 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ón

Search 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_idstring

    Filter by city ID, from get_number_cities (optional).

  • countrystringObligatorio

    Two-letter ISO country code (e.g. "US", "BR", "DE").

  • did_typestring

    Filter by DID type: "local", "mobile", "tollfree", "national", "global", "sharedcost", or "all" (optional).

  • region_idstring

    Filter by region ID, from get_number_regions (optional).

  • city_name_or_prefixstring

    Search by city name or number prefix (optional).

Parámetros de salida

Sin parámetros.

Send sms_2CHAT_MCP_SEND_SMSAcción

Send an SMS message through a 2Chat SMS channel.

Parámetros de entrada

  • textstringObligatorio

    Message content (UTF-8).

  • to_numberstringObligatorio

    Recipient phone number in E.164 format.

  • from_numberstringObligatorio

    Source 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ón

Send 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

  • textstring

    Free-form session text, only deliverable inside the 24-hour window. Mutually exclusive with template_uuid.

  • to_numberstringObligatorio

    The single recipient's phone number in E.164 format, exactly as the user provided it.

  • body_paramsany

    Text values replacing {{1}}, {{2}}, ... in the template body, in order (for example a customer name or an order number).

  • from_numberstringObligatorio

    One of the user's own WABA phone numbers in E.164 format, connected to their 2Chat account (see get_waba_numbers).

  • button_paramsany

    Single text value replacing {{1}} in a dynamic URL button. Only dynamic URL buttons take a value.

  • header_paramsany

    Text values replacing {{1}}, {{2}}, ... in a TEXT header, in order.

  • template_uuidstring

    UUID of the APPROVED WABA template to send (starts with TMP). Mutually exclusive with text.

  • header_media_urlstring

    Public http(s) URL of the image, video or document for templates with an IMAGE/VIDEO/DOCUMENT header.

  • header_media_filenamestring

    Optional filename hint for DOCUMENT headers (e.g. invoice.pdf).

Parámetros de salida

Sin parámetros.

Send whatsapp message_2CHAT_MCP_SEND_WHATSAPP_MESSAGEAcción

Send 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

  • urlstring

    Publicly accessible media attachment URL (image, video, document, audio, etc.), up to 16 MB.

  • textstring

    Message text content.

  • latitudeany

    Latitude of a location pin, between -90 and 90. Requires longitude.

  • longitudeany

    Longitude of a location pin, between -180 and 180. Requires latitude.

  • to_numberstring

    Recipient phone number in E.164 format (e.g. +1234567890). Use this whenever the number is known.

  • from_numberstringObligatorio

    Source WhatsApp phone number in E.164 format (e.g. +1234567890). Must be connected to your account.

  • location_urlstring

    Optional link attached to the location pin.

  • to_remote_idstring

    Recipient 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_namestring

    Optional name shown on the location pin, up to 200 characters.

  • to_group_uuidstring

    UUID of a WhatsApp group to post to (e.g. WAG768beeef-2b96-4bc7-9b7f-045078568723). Obtain it via list_whatsapp_groups.

  • location_addressstring

    Optional 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ón

Set an ephemeral image status (Story-style) on a connected WhatsApp number.

Parámetros de entrada

  • image_urlstringObligatorio

    A publicly accessible URL to the image file.

  • from_numberstringObligatorio

    The 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ón

Set an ephemeral text status (Story-style) on a connected WhatsApp number.

Parámetros de entrada

  • fontinteger

    Optional font style identifier (integer, e.g. 10). Pass 0 to omit.

  • textstringObligatorio

    Text content of the status.

  • from_numberstringObligatorio

    The connected 2Chat WhatsApp number in E.164 format (e.g. +1234567890).

  • background_colorstring

    Optional 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ón

Set an ephemeral video status (Story-style) on a connected WhatsApp number.

Parámetros de entrada

  • video_urlstringObligatorio

    A publicly accessible URL to the video file.

  • from_numberstringObligatorio

    The 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ón

Subscribe to a WABA (WhatsApp Business API) event, so 2Chat calls your URL when it happens.

Parámetros de entrada

  • hook_urlstringObligatorio

    A publicly reachable URL that 2Chat will invoke when the event is triggered.

  • on_numberstringObligatorio

    The WABA phone number connected to 2Chat, in E.164 format (e.g. +16173518454).

  • event_namestringObligatorio

    The 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ón

Trigger 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_numberstringObligatorio

    WABA phone number in E.164 format (e.g. +1234567890).

Parámetros de salida

Sin parámetros.

Unassign conversation_2CHAT_MCP_UNASSIGN_CONVERSATIONAcción

Remove 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).

    userteamboth
  • session_keystringObligatorio

    The 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ón

Update an existing contact. Only fields you pass are modified.

Parámetros de entrada

  • last_namestring

    New last name (optional).

  • first_namestring

    New first name (optional).

  • channel_uuidstring

    WhatsApp channel UUID to (re)associate with this contact (optional).

  • contact_uuidstringObligatorio

    The UUID of the contact to update (e.g. CON58147f7c-...).

  • contact_detailsany

    List of detail objects with 'type' and 'value' keys, same shape as create_contact's contact_detail (types: 'E', 'A', 'PH', 'WAPH'). Optional.

  • profile_pic_urlstring

    New publicly accessible avatar URL (optional).

Parámetros de salida

Sin parámetros.

Update tag_2CHAT_MCP_UPDATE_TAGAcción

Rename a tag or change its color. Send at least one of name or color.

Parámetros de entrada

  • namestring

    Optional new name, up to 100 characters. Can't match another tag of the account, ignoring case.

  • colorstring

    Optional hex color in #RRGGBB format (e.g. #378ADD).

  • tag_uuidstringObligatorio

    UUID of the tag (starts with TAG). Get it from list_tags.

Parámetros de salida

Sin parámetros.