For Agents
Send WhatsApp text, image, and document messages from a connected 2Chat number, list connected numbers, and verify whether a phone number is on WhatsApp.
Get started with 2Chat WhatsApp API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"send a whatsapp message"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with 2Chat WhatsApp API API.
Send WhatsApp text messages from a connected number to any recipient in E.164 format
Deliver image messages with an optional caption by referencing a public image URL
Send document or file messages with a custom filename and caption to a WhatsApp recipient
List the WhatsApp numbers currently connected to a 2Chat account along with their alias and status
GET STARTED
Use for: I want to send a WhatsApp text message to a customer, Send a WhatsApp image with a caption to a contact, Check whether a phone number is on WhatsApp before messaging, List all WhatsApp numbers connected to my 2Chat account
Not supported: Does not handle SMS, voice calls, email, or push notifications — use for sending and validating WhatsApp messages from a connected 2Chat number only.
Jentic publishes the only available OpenAPI specification for 2Chat WhatsApp API, keeping it validated and agent-ready.
Jentic publishes the only available OpenAPI specification for 2Chat WhatsApp API, keeping it validated and agent-ready. The 2Chat WhatsApp API lets applications send WhatsApp text, image, and document messages from connected WhatsApp numbers, list which numbers are connected to a 2Chat account, and check whether a destination phone number is registered on WhatsApp. Authentication is via an X-User-API-Key header. The API exposes five endpoints under /api/v1/whatsapp covering numbers, messages, and contact lookup.
Check whether a target phone number is registered on WhatsApp before attempting delivery
Patterns agents use 2Chat WhatsApp API API for, with concrete tasks.
★ WhatsApp Order Confirmations
Send transactional WhatsApp messages such as order confirmations and shipping updates from a 2Chat-connected business number. The text endpoint accepts a recipient number in E.164 format and a message body, and returns a message UUID and status for delivery tracking. This avoids the WhatsApp Business Platform onboarding by reusing an already-connected number.
Send a WhatsApp text message to +14155551234 saying 'Your order #1042 has shipped — tracking: 1ZA999' from the connected 2Chat number 14155556789 and capture the returned message UUID.
Document Delivery Over WhatsApp
Deliver invoices, receipts, contracts, or boarding passes as WhatsApp document messages by passing a public URL, filename, and optional caption. The 2Chat document endpoint forwards the file to the recipient's WhatsApp client without requiring local upload, which keeps integration light for back-office systems generating PDFs on the fly.
Send the PDF at https://example.com/invoice-1042.pdf as a WhatsApp document with filename 'invoice-1042.pdf' and caption 'Your June invoice' to recipient +442071234567 using the connected number 14155556789.
WhatsApp Number Validation
Before launching a WhatsApp campaign or 1:1 outreach, verify that the destination number is actually registered on WhatsApp. The check-number endpoint returns a boolean indicating WhatsApp registration status, letting applications skip non-WhatsApp numbers and reduce delivery failures.
For a list of 50 phone numbers, call the check-number endpoint using connected number 14155556789 and return only the subset that are registered on WhatsApp.
Agent-Driven WhatsApp Outreach
Allow an AI agent to handle WhatsApp messaging end-to-end through Jentic: discover the 2Chat send-text operation by intent, load the input schema, supply recipient and message body, and execute. Credentials stay isolated in Jentic's vault — the agent never sees the raw 2Chat API key.
Through Jentic, search for 'send a whatsapp message', load the 2Chat sendTextMessage schema, and dispatch a personalised reminder to each recipient in a contact list.
5 endpoints — jentic publishes the only available openapi specification for 2chat whatsapp api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/api/v1/whatsapp/numbers/{phoneNumber}/messages/text
Send a WhatsApp text message
/api/v1/whatsapp/numbers/{phoneNumber}/messages/image
Send a WhatsApp image with optional caption
/api/v1/whatsapp/numbers/{phoneNumber}/messages/document
Send a WhatsApp document or file
/api/v1/whatsapp/numbers
List connected WhatsApp numbers
/api/v1/whatsapp/numbers/{phoneNumber}/check-number/{targetNumber}
Check whether a number is on WhatsApp
/api/v1/whatsapp/numbers/{phoneNumber}/messages/text
Send a WhatsApp text message
/api/v1/whatsapp/numbers/{phoneNumber}/messages/image
Send a WhatsApp image with optional caption
/api/v1/whatsapp/numbers/{phoneNumber}/messages/document
Send a WhatsApp document or file
/api/v1/whatsapp/numbers
List connected WhatsApp numbers
/api/v1/whatsapp/numbers/{phoneNumber}/check-number/{targetNumber}
Check whether a number is on WhatsApp
Three things that make agents converge on Jentic-routed access.
Credential isolation
The 2Chat X-User-API-Key is stored encrypted in the Jentic vault. Agents call sendTextMessage and other operations through Jentic, which injects the header at execution — the raw key never enters the agent's context.
Intent-based discovery
Agents search Jentic by intent (e.g., 'send a whatsapp message') and Jentic returns the matching 2Chat operation along with its input schema, so the agent calls the correct endpoint without reading the 2Chat docs.
Time to first call
Direct 2Chat integration: roughly half a day to handle auth, payload shaping, and error mapping. Through Jentic: under 30 minutes — search, load, execute.
Alternatives and complements available in the Jentic catalogue.
Twilio Messaging
Twilio's messaging API also supports WhatsApp delivery alongside SMS and MMS at larger scale.
Pick Twilio Messaging when you need a single platform for SMS, MMS, and WhatsApp with global compliance and detailed delivery analytics. Pick 2Chat for a lightweight WhatsApp-only integration tied to a connected number.
MessageBird SMS API
Use MessageBird's SMS channel as a fallback when a recipient's number is not registered on WhatsApp.
Combine 2Chat's check-number lookup with MessageBird SMS so the agent can route to SMS when the recipient isn't on WhatsApp.
46elks API
46elks provides SMS, MMS, and voice as additional channels alongside WhatsApp delivery via 2Chat.
Add 46elks when the workflow needs voice calls or European-region SMS in addition to WhatsApp messaging.
Specific to using 2Chat WhatsApp API API through Jentic.
Why is there no official OpenAPI spec for 2Chat WhatsApp API?
2Chat does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call 2Chat WhatsApp API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the 2Chat WhatsApp API use?
It uses an API key passed in the X-User-API-Key request header. Through Jentic, the key is stored encrypted in the vault and injected at execution time, so agents never see the raw secret in their context.
Can I send WhatsApp images and documents through the 2Chat API?
Yes. POST /api/v1/whatsapp/numbers/{phoneNumber}/messages/image accepts an image URL and optional caption, and POST /api/v1/whatsapp/numbers/{phoneNumber}/messages/document accepts a file URL plus filename and caption. Both return a message UUID for tracking.
How do I check if a phone number is on WhatsApp before messaging?
Call GET /api/v1/whatsapp/numbers/{phoneNumber}/check-number/{targetNumber} with one of your connected numbers and the target number in E.164 format (no leading +). The response includes is_whatsapp_user, which you can use to filter recipients.
How do I send a WhatsApp message with the 2Chat API through Jentic?
Run pip install jentic, then use the search-load-execute flow: search for 'send a whatsapp message', load the sendTextMessage operation, supply your connected phoneNumber, to_number, and text, and execute. Sign up at https://app.jentic.com/sign-up to get an agent API key for execution.
What number format does 2Chat expect for WhatsApp recipients?
Phone numbers must be in E.164 format without the leading + sign. For example, the US number +1 415 555 1234 is passed as 14155551234 in both the path parameter and the to_number body field.