Chat2MeAPI v1
Get API key

Chat2Me API

Send WhatsApp messages from your own connected number using a simple REST API. Use it for order updates, OTPs, appointment reminders and CRM alerts.

Base URL
Before you start: connect at least one WhatsApp number in Dashboard → Numbers. Copy the number's Instance ID from GET /v1/instances.

Authentication

Every request must include your secret API key in the x-api-key header. Find it in Dashboard → API. If it leaks, regenerate it there — the old key stops working immediately.

x-api-key: c2m_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Limits & safe sending

POSTSend a message

POST/v1/send

Sends a text message from one of your connected numbers.

FieldTypeDescription
instance requiredstringInstance ID of your connected number
to requiredstringRecipient with country code, digits only. e.g. 919876543210
text requiredstringMessage body. Emojis and WhatsApp formatting (*bold*, _italic_) supported.

Response 200

{ "ok": true, "id": "a1b2c3d4e5f6" }

POSTSend an image or PDF

POST/v1/send

Send an image, video or document with a caption. First upload the file with POST /v1/media, then pass its mediaId.

FieldTypeDescription
instance requiredstringInstance ID of your connected number
to requiredstringRecipient with country code, digits only
mediaId requiredstringID returned by POST /v1/media
textstringCaption shown under the image / document (optional)

Images (JPG, PNG, WEBP) arrive as photos; PDF, Word, Excel, PowerPoint, TXT and CSV arrive as documents with their file name; MP4 as video.

Blocked for safety: apps and programs (APK, EXE, BAT, JS, JAR…), archives (ZIP, RAR, 7Z), and any file whose content does not match its name (e.g. a program renamed to .jpg or .pdf).

POSTUpload media

POST/v1/media

Upload one file as multipart/form-data in the field file. Images and PDFs are compressed automatically.

TypeFormatsMax size
ImageJPG, PNG, WEBP2 MB (after auto-compression; uploads up to 30 MB are shrunk)
PDF / documentPDF, Word, Excel, PowerPoint, TXT, CSV10 MB
VideoMP430 MB
{
  "id": "9f2c41ab77d0e513",
  "name": "brochure.pdf",
  "kind": "document",
  "size": 482113,
  "expiresAt": 1796540000000
}
Auto-delete: files are removed 24 hours after they were last sent, or 7 days after upload if never sent. Your plan includes 50 MB – 1 GB of storage. GET /v1/media lists files, DELETE /v1/media/{id} removes one.

GETList numbers

GET/v1/instances

Returns all WhatsApp numbers on your account with their connection status and today's usage.

[{
  "id": "AD85EC549B72",
  "label": "Sales",
  "number": "919994063275",
  "status": "connected",
  "sentToday": 42,
  "dailyLimit": 250
}]

status is one of connected, qr, connecting, reconnecting, logged_out.

GETMessage status

GET/v1/messages/{id}

Look up a message by the id returned from /v1/send.

{
  "id": "a1b2c3d4e5f6",
  "ts": 1795932175028,
  "type": "api",
  "to": "919876543210",
  "status": "sent"
}

Errors

Errors return a non-2xx status and a JSON body: { "error": "message" }

CodeMeaningWhat to do
400Bad request / number not on WhatsApp / number disconnectedCheck the error text; re-scan QR if disconnected
401Invalid or missing API keySend a valid x-api-key
404Instance not found on your accountUse an ID from /v1/instances
429Plan, monthly or daily safe limit reachedWait until tomorrow or upgrade your plan

Use cases

🛒 Order updates

Trigger from WooCommerce/Shopify webhooks when an order ships.

🔐 OTP & login

Send one-time codes to customers who registered with their number.

📅 Reminders

Appointment, fee and EMI reminders from your CRM or Google Sheets.