API Reference
All endpoints (except /login and /health) require the header:
Authorization: Bearer <access_token>Base URL
https://api.chattigo.comAll routes live under the version prefix (default v1).
Endpoint summary
Templates
| Method | Route | Description |
|---|---|---|
| POST | /v1/templates/{did} | Create template |
| PUT | /v1/templates/{did}/{messageTemplateId} | Edit template |
| DELETE | /v1/templates/{did}/{messageTemplateId} | Delete template |
| GET | /v1/templates | List templates |
| PATCH | /v1/templates/status | Bulk status change |
| POST | /v1/templates/sync-from-meta | Sync from Meta |
| GET | /v1/templates/{messageTemplateId}/channel-campaigns-grouped | List assignments grouped by campaign |
| POST/PUT/DELETE | /v1/templates/{messageTemplateId}/channel-campaigns | Channel-campaign assignment |
| GET | /v1/templates/campaigns/channels | Campaigns with channels |
Catalogs
| Method | Route | Description |
|---|---|---|
| GET | /v1/catalogs/{did} | List catalogs |
| GET | /v1/catalogs/{did}/products | List products of a catalog |
Media
| Method | Route | Description |
|---|---|---|
| GET | /v1/{did}/media/{mediaId} | Download WhatsApp media |
| POST | /v1/{did}/uploads | Resumable upload |
Pricing
| Method | Route | Description |
|---|---|---|
| GET | /v1/pricing?market=&category= | Rate by market and category |
| GET | /v1/pricing/markets | Available markets |
Webhooks
| Method | Route | Description |
|---|---|---|
| GET | /v1/webhook/config | Get configuration |
| PUT | /v1/webhook/config | Create/update configuration |
Client WhatsApp Channels
| Method | Route | Description |
|---|---|---|
| GET | /v1/client-whatsapp-channels | List client WhatsApp channels (BSP_CN) |
Outbound
| Method | Route | Description |
|---|---|---|
| POST | /v1/template/messages/{did} | Send template |
Authentication
| Method | Route | Description |
|---|---|---|
| POST | /login | Get JWT |
Common parameters
| Parameter | Location | Description |
|---|---|---|
did | path | WhatsApp channel ID (wa_id), validated against the hierarchy |
client_id | query | Client (requires BSP_CN if it differs from the token) |