WhatsApp Business API Documentation
Everything you need to integrate Chat Mitra WhatsApp API into your application. From setup to advanced features, we've got you covered with comprehensive guides, code examples, and API references.
Frequently Asked Questions
How do I get started with Chat Mitra API?
Create an account at chatmitra.com, go to Settings โ API Keys to get your Bearer token, then refer to our Getting Started guide to send your first message.
What's the difference between conversation cost and per-message cost?
A conversation is a 24-hour window. You pay โน0.20 per NEW conversation. Unlimited messages within that 24-hour window cost nothing extra. After 24 hours, the next message starts a new conversation.
Can I send messages to any phone number?
Yes, but the phone number must be a valid WhatsApp account with the proper format (country code + 10-15 digits). If it's a new number, you'll need 1 conversation credit.
How do webhooks work?
Webhooks are HTTP callbacks. When an event happens (like receiving a message), we POST data to your webhook URL. You verify the signature and process the event. No polling needed!
What file formats and sizes are supported?
Images (JPG/PNG/WEBP, max 5MB), Videos (MP4/3GP, max 100MB), Audio (MP3/OGG/OPUS, max 16MB), Documents (PDF/Word/Excel, max 100MB). Always use HTTPS links, not local files.
How do I verify webhook signatures?
We send an X-Webhook-Signature header with each request. Verify it using HMAC-SHA256 with your webhook secret. This ensures requests come from Chat Mitra.
What are template parameters and placeholders?
Templates have placeholders like $name, $amount. You provide values in the API request. They must exactly match approved template structure from Meta.
Where can I find code examples?
Check our Code Examples section with ready-to-use snippets in JavaScript, Python, PHP, and cURL. Also see our GitHub repository for complete projects.
Can't Find What You're Looking For?
Get help from our support team or check out our community forum.
Why Developers Love Our Documentation
โ
Easy to Follow
Step-by-step guides written in simple English. No jargon, just practical instructions.
๐ก
Code Examples
Copy-paste ready code snippets in JavaScript, Python, PHP, and more. No guessing required.
๐
Quick Setup
Get your first message sent in just 5 minutes. Seriously. We've optimized for speed.
๐
Complete Coverage
From basics to advanced features. Every endpoint, every parameter, every use case documented.
๐
Troubleshooting
Common errors explained with solutions. Debug faster with our detailed error guides.
๐
Always Updated
Documentation updated with every API change. No outdated information, ever.