Get a test
Returns one test by its globally unique id, with the labels, quarantine override and active monitors currently applied to it. Ids come from list responses; they are opaque and not derivable client-side.
A test in another organization is reported as 404, not 403, and so is a malformed id — a caller must not be able to probe which ids exist.
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.
Path Parameters
Query Parameters
Response
The test
When the test's current quarantine began, as far as Trunk records it. Null exactly when quarantineState is notQuarantined. For a test quarantined by an alwaysQuarantine override, the time that override was set. For a test quarantined automatically, the later of statusSince and the last time an override on it was cleared. Changes to the collection's quarantine settings are not recorded per test, so this can be earlier than when quarantining was turned on for the collection.
"2026-06-01T10:00:00.000Z"