Connect WhatsApp numbers via QR-code

White-label API for WhatsApp Messenger and WhatsApp Business

Connect existing WhatsApp numbers via Linked Devices and scanning a QR code. Your customers don't need to have access to 2Chat. Simple and flexible API with pricing that scales with your needs.

curl --location --request POST 'https://api.p.2chat.io/open/whatsapp/send-message' \ --header 'X-User-API-Key: your_api_key_here' \ --header 'Content-Type: application/json' \ --data-raw '{ "to_number": "+5215512345432", "from_number": "+595981048477", "text": "Hello from 2Chat API" }'
WhatsApp BusinessWhatsApp

Host your WhatsApp numbers with 2Chat paying 10/connection (or 0.33 per day), or even less with 10+ numbers connected.

curl -X POST --location 'https://api.p.2chat.io/open/whatsapp/channel/create' \ --header 'Content-Type: application/json' \ --header 'X-User-API-Key: your_api_key_here' \ --data '{ "phone_number": "+18647351567", "friendly_name": "Testing number creation" }'
Customer number connection

Connect Your Customers' WhatsApp Numbers

Connect customer WhatsApp numbers via API to send and receive messages, manage groups, create chatbots, and more.

Validate WhatsApp Numbers Instantly
Number verification

Validate WhatsApp Numbers Instantly

Verify if phone numbers are active on WhatsApp before sending messages. Our verification API helps you check number validity and maintain clean contact lists for optimal message deliverability.

curl -X POST --location 'https://api.p.2chat.io/open/whatsapp/group/create' \ --header 'Content-Type: application/json' \ --header 'X-User-API-Key: your_api_key_here' \ --data '{ "from_number": "+595981048477", "group": { "name": "My cool WhatsApp group", "participants": [ "+17137157533", "+18647351567" ] } }'
Group messaging

Powerful Group Management API

Automate WhatsApp groups at scale with 2Chat's API. Create groups, send messages, manage members, and monitor activity - ideal for community engagement and team collaboration.

Send and Receive Images, Videos, and Documents
Media handling

Send and Receive Images, Videos, and Documents

Send and receive high-quality documents and media files through our API. Manage file uploads and track delivery status to build engaging WhatsApp experiences.

Expose 2Chat to Claude, ChatGPT and any LLM
MCP Server

Expose 2Chat to Claude, ChatGPT and any LLM

Skip writing your own tool layer. The official 2Chat Model Context Protocol server publishes every WhatsApp, WABA, SMS, voice, contact and account endpoint as a typed tool, ready to plug into Claude, ChatGPT, OpenClaw with Hermes, Cursor, n8n and any other MCP-aware client.

Built for AI-native development
Vibe-coding ready

Built for AI-native development

Drop the 2Chat docs, OpenAPI spec or MCP server into Claude Code, Cursor, ChatGPT or any agent that helps you ship. Predictable REST endpoints, clear schemas and a single API key header mean your AI pair can scaffold integrations in minutes, not days.

Public OpenAPI spec ready for code generation

Postman collection with ready-to-paste examples

MCP server so agents can hit the API directly

Agent skills for Claude and other AI agents (npx skills add 2ChatCo/agent-skills)

Add telephony to your product
Voice and virtual numbers

Add telephony to your product

Embed real phone calls inside your app and provision virtual numbers in 90+ countries, all through the same 2Chat platform. Use the voice SDK to drop a call interface into any web or mobile UI, and the virtual numbers API to buy, list and manage numbers programmatically.

JavaScript voice SDK for in-app calling

REST API to search, purchase and manage virtual numbers

Local, mobile and toll-free coverage across 90+ countries

API reference

Every part of 2Chat behind one REST API

The same API key covers WhatsApp Web numbers, the WhatsApp Business API, groups, catalogs, contacts, webhooks, phone calls, SMS and virtual numbers. Each group below links to its reference.

WhatsApp Web API

Numbers connected by QR code, with no Meta approval process.

  • Connect numbers with a QR code, list them and get their details
  • Send and receive messages, list conversations, delete messages
  • Check numbers, set the profile picture and post text, image or video statuses
View docs

WhatsApp Business API

Official Cloud API numbers for templates at scale.

  • Create, sync, get and delete message templates
  • Send template and session messages
  • Check the 24-hour conversation window and read conversations
View docs

Groups API

Run WhatsApp communities from code.

  • List groups and their participants
  • Create groups, add, remove, promote and demote participants
  • Set the description and picture, send group messages
View docs

Catalog API

Keep WhatsApp Business catalogs in sync with your inventory.

  • List, add, edit and delete products
  • Upload and remove product images
  • Create, edit and delete collections
View docs

Contacts API

The contact book behind every conversation.

  • Create, edit and delete contacts
  • Get one contact or list them all
  • Search contacts
View docs

Webhooks API

Real-time events for every channel.

  • Subscribe to WhatsApp Web, WhatsApp Business API, SMS and call events
  • List subscriptions for the account or one channel, delete them
  • Delivery logs and troubleshooting
View docs

Phone Calls API

Call data from the cloud phone system.

  • Call history and call details, including recordings
  • Look up the price of a call before dialing
  • Caller IDs, callable virtual numbers and call event webhooks
View docs

SMS API

Programmable SMS on your virtual numbers.

  • Send SMS messages
  • List SMS channels and check their status
  • List conversations and read message threads
View docs

Virtual Numbers API

Provision numbers in 90+ countries.

  • Search regions, cities and number types
  • Check the requirements for each country
  • Reserve, purchase and delete numbers
View docs

Account API

Authentication, billing and users.

  • Authenticate every call with a single API key
  • Billing rules and API response codes
  • List the users in your account
View docs

MCP server

The whole API as typed tools for AI assistants.

  • Setup guide for Claude, ChatGPT and other MCP clients
  • Tool reference for WhatsApp, calls, SMS and contacts
  • Same API key and permissions as the REST API
View docs

Agent skills

Ready-made skills that teach coding agents the 2Chat API.

  • Install with npx skills add 2ChatCo/agent-skills
  • Skills for WhatsApp, groups, catalog, WABA, contacts, webhooks, calls and SMS
  • Claude plugin for sales, customer service and group management
View docs
Coming from open source?

Using Baileys, whatsapp-web.js, or whatsmeow?

See how 2Chat's hosted WhatsApp API compares with running your own library: hosting, protocol updates, session management, and the path to the official API.

Build with 2Chat

Yes. You can use the API to generate the QR-code that you can display on your app and let your customer scan it to connect their WhatsApp number to your software using 2Chat just as an invisible intermediary.

We provide the infrastructure to connect your WhatsApp numbers via QR-code while keeping the connections alive and stable.

We not only provide the API but also a ready-to-use infrastructure. Our API is designed for production use and scale, respecting WhatsApp's limits and best practices.

Our standard pricing is 15 per connected number when choosing the Pro plan. If you plan to connect more than 20 numbers, please contact us and we will be happy to offer you a custom price.

Strategic Decision

Ready to take your communication to the next level?

Great teams don't leave results to chance. With the right communication system, you can follow up faster, build stronger relationships, and close more deals effortlessly.