tikkiDocs

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.

http
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.com

These 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

requesterme

me: only the tickets this Application created.

qstring · ≤ 200

Words that must all be in the title or description, or a Ticket Reference.

typeinteger

Only this Ticket Type ID.

prioritylow | normal | high | urgent
fieldstring

A Field value, as key:value, for example order_id:5521. Repeat for more Fields.

opentrue

Only tickets that are not done.

limitinteger · ≥ 1
cursorstring

The next_cursor of the page before.

Responses

200
The tickets, and the number for each Status.
Show the fields
dataTicketSummary[]required
countsobjectrequired

The number of tickets for each Status key, for all pages.

next_cursorstring | nullrequired

Send it as cursor for the next page. Null on the last page.

401
The API key is missing, unknown, or revoked.
403
The Application is disabled or has no tickets:read.
429
Too many requests in this minute. Wait the seconds in 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–255

A 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–200required
descriptionstring · ≤ 20000

Default "".

prioritylow | normal | high | urgent

Default "normal".

ticket_type_idintegerrequired
fieldsobject

Default {}.

contactobjectrequired
external_idstring · 1–200required

Your ID for this person. The same ID always gives the same Contact.

namestring · 1–200required
emailstring · email · ≤ 320required

Responses

201
The ticket.
Show the fields
numberinteger · ≥ -9007199254740991required

The Ticket Number. It never changes; store this one (4.9c).

refstringrequired

The Ticket Reference for display, for example PAY-1048. It changes with the Ticket Type.

titlestringrequired
prioritylow | normal | high | urgentrequired
statusobjectrequired
keystringrequired
namestringrequired
categoryopen | active | waiting | donerequired
ticket_typeobjectrequired
idinteger · ≥ -9007199254740991required
namestringrequired
prefixstringrequired
iconstringrequired
colorstringrequired
requesterobject | object | objectrequired
idstringrequired
namestringrequired
emailstringrequired
kind"user"required
assigneeobject | null

Always null for an Application. Use assigned.

idstringrequired
namestringrequired
emailstringrequired
assignedbooleanrequired

Whether a staff member is assigned. Their name is not shared.

teamobject

The ticket's Team. Left out for an Application: staff structure is private.

idinteger · ≥ -9007199254740991required
namestringrequired
channelweb | ai | api | apprequired
applicationobject | null
idinteger · ≥ -9007199254740991required
namestringrequired
created_atstring · date-timerequired
updated_atstring · date-timerequired
descriptionstringrequired
schema_versioninteger · ≥ -9007199254740991required
fieldsobjectrequired

Field values keyed by Field Key.

schema_fieldsobject[]required
comment_countinteger · ≥ -9007199254740991required

The comments the caller can see. An Application never sees Internal Comments.

reopened_fromobject | null
numberinteger · ≥ -9007199254740991required
refstringrequired
allowed_actionsread | change_status | change_priority | assign | edit_fields | edit_description | change_type | move_team | comment | comment_internal | cancel | reopen | delete | manage_participants[]required
restrictedbooleanrequired

A Restricted ticket (Participants only). An Application sees one only with read: all and include_restricted.

400
The body is not JSON, or the Idempotency-Key is not valid.
401
The API key is missing, unknown, or revoked.
403
The Application is disabled, has no tickets:create, or may not use this Ticket Type.
409
The Idempotency-Key was used with another body.
422
The body has invalid values. details lists each problem.
429
Too many requests in this minute. Wait the seconds in 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

refstringrequired

The Ticket Number, or a Ticket Reference such as PAY-1048.

Responses

200
The ticket.
Show the fields
numberinteger · ≥ -9007199254740991required

The Ticket Number. It never changes; store this one (4.9c).

refstringrequired

The Ticket Reference for display, for example PAY-1048. It changes with the Ticket Type.

titlestringrequired
prioritylow | normal | high | urgentrequired
statusobjectrequired
keystringrequired
namestringrequired
categoryopen | active | waiting | donerequired
ticket_typeobjectrequired
idinteger · ≥ -9007199254740991required
namestringrequired
prefixstringrequired
iconstringrequired
colorstringrequired
requesterobject | object | objectrequired
idstringrequired
namestringrequired
emailstringrequired
kind"user"required
assigneeobject | null

Always null for an Application. Use assigned.

idstringrequired
namestringrequired
emailstringrequired
assignedbooleanrequired

Whether a staff member is assigned. Their name is not shared.

teamobject

The ticket's Team. Left out for an Application: staff structure is private.

idinteger · ≥ -9007199254740991required
namestringrequired
channelweb | ai | api | apprequired
applicationobject | null
idinteger · ≥ -9007199254740991required
namestringrequired
created_atstring · date-timerequired
updated_atstring · date-timerequired
descriptionstringrequired
schema_versioninteger · ≥ -9007199254740991required
fieldsobjectrequired

Field values keyed by Field Key.

schema_fieldsobject[]required
comment_countinteger · ≥ -9007199254740991required

The comments the caller can see. An Application never sees Internal Comments.

reopened_fromobject | null
numberinteger · ≥ -9007199254740991required
refstringrequired
allowed_actionsread | change_status | change_priority | assign | edit_fields | edit_description | change_type | move_team | comment | comment_internal | cancel | reopen | delete | manage_participants[]required
restrictedbooleanrequired

A Restricted ticket (Participants only). An Application sees one only with read: all and include_restricted.

401
The API key is missing, unknown, or revoked.
403
The Application is disabled or has no tickets:read.
404
No ticket that this Application can read has this reference.
429
Too many requests in this minute. Wait the seconds in 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

200
The allowed types.
Show the fields
dataTicketType[]required
401
The API key is missing, unknown, or revoked.
403
The Application is disabled.
429
Too many requests in this minute. Wait the seconds in Retry-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

idintegerrequired

Responses

200
The type and the Fields of its newest Schema Version.
Show the fields
idinteger · ≥ -9007199254740991required

Send this as ticket_type_id.

namestringrequired
descriptionstringrequired

When to use this type.

iconstringrequired
colorstringrequired
prefixstringrequired
teamobjectrequired
idinteger · ≥ -9007199254740991required
namestringrequired
visibilityrequester | internal | participantsrequired

Who sees its tickets. An Application never gets a participants type.

schema_versioninteger · ≥ -9007199254740991required
fieldsobject[]required
401
The API key is missing, unknown, or revoked.
403
The Application is disabled.
404
No allowed Ticket Type has this ID.
429
Too many requests in this minute. Wait the seconds in Retry-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

idintegerrequired

Responses

204
The Contact is erased.
401
The API key is missing, unknown, or revoked.
403
The Application is disabled.
404
No Contact of this Application has this ID.
429
Too many requests in this minute. Wait the seconds in 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.

json
{
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "The request has invalid values.",
    "details": [
      {
        "key": "order_id",
        "label": "Order ID",
        "reason": "Required."
      }
    ]
  }
}
StatuscodeWhat to do
400INVALID_JSONSend a valid JSON body.
400INVALID_IDEMPOTENCY_KEYUse 1 to 255 visible ASCII characters, for example a UUID.
401UNAUTHENTICATEDSend a valid API key. A revoked key stops at once.
403APPLICATION_DISABLEDAn Admin must enable the Application again.
403FORBIDDENAsk the Admin for the permission or the Ticket Type.
404NOT_FOUNDThe item does not exist, or it belongs to another source.
409IDEMPOTENCY_KEY_REUSEDUse a new key for a new ticket.
422VALIDATION_FAILEDFix each value in details, then send again.
429RATE_LIMITEDWait 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.

↑ ↓ move↵ open