Get a repository
Returns one repository. This is how a caller resolves the repositoryId that merge queues and pull requests carry. A repository in another organization is reported as 404, not 403.
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 repository's id.
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
Response
The repository
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
The hosting provider. unknown is a repository Trunk has indexed without resolving a provider.
github, gitlab, bitbucket, unknown "github"
The provider-side path, owner/repo.
"acme/widgets"
Null for a repository on the provider's default host.
"github.com"
"https://github.com/acme/widgets"
Null until Trunk has synced it.
"main"
Null until Trunk has synced it.
true
"2026-01-14T09:12:00.000Z"
"2026-07-20T16:44:10.000Z"