Reference
Test helpers
Shortcuts for tests, with a test key only.
Every operation below is also in the OpenAPI document. One that names an MCP tool can be called through the MCP server; one that names none cannot.
Texts the fake SMS provider sent to a number#
GET /v1/test_helpers/sms
Operation id listTestSms. MCP tool list_test_sms. SDK tickets.testHelpers.sms.
The texts the fake SMS provider "sent" to a number, newest first. Test mode only: how a test reads a sign-in code or a ticket text back.
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 keys.manage (owner, admin).
| Parameter | In | Type | Description |
|---|---|---|---|
to * | query | string | A phone number in E.164, e.g. +13135550123. |
limit | query | integer |
Answers 200. Newest first.
Fields
| Field | Type | Description |
|---|---|---|
object * | "list" | |
data * | array of TestSms | This page, newest first. |
has_more * | boolean | True when there is another page: pass the last id as starting_after. |
url * | "/v1/test_helpers/sms" | The path this list came from (/v1/test_helpers/sms). |
* required
Errors of its own. test_mode_only. The errors every operation can answer are on the errors page.
Mail test mode made for an address, and whether it left#
GET /v1/test_helpers/mail
Operation id listTestMail. MCP tool list_test_mail. SDK tickets.testHelpers.mail.
The mail test mode made for an address, newest first, and held_why when it stayed in the outbox. Test mode only: test-mode mail reaches only members of the organization, so this is how a test reads the rest.
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 keys.manage (owner, admin).
| Parameter | In | Type | Description |
|---|---|---|---|
to * | query | string | The address, for example teddy+test@example.com. Write a + in a URL as %2B: a bare + reads as a space. |
limit | query | integer |
Answers 200. Newest first.
Fields
| Field | Type | Description |
|---|---|---|
object * | "list" | |
data * | array of TestMail | This page, newest first. |
has_more * | boolean | True when there is another page: pass the last id as starting_after. |
url * | "/v1/test_helpers/mail" | The path this list came from (/v1/test_helpers/mail). |
* required
Errors of its own. test_mode_only. The errors every operation can answer are on the errors page.
Delete all of this org's test data#
POST /v1/test_helpers/reset
Operation id resetTestMode. MCP tool reset_test_mode. SDK tickets.testHelpers.reset.
Deletes all of this org's test data as a background job. Keys, webhook endpoints, integrations, the team and branding stay. Send { "confirm": "delete test data" }. Test mode only.
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 org.manage (owner, admin).
Request body (TestResetInput)
| Field | Type | Description |
|---|---|---|
confirm * | "delete test data" | Say it, so it is never sent by accident. |
* required
{
"confirm": "delete test data"
}Answers 202. Deleting, as a job (kind test_reset). Keys, webhook endpoints, integrations, the team and branding stay.
Fields (Job)
| Field | Type | Description |
|---|---|---|
object * | "job" | |
id * | string | An id starting with job_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
kind * | "event_cancel" | "event_postpone" | "event_changed" | "comp_import" | "test_reset" | "code_batch" | "code_batch_off" | |
status * | "queued" | "running" | "succeeded" | "failed" | |
event * | string | null | An id starting with evt_. |
progress * | object | |
errors * | array of object | |
rows * | array | null | comp_import: every row's outcome, in row order, with the order it made (null for other kinds). |
result * | object | null | kind-specific totals once finished (orders refunded, comps made). A comp_import has comps_made, rows_failed, and who was made but not sent tickets: texts_not_sent (texts off, a country not allowed, or today's texts used… |
created_by * | Actor | Who made a change. |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
finished_at * | string | null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
* required
Errors of its own. test_mode_only. The errors every operation can answer are on the errors page.
Expire a hold now (as the sweeper would)#
POST /v1/test_helpers/holds/{id}/expire
Operation id expireHoldNow. MCP tool expire_hold_now. SDK tickets.testHelpers.expireHold.
Expires a hold now, as the sweeper would, so a test can see what a lapsed hold does. Test mode only.
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 hold_. |
Answers 200. Expired: hold.expired is written.
Fields (Hold)
| Field | Type | Description |
|---|---|---|
object * | "hold" | |
id * | string | An id starting with hold_. |
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_. |
status * | HoldStatus | active, consumed (became an order), released, expired. |
items * | array of OrderItem | |
code * | string | null | The code applied. A code with max_uses has one use reserved for this hold while it is active. |
price * | PriceBreakdown | The authoritative price, computed by us. Show exactly this. Percentages round half up per line, to the minor unit. |
email * | string | null | |
attribution * | Attribution | null | |
checkout_link * | string | null | The hosted checkout link it was made through; only that link may turn it into an order. |
device * | string | null | The door device that made it (a gate sale); only a door sale may consume it. |
expires_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
extended * | boolean | |
order * | string | null | The order it became. |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
released_at * | string | null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
expired_at * | string | null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
consumed_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. test_mode_only, hold_consumed, hold_released. The errors every operation can answer are on the errors page.