Create contact
Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
API key authentication - use your Late API key as a Bearer token
In: header
WhatsApp social account ID
Phone number in E.164 format
Contact name
Contact email
Company name
Tags for categorization
Groups the contact belongs to
Whether the contact has opted in to receive messages
trueCustom key-value fields
Notes about the contact
Response Body
application/json
application/json
curl -X POST "https://getlate.dev/api/v1/whatsapp/contacts" \ -H "Content-Type: application/json" \ -d '{ "accountId": "507f1f77bcf86cd799439011", "phone": "+1234567890", "name": "John Doe", "email": "john@example.com", "tags": [ "vip", "newsletter" ], "groups": [ "customers" ] }'{
"success": true,
"contact": {
"id": "string",
"phone": "string",
"name": "string",
"email": "string",
"company": "string",
"tags": [
"string"
],
"groups": [
"string"
],
"isOptedIn": true,
"createdAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}Create broadcast POST
Create a new draft broadcast. Optionally include initial recipients. After creation, add recipients and then send or schedule the broadcast.
Create template POST
Create a new message template. Supports two modes: **Custom template:** Provide `components` with your own content. Submitted to Meta for review (can take up to 24h). **Library template:** Provide `library_template_name` instead of `components` to use a pre-built template from Meta's template library. Library templates are **pre-approved** (no review wait). You can optionally customize parameters and buttons via `library_template_body_inputs` and `library_template_button_inputs`. Browse available library templates at: https://business.facebook.com/wa/manage/message-templates/