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

Tags and segments

Tags are labels you put on contacts. Segments are saved filters (“tagged VIP and quiet for 30 days”) that are worked out afresh each time, and can be used as a broadcast audience.

List tags #

GET/api/v1/tags

Works with any key

Every tag, in alphabetical order, with how many contacts carry it. Up to 1,000.

Returns HTTP 200

okboolean
Always true on success.
tagslist of Tag
The tags.

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/tags" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/tags');
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/tags", {
  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/tags",
    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,
    "tags": [
        {
            "id": 14,
            "name": "Denver",
            "contacts": 7
        },
        {
            "id": 11,
            "name": "VIP",
            "contacts": 42
        }
    ]
}

Create a tag #

POST/api/v1/tags

Needs a read-and-write key Accepts Idempotency-Key

Creates a tag. If one with that name already exists, it is returned as it is, with status 200.

Body JSON

namestringrequired
The tag’s name, up to 60 characters.

Returns HTTP 201

okboolean
Always true on success.
tagTag
The tag.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
403read_only_key
A read-only key was used for a request that changes something.
403tag_limit
The workspace already has 1,000 tags.
409idempotency_conflict
A request with the same Idempotency-Key is still running.
422invalid_idempotency_key
The Idempotency-Key is longer than 200 characters.
422invalid_tag
name is missing or longer than 60 characters.
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 -X POST "https://chatilo.me/api/v1/tags" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Wholesale"
}'
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/tags');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'name' => 'Wholesale',
    ]),
]);
$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/tags", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "name": "Wholesale"
  }),
});
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.post(
    "https://chatilo.me/api/v1/tags",
    headers={"Authorization": f"Bearer {api_key}"},
    json={
        "name": "Wholesale",
    },
    timeout=30,
)
result = response.json()

if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)
Response · HTTP 201
{
    "ok": true,
    "tag": {
        "id": 15,
        "name": "Wholesale",
        "contacts": 0
    }
}

Delete a tag #

DELETE/api/v1/tags/{id}

Needs a read-and-write key

Deletes the tag and takes it off every contact. The contacts stay.

Path

idintegerrequired
The tag’s id.

Returns HTTP 200

okboolean
Always true on success.
deletedinteger
The id of the tag that was deleted.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
403read_only_key
A read-only key was used for a request that changes something.
404tag_not_found
No tag 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 -X DELETE "https://chatilo.me/api/v1/tags/15" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/tags/15');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'DELETE',
    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/tags/15", {
  method: 'DELETE',
  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.delete(
    "https://chatilo.me/api/v1/tags/15",
    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,
    "deleted": 15
}

List segments #

GET/api/v1/segments

Works with any key

Every saved segment with how many contacts match it right now. Segments are created in the app, under Contacts.

Returns HTTP 200

okboolean
Always true on success.
segmentslist of Segment
The segments, by name.

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/segments" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/segments');
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/segments", {
  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/segments",
    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,
    "segments": [
        {
            "id": 4,
            "name": "Quiet VIPs",
            "description": "Tagged VIP, no message from them for 30 days",
            "filters": {
                "tags": [
                    "VIP"
                ],
                "source": null,
                "added_days": null,
                "quiet_days": 30
            },
            "contacts": 18,
            "reachable": 17,
            "created_at": "2026-01-31T09:30:00Z"
        }
    ]
}

Get a segment #

GET/api/v1/segments/{id}

Works with any key

One segment and its current size.

Path

idintegerrequired
The segment’s id.

Returns HTTP 200

okboolean
Always true on success.
segmentSegment
The segment.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
404segment_not_found
No segment 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/segments/4" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/segments/4');
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/segments/4", {
  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/segments/4",
    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,
    "segment": {
        "id": 4,
        "name": "Quiet VIPs",
        "description": "Tagged VIP, no message from them for 30 days",
        "filters": {
            "tags": [
                "VIP"
            ],
            "source": null,
            "added_days": null,
            "quiet_days": 30
        },
        "contacts": 18,
        "reachable": 17,
        "created_at": "2026-01-31T09:30:00Z"
    }
}

List a segment’s contacts #

GET/api/v1/segments/{id}/contacts

Works with any key Paged

The contacts that match the segment right now, newest first.

Path

idintegerrequired
The segment’s id.

Query parameters

pageinteger
Which page, starting at 1. A page past the end is an empty list.
limitinteger
How many per page: 1 to 100. 50 when left out.

Returns HTTP 200

okboolean
Always true on success.
contactslist of Contact
The contacts on this page.
pageinteger
The page you asked for.
pagesinteger
How many pages there are at this limit.
totalinteger
How many items match in all.
limitinteger
Items per page.
has_moreboolean
True while there is a next page.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
404segment_not_found
No segment 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/segments/4/contacts" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/segments/4/contacts');
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/segments/4/contacts", {
  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/segments/4/contacts",
    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,
    "contacts": [
        {
            "id": 1001,
            "name": "Grace Miller",
            "phone": "919876543210",
            "email": "[email protected]",
            "source": "api",
            "opted_in": true,
            "tags": [
                "VIP"
            ],
            "created_at": "2026-01-31T09:30:00Z",
            "attributes": {
                "city": "Denver"
            },
            "notes": "",
            "opted_out_at": null,
            "last_seen_at": "2026-01-31T09:30:00Z",
            "updated_at": "2026-01-31T09:30:00Z"
        }
    ],
    "page": 1,
    "pages": 1,
    "total": 1,
    "limit": 50,
    "has_more": false
}

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