WhatsApp messaging
WhatsApp messaging is POST https://api.verifik.co/v2/communication/whatsapp, not GET. The body requires phone and countryCode. The route sets phoneGateway to whatsapp. Optional whatsappTemplate is authentication (the default) or flow2. With flow2, language picks flow2_es or flow2_en, and optional title (1 to 15 characters) is the branded section.
What the call returns
phoneandcountryCodephoneGatewayset towhatsappstatus
Use cases
- Send a login code on WhatsApp.
- Choose flow2 when you need a branded template.
- Keep authentication as the default template.
API Reference
Endpoint
POST https://api.verifik.co/v2/communication/whatsapp
A successful send returns phoneGateway whatsapp and status sent.
Headers
| Name | Value | Description |
|---|---|---|
| Content-Type | application/json | Request payload format |
| Accept | application/json | Response format |
| Authorization | Bearer <your_token> | Client JWT |
Parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
phone | string | Yes | 3001234567 | National number only. |
countryCode | string | Yes | +57 | Dial code starting with +. |
whatsappTemplate | string | No | authentication | Optional. authentication (default) or flow2. |
language | string | No | es | Optional. With flow2, selects flow2_es or flow2_en. |
Request
- Node.js / JavaScript
- Python
- cURL
import axios from "axios";
const options = {
method: "POST",
url: "https://api.verifik.co/v2/communication/whatsapp",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: "Bearer <your_token>",
},
data: {
"phone": "3001234567",
"countryCode": "+57",
"whatsappTemplate": "authentication"
},
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error.response ? error.response.data : error.message);
}
import requests
url = "https://api.verifik.co/v2/communication/whatsapp"
headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer <your_token>",
}
payload = {
"phone": "3001234567",
"countryCode": "+57",
"whatsappTemplate": "authentication",
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
curl -X POST "https://api.verifik.co/v2/communication/whatsapp" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer <your_token>" \
-d '{"phone":"3001234567","countryCode":"+57","whatsappTemplate":"authentication"}'
Response
- 200 (Record found)
- 409 (Missing parameter)
- 404 (Not found)
- 401 (Unauthorized)
- 500 (Source unavailable)
{
"data": {
"phone": "3001234567",
"countryCode": "+57",
"phoneGateway": "whatsapp",
"status": "sent"
},
"signature": {
"dateTime": "November 27, 2026 12:00 PM",
"message": "Certified by Verifik.co"
}
}
{
"code": "MissingParameter",
"message": "\"phone\" is required"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
{
"code": "InternalServerError",
"message": "The official source is temporarily unavailable. Please retry shortly."
}
Notes
- This route is POST, not GET.
whatsappTemplateis optional:authenticationorflow2.- The route sets
phoneGatewaytowhatsapp. - Send a Bearer JWT in the
Authorizationheader. - The JSON sample illustrates the fields. A live call returns the record for the values you send.
- Do not send a cache-bypass flag. This page documents only the client parameters.
Sandbox
| Scenario | Parameters | Result |
|---|---|---|
| Record on file | phone: "3001234567", countryCode: "+57" | 200 when the WhatsApp OTP is sent. |
| Missing required value | Omit countryCode | 409 MissingParameter. |
| Unknown value | whatsappTemplate: "flow2", language: "es" | 200 using the flow2 template when language is es. |
401 when the bearer token is missing or rejected.