List and search tests
Lists tests, by default across every test collection in your organization — pass testCollectionId to narrow to one. Each row carries the id to pass to the per-test endpoints.
q searches name, file, class and parent as case-insensitive substrings. Several words are separate requirements, not a phrase — q=flaky slow returns tests matching both, in any position. It also accepts per-field qualifiers mixed freely with those words: q=file:checkout flaky class:PaymentTest. Qualifier keys are case-sensitive, and an unrecognized prefix is treated as literal text rather than guessed at.
Rows omit quarantineOverride, activeMonitors, manualFlag, firstSeenAt and lastFailureAt — fetch a single test for those.
Authorizations
An API key, sent as Authorization: Bearer <key>. An organization admin creates one in the Trunk app under Settings → Developer → API Keys and chooses the permissions it holds. A new key starts with no permissions: it can read merge queues but change nothing in them, and it cannot get a Dynamic CI plan. Each endpoint that needs a permission names it in its description; the Dynamic CI plan endpoints need Generate Dynamic CI plans.
Query Parameters
Only tests currently linked to this ticket, by its Trunk id (ticket.id on a test). Spans every collection unless testCollectionId narrows it. An unknown id returns an empty page, not an error. Cannot be combined with ticketKey.
1"5b0e8f8a-1c2d-4e3f-8a9b-0c1d2e3f4a5b"
Only tests currently linked to the ticket with this provider key or URL. A convenience: a key can change (a Jira issue moved between projects) and two connections can share one, so prefer ticketId, and pass integrationId to narrow to one connection. An unknown key returns an empty page.
1"TRUNK-12345"
Only tests with a quarantine override, as set by POST /v2/tests/{testId}/quarantine: alwaysQuarantine or neverQuarantine for one mode, any for either. Matches the mode of a test's quarantineOverride, so a cleared override matches nothing. It filters on the override alone, whether or not the test's collection has quarantining turned on; combine it with quarantineState for the effective state.
alwaysQuarantine, neverQuarantine, any "neverQuarantine"
Response
A page of tests