whatsapp
Get contact
Retrieve a single WhatsApp contact by ID with full details.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
contactIdstring
Contact ID
Response Body
application/json
application/json
application/json
curl -X GET "https://zernio.com/api/v1/whatsapp/contacts/string"{
"success": true,
"contact": {
"id": "string",
"phone": "string",
"waId": "string",
"name": "string",
"email": "string",
"company": "string",
"tags": [
"string"
],
"groups": [
"string"
],
"isOptedIn": true,
"optInDate": "2019-08-24T14:15:22Z",
"optOutDate": "2019-08-24T14:15:22Z",
"isBlocked": true,
"lastMessageSentAt": "2019-08-24T14:15:22Z",
"lastMessageReceivedAt": "2019-08-24T14:15:22Z",
"messagesSentCount": 0,
"messagesReceivedCount": 0,
"customFields": {},
"notes": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Create contact POST
Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
Update contact PUT
Update an existing WhatsApp contact. All fields are optional; only provided fields will be updated. Custom fields are merged with existing values. Set a custom field to null to remove it.