Chatilo
USDPrices shown in US dollars Sign in Start free trial
API reference

Templates and channels

Templates are the messages WhatsApp has approved for you to send at any time. Numbers and channels list what the workspace is connected to.

List templates #

GET/api/v1/templates

Works with any key

Every WhatsApp template in the workspace, by name, with what each one needs filled in. Templates are written and submitted for approval in the app.

Query parameters

statusstring
Only templates in this state. APPROVED lists the ones that can be sent.

Returns HTTP 200

okboolean
Always true on success.
templateslist of Template
The templates.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
429rate_limited
More than 120 requests in a minute with this key. Wait for the seconds in Retry-After.

Plus the errors any request can get.

Request
curl "https://chatilo.me/api/v1/templates?status=APPROVED" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/templates?status=APPROVED');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$result = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);
const apiKey = 'YOUR_API_KEY';

const response = await fetch("https://chatilo.me/api/v1/templates?status=APPROVED", {
  headers: {
    Authorization: `Bearer ${apiKey}`,
  },
});
const result = await response.json();

if (!response.ok) {
  throw new Error(`${result.error.code}: ${result.error.message}`);
}
console.log(result);
import requests

api_key = "YOUR_API_KEY"

response = requests.get(
    "https://chatilo.me/api/v1/templates?status=APPROVED",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
result = response.json()

if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)
Response · HTTP 200
{
    "ok": true,
    "templates": [
        {
            "name": "order_update",
            "language": "en",
            "category": "UTILITY",
            "status": "APPROVED",
            "variables": {
                "header": "none",
                "header_vars": 0,
                "body_vars": 2
            },
            "id": 12,
            "number_id": 1
        }
    ]
}

Get a template #

GET/api/v1/templates/{id}

Works with any key

One template with its header, body, footer and buttons, so you can see what the placeholders stand in.

Path

idintegerrequired
The template’s id.

Returns HTTP 200

okboolean
Always true on success.
templateTemplateDetail
The template.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
404template_not_found
No template with that id in this workspace.
429rate_limited
More than 120 requests in a minute with this key. Wait for the seconds in Retry-After.

Plus the errors any request can get.

Request
curl "https://chatilo.me/api/v1/templates/12" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/templates/12');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$result = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);
const apiKey = 'YOUR_API_KEY';

const response = await fetch("https://chatilo.me/api/v1/templates/12", {
  headers: {
    Authorization: `Bearer ${apiKey}`,
  },
});
const result = await response.json();

if (!response.ok) {
  throw new Error(`${result.error.code}: ${result.error.message}`);
}
console.log(result);
import requests

api_key = "YOUR_API_KEY"

response = requests.get(
    "https://chatilo.me/api/v1/templates/12",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
result = response.json()

if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)
Response · HTTP 200
{
    "ok": true,
    "template": {
        "name": "order_update",
        "language": "en",
        "category": "UTILITY",
        "status": "APPROVED",
        "variables": {
            "header": "none",
            "header_vars": 0,
            "body_vars": 2
        },
        "id": 12,
        "number_id": 1,
        "header": null,
        "body": "Hi {{1}}, your order {{2}} has shipped.",
        "footer": "Reply STOP to unsubscribe",
        "buttons": [
            {
                "type": "quick_reply",
                "text": "Track order"
            }
        ],
        "rejected_reason": null,
        "created_at": "2026-01-10T08:00:00Z"
    }
}

List WhatsApp numbers #

GET/api/v1/numbers

Works with any key

The WhatsApp numbers connected to the workspace. Use an id as number_id when sending.

Returns HTTP 200

okboolean
Always true on success.
numberslist of Number
The numbers.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
429rate_limited
More than 120 requests in a minute with this key. Wait for the seconds in Retry-After.

Plus the errors any request can get.

Request
curl "https://chatilo.me/api/v1/numbers" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/numbers');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$result = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);
const apiKey = 'YOUR_API_KEY';

const response = await fetch("https://chatilo.me/api/v1/numbers", {
  headers: {
    Authorization: `Bearer ${apiKey}`,
  },
});
const result = await response.json();

if (!response.ok) {
  throw new Error(`${result.error.code}: ${result.error.message}`);
}
console.log(result);
import requests

api_key = "YOUR_API_KEY"

response = requests.get(
    "https://chatilo.me/api/v1/numbers",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
result = response.json()

if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)
Response · HTTP 200
{
    "ok": true,
    "numbers": [
        {
            "id": 1,
            "name": "Main line",
            "phone": "+91 98765 00000",
            "sandbox": false,
            "status": "connected"
        }
    ]
}

List channels #

GET/api/v1/channels

Works with any key

Everything the workspace is connected to: WhatsApp numbers, Instagram accounts, Facebook pages, Telegram bots, SMS senders and website chat widgets. Names only; access tokens are never returned.

Returns HTTP 200

okboolean
Always true on success.
channelslist of Channel
The channels, grouped by type.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
429rate_limited
More than 120 requests in a minute with this key. Wait for the seconds in Retry-After.

Plus the errors any request can get.

Request
curl "https://chatilo.me/api/v1/channels" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/channels');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$result = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);
const apiKey = 'YOUR_API_KEY';

const response = await fetch("https://chatilo.me/api/v1/channels", {
  headers: {
    Authorization: `Bearer ${apiKey}`,
  },
});
const result = await response.json();

if (!response.ok) {
  throw new Error(`${result.error.code}: ${result.error.message}`);
}
console.log(result);
import requests

api_key = "YOUR_API_KEY"

response = requests.get(
    "https://chatilo.me/api/v1/channels",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
result = response.json()

if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)
Response · HTTP 200
{
    "ok": true,
    "channels": [
        {
            "type": "whatsapp",
            "id": 1,
            "name": "Main line",
            "handle": "+91 98765 00000",
            "active": true
        },
        {
            "type": "telegram",
            "id": 2,
            "name": "Maple Thread Co.",
            "handle": "@maplethread_bot",
            "active": true
        },
        {
            "type": "widget",
            "id": 1,
            "name": "Website",
            "handle": "",
            "active": true
        }
    ]
}

Cookies on this site

We use the cookies needed to run the site and keep you signed in. With your OK we also remember choices you make here, such as the currency for prices. We don’t use advertising or tracking cookies. Cookie policy