API Reference
WhatsApp API
37 endpoints for messaging, broadcasts, contacts, templates, phone numbers, and business profile. One REST API.
Quick Start
Get started in 3 steps
Get API Key
Sign up for free and get your API key in seconds.
Connect Account
Use our OAuth flow to connect WhatsApp accounts.
Start Posting
Make API calls to post content to WhatsApp.
const response = await fetch('https://getlate.dev/api/v1/posts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
platforms: [{
platform: 'whatsapp',
accountId: 'acc_waba123'
}],
platformSpecificData: {
to: '+1234567890',
template: {
name: 'order_confirmation',
language: { code: 'en' },
components: [{
type: 'body',
parameters: [
{ type: 'text', text: 'John' },
{ type: 'text', text: 'ORD-12345' }
]
}]
}
},
publishNow: true
})
});
const post = await response.json();
console.log(post.post._id); // '65f1c0a9e2b5af0012ab34cd'Endpoints
WhatsApp Endpoints
/v1/whatsapp/bulkSend text, template, media, or interactive messages to one or more recipients
/v1/whatsapp/broadcastsCreate a broadcast campaign with template and recipient list
/v1/whatsapp/broadcastsList all broadcasts for an account, sorted by creation date
/v1/whatsapp/broadcasts/{id}/sendSend a broadcast campaign immediately
/v1/whatsapp/broadcasts/{id}/scheduleSchedule a broadcast for a future time
/v1/whatsapp/templatesList all message templates from your WABA (fetched from Meta Cloud API)
/v1/whatsapp/templatesCreate a new template (submitted to Meta for approval)
/v1/whatsapp/templates/{name}Update an existing message template
/v1/whatsapp/templates/{name}Delete a message template
/v1/whatsapp/contactsList contacts with filtering by tags, groups, and opt-in status
/v1/whatsapp/contactsCreate a new WhatsApp contact
/v1/whatsapp/contacts/importBulk import contacts from CSV or JSON
/v1/whatsapp/contacts/bulkBulk update contacts (tags, groups, fields)
/v1/whatsapp/groupsList all contact groups with member counts
/v1/whatsapp/phone-numbersList all purchased WhatsApp phone numbers
/v1/whatsapp/phone-numbers/availableSearch available US numbers for purchase
/v1/whatsapp/phone-numbers/purchasePurchase a WhatsApp-ready phone number
/v1/whatsapp/phone-numbers/{id}/verifyComplete phone number verification
/v1/whatsapp/business-profileGet WhatsApp Business profile (about, address, description)
/v1/whatsapp/business-profileUpdate WhatsApp Business profile fields
Media Specs
Media Requirements
| Type | Format | Max Size | Notes |
|---|---|---|---|
| Image | JPEG, PNG | 5 MB | Supported in template headers and media messages |
| Video | MP4 (H.264/AAC) | 16 MB | Supported in template headers and media messages |
| Audio | AAC, MP4, MPEG, AMR, OGG | 16 MB | Voice and audio messages |
| Document | PDF, DOC, XLS, PPT, etc. | 100 MB | Any common document format supported |
Late automatically transcodes and optimizes media for WhatsApp's requirements.
Rate Limits
API Limits
WhatsApp enforces per-phone-number messaging tiers based on your quality rating (1K, 10K, 100K, unlimited). Late handles rate limit errors (131047) with automatic retries and exponential backoff.
Late handles all rate limiting automatically. We queue and retry requests as needed.
Capabilities
Features
- 37 dedicated WhatsApp endpoints (messaging, broadcasts, contacts, templates, phone numbers, profile)
- No Meta developer app or Business Manager required. One-click Embedded Signup
- Broadcast campaigns: send to 100 recipients per request with per-user template variables
- Full template CRUD: create, list, update, delete. We track category changes to prevent surprise billing
- Contact CRM: bulk import, tags, groups, opt-in tracking, search and segmentation
- Phone number provisioning: search, purchase, and verify WhatsApp-ready US numbers via API
- Business profile management: read and update about, description, address, email, websites
- 24-hour messaging window handled automatically. Clear errors, no silent failures
- Webhook delivery for incoming messages, delivery status, and read receipts
- We absorb Meta's breaking changes so your integration keeps working
Response
Response Example
{
"post": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"status": "published",
"platforms": [{
"platform": "whatsapp",
"accountId": { "_id": "acc_waba123", "username": "My Business" },
"status": "published",
"platformPostId": "wamid.abc123"
}],
"publishedAt": "2025-01-10T10:30:00Z"
},
"message": "Post published successfully"
}Start building with WhatsApp API
Meta's WhatsApp Cloud API means navigating 5+ products, opaque template approvals, and silent webhook failures. Late abstracts all of it: no Meta developer app, no Business Manager, no App Review.
Free tier available • No credit card required • 99.97% uptime