List a pull request's queue-entry state history
Returns the state transitions of this pull request’s queue entry. Defaults to oldest first — the one list in this API that does, because it is an append-only log a reader replays forward — so finding the CURRENT transition means paging to the end, and hasMore: false is how you know you are there. Send direction=newest for v1’s includeTimeline order, where the current transition is the first row of the first page. A pull request that was never enqueued is a 200 with an empty page, not a 404.
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 merge-queue permissions it holds; a key with none can read merge queues but change nothing. Those permissions scope merge queue only: every key can use the Flaky Tests and Dynamic CI endpoints, including their writes, whatever permissions it holds.
Path Parameters
The pull request's id.
"0f8fad5b-d9cb-469f-a165-70867728950e"
Query Parameters
Page size, between 1 and 100.
1 <= x <= 10025
Opaque cursor from a previous response's nextCursor. A cursor is bound to the operation and filter it was minted for.
"AQEKZm9vYmFy"
Set true to include total in the response. Costs an extra COUNT query, so it is off by default.
false
Order of the transitions within a timeline. oldest (the default) reads the log forward; newest matches v1's includeTimeline order, so the current transition is the first row rather than the last.
oldest, newest "oldest"
Response
A page of state transitions
100Opaque cursor for the next page, or null on the last page. Pass it back verbatim as cursor; do not construct or inspect one.
"AQEKZm9vYmFy"
True when another page is available.
true
Total rows matching the filter. Present only when the request set includeTotal=true.
1247