# Tickets

> One per admission: holder, version, the signed QR, Wallet links, the private page

Source: https://tickets.roostertail.com/docs/reference/tickets

Every operation below is also in [the OpenAPI document](https://tickets.roostertail.com/v1/openapi.yaml). One that names an MCP tool can be called through [the MCP server](https://tickets.roostertail.com/docs/mcp.md); one that names none cannot.

## List tickets (attendees)

`GET /v1/tickets`

Operation id `listTickets`. MCP tool `list_tickets`. SDK `tickets.tickets.list`.

Tickets (the attendees), filtered by event, order, type, status, whether they have checked in, day or comp. Searching by a holder's name, email or phone is `POST /v1/tickets/search`, so those never go in a URL.

**Who may call it.** Any one of: An API key with scope `full`, `read`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `read` (owner, admin, staff, viewer).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `limit` | query | integer | How many to return, 1 to 100 (default 20). |
| `starting_after` | query | string | An id from the page before: the page after it. |
| `ending_before` | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |
| `event` | query | string | An id starting with evt_. |
| `order` | query | string | An id starting with ord_. |
| `ticket_type` | query | string | An id starting with tt_. |
| `add_on` | query | string | The passes of a scannable add-on. |
| `status` | query | "valid" \| "frozen" \| "void" | valid; frozen (its order is disputed: the door says "See the box office"); void. |
| `checked_in` | query | "true" \| "false" |  |
| `day` | query | string | With checked_in: on this day. |
| `comp` | query | "true" \| "false" | Tickets of comp orders only (true) or of paid ones (false). |
| `include` | query | "total_count" | total_count: the page also carries total_count, every match of the filters (one count query; omit it when you only page). |

**Answers 200.** A page of tickets. To search for a holder (a name, email or phone) use POST /v1/tickets/search: those never go in a URL.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of Ticket | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | "/v1/tickets" | The path this list came from (/v1/tickets). |
| `total_count` * | integer \| null | With include=total_count: every match of the filters, across all pages; null otherwise. |

\* required

## List and search tickets, the search in the body (never in a URL)

`POST /v1/tickets/search`

Operation id `searchTickets`. MCP tool `search_tickets`. SDK `tickets.tickets.search`.

The same list and filters as `GET /v1/tickets`, with `q` (a holder's name, email or phone) in the body so it never goes in a URL.

**Who may call it.** Any one of: An API key with scope `full`, `read`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `read` (owner, admin, staff, viewer).

**Request body**

| Field | Type | Description |
| --- | --- | --- |
| `limit` | integer | How many to return, 1 to 100 (default 20). |
| `starting_after` | string | An id from the page before: the page after it. |
| `ending_before` | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other filter or sort (page… |
| `event` | string | An id starting with evt_. |
| `order` | string | An id starting with ord_. |
| `ticket_type` | string | An id starting with tt_. |
| `add_on` | string | The passes of a scannable add-on. |
| `status` | TicketStatus | valid; frozen (its order is disputed: the door says "See the box office"); void. |
| `q` | string | An email, phone, ticket code, or the start of any word of a name. |
| `checked_in` | "true" \| "false" |  |
| `day` | string | With checked_in: on this day. |
| `comp` | "true" \| "false" | Tickets of comp orders only (true) or of paid ones (false). |
| `include` | "total_count" | total_count: the page also carries total_count, every match of the filters (one count query; omit it when you only page). |

```json
{
  "q": "Rivera",
  "event": "evt_yrd2027",
  "status": "valid",
  "limit": 25
}
```

**Answers 200.** A page of tickets: the same filters and answer as GET /v1/tickets. Use this for a holder's email, phone or name, which a URL would put in logs and browser history.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of Ticket | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | "/v1/tickets/search" | The path this list came from (/v1/tickets/search). |
| `total_count` * | integer \| null | With include=total_count: every match of the filters, across all pages; null otherwise. |

\* required

## Retrieve a ticket

`GET /v1/tickets/{id}`

Operation id `getTicket`. MCP tool `get_ticket`. SDK `tickets.tickets.retrieve`.

One ticket: its holder, version, status, days, wristband and links. A read key sees it without the QR token and the page link.

**Who may call it.** Any one of: An API key with scope `full`, `read`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `read` (owner, admin, staff, viewer).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with tkt_. |

**Answers 200.** The ticket.

**Fields** (`Ticket`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "ticket" |  |
| `id` * | string | An id starting with tkt_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `order` * | string | An id starting with ord_. |
| `ticket_type` * | string \| null | null for an add-on pass. |
| `kind` * | "admission" \| "add_on" | admission, or a scannable add-on's own pass (parking). |
| `add_on` * | string \| null | An id starting with add_. |
| `name` * | string | The type's or add-on's name. |
| `short_code` * | string | The order number and the ticket's place in the order ("7KQ2-M9XD-2"): read out when a QR won't scan. |
| `status` * | TicketStatus | valid; frozen (its order is disputed: the door says "See the box office"); void. |
| `version` * | integer |  |
| `valid_days` * | array of string |  |
| `holder` * | Holder | Who holds the ticket (the buyer, unless named or transferred). |
| `answers` * | object | Answers to ticket-scope questions. |
| `add_ons` * | array of object | Per-ticket add-ons on it (a drink package). |
| `min_age` * | integer \| null |  |
| `wristband` * | Wristband \| null | The wristband this ticket comes with, as its type says now. null when there is none, or when the type hands over a different one each day (`day_wristbands` on the type; the door shows that day's). |
| `design` * | ResolvedTicketDesign | A ticket's design as drawn. |
| `qr_token` * | string \| null | The current QR code's text; null when void, and for a caller who may not open the door (a read key, a viewer). |
| `checkins` * | array of object | Admissions, one per day (undone ones removed). |
| `wallet` * | TicketWallet | Add to Wallet links, minted fresh on every answer and never stored. Each opens one ticket version, for 7 days. The URL is in the platform's request log, which only project staff can read, unless excluded from it where t… |
| `transfer` * | TicketTransferInfo |  |
| `url` * | string \| null | This ticket's own private page (/t/:token); null for a read key or a viewer, like every private link. A transfer or direct move (or a reissue with new_links) makes a new one, and the old link shows the ticket moved; a p… |
| `void_reason` * | "refunded" \| "order_cancelled" \| "event_cancelled" \| "dispute_lost" \| "comp_revoked" \| "manual" \| null |  |
| `issued_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `updated_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `voided_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

## Fix a holder's name, email or phone

`PATCH /v1/tickets/{id}`

Operation id `updateTicket`. MCP tool `update_ticket`. SDK `tickets.tickets.update`.

Fixes a holder's name, email or phone, or the ticket's answers. The version stays, so the QR code keeps working. Pass `notify: true` to email the new holder their ticket.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `orders.write` (owner, admin, staff).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with tkt_. |

**Request body** (`UpdateTicketInput`)

| Field | Type | Description |
| --- | --- | --- |
| `holder` | object |  |
| `answers` | Answers | Answers by question key, at most 250. |
| `metadata` | object | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
| `notify` | boolean | Send the holder their ticket again. |

```json
{
  "holder": {
    "name": "Jordan Rivera-Smith"
  }
}
```

**Answers 200.** Updated (the version stays).

**Fields** (`Ticket`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "ticket" |  |
| `id` * | string | An id starting with tkt_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `order` * | string | An id starting with ord_. |
| `ticket_type` * | string \| null | null for an add-on pass. |
| `kind` * | "admission" \| "add_on" | admission, or a scannable add-on's own pass (parking). |
| `add_on` * | string \| null | An id starting with add_. |
| `name` * | string | The type's or add-on's name. |
| `short_code` * | string | The order number and the ticket's place in the order ("7KQ2-M9XD-2"): read out when a QR won't scan. |
| `status` * | TicketStatus | valid; frozen (its order is disputed: the door says "See the box office"); void. |
| `version` * | integer |  |
| `valid_days` * | array of string |  |
| `holder` * | Holder | Who holds the ticket (the buyer, unless named or transferred). |
| `answers` * | object | Answers to ticket-scope questions. |
| `add_ons` * | array of object | Per-ticket add-ons on it (a drink package). |
| `min_age` * | integer \| null |  |
| `wristband` * | Wristband \| null | The wristband this ticket comes with, as its type says now. null when there is none, or when the type hands over a different one each day (`day_wristbands` on the type; the door shows that day's). |
| `design` * | ResolvedTicketDesign | A ticket's design as drawn. |
| `qr_token` * | string \| null | The current QR code's text; null when void, and for a caller who may not open the door (a read key, a viewer). |
| `checkins` * | array of object | Admissions, one per day (undone ones removed). |
| `wallet` * | TicketWallet | Add to Wallet links, minted fresh on every answer and never stored. Each opens one ticket version, for 7 days. The URL is in the platform's request log, which only project staff can read, unless excluded from it where t… |
| `transfer` * | TicketTransferInfo |  |
| `url` * | string \| null | This ticket's own private page (/t/:token); null for a read key or a viewer, like every private link. A transfer or direct move (or a reissue with new_links) makes a new one, and the old link shows the ticket moved; a p… |
| `void_reason` * | "refunded" \| "order_cancelled" \| "event_cancelled" \| "dispute_lost" \| "comp_revoked" \| "manual" \| null |  |
| `issued_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `updated_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `voided_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

**Errors of its own.** [`ticket_void`](https://tickets.roostertail.com/docs/errors.md#ticket_void), [`invalid_state_transition`](https://tickets.roostertail.com/docs/errors.md#invalid_state_transition). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## A new QR; the old one stops working

`POST /v1/tickets/{id}/reissue`

Operation id `reissueTicket`. MCP tool `reissue_ticket`. SDK `tickets.tickets.reissue`.

Makes a new QR code and raises the ticket's version by one. The old code stops working at the door. Use it when a code leaked; `new_links: true` asks for new private page links as well.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `orders.write` (owner, admin, staff).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with tkt_. |

**Request body** (`ReissueTicketInput`)

| Field | Type | Description |
| --- | --- | --- |
| `notify` | boolean |  |
| `new_links` | boolean | Also end the links: the order link and the ticket link stop holding it, a new ticket link goes to the holder and the Apple pass is replaced. For a leaked link; by default the links stay and show the new QR. |

```json
{}
```

**Answers 200.** Reissued (version + 1).

**Fields** (`Ticket`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "ticket" |  |
| `id` * | string | An id starting with tkt_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `order` * | string | An id starting with ord_. |
| `ticket_type` * | string \| null | null for an add-on pass. |
| `kind` * | "admission" \| "add_on" | admission, or a scannable add-on's own pass (parking). |
| `add_on` * | string \| null | An id starting with add_. |
| `name` * | string | The type's or add-on's name. |
| `short_code` * | string | The order number and the ticket's place in the order ("7KQ2-M9XD-2"): read out when a QR won't scan. |
| `status` * | TicketStatus | valid; frozen (its order is disputed: the door says "See the box office"); void. |
| `version` * | integer |  |
| `valid_days` * | array of string |  |
| `holder` * | Holder | Who holds the ticket (the buyer, unless named or transferred). |
| `answers` * | object | Answers to ticket-scope questions. |
| `add_ons` * | array of object | Per-ticket add-ons on it (a drink package). |
| `min_age` * | integer \| null |  |
| `wristband` * | Wristband \| null | The wristband this ticket comes with, as its type says now. null when there is none, or when the type hands over a different one each day (`day_wristbands` on the type; the door shows that day's). |
| `design` * | ResolvedTicketDesign | A ticket's design as drawn. |
| `qr_token` * | string \| null | The current QR code's text; null when void, and for a caller who may not open the door (a read key, a viewer). |
| `checkins` * | array of object | Admissions, one per day (undone ones removed). |
| `wallet` * | TicketWallet | Add to Wallet links, minted fresh on every answer and never stored. Each opens one ticket version, for 7 days. The URL is in the platform's request log, which only project staff can read, unless excluded from it where t… |
| `transfer` * | TicketTransferInfo |  |
| `url` * | string \| null | This ticket's own private page (/t/:token); null for a read key or a viewer, like every private link. A transfer or direct move (or a reissue with new_links) makes a new one, and the old link shows the ticket moved; a p… |
| `void_reason` * | "refunded" \| "order_cancelled" \| "event_cancelled" \| "dispute_lost" \| "comp_revoked" \| "manual" \| null |  |
| `issued_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `updated_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `voided_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

**Errors of its own.** [`ticket_void`](https://tickets.roostertail.com/docs/errors.md#ticket_void), [`ticket_frozen`](https://tickets.roostertail.com/docs/errors.md#ticket_frozen), [`invalid_state_transition`](https://tickets.roostertail.com/docs/errors.md#invalid_state_transition). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## Void a ticket (no refund)

`POST /v1/tickets/{id}/void`

Operation id `voidTicket`. MCP tool `void_ticket`. SDK `tickets.tickets.void`.

Voids a ticket with no refund (use a refund to give money back). A void ticket never gets through the door. `dry_run: true` answers a preview and changes nothing.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `refunds.write` (owner, admin, staff).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with tkt_. |

**Request body** (`VoidTicketInput`)

| Field | Type | Description |
| --- | --- | --- |
| `reason` | "refunded" \| "order_cancelled" \| "event_cancelled" \| "dispute_lost" \| "comp_revoked" \| "manual" |  |
| `note` | string |  |
| `notify` | boolean |  |
| `dry_run` | boolean | Say what voiding would do and change nothing: answers a TicketVoidPreview. |

```json
{
  "reason": "manual",
  "note": "Duplicate"
}
```

**Answers 200.** Void (dry_run: a ticket_void_preview, nothing changed).

Fields is one of: Ticket, TicketVoidPreview.

**Errors of its own.** [`invalid_state_transition`](https://tickets.roostertail.com/docs/errors.md#invalid_state_transition). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## The QR code as an image

`GET /v1/tickets/{id}/qr`

Operation id `getTicketQr`. MCP tool `get_ticket_qr`. SDK `tickets.tickets.qr`.

The ticket's current QR code as an SVG or PNG image. It needs the right to read door credentials, so a read key is refused.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `door.credentials` (owner, admin, staff).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with tkt_. |
| `format` | query | "svg" \| "png" |  |
| `size` | query | integer | Pixels across, for png. |

**Answers 200.** An SVG or PNG of the current QR.

The body is `image/svg+xml`.

**Errors of its own.** [`ticket_void`](https://tickets.roostertail.com/docs/errors.md#ticket_void). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## Check a QR token online

`POST /v1/tickets/verify`

Operation id `verifyTicket`. MCP tool `verify_ticket`. SDK `tickets.tickets.verify`.

Checks a scanned QR token online: whether it is good, and if not, why. Use it from a door app with a key or a member's session when it has a connection; offline apps check the signature with the keys from `GET /v1/events/{id}/qr_keys`. A paired door device scans with `POST /v1/checkins` instead.

**Who may call it.** Any one of: An API key with scope `full`, `checkin`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `checkin` (owner, admin, staff, door).

**Request body** (`VerifyTicketInput`)

| Field | Type | Description |
| --- | --- | --- |
| `token` * | string |  |
| `event` | string | The event at this door: another event's ticket answers wrong_event. |

\* required

```json
{
  "token": "RT1.eyJ0IjoidGt0X2dhMDAxIn0.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "event": "evt_yrd2027"
}
```

**Answers 200.** Whether it is good, and why not.

**Fields** (`TicketVerification`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "ticket_verification" |  |
| `valid` * | boolean |  |
| `reason` * | "malformed" \| "unknown_key" \| "bad_signature" \| "unknown_ticket" \| "wrong_event" \| "stale_version" \| "void" \| "frozen" \| null | Why not; null when valid. |
| `ticket` * | string \| null | An id starting with tkt_. |
| `event` * | string \| null | An id starting with evt_. |
| `version` * | integer \| null | The version in the QR. |
| `current_version` * | integer \| null |  |
| `status` * | TicketStatus \| null |  |
| `payload` * | QrPayload \| null | What the token says, when it could be read. |

\* required
