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

Contacts

The people you message. A contact is identified by phone number: adding one that already exists updates it. Anywhere a contact id goes in a path, a phone number with a leading plus (“+919876543210”) works too.

List contacts #

GET/api/v1/contacts

Works with any key Paged

Newest first. Every filter is optional and they combine. To find one person, use phone or email: the list is empty when nobody matches.

Query parameters

qstring
Matches part of a name or phone number.
phonestring
The exact phone number, with the country code.
emailstring
The exact email address.
tagstring
Only contacts with this tag (its exact name).
segment_idinteger
Only contacts in this segment.
opted_inboolean
true for contacts who can be messaged, false for those who opted out.
updated_sincedate-time
Only contacts added or changed at or after this time. Counts: changes through the API, edits on the contact page, new contacts from any source, and opt-outs. Does not count: tags changed inside the app, renames from the inbox, or CSV imports that update a contact.
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
segment_id is not a segment in this workspace.
422invalid_date
A date filter isn’t a date and time like 2026-01-31T09:30:00Z.
422invalid_filter
opted_in isn’t true or false.
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/contacts?tag=VIP&limit=2" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts?tag=VIP&limit=2');
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/contacts?tag=VIP&limit=2", {
  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/contacts?tag=VIP&limit=2",
    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": 2,
    "has_more": false
}

Create or update a contact #

POST/api/v1/contacts

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

The phone number decides: a number you already have is updated, a new one is added. Only phone is required. When updating, name and email are only changed if you send a value, so a blank never wipes what is there.

Body JSON

phonestringrequired
With the country code: +919876543210. Spaces and punctuation are ignored.
namestring
Their name, up to 150 characters.
emailstring
Their email address.
tagslist of string
Tag names to add. Tags that don’t exist yet are created. Existing tags are kept.
attributesobject
Your own fields, such as {"city": "Denver"}. They are merged into what is there; send null as a value to remove one. Up to 50, each value up to 500 characters.
notesstring
Notes for the team, up to 5,000 characters.
opted_inboolean
false records an opt-out; true opts them back in. Only send true when the person has asked for it.

Returns HTTP 201

okboolean
Always true on success.
contactContact
The contact as it now is. The status is 201 when it was added, 200 when it was updated.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
403contact_limit
The plan’s contact limit is reached, so a new contact can’t be added.
403read_only_key
A read-only key was used for a request that changes something.
409idempotency_conflict
A request with the same Idempotency-Key is still running.
422invalid_attributes
attributes isn’t an object of names and text values, or there are more than 50.
422invalid_idempotency_key
The Idempotency-Key is longer than 200 characters.
422invalid_phone
The phone number is missing or isn’t 8 to 15 digits with the country code.
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/contacts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "+919876543210",
    "name": "Grace Miller",
    "email": "[email protected]",
    "tags": [
        "VIP"
    ],
    "attributes": {
        "city": "Denver"
    }
}'
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'phone' => '+919876543210',
        'name' => 'Grace Miller',
        'email' => '[email protected]',
        'tags' => [
            'VIP',
        ],
        'attributes' => [
            'city' => 'Denver',
        ],
    ]),
]);
$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/contacts", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "phone": "+919876543210",
      "name": "Grace Miller",
      "email": "[email protected]",
      "tags": [
          "VIP"
      ],
      "attributes": {
          "city": "Denver"
      }
  }),
});
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/contacts",
    headers={"Authorization": f"Bearer {api_key}"},
    json={
        "phone": "+919876543210",
        "name": "Grace Miller",
        "email": "[email protected]",
        "tags": [
            "VIP",
        ],
        "attributes": {
            "city": "Denver",
        },
    },
    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,
    "contact": {
        "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"
    }
}

Create or update many contacts #

POST/api/v1/contacts/bulk

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

Up to 100 contacts in one request, each handled exactly like “Create or update a contact”. One bad row never stops the others: every row gets its own result, in the order you sent them.

Body JSON

contactslist of objectrequired
The contacts. Each takes the same fields as a single create: phone (required), name, email, tags, attributes, notes, opted_in.

Returns HTTP 200

okboolean
Always true on success.
createdinteger
How many were added.
updatedinteger
How many already existed.
failedinteger
How many were refused.
resultslist of object
One per row: {"index", "status", "id", "phone", "error"}. status is created, updated or error; error is {"code", "message"} or null.

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.
409idempotency_conflict
A request with the same Idempotency-Key is still running.
422invalid_contacts
contacts is missing or isn’t a list.
422invalid_idempotency_key
The Idempotency-Key is longer than 200 characters.
422too_many
More than 100 contacts were sent.
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/contacts/bulk" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contacts": [
        {
            "phone": "+919876543210",
            "name": "Grace Miller",
            "tags": [
                "VIP"
            ]
        },
        {
            "phone": "+919812345678",
            "name": "Ravi Menon",
            "attributes": {
                "city": "Boulder"
            }
        },
        {
            "phone": "12",
            "name": "Bad number"
        }
    ]
}'
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts/bulk');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'contacts' => [
            [
                'phone' => '+919876543210',
                'name' => 'Grace Miller',
                'tags' => [
                    'VIP',
                ],
            ],
            [
                'phone' => '+919812345678',
                'name' => 'Ravi Menon',
                'attributes' => [
                    'city' => 'Boulder',
                ],
            ],
            [
                'phone' => '12',
                'name' => 'Bad number',
            ],
        ],
    ]),
]);
$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/contacts/bulk", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "contacts": [
          {
              "phone": "+919876543210",
              "name": "Grace Miller",
              "tags": [
                  "VIP"
              ]
          },
          {
              "phone": "+919812345678",
              "name": "Ravi Menon",
              "attributes": {
                  "city": "Boulder"
              }
          },
          {
              "phone": "12",
              "name": "Bad number"
          }
      ]
  }),
});
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/contacts/bulk",
    headers={"Authorization": f"Bearer {api_key}"},
    json={
        "contacts": [
            {
                "phone": "+919876543210",
                "name": "Grace Miller",
                "tags": [
                    "VIP",
                ],
            },
            {
                "phone": "+919812345678",
                "name": "Ravi Menon",
                "attributes": {
                    "city": "Boulder",
                },
            },
            {
                "phone": "12",
                "name": "Bad number",
            },
        ],
    },
    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,
    "created": 1,
    "updated": 1,
    "failed": 1,
    "results": [
        {
            "index": 0,
            "status": "updated",
            "id": 1001,
            "phone": "919876543210",
            "error": null
        },
        {
            "index": 1,
            "status": "created",
            "id": 1002,
            "phone": "919812345678",
            "error": null
        },
        {
            "index": 2,
            "status": "error",
            "id": null,
            "phone": "12",
            "error": {
                "code": "invalid_phone",
                "message": "phone must include the country code, e.g. +919876543210."
            }
        }
    ]
}

Get a contact #

GET/api/v1/contacts/{id}

Works with any key

One contact, by id or by phone number with a leading plus.

Path

idstringrequired
The contact’s id, or their phone number with a leading plus: +919876543210.

Returns HTTP 200

okboolean
Always true on success.
contactContact
The contact.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
404contact_not_found
No contact with that id or phone number 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/contacts/1001" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts/1001');
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/contacts/1001", {
  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/contacts/1001",
    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,
    "contact": {
        "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"
    }
}

Update a contact #

PUT/api/v1/contacts/{id}

Needs a read-and-write key

Changes only the fields you send. Unlike create, an empty name or email here does clear the field. To change tags, use the tag endpoints below.

Path

idstringrequired
The contact’s id, or their phone number with a leading plus: +919876543210.

Body JSON

phonestring
A new phone number, with the country code. It must not belong to another contact.
namestring
Their name, up to 150 characters.
emailstring
Their email address.
attributesobject
Your own fields, such as {"city": "Denver"}. They are merged into what is there; send null as a value to remove one. Up to 50, each value up to 500 characters.
notesstring
Notes for the team, up to 5,000 characters.
opted_inboolean
false records an opt-out; true opts them back in. Only send true when the person has asked for it.

Returns HTTP 200

okboolean
Always true on success.
contactContact
The contact as it now is.
changedlist of string
The fields whose values actually changed.

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.
404contact_not_found
No contact with that id or phone number in this workspace.
409phone_taken
Another contact already has that phone number.
422invalid_attributes
attributes isn’t an object of names and text values, or there are more than 50.
422invalid_email
email isn’t an email address.
422invalid_notes
notes is longer than 5,000 characters.
422invalid_opted_in
opted_in isn’t true or false.
422invalid_phone
The phone number is missing or isn’t 8 to 15 digits with the country code.
422nothing_to_update
None of the fields was sent.
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 PUT "https://chatilo.me/api/v1/contacts/1001" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Grace N. Nair",
    "attributes": {
        "city": "Ernakulam",
        "size": "M"
    }
}'
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts/1001');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'PUT',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'name' => 'Grace N. Nair',
        'attributes' => [
            'city' => 'Ernakulam',
            'size' => 'M',
        ],
    ]),
]);
$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/contacts/1001", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "name": "Grace N. Nair",
      "attributes": {
          "city": "Ernakulam",
          "size": "M"
      }
  }),
});
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.put(
    "https://chatilo.me/api/v1/contacts/1001",
    headers={"Authorization": f"Bearer {api_key}"},
    json={
        "name": "Grace N. Nair",
        "attributes": {
            "city": "Ernakulam",
            "size": "M",
        },
    },
    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,
    "contact": {
        "id": 1001,
        "name": "Grace N. Nair",
        "phone": "919876543210",
        "email": "[email protected]",
        "source": "api",
        "opted_in": true,
        "tags": [
            "VIP"
        ],
        "created_at": "2026-01-31T09:30:00Z",
        "attributes": {
            "city": "Ernakulam",
            "size": "M"
        },
        "notes": "",
        "opted_out_at": null,
        "last_seen_at": "2026-01-31T09:30:00Z",
        "updated_at": "2026-01-31T09:30:00Z"
    },
    "changed": [
        "name",
        "attributes"
    ]
}

Delete a contact #

DELETE/api/v1/contacts/{id}

Needs a read-and-write key

Deletes the contact together with its conversations and messages, exactly as the Delete button on the contact page does. This cannot be undone.

Path

idstringrequired
The contact’s id, or their phone number with a leading plus: +919876543210.

Returns HTTP 200

okboolean
Always true on success.
deletedinteger
The id of the contact 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.
404contact_not_found
No contact with that id or phone number 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/contacts/1001" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts/1001');
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/contacts/1001", {
  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/contacts/1001",
    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": 1001
}

Add tags to a contact #

POST/api/v1/contacts/{id}/tags

Needs a read-and-write key

Adds one tag or several. A tag that doesn’t exist yet is created. Adding a tag can start a drip sequence that is set to begin on that tag, as it does in the app.

Path

idstringrequired
The contact’s id, or their phone number with a leading plus: +919876543210.

Body JSON

tagstring
One tag name.
tagslist of string
Several tag names. Send tag, tags, or both.

Returns HTTP 200

okboolean
Always true on success.
addedlist of string
The tags that were newly added. Ones the contact already had are left out.
contactContact
The contact as it now is.

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.
404contact_not_found
No contact with that id or phone number in this workspace.
422invalid_tag
Neither tag nor tags was sent.
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/contacts/+919876543210/tags" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tags": [
        "VIP",
        "Denver"
    ]
}'
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts/+919876543210/tags');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'tags' => [
            'VIP',
            'Denver',
        ],
    ]),
]);
$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/contacts/+919876543210/tags", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "tags": [
          "VIP",
          "Denver"
      ]
  }),
});
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/contacts/+919876543210/tags",
    headers={"Authorization": f"Bearer {api_key}"},
    json={
        "tags": [
            "VIP",
            "Denver",
        ],
    },
    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,
    "added": [
        "Denver"
    ],
    "contact": {
        "id": 1001,
        "name": "Grace Miller",
        "phone": "919876543210",
        "email": "[email protected]",
        "source": "api",
        "opted_in": true,
        "tags": [
            "Denver",
            "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"
    }
}

Remove tags from a contact #

DELETE/api/v1/contacts/{id}/tags

Needs a read-and-write key

Takes one tag or several off a contact. The tag itself stays.

Path

idstringrequired
The contact’s id, or their phone number with a leading plus: +919876543210.

Query parameters

tagstring
The tag to remove. A JSON body with tag or tags works too.

Returns HTTP 200

okboolean
Always true on success.
removedlist of string
The tags that were taken off.
contactContact
The contact as it now is.

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.
404contact_not_found
No contact with that id or phone number in this workspace.
422invalid_tag
No tag name was sent.
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/contacts/+919876543210/tags?tag=Denver" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/contacts/+919876543210/tags?tag=Denver');
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/contacts/+919876543210/tags?tag=Denver", {
  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/contacts/+919876543210/tags?tag=Denver",
    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,
    "removed": [
        "Denver"
    ],
    "contact": {
        "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"
    }
}

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