2Chat
WhatsApp, SMS and calls with the 2Chat API
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- Sign up at 2chat.co and go to app.2chat.io/developers, “API access” tab.
- Generate a new API key and copy it.
- To message on WhatsApp, you must first connect a number to 2Chat. Trial accounts are limited to 10 requests per minute.
Tools (1)
2Chat API request
TWOCHAT_SEND_REQUESTAuthenticated call to the 2Chat API (https://api.p.2chat.io/open). Any endpoint of the API is allowed. Examples: GET /info, GET /whatsapp/get-numbers?status=connected, GET /whatsapp/channel/{uuid}, POST /whatsapp/send-message {"from_number": "+1…", "to_number": "+1…", "text": "…"} (for groups, to_group_uuid), GET /whatsapp/check-number/{from_number}/{number} (does it have WhatsApp?). Create the contact before messaging a new number to avoid WhatsApp blocks.
Required scopes
No scopes required
Input
2Chat API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

