whatsapp
Create contact
Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
accountIdstring
WhatsApp social account ID
phonestring
Phone number in E.164 format
namestring
Contact name
email?string
Contact email
company?string
Company name
tags?array<string>
Tags for categorization
groups?array<string>
Groups the contact belongs to
isOptedIn?boolean
Whether the contact has opted in to receive messages
Default
truecustomFields?
Custom key-value fields
notes?string
Notes about the contact
Response Body
application/json
application/json
curl -X POST "https://zernio.com/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"
}
}Empty
{
"error": "Unauthorized"
}Empty
Empty