Products
The product list customers browse in chat. Prices are whole numbers in the currency’s smallest unit (paise, cents), so 129950 is 1,299.50.
List products #
GET/api/v1/products
The product list, newest first. Every filter is optional and they combine.
Query parameters
qstring- Matches part of a name, SKU or category.
skustring- The exact SKU.
categorystring- The exact category.
activeboolean- true for products customers can see, false for hidden ones.
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.
productslist of Product- The products 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
- 401
unauthorized - The Authorization header is missing, or the key is wrong or deleted.
- 422
invalid_filter - active isn’t true or false.
- 429
rate_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.
curl "https://chatilo.me/api/v1/products?category=Dresses" \
-H "Authorization: Bearer YOUR_API_KEY"<?php
$apiKey = 'YOUR_API_KEY';
$ch = curl_init('https://chatilo.me/api/v1/products?category=Dresses');
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/products?category=Dresses", {
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/products?category=Dresses",
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){
"ok": true,
"products": [
{
"id": 301,
"name": "Linen dress",
"description": "Handwoven cotton with a gold border.",
"price": 249900,
"currency": "INR",
"sku": "KS-01",
"category": "Dresses",
"stock": 12,
"active": true,
"has_image": true,
"created_at": "2026-01-31T09:30:00Z",
"updated_at": "2026-01-31T09:30:00Z"
}
],
"page": 1,
"pages": 1,
"total": 1,
"limit": 50,
"has_more": false
}Get a product #
GET/api/v1/products/{id}
One product, with its price, its stock and whether customers can see it.
Path
idintegerrequired- The product’s id.
Returns HTTP 200
okboolean- Always true on success.
productProduct- The product.
Errors
- 401
unauthorized - The Authorization header is missing, or the key is wrong or deleted.
- 404
product_not_found - No product with that id in this workspace.
- 429
rate_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.
curl "https://chatilo.me/api/v1/products/301" \
-H "Authorization: Bearer YOUR_API_KEY"<?php
$apiKey = 'YOUR_API_KEY';
$ch = curl_init('https://chatilo.me/api/v1/products/301');
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/products/301", {
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/products/301",
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){
"ok": true,
"product": {
"id": 301,
"name": "Linen dress",
"description": "Handwoven cotton with a gold border.",
"price": 249900,
"currency": "INR",
"sku": "KS-01",
"category": "Dresses",
"stock": 12,
"active": true,
"has_image": true,
"created_at": "2026-01-31T09:30:00Z",
"updated_at": "2026-01-31T09:30:00Z"
}
}Create a product #
POST/api/v1/products
Adds a product in the workspace’s currency. Needs a plan that includes selling in chat.
Body JSON
namestringrequired- The product’s name, up to 150 characters.
priceintegerrequired- Above zero, in the currency’s smallest unit: 129950 for 1,299.50.
descriptionstring- Up to 800 characters.
skustring- Your own code, up to 64 characters.
categorystring- Up to 60 characters. Customers browse by category.
stockinteger or null- How many you have, 0 or more. null (the default) means unlimited.
activeboolean- false hides it from customers. True when left out.
image_urlstring- A public https link to a JPEG or PNG up to 5 MB. It is downloaded and stored.
Returns HTTP 201
okboolean- Always true on success.
productProduct- The new product.
Errors
- 401
unauthorized - The Authorization header is missing, or the key is wrong or deleted.
- 403
not_in_plan - Products and orders aren’t part of the workspace’s plan.
- 403
product_limit - The workspace already has 2,000 products.
- 403
read_only_key - A read-only key was used for a request that changes something.
- 409
idempotency_conflict - A request with the same Idempotency-Key is still running.
- 422
invalid_active - active isn’t true or false.
- 422
invalid_category - category is longer than 60 characters.
- 422
invalid_description - description is longer than 800 characters.
- 422
invalid_idempotency_key - The Idempotency-Key is longer than 200 characters.
- 422
invalid_image - image_url is private, unreachable, too large, or not a JPEG or PNG.
- 422
invalid_name - name is missing or too long.
- 422
invalid_price - price isn’t a whole number above zero.
- 422
invalid_sku - sku is longer than 64 characters.
- 422
invalid_stock - stock isn’t a whole number or null.
- 429
rate_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.
curl -X POST "https://chatilo.me/api/v1/products" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Linen dress",
"price": 249900,
"description": "Handwoven cotton with a gold border.",
"sku": "KS-01",
"category": "Dresses",
"stock": 12,
"image_url": "https://example.com/photos/kasavu.jpg"
}'<?php
$apiKey = 'YOUR_API_KEY';
$ch = curl_init('https://chatilo.me/api/v1/products');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Linen dress',
'price' => 249900,
'description' => 'Handwoven cotton with a gold border.',
'sku' => 'KS-01',
'category' => 'Dresses',
'stock' => 12,
'image_url' => 'https://example.com/photos/kasavu.jpg',
]),
]);
$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/products", {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Linen dress",
"price": 249900,
"description": "Handwoven cotton with a gold border.",
"sku": "KS-01",
"category": "Dresses",
"stock": 12,
"image_url": "https://example.com/photos/kasavu.jpg"
}),
});
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/products",
headers={"Authorization": f"Bearer {api_key}"},
json={
"name": "Linen dress",
"price": 249900,
"description": "Handwoven cotton with a gold border.",
"sku": "KS-01",
"category": "Dresses",
"stock": 12,
"image_url": "https://example.com/photos/kasavu.jpg",
},
timeout=30,
)
result = response.json()
if not response.ok:
raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result){
"ok": true,
"product": {
"id": 301,
"name": "Linen dress",
"description": "Handwoven cotton with a gold border.",
"price": 249900,
"currency": "INR",
"sku": "KS-01",
"category": "Dresses",
"stock": 12,
"active": true,
"has_image": true,
"created_at": "2026-01-31T09:30:00Z",
"updated_at": "2026-01-31T09:30:00Z"
}
}Update a product #
PUT/api/v1/products/{id}
Changes only the fields you send. Send "image_url": null to take the photo off. Past orders keep the name and price they were placed with.
Path
idintegerrequired- The product’s id.
Body JSON
namestring- The product’s name, up to 150 characters.
priceinteger- Above zero, in the currency’s smallest unit: 129950 for 1,299.50.
descriptionstring- Up to 800 characters.
skustring- Your own code, up to 64 characters.
categorystring- Up to 60 characters. Customers browse by category.
stockinteger or null- How many you have, 0 or more. null (the default) means unlimited.
activeboolean- false hides it from customers. True when left out.
image_urlstring- A public https link to a JPEG or PNG up to 5 MB. It is downloaded and stored.
Returns HTTP 200
okboolean- Always true on success.
productProduct- The product as it now is.
Errors
- 401
unauthorized - The Authorization header is missing, or the key is wrong or deleted.
- 403
read_only_key - A read-only key was used for a request that changes something.
- 404
product_not_found - No product with that id in this workspace.
- 422
invalid_active - active isn’t true or false.
- 422
invalid_category - category is longer than 60 characters.
- 422
invalid_description - description is longer than 800 characters.
- 422
invalid_image - image_url is private, unreachable, too large, or not a JPEG or PNG.
- 422
invalid_name - name is missing or too long.
- 422
invalid_price - price isn’t a whole number above zero.
- 422
invalid_sku - sku is longer than 64 characters.
- 422
invalid_stock - stock isn’t a whole number or null.
- 422
nothing_to_update - None of the fields was sent.
- 429
rate_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.
curl -X PUT "https://chatilo.me/api/v1/products/301" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"price": 229900,
"stock": 8
}'<?php
$apiKey = 'YOUR_API_KEY';
$ch = curl_init('https://chatilo.me/api/v1/products/301');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'price' => 229900,
'stock' => 8,
]),
]);
$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/products/301", {
method: 'PUT',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"price": 229900,
"stock": 8
}),
});
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/products/301",
headers={"Authorization": f"Bearer {api_key}"},
json={
"price": 229900,
"stock": 8,
},
timeout=30,
)
result = response.json()
if not response.ok:
raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result){
"ok": true,
"product": {
"id": 301,
"name": "Linen dress",
"description": "Handwoven cotton with a gold border.",
"price": 229900,
"currency": "INR",
"sku": "KS-01",
"category": "Dresses",
"stock": 8,
"active": true,
"has_image": true,
"created_at": "2026-01-31T09:30:00Z",
"updated_at": "2026-01-31T09:30:00Z"
}
}Delete a product #
DELETE/api/v1/products/{id}
Removes the product. Past orders keep their own copy of it. To stop selling something for a while, set active to false instead.
Path
idintegerrequired- The product’s id.
Returns HTTP 200
okboolean- Always true on success.
deletedinteger- The id of the product that was deleted.
Errors
- 401
unauthorized - The Authorization header is missing, or the key is wrong or deleted.
- 403
read_only_key - A read-only key was used for a request that changes something.
- 404
product_not_found - No product with that id in this workspace.
- 429
rate_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.
curl -X DELETE "https://chatilo.me/api/v1/products/301" \
-H "Authorization: Bearer YOUR_API_KEY"<?php
$apiKey = 'YOUR_API_KEY';
$ch = curl_init('https://chatilo.me/api/v1/products/301');
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/products/301", {
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/products/301",
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){
"ok": true,
"deleted": 301
}