whatsapp
Create broadcast
Create a new draft broadcast. Optionally include initial recipients. After creation, add recipients and then send or schedule the broadcast.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
accountIdstring
WhatsApp social account ID
namestring
Broadcast name
description?string
Broadcast description
template
recipients?
Initial recipients (optional)
Response Body
application/json
application/json
curl -X POST "https://getlate.dev/api/v1/whatsapp/broadcasts" \ -H "Content-Type: application/json" \ -d '{ "accountId": "507f1f77bcf86cd799439011", "name": "Weekly Newsletter", "description": "Weekly product updates", "template": { "name": "weekly_update", "language": "en_US" }, "recipients": [ { "phone": "+1234567890", "name": "John", "variables": { "1": "John" } } ] }'{
"success": true,
"broadcast": {
"id": "string",
"name": "string",
"description": "string",
"template": {},
"status": "string",
"recipientCount": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
}Empty
{
"error": "Unauthorized"
}Empty
Check subreddit existence GET
Check if a subreddit exists and return basic info (title, subscriber count, NSFW status, post types allowed). Uses Reddit's public JSON API (no Reddit auth needed). Returns `exists: false` for private, banned, or nonexistent subreddits.
Create contact POST
Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).