REST API
Create and read tickets for your Contacts with an API key. The Admin gives each permission a scope (the Application settings `ticket_scopes` and `include_restricted`). `own`, the default: only the tickets the Application created. `all`: every ticket that is not deleted, also tickets of Users and of other Applications. `tickets:create` always makes your own tickets. `tickets:read` with `all` reads every ticket. `tickets:update` with `own` cancels and reopens your own tickets; with `all` it also changes the Status, Priority and Fields of every ticket you read, and adds files to them. `comments:create` with `all` adds Public Comments to every ticket you read. On a ticket you did not create, you act as the Application itself (`author.kind: application`); on your own ticket, you act for its Contact. Restricted tickets (Participants only) stay hidden from every `all` scope unless `include_restricted` is on. An Application never sees staff data in any scope: no assignee (only `assigned`), no Team, no Internal Comments, no Ticket App names. People in the organization are `{ kind: "support" }`, as actors and as Requesters. Your webhook gets the Events of every ticket you can read, in the same view.
Authentication
An API key of an Application: Authorization: Bearer gt_live_.... An Admin makes the key on the Applications page. Tikki shows it once.
Authorization: Bearer gt_live_...Base URL
All paths are on your Tikki origin. The OpenAPI document is at /api/v1/openapi.json: load it in Postman, Insomnia or a code generator.
https://tikki.example.comThese routes use the API key of an Application. A Ticket App's backend uses its context token on a few other routes. See Change the ticket.
Tickets
The tickets of this Application's read scope: its own Contacts' tickets, or all tickets.
GET/api/v1/tickets
List the tickets this Application can read
Needs tickets:read. The tickets of its read scope: its own, or all. One page of tickets, in Status order: 50 by default, at most 200 with limit. To get all tickets, call again with cursor set to next_cursor until it is null.
Query
requestermeme: only the tickets this Application created.
qstring · ≤ 200Words that must all be in the title or description, or a Ticket Reference.
typeintegerOnly this Ticket Type ID.
prioritylow | normal | high | urgentfieldstringA Field value, as key:value, for example order_id:5521. Repeat for more Fields.
opentrueOnly tickets that are not done.
limitinteger · ≥ 1cursorstringThe next_cursor of the page before.
Responses
Show the fields
dataTicketSummary[]requiredcountsobjectrequiredThe number of tickets for each Status key, for all pages.
next_cursorstring | nullrequiredSend it as cursor for the next page. Null on the last page.
tickets:read.Retry-After.curl https://tikki.example.com/api/v1/tickets \
-H "Authorization: Bearer $TIKKI_KEY"const res = await fetch('https://tikki.example.com/api/v1/tickets', {
headers: {
authorization: `Bearer ${process.env.TIKKI_KEY}`,
},
})
const data = await res.json()Response
{
"data": [
{
"number": 1048,
"ref": "PAY-1048",
"title": "Charged twice for order 5521",
"priority": "high",
"status": {
"key": "open",
"name": "Open",
"category": "open"
},
"ticket_type": {
"id": 3,
"name": "Payment issue",
"prefix": "PAY",
"icon": "i-lucide-credit-card",
"color": "#A14B00"
},
"requester": {
"kind": "contact",
"id": 77,
"external_id": "cus_19ab",
"name": "Jo Park",
"email": "jo@example.org"
},
"assignee": null,
"assigned": false,
"channel": "api",
"application": {
"id": 1,
"name": "Checkout site"
},
"created_at": "2026-10-18T09:12:44.000Z",
"updated_at": "2026-10-18T09:12:44.000Z"
}
],
"counts": {
"open": 1
},
"next_cursor": null
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "The API key is not valid. It may be revoked. Send it as \"Authorization: Bearer gt_live_...\".",
"details": null
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Try again in 12 seconds.",
"details": null
}
}POST/api/v1/tickets
Create a ticket for a Contact
Needs tickets:create, and the Ticket Type must be in the allowed list. fields are checked against the Fields of the type (GET /api/v1/ticket-types/{id}). The Contact is found by external_id and gets the name and email sent.
Header
Idempotency-Keystring · 1–255A repeat with the same key in 24 hours returns the first ticket, with the header Idempotent-Replayed: true, and creates nothing. The same key with another body answers 409.
Body application/json
titlestring · 1–200requireddescriptionstring · ≤ 20000Default "".
prioritylow | normal | high | urgentDefault "normal".
ticket_type_idintegerrequiredfieldsobjectDefault {}.
contactobjectrequiredexternal_idstring · 1–200requiredYour ID for this person. The same ID always gives the same Contact.
namestring · 1–200requiredemailstring · email · ≤ 320requiredResponses
Show the fields
numberinteger · ≥ -9007199254740991requiredThe Ticket Number. It never changes; store this one (4.9c).
refstringrequiredThe Ticket Reference for display, for example PAY-1048. It changes with the Ticket Type.
titlestringrequiredprioritylow | normal | high | urgentrequiredstatusobjectrequiredkeystringrequirednamestringrequiredcategoryopen | active | waiting | donerequiredticket_typeobjectrequiredidinteger · ≥ -9007199254740991requirednamestringrequiredprefixstringrequirediconstringrequiredcolorstringrequiredrequesterobject | object | objectrequiredidstringrequirednamestringrequiredemailstringrequiredkind"user"requiredassigneeobject | nullAlways null for an Application. Use assigned.
idstringrequirednamestringrequiredemailstringrequiredassignedbooleanrequiredWhether a staff member is assigned. Their name is not shared.
teamobjectThe ticket's Team. Left out for an Application: staff structure is private.
idinteger · ≥ -9007199254740991requirednamestringrequiredchannelweb | ai | api | apprequiredapplicationobject | nullidinteger · ≥ -9007199254740991requirednamestringrequiredcreated_atstring · date-timerequiredupdated_atstring · date-timerequireddescriptionstringrequiredschema_versioninteger · ≥ -9007199254740991requiredfieldsobjectrequiredField values keyed by Field Key.
schema_fieldsobject[]requiredcomment_countinteger · ≥ -9007199254740991requiredThe comments the caller can see. An Application never sees Internal Comments.
reopened_fromobject | nullnumberinteger · ≥ -9007199254740991requiredrefstringrequiredallowed_actionsread | change_status | change_priority | assign | edit_fields | edit_description | change_type | move_team | comment | comment_internal | cancel | reopen | delete | manage_participants[]requiredrestrictedbooleanrequiredA Restricted ticket (Participants only). An Application sees one only with read: all and include_restricted.
tickets:create, or may not use this Ticket Type.details lists each problem.Retry-After.curl -X POST https://tikki.example.com/api/v1/tickets \
-H "Authorization: Bearer $TIKKI_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-5521" \
-d '{
"ticket_type_id": 3,
"title": "Charged twice for order 5521",
"description": "I see two charges of 49.00 on my card.",
"priority": "high",
"fields": {
"order_id": "5521",
"amount": "49.00"
},
"contact": {
"external_id": "cus_19ab",
"name": "Jo Park",
"email": "jo@example.org"
}
}'const res = await fetch('https://tikki.example.com/api/v1/tickets', {
method: 'POST',
headers: {
authorization: `Bearer ${process.env.TIKKI_KEY}`,
'content-type': 'application/json',
'idempotency-key': 'order-5521',
},
body: JSON.stringify({
"ticket_type_id": 3,
"title": "Charged twice for order 5521",
"description": "I see two charges of 49.00 on my card.",
"priority": "high",
"fields": {
"order_id": "5521",
"amount": "49.00"
},
"contact": {
"external_id": "cus_19ab",
"name": "Jo Park",
"email": "jo@example.org"
}
}),
})
const data = await res.json()Response
{
"number": 1048,
"ref": "PAY-1048",
"title": "Charged twice for order 5521",
"priority": "high",
"status": {
"key": "open",
"name": "Open",
"category": "open"
},
"ticket_type": {
"id": 3,
"name": "Payment issue",
"prefix": "PAY",
"icon": "i-lucide-credit-card",
"color": "#A14B00"
},
"requester": {
"kind": "contact",
"id": 77,
"external_id": "cus_19ab",
"name": "Jo Park",
"email": "jo@example.org"
},
"assignee": null,
"assigned": false,
"channel": "api",
"application": {
"id": 1,
"name": "Checkout site"
},
"created_at": "2026-10-18T09:12:44.000Z",
"updated_at": "2026-10-18T09:12:44.000Z",
"description": "I see two charges of 49.00 on my card.",
"schema_version": 2,
"fields": {
"order_id": "5521",
"amount": "49.00"
},
"schema_fields": [
{
"key": "order_id",
"label": "Order ID",
"type": "short_text",
"required": true,
"help": "The number on the receipt."
},
{
"key": "amount",
"label": "Amount",
"type": "short_text",
"required": false,
"help": ""
}
],
"comment_count": 0,
"reopened_from": null,
"allowed_actions": [
"comment"
],
"restricted": false
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "The API key is not valid. It may be revoked. Send it as \"Authorization: Bearer gt_live_...\".",
"details": null
}
}{
"error": {
"code": "IDEMPOTENCY_KEY_REUSED",
"message": "This Idempotency-Key was used with another request body in the last 24 hours. Use a new key for a new ticket.",
"details": null
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "The request has invalid values.",
"details": [
{
"key": "order_id",
"label": "Order ID",
"reason": "Required."
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Try again in 12 seconds.",
"details": null
}
}GET/api/v1/tickets/{ref}
Get one ticket
Needs tickets:read. A ticket outside the read scope answers 404, the same as one that does not exist.
Path
refstringrequiredThe Ticket Number, or a Ticket Reference such as PAY-1048.
Responses
Show the fields
numberinteger · ≥ -9007199254740991requiredThe Ticket Number. It never changes; store this one (4.9c).
refstringrequiredThe Ticket Reference for display, for example PAY-1048. It changes with the Ticket Type.
titlestringrequiredprioritylow | normal | high | urgentrequiredstatusobjectrequiredkeystringrequirednamestringrequiredcategoryopen | active | waiting | donerequiredticket_typeobjectrequiredidinteger · ≥ -9007199254740991requirednamestringrequiredprefixstringrequirediconstringrequiredcolorstringrequiredrequesterobject | object | objectrequiredidstringrequirednamestringrequiredemailstringrequiredkind"user"requiredassigneeobject | nullAlways null for an Application. Use assigned.
idstringrequirednamestringrequiredemailstringrequiredassignedbooleanrequiredWhether a staff member is assigned. Their name is not shared.
teamobjectThe ticket's Team. Left out for an Application: staff structure is private.
idinteger · ≥ -9007199254740991requirednamestringrequiredchannelweb | ai | api | apprequiredapplicationobject | nullidinteger · ≥ -9007199254740991requirednamestringrequiredcreated_atstring · date-timerequiredupdated_atstring · date-timerequireddescriptionstringrequiredschema_versioninteger · ≥ -9007199254740991requiredfieldsobjectrequiredField values keyed by Field Key.
schema_fieldsobject[]requiredcomment_countinteger · ≥ -9007199254740991requiredThe comments the caller can see. An Application never sees Internal Comments.
reopened_fromobject | nullnumberinteger · ≥ -9007199254740991requiredrefstringrequiredallowed_actionsread | change_status | change_priority | assign | edit_fields | edit_description | change_type | move_team | comment | comment_internal | cancel | reopen | delete | manage_participants[]requiredrestrictedbooleanrequiredA Restricted ticket (Participants only). An Application sees one only with read: all and include_restricted.
tickets:read.Retry-After.curl https://tikki.example.com/api/v1/tickets/PAY-1048 \
-H "Authorization: Bearer $TIKKI_KEY"const res = await fetch('https://tikki.example.com/api/v1/tickets/PAY-1048', {
headers: {
authorization: `Bearer ${process.env.TIKKI_KEY}`,
},
})
const data = await res.json()Response
{
"number": 1048,
"ref": "PAY-1048",
"title": "Charged twice for order 5521",
"priority": "high",
"status": {
"key": "open",
"name": "Open",
"category": "open"
},
"ticket_type": {
"id": 3,
"name": "Payment issue",
"prefix": "PAY",
"icon": "i-lucide-credit-card",
"color": "#A14B00"
},
"requester": {
"kind": "contact",
"id": 77,
"external_id": "cus_19ab",
"name": "Jo Park",
"email": "jo@example.org"
},
"assignee": null,
"assigned": false,
"channel": "api",
"application": {
"id": 1,
"name": "Checkout site"
},
"created_at": "2026-10-18T09:12:44.000Z",
"updated_at": "2026-10-18T09:12:44.000Z",
"description": "I see two charges of 49.00 on my card.",
"schema_version": 2,
"fields": {
"order_id": "5521",
"amount": "49.00"
},
"schema_fields": [
{
"key": "order_id",
"label": "Order ID",
"type": "short_text",
"required": true,
"help": "The number on the receipt."
},
{
"key": "amount",
"label": "Amount",
"type": "short_text",
"required": false,
"help": ""
}
],
"comment_count": 0,
"reopened_from": null,
"allowed_actions": [
"comment"
],
"restricted": false
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "The API key is not valid. It may be revoked. Send it as \"Authorization: Bearer gt_live_...\".",
"details": null
}
}{
"error": {
"code": "NOT_FOUND",
"message": "No ticket with this reference.",
"details": null
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Try again in 12 seconds.",
"details": null
}
}Ticket Types
The types this Application may use, and their Fields.
GET/api/v1/ticket-types
List the Ticket Types this Application may use
Responses
Show the fields
dataTicketType[]requiredRetry-After.curl https://tikki.example.com/api/v1/ticket-types \
-H "Authorization: Bearer $TIKKI_KEY"const res = await fetch('https://tikki.example.com/api/v1/ticket-types', {
headers: {
authorization: `Bearer ${process.env.TIKKI_KEY}`,
},
})
const data = await res.json()Response
{
"data": [
{
"id": 3,
"name": "Payment issue",
"description": "A charge, refund or invoice is wrong.",
"icon": "i-lucide-credit-card",
"color": "#A14B00",
"prefix": "PAY",
"team": {
"id": 2,
"name": "Billing"
},
"visibility": "requester"
}
]
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "The API key is not valid. It may be revoked. Send it as \"Authorization: Bearer gt_live_...\".",
"details": null
}
}{
"error": {
"code": "APPLICATION_DISABLED",
"message": "This Application is disabled. An Admin can enable it again.",
"details": null
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Try again in 12 seconds.",
"details": null
}
}GET/api/v1/ticket-types/{id}
Get a Ticket Type and its Fields
Path
idintegerrequiredResponses
Show the fields
idinteger · ≥ -9007199254740991requiredSend this as ticket_type_id.
namestringrequireddescriptionstringrequiredWhen to use this type.
iconstringrequiredcolorstringrequiredprefixstringrequiredteamobjectrequiredidinteger · ≥ -9007199254740991requirednamestringrequiredvisibilityrequester | internal | participantsrequiredWho sees its tickets. An Application never gets a participants type.
schema_versioninteger · ≥ -9007199254740991requiredfieldsobject[]requiredRetry-After.curl https://tikki.example.com/api/v1/ticket-types/3 \
-H "Authorization: Bearer $TIKKI_KEY"const res = await fetch('https://tikki.example.com/api/v1/ticket-types/3', {
headers: {
authorization: `Bearer ${process.env.TIKKI_KEY}`,
},
})
const data = await res.json()Response
{
"id": 3,
"name": "Payment issue",
"description": "A charge, refund or invoice is wrong.",
"icon": "i-lucide-credit-card",
"color": "#A14B00",
"prefix": "PAY",
"team": {
"id": 2,
"name": "Billing"
},
"visibility": "requester",
"schema_version": 2,
"fields": [
{
"key": "order_id",
"label": "Order ID",
"type": "short_text",
"required": true,
"help": "The number on the receipt."
},
{
"key": "amount",
"label": "Amount",
"type": "short_text",
"required": false,
"help": ""
}
]
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "The API key is not valid. It may be revoked. Send it as \"Authorization: Bearer gt_live_...\".",
"details": null
}
}{
"error": {
"code": "APPLICATION_DISABLED",
"message": "This Application is disabled. An Admin can enable it again.",
"details": null
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Try again in 12 seconds.",
"details": null
}
}Contacts
The people an Application creates tickets for.
DEL/api/v1/contacts/{id}
Erase a Contact
Erasure: the name, email and external ID become [erased]; the title, description, Field values, comments and files of the Contact's tickets are removed. The tickets stay with their numbers and Statuses. Only for Contacts of this Application. A repeat answers 204 too and finishes an Erasure that failed half way. The Contact id is requester.id of its tickets.
Path
idintegerrequiredResponses
Retry-After.curl -X DELETE https://tikki.example.com/api/v1/contacts/77 \
-H "Authorization: Bearer $TIKKI_KEY"const res = await fetch('https://tikki.example.com/api/v1/contacts/77', {
method: 'DELETE',
headers: {
authorization: `Bearer ${process.env.TIKKI_KEY}`,
},
})Response
{
"error": {
"code": "UNAUTHENTICATED",
"message": "The API key is not valid. It may be revoked. Send it as \"Authorization: Bearer gt_live_...\".",
"details": null
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Try again in 12 seconds.",
"details": null
}
}Errors and limits
Every error has the same shape. Use code in your program. Show message to people. For VALIDATION_FAILED, details has one entry for each problem.
{
"error": {
"code": "VALIDATION_FAILED",
"message": "The request has invalid values.",
"details": [
{
"key": "order_id",
"label": "Order ID",
"reason": "Required."
}
]
}
}| Status | code | What to do |
|---|---|---|
| 400 | INVALID_JSON | Send a valid JSON body. |
| 400 | INVALID_IDEMPOTENCY_KEY | Use 1 to 255 visible ASCII characters, for example a UUID. |
| 401 | UNAUTHENTICATED | Send a valid API key. A revoked key stops at once. |
| 403 | APPLICATION_DISABLED | An Admin must enable the Application again. |
| 403 | FORBIDDEN | Ask the Admin for the permission or the Ticket Type. |
| 404 | NOT_FOUND | The item does not exist, or it belongs to another source. |
| 409 | IDEMPOTENCY_KEY_REUSED | Use a new key for a new ticket. |
| 422 | VALIDATION_FAILED | Fix each value in details, then send again. |
| 429 | RATE_LIMITED | Wait the seconds in Retry-After, then retry. |
Each Application has its own limit. The default is 60 requests a minute, of them at most 10 creates. The Admin can change both on the Application page, which also shows the current values.
To retry a create safely, send the same Idempotency-Key. A repeat in 24 hours returns the first ticket and creates nothing.
Built from server/utils/openapi.ts with each deploy.