Create WhatsApp sender
curl --request POST \
--url https://api.lehar.ai/ca/api/v0/whatsapp/senders \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"sender": "919812345678",
"display_name": "Acme Support",
"phone_number_id": "1234567890",
"waba_id": "9876543210",
"status": "pending_signup",
"metadata": {}
}
'import requests
url = "https://api.lehar.ai/ca/api/v0/whatsapp/senders"
payload = {
"sender": "919812345678",
"display_name": "Acme Support",
"phone_number_id": "1234567890",
"waba_id": "9876543210",
"status": "pending_signup",
"metadata": {}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sender: '919812345678',
display_name: 'Acme Support',
phone_number_id: '1234567890',
waba_id: '9876543210',
status: 'pending_signup',
metadata: {}
})
};
fetch('https://api.lehar.ai/ca/api/v0/whatsapp/senders', 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.lehar.ai/ca/api/v0/whatsapp/senders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sender' => '919812345678',
'display_name' => 'Acme Support',
'phone_number_id' => '1234567890',
'waba_id' => '9876543210',
'status' => 'pending_signup',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lehar.ai/ca/api/v0/whatsapp/senders"
payload := strings.NewReader("{\n \"sender\": \"919812345678\",\n \"display_name\": \"Acme Support\",\n \"phone_number_id\": \"1234567890\",\n \"waba_id\": \"9876543210\",\n \"status\": \"pending_signup\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.lehar.ai/ca/api/v0/whatsapp/senders")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"sender\": \"919812345678\",\n \"display_name\": \"Acme Support\",\n \"phone_number_id\": \"1234567890\",\n \"waba_id\": \"9876543210\",\n \"status\": \"pending_signup\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lehar.ai/ca/api/v0/whatsapp/senders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sender\": \"919812345678\",\n \"display_name\": \"Acme Support\",\n \"phone_number_id\": \"1234567890\",\n \"waba_id\": \"9876543210\",\n \"status\": \"pending_signup\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "wsnd_01HZY3K9M2QJ4R7V8T0N5B6C7D",
"sender": "919812345678",
"display_name": "Acme Support",
"phone_number_id": "1234567890",
"waba_id": "9876543210",
"status": "pending_signup",
"quality_rating": null,
"messaging_tier": null,
"provider": "trustsignal",
"metadata": {},
"created_at": "2026-09-01T10:15:00Z",
"updated_at": "2026-09-01T10:15:00Z"
}{
"error": {
"code": "invalid_request",
"message": "sender is required (8-15 digit WhatsApp business number)"
}
}{
"error": {
"code": "unauthorized",
"message": "Authentication required"
}
}{
"error": {
"code": "forbidden",
"message": "This role cannot manage WhatsApp numbers"
}
}{
"error": {
"code": "not_found",
"message": "Customer not found"
}
}{
"error": {
"code": "conflict",
"message": "Sender 919812345678 is already registered"
}
}WhatsApp Numbers
Create WhatsApp sender
Registers a WhatsApp business sender number in the workspace inventory (records the number and its Meta phone_number_id; the actual TrustSignal onboarding is an ops step). Restricted to workspace admins (customer_admin / platform_admin); an API key carrying the scope is also accepted (admin-tier write). Scope whatsapp_numbers:write.
POST
/
whatsapp
/
senders
Create WhatsApp sender
curl --request POST \
--url https://api.lehar.ai/ca/api/v0/whatsapp/senders \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"sender": "919812345678",
"display_name": "Acme Support",
"phone_number_id": "1234567890",
"waba_id": "9876543210",
"status": "pending_signup",
"metadata": {}
}
'import requests
url = "https://api.lehar.ai/ca/api/v0/whatsapp/senders"
payload = {
"sender": "919812345678",
"display_name": "Acme Support",
"phone_number_id": "1234567890",
"waba_id": "9876543210",
"status": "pending_signup",
"metadata": {}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sender: '919812345678',
display_name: 'Acme Support',
phone_number_id: '1234567890',
waba_id: '9876543210',
status: 'pending_signup',
metadata: {}
})
};
fetch('https://api.lehar.ai/ca/api/v0/whatsapp/senders', 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.lehar.ai/ca/api/v0/whatsapp/senders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sender' => '919812345678',
'display_name' => 'Acme Support',
'phone_number_id' => '1234567890',
'waba_id' => '9876543210',
'status' => 'pending_signup',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lehar.ai/ca/api/v0/whatsapp/senders"
payload := strings.NewReader("{\n \"sender\": \"919812345678\",\n \"display_name\": \"Acme Support\",\n \"phone_number_id\": \"1234567890\",\n \"waba_id\": \"9876543210\",\n \"status\": \"pending_signup\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.lehar.ai/ca/api/v0/whatsapp/senders")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"sender\": \"919812345678\",\n \"display_name\": \"Acme Support\",\n \"phone_number_id\": \"1234567890\",\n \"waba_id\": \"9876543210\",\n \"status\": \"pending_signup\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lehar.ai/ca/api/v0/whatsapp/senders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sender\": \"919812345678\",\n \"display_name\": \"Acme Support\",\n \"phone_number_id\": \"1234567890\",\n \"waba_id\": \"9876543210\",\n \"status\": \"pending_signup\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "wsnd_01HZY3K9M2QJ4R7V8T0N5B6C7D",
"sender": "919812345678",
"display_name": "Acme Support",
"phone_number_id": "1234567890",
"waba_id": "9876543210",
"status": "pending_signup",
"quality_rating": null,
"messaging_tier": null,
"provider": "trustsignal",
"metadata": {},
"created_at": "2026-09-01T10:15:00Z",
"updated_at": "2026-09-01T10:15:00Z"
}{
"error": {
"code": "invalid_request",
"message": "sender is required (8-15 digit WhatsApp business number)"
}
}{
"error": {
"code": "unauthorized",
"message": "Authentication required"
}
}{
"error": {
"code": "forbidden",
"message": "This role cannot manage WhatsApp numbers"
}
}{
"error": {
"code": "not_found",
"message": "Customer not found"
}
}{
"error": {
"code": "conflict",
"message": "Sender 919812345678 is already registered"
}
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
WhatsApp business number, 8-15 digits (non-digits are stripped).
Human-readable label.
Meta business phone_number_id; must be globally unique.
Meta WhatsApp Business Account id.
Available options:
pending_signup, provisioning, active, flagged, failed, archived Arbitrary JSON object.
Response
The sender was created.
Available options:
pending_signup, provisioning, active, flagged, failed, archived 
