Kerux REST API
Available on Growth and Scale plans. Open tickets, read your tickets and analytics, update a ticket's status, priority, assignee, categories and custom fields, add internal notes, and send a real reply to the customer.
- Scoped to one company. A key belongs to the company that created it. Every response contains only that company's data; anything belonging to another company reads as
404. - No person behind it. A key isn't a user account, so it has no role and can't be used to sign in, read another key, change billing, or manage teammates.
- Can email your customers. The reply endpoint sends real email, but only ever to the customer on the ticket you name. The recipient is taken from the ticket, never from the request, so a key can't be used to mail arbitrary addresses. A ticket the API itself opened can't be replied to through the API.
- Can't change settings. No access to AI configuration, your AI key, domains, inboxes, team, or plan.
- Revocable. Revoking a key on /settings/api stops it working immediately.
Authentication
Create a key on /settings/api (owners/admins only). The plaintext key is shown once, store it somewhere safe. Send it as a Bearer token on every request:
Authorization: Bearer kx_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxInvalid, revoked, or below-plan-tier keys get 401 or 403 with an error message. All data is scoped to the key's own company. There is no cross-company access.
Endpoints
List tickets, newest-updated first.
limit, default 25, max 100offset, default 0status.open|pending|closed(optional)
curl https://your-kerux-domain.com/api/v1/tickets?limit=10&status=open \
-H "Authorization: Bearer kx_live_..."{
"data": [
{
"id": "uuid",
"subject": "Refund for order #4821",
"status": "open",
"priority": "normal",
"assignee_id": "uuid | null",
"tag_ids": ["uuid"],
"created_at": "2026-06-01T12:00:00Z",
"updated_at": "2026-06-02T09:30:00Z",
"contact": { "name": "Avery Chen", "primary_email": "avery@example.com" }
}
],
"pagination": { "limit": 25, "offset": 0, "total": 142 }
}Open a ticket for a customer, for example from a Make scenario, an n8n workflow or your own form. It goes through the same intake as your public ticket form: the customer is found or added as a contact, your spam rules run, and SLA targets, alerts, webhooks and the AI treat it like any other new ticket. Automatic workflows run on email tickets only, so they don't run on API tickets.
email, required. The customer's address.subject, required, one line, max 200 characters.body, required, plain text, max 20,000 characters.name, optional, max 120 characters. Fills in a contact that has no real name yet.priority, optional.low|normal(default) |high|urgentinbox_id, optional. One of your inboxes; left out, the ticket goes to your main inbox.category_ids, optional, up to 10 of your category ids.field_values, optional, keyed by your custom-field id. A dropdown field takes one of its options.
Any other field is refused with 400, and so is an inbox, category or custom field that isn't yours. Limits: the write limit of 120 requests a minute per key, at most 5 new tickets per customer email and 300 API tickets per workspace in an hour (429). There is no Idempotency-Key header: a retried request opens a second ticket, so retry only when you got no response. A ticket opened this way is answered from Kerux; the reply endpoint below refuses it (409), so a key can't be used to email an address it typed in.
curl -X POST https://your-kerux-domain.com/api/v1/tickets \
-H "Authorization: Bearer kx_live_..." \
-H "Content-Type: application/json" \
-d '{"email": "avery@example.com", "name": "Avery Chen", "subject": "Refund for order #4821", "body": "The parcel arrived damaged.", "priority": "high"}'{
"data": {
"id": "uuid",
"subject": "Refund for order #4821",
"status": "open",
"priority": "high",
"inbox_id": "uuid | null",
"category_ids": [],
"field_values": {},
"channel": "api",
"created_at": "2026-06-01T12:00:00Z",
"contact": { "name": "Avery Chen", "primary_email": "avery@example.com" }
}
}A single ticket plus its full message thread.
curl https://your-kerux-domain.com/api/v1/tickets/<id> \
-H "Authorization: Bearer kx_live_..."{
"data": {
"id": "uuid",
"subject": "Refund for order #4821",
"status": "open",
"priority": "normal",
"assignee_id": "uuid | null",
"tag_ids": ["uuid"],
"field_values": { "fieldId": "value" },
"created_at": "2026-06-01T12:00:00Z",
"updated_at": "2026-06-02T09:30:00Z",
"contact": { "name": "Avery Chen", "primary_email": "avery@example.com" },
"messages": [
{
"id": "uuid",
"author_type": "customer",
"author_name": "Avery Chen",
"body": "<p>...</p>",
"created_at": "2026-06-01T12:00:00Z"
}
]
}
}A ticket that doesn't exist, or belongs to a different company, returns 404.
The same aggregates the in-app Analytics Overview shows: ticket volume, AI activity, and customer satisfaction. Spam never counts.
days, reporting window, default 30. Capped to your plan's reporting history; the response shows the days actually used.
curl https://your-kerux-domain.com/api/v1/analytics?days=7 \
-H "Authorization: Bearer kx_live_..."{
"range": { "from": "2026-07-19T12:00:00Z", "to": "2026-07-26T12:00:00Z", "days": 7 },
"tickets": {
"total": 42, "open": 6, "pending": 3, "closed": 33,
"unique_contacts": 28, "per_day": 6, "busiest_day": "Monday"
},
"ai": {
"answers": 25, "drafts": 4, "escalations": 5,
"avg_response_seconds": 41, "handled_pct": 57
},
"satisfaction": { "average": 4.6, "count": 12 }
}avg_response_seconds, handled_pct, and satisfaction.average are null when there's no data in the window, never a fake zero.
Update a ticket. Send only the fields you want to change.
status.open|pending|closedpriority.low|normal|high|urgentassignee_id. A teammate's uuid, ornullto unassigncategory_ids,subcategory_ids, arrays of uuidsfield_values. Object keyed by custom-field uuid
curl -X PATCH https://your-kerux-domain.com/api/v1/tickets/<id> \
-H "Authorization: Bearer kx_live_..." \
-H "Content-Type: application/json" \
-d '{"status":"closed","priority":"high"}'Every id you send must belong to your company. An assignee, category, or custom field from anywhere else is rejected with 400. Unknown field names are rejected too, rather than silently ignored.
Internal notes on a ticket. Never visible to the customer.
curl https://your-kerux-domain.com/api/v1/tickets/<id>/notes \
-H "Authorization: Bearer kx_live_..."Add an internal note. Optional author_name labels who or what wrote it (default API).
curl -X POST https://your-kerux-domain.com/api/v1/tickets/<id>/notes \
-H "Authorization: Bearer kx_live_..." \
-H "Content-Type: application/json" \
-d '{"body":"Refund approved in Stripe.","author_name":"Billing bot"}'@mentions are not parsed from API notes. A machine caller can't notify your staff by writing a name.
Send a real email reply to the ticket's customer and record it on the thread. The ticket moves to pending.
curl -X POST https://your-kerux-domain.com/api/v1/tickets/<id>/reply \
-H "Authorization: Bearer kx_live_..." \
-H "Content-Type: application/json" \
-d '{"body":"Your refund is on its way.","author_name":"Dana"}'{
"data": {
"id": "uuid",
"author_name": "Dana",
"body": "Your refund is on its way.",
"created_at": "2026-08-01T12:00:00Z",
"sent": true,
"send_error": null
}
}The reply is saved to the ticket first, then emailed. If the send fails, sent is false and send_error says why. The reply is still on the ticket rather than silently lost. Replying to a ticket marked spam returns 409.
List help-center articles. Filter with published=true|false and category_id; paginate with limit (max 100) and offset.
curl "https://your-kerux-domain.com/api/v1/help-articles?published=true&limit=50" \
-H "Authorization: Bearer kx_live_..."One article, including its full body.
curl https://your-kerux-domain.com/api/v1/help-articles/<id> \
-H "Authorization: Bearer kx_live_..."Create an article. Only title is required; body, category_id, published and audience are optional.
curl -X POST https://your-kerux-domain.com/api/v1/help-articles \
-H "Authorization: Bearer kx_live_..." \
-H "Content-Type: application/json" \
-d '{"title":"Refund policy","body":"We refund within 30 days...","published":true}'Your AI answers customers from published articles only, so publishing changes what Kerux tells people. published defaults to false when omitted. Nothing goes live by accident.
audience is "public" (default. Listed on your help center) or "internal" . When published, the AI grounds answers on it but it never appears on any public page. Use internal for docs the AI should know that customers shouldn't read directly.
Update any of title, body, category_id (null clears it), published, audience.
curl -X PATCH https://your-kerux-domain.com/api/v1/help-articles/<id> \
-H "Authorization: Bearer kx_live_..." \
-H "Content-Type: application/json" \
-d '{"body":"Updated policy text.","published":true}'Permanently delete an article. There is no undo and no trash.
curl -X DELETE https://your-kerux-domain.com/api/v1/help-articles/<id> \
-H "Authorization: Bearer kx_live_..."Your help-center categories. Use these ids as category_id when writing articles. Read-only.
curl https://your-kerux-domain.com/api/v1/help-categories \
-H "Authorization: Bearer kx_live_..."Rate limits
Enforced per key, per minute: 600 reads, 120 writes (creates, updates, deletes, notes) and 30 customer replies. Replies are tightest because they send real email from your domain. Over the limit returns 429; wait for the next minute and retry.