API for developers
Connect your own software to TickyTalk. Read and answer conversations, assign them, manage contacts and get notified instantly via webhooks when something happens.
Getting started
- Log in as an admin and go to Settings → API and webhooks. The API is included in Groei and Pro.
- Create a key. Choose "Can also write" if your integration sends replies or changes data. You see the key once: store it safely, for example in your server’s secrets.
- Make your first request:
curl https://tickytalk.com/api/v1/conversations?status=open&limit=10 \ -H "Authorization: Bearer tt_…"
Base URL: https://tickytalk.com/api/v1 · Everything is JSON (UTF-8). Times are ISO 8601 in UTC. OpenAPI description (openapi.json)
Authentication
Send the key in the Authorization: Bearer tt_… header (or X-Api-Key: tt_…). A key belongs to one account and only sees that account’s data. Only call the API from your server, never from a browser or app: anyone could read the key there.
Lists and limits
Lists return the newest first, 25 per page (limit, max 100). If has_more is true, request the next page with after=<next_after>.
Limit: 120 requests per minute per key. Every response includes X-RateLimit-Limit and X-RateLimit-Remaining.
Endpoints
| Request | What it does |
|---|---|
GET /me | Account and key |
GET /conversations | Conversations, newest first. Filters: status (open, closed, spam, all), channel_id, assignee_id, team_id, contact_id, label_id, updated_since. |
GET /conversations/{id} | One conversation with channel, contact and labels |
PATCH /conversations/{id} | Change status, assignee, team and labels write key |
GET /conversations/{id}/messages | Messages and notes of a conversation, newest first |
POST /conversations/{id}/messages | Send a reply or add an internal note write key |
GET /contacts | Contacts, newest first. Filters: email, phone, q (search). |
POST /contacts | Create a contact write key |
GET /contacts/{id} | One contact |
PATCH /contacts/{id} | Update a contact write key |
GET /users | Users |
GET /teams | Teams with their members |
GET /labels | Labels |
GET /channels | Channels |
Send a reply and close the conversation
With type "reply" the message goes to the customer via the conversation’s channel (email, WhatsApp, chat …). With type "note" you add an internal note. With user_id you send on behalf of a colleague.
curl -X POST https://tickytalk.com/api/v1/conversations/123/messages \
-H "Authorization: Bearer tt_…" -H "Content-Type: application/json" \
-d '{"text":"Your order is on its way!","type":"reply","close":true}'
Assigning and labelling
add_labels accepts label ids or names; an unknown name becomes a new label.
curl -X PATCH https://tickytalk.com/api/v1/conversations/123 \
-H "Authorization: Bearer tt_…" -H "Content-Type: application/json" \
-d '{"assignee_id":7,"add_labels":["returns"],"status":"open"}'
Errors
On an error you get an HTTP status code and {"error":{"code":"…","message":"…"}}.
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_json | The body is not valid JSON. |
| 401 | unauthorized | Key missing, invalid or revoked. |
| 403 | plan | The API is not included in the account’s plan (Groei and Pro only). |
| 403 | read_only_key | The key is read-only. |
| 404 | not_found | Does not exist, or belongs to another account. |
| 409 | duplicate_email | A contact with this email already exists; contact_id points to the existing contact. |
| 422 | invalid_… | A field is invalid; the message says which one. |
| 429 | rate_limited | Too many requests. Wait the number of seconds in Retry-After. |
Webhooks
A webhook sends a POST with JSON to your address (https) for each selected event. You set them up under Settings → API and webhooks, where you can also send a test and view the latest deliveries.
| Event | When |
|---|---|
conversation.created | New conversation |
message.received | Message received from a customer |
message.sent | Reply sent |
note.created | Internal note added |
conversation.assigned | Conversation assigned |
conversation.closed | Conversation closed |
conversation.reopened | Conversation reopened |
contact.created | New contact |
Example
Every event has a unique id, the event type and, in data, the conversation (with channel and contact) and, for messages, the message. Contact events contain data.contact.
{
"id": "evt_3f9a1c2b7d4e6a80",
"event": "message.received",
"created_at": "2026-12-05T09:41:00+00:00",
"account_id": 42,
"data": {
"conversation": {
"id": 123,
"subject": "Order #10482",
"status": "open",
"channel_id": 5,
"contact_id": 88,
"assignee_id": null,
"team_id": 2,
"unread": true,
"created_at": "2026-12-05T09:41:00+00:00",
"last_message_at": "2026-12-05T09:41:00+00:00",
"closed_at": null,
"url": "https://tickytalk.com/app/inbox?c=123",
"labels": [],
"channel": {
"id": 5,
"type": "whatsapp",
"name": "WhatsApp",
"address": "+31 6 1111 2222",
"active": true
},
"contact": {
"id": 88,
"name": "Marieke de Vries",
"email": null,
"phone": "+31655550001",
"custom": {},
"created_at": "2026-12-05T09:41:00+00:00"
}
},
"message": {
"id": 9001,
"conversation_id": 123,
"type": "message",
"direction": "inbound",
"text": "Hi! My order arrived, but the jacket is too small.",
"html": null,
"author": {
"type": "contact",
"id": 88
},
"delivery_status": null,
"attachments": [],
"created_at": "2026-12-05T09:41:00+00:00"
}
}
}
Verifying the signature
The X-TickyTalk-Signature header contains t=<unix-time>,v1=<signature>. The signature is HMAC-SHA256 over "<t>.<raw body>" with the webhook secret. Compare in constant time and reject events older than 5 minutes.
// Node.js: verify a webhook signature
const [t, v1] = req.headers['x-tickytalk-signature'].split(',').map(p => p.split('=')[1]);
const ok = crypto.timingSafeEqual(
Buffer.from(crypto.createHmac('sha256', SECRET).update(t + '.' + rawBody).digest('hex')),
Buffer.from(v1));
// Also reject when t is more than 5 minutes off.
// PHP
[$t, $v1] = array_map(fn($p) => explode('=', $p, 2)[1], explode(',', $_SERVER['HTTP_X_TICKYTALK_SIGNATURE']));
$ok = hash_equals(hash_hmac('sha256', $t . '.' . file_get_contents('php://input'), $secret), $v1)
&& abs(time() - (int)$t) < 300;
Delivery and retries
Respond within 10 seconds with a 2xx status. Otherwise we retry after 1, 5, 30, 120 and 720 minutes. After 25 failed deliveries in a row we switch the webhook off and notify the admins. The same event can occasionally arrive twice: use the id to detect duplicates.
Want to try it yourself?
The API and webhooks are included in Groei and Pro. Try it free for 14 days.