https://wv{{wolkvox_server}}.wolkvox.com/api/v2/whatsapp.php?api=sync_templates
Description:
This API allows you to synchronize existing message templates from a WhatsApp connector (i.e., those approved in your Meta Business Manager account) directly with your operation’s integration in Wolkvox Manager. This functionality ensures that all your approved templates are available and up to date within the Wolkvox platform, facilitating their use in campaigns and communication flows.
Benefits:
How it works:
Code Examples:
In our Postman workspace ([click here] to access it), you have access to code examples that facilitate integration with our APIs in different programming languages such as cURL, Python, JavaScript, and more.
This feature is ideal for quick integrations and allows you to adapt the API calls to your system’s programming language.
How to Use the Code Examples:
NAME | DESCRIPTION | TYPE |
---|---|---|
connector_id | The unique identification number of the WhatsApp connector integrated into your Wolkvox Manager operation. This ID is essential for the API to determine from which WhatsApp Business account the templates should be synchronized. | String |
NAME | DESCRIPTION | TYPE |
---|---|---|
code | Error code. | Int |
error | Error name. | String |
msg | Error explanation. | String |
data | Object containing the relevant payload data. | Object |
name_template | The name of the template as registered in Meta and Wolkvox. | String |
body_template | The full body text of the template, including variables (e.g., {{1}}, {{2}}). | String |
idiom | The template’s language code (e.g., “es”, “en_US”, “es_MX”). To view all supported language codes, refer to the official Meta Business documentation by clicking [here]. | String |
category | The category the template belongs to according to Meta’s guidelines (e.g., “MARKETING”, “UTILITY”, “AUTHENTICATION”, “FLOW”). | String |
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/whatsapp.php?api=sync_templates',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"connector_id": ""
}',
CURLOPT_HTTPHEADER => array(
'wolkvox-token: {{wolkvox-token}}',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
curl --location --globoff 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/whatsapp.php?api=sync_templates' \
--header 'wolkvox-token: {{wolkvox-token}}' \
--header 'Content-Type: application/json' \
--data '{
"connector_id": ""
}'
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"connector_id\": \"\"\r\n}");
Request request = new Request.Builder()
.url("https://wv{{wolkvox_server}}.wolkvox.com/api/v2/whatsapp.php?api=sync_templates")
.method("POST", body)
.addHeader("wolkvox-token", "{{wolkvox-token}}")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
import requests
import json
url = "https://wv{{wolkvox_server}}.wolkvox.com/api/v2/whatsapp.php?api=sync_templates"
payload = json.dumps({
"connector_id": ""
})
headers = {
'wolkvox-token': '{{wolkvox-token}}',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
{
"code": "200",
"error": null,
"msg": "Templates synced successfully",
"data": [
{
"name_template": "",
"body_template": "",
"idiom": "",
"category": ""
}
]
}
Sao Paulo +55 (11) 521 75 933
Santiago de Chile +56 (2) 240 533 89
Medellín +57 (604) 322 98 80
Ciudad de Guatemala +502 (2) 3141344
Ciudad de México +52 (55) 8526 36 34
Copyright © 2025 WOLKVOX MICROSYSLABS. 1820 N Corporate Lakes Blvd, unit 205. Weston, FL 33326
COLOMBIA
Medellín +57 (4) 322 98 80
Bogotá +57 (1) 381 90 40
Cali +57 (2) 891 28 46
Barranquilla +57 (5) 316 10 34
ARGENTINA
Buenos Aires +54 (11) 5217 5933
SPAIN
Madrid +34 (910) 601 691
MEXICO
Ciudad de México +52 (55) 8526 36 34
BRASIL
Brasilia +55 (61) 9836 4127
São Paulo +55 (12) 9811 155 83
UNITED STATES
New York +1 (914) 373 71 36
DOMINICAN REPUBLIC
Santo Domingo +1 (829) 249 69 68
CHILE
Santiago de Chile +56 (2) 240 533 89
GUATEMALA
Ciudad de Guatemala +502 (2) 314 1344
PERU
Lima +51 (1) 644 91 39
Copyright © 2025 WOLKVOX MICROSYSLABS.
Cra 30 # 4A – 45 Of. 205 Ed. FOREVER W&L, Medellín, Colombia
Usamos cookies, se continuar a navegar assumimos que concorda. Pode ler mais sobre a utilização de cookies nas nossas políticas de privacidade e tratamento de dados pessoais