Easily connect your systems to WhatsApp using our REST API — send and receive messages, track delivery statuses, and manage templates.
ChatArchitect provides a simple and reliable API to integrate WhatsApp messaging into your systems, apps, or CRMs. You can send text, media, and interactive messages, track statuses, manage templates, and store custom data — all with simple HTTPS requests.
APP_ID and APP_SECRET via Basic Auth.POST https://api.chatarchitect.com/webhook
Authorization: Basic <base64(APP_ID:APP_SECRET)>
Content-Type: application/json
{
"channel": "whatsapp",
"destination": "96996999699",
"webhook": "https://your-server.com/webhook",
"webhook_separate": "false"
}
POST https://api.chatarchitect.com/whatsappmessage
Authorization: Basic <base64(APP_ID:APP_SECRET)>
Content-Type: application/json
{
"channel": "whatsapp",
"destination": "96996999699",
"payload": {
"type": "text",
"message": "Hi John, how are you?"
}
}
{
"type": "message-event",
"payload": {
"id": "ee4a68a0-1203-4c85-8dc3-49d0b3226a35",
"type": "delivered"
}
}Templates are required for business-initiated messages. Retrieve or create templates easily via API.
POST https://api.chatarchitect.com/getHSM
Authorization: Basic <base64(APP_ID:APP_SECRET)>
{
"channel": "whatsapp",
"destination": "96996999699",
"getHSM": "true"
}
POST https://api.chatarchitect.com/submit_template
{
"channel": "whatsapp",
"destination": "96996999699",
"submit_template": {
"elementName": "welcome_offer",
"languageCode": "en_US",
"category": "MARKETING",
"templateType": "TEXT",
"content": "Welcome {{1}}! Your discount code is {{2}}.",
"example": "Welcome [John]! Your discount code is [12345]."
}
}Node.js
import fetch from "node-fetch";
const auth = Buffer.from(`${APP_ID}:${APP_SECRET}`).toString("base64");
await fetch("https://api.chatarchitect.com/whatsappmessage", {
method: "POST",
headers: { "Authorization": `Basic ${auth}`, "Content-Type": "application/json" },
body: JSON.stringify({
channel: "whatsapp",
destination: "96996999699",
payload: { type: "text", message: "Hi John!" }
})
});
Python
import requests, base64
auth = base64.b64encode(f"{APP_ID}:{APP_SECRET}".encode()).decode()
r = requests.post(
"https://api.chatarchitect.com/whatsappmessage",
headers={"Authorization": f"Basic {auth}", "Content-Type": "application/json"},
json={"channel": "whatsapp", "destination": "96996999699", "payload": {"type": "text", "message": "Hi John!"}}
)
print(r.json())