Skip to content

Reference

Test helpers

Shortcuts for tests, with a test key only.

View as Markdown

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).

ParameterInTypeDescription
to *querystringA phone number in E.164, e.g. +13135550123.
limitqueryinteger

Answers 200. Newest first.

Fields

FieldTypeDescription
object *"list"
data *array of TestSmsThis page, newest first.
has_more *booleanTrue 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).

ParameterInTypeDescription
to *querystringThe address, for example teddy+test@example.com. Write a + in a URL as %2B: a bare + reads as a space.
limitqueryinteger

Answers 200. Newest first.

Fields

FieldTypeDescription
object *"list"
data *array of TestMailThis page, newest first.
has_more *booleanTrue 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)

FieldTypeDescription
confirm *"delete test data"Say it, so it is never sent by accident.

* required

JSON
{
  "confirm": "delete test data"
}

Answers 202. Deleting, as a job (kind test_reset). Keys, webhook endpoints, integrations, the team and branding stay.

Fields (Job)

FieldTypeDescription
object *"job"
id *stringAn id starting with job_.
mode *Modetest 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 | nullAn id starting with evt_.
progress *object
errors *array of object
rows *array | nullcomp_import: every row's outcome, in row order, with the order it made (null for other kinds).
result *object | nullkind-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 *ActorWho 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 | nullAn 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).

ParameterInTypeDescription
id *pathstringAn id starting with hold_.

Answers 200. Expired: hold.expired is written.

Fields (Hold)

FieldTypeDescription
object *"hold"
id *stringAn id starting with hold_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn id starting with evt_.
status *HoldStatusactive, consumed (became an order), released, expired.
items *array of OrderItem
code *string | nullThe code applied. A code with max_uses has one use reserved for this hold while it is active.
price *PriceBreakdownThe 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 | nullThe hosted checkout link it was made through; only that link may turn it into an order.
device *string | nullThe 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 | nullThe 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 | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
expired_at *string | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
consumed_at *string | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
metadata *MetadataYour 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.