Messaging
Verify a WhatsApp connection
Calls your provider with the stored credentials and records the outcome. A connection must be ACTIVE before POST /messaging/send will accept it. On failure the reason lands in last_error_message.
POST
/
messaging
/
connections
/
{connectionId}
/
verify
Verify a WhatsApp connection
curl --request POST \
--url https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"connection": {
"id": "mc_4d5e6f70-8192-a3b4-c5d6-e7f809122334",
"connection_id": "mc_4d5e6f70-8192-a3b4-c5d6-e7f809122334",
"provider": "aisensy",
"api_mode": "campaign",
"channel": "whatsapp",
"name": "AiSensy — Sales",
"status": "ACTIVE",
"is_default": true,
"credentials": {
"api_key": "sk_l****9f2c"
},
"webhook_url": "https://api.vocobase.com/api/whatsapp/webhooks/aisensy/7c1f9a2b4d6e8013",
"webhook_secret_set": true,
"last_verified_at": "2026-08-22T10:05:00.000Z",
"last_error_message": null,
"created_at": "2026-08-22T09:58:00.000Z",
"updated_at": "2026-08-22T10:05:00.000Z"
}
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}⌘I
Verify a WhatsApp connection
curl --request POST \
--url https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/messaging/connections/{connectionId}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"connection": {
"id": "mc_4d5e6f70-8192-a3b4-c5d6-e7f809122334",
"connection_id": "mc_4d5e6f70-8192-a3b4-c5d6-e7f809122334",
"provider": "aisensy",
"api_mode": "campaign",
"channel": "whatsapp",
"name": "AiSensy — Sales",
"status": "ACTIVE",
"is_default": true,
"credentials": {
"api_key": "sk_l****9f2c"
},
"webhook_url": "https://api.vocobase.com/api/whatsapp/webhooks/aisensy/7c1f9a2b4d6e8013",
"webhook_secret_set": true,
"last_verified_at": "2026-08-22T10:05:00.000Z",
"last_error_message": null,
"created_at": "2026-08-22T09:58:00.000Z",
"updated_at": "2026-08-22T10:05:00.000Z"
}
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}