Skip to main content
GET
Get a repository

Authorizations

Authorization
string
header
required

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

id
string<uuid>
required

The repository's id.

Example:

"7c9e6679-7425-40de-944b-e07fc1f90ae7"

Response

The repository

id
string
required
Example:

"7c9e6679-7425-40de-944b-e07fc1f90ae7"

provider
enum<string>
required

The hosting provider. unknown is a repository Trunk has indexed without resolving a provider.

Available options:
github,
gitlab,
bitbucket,
unknown
Example:

"github"

path
string
required

The provider-side path, owner/repo.

Example:

"acme/widgets"

host
string | null
required

Null for a repository on the provider's default host.

Example:

"github.com"

url
string
required
Example:

"https://github.com/acme/widgets"

defaultBranch
string | null
required

Null until Trunk has synced it.

Example:

"main"

isPrivate
boolean | null
required

Null until Trunk has synced it.

Example:

true

createdAt
string<date-time>
required
Example:

"2026-01-14T09:12:00.000Z"

updatedAt
string<date-time>
required
Example:

"2026-07-20T16:44:10.000Z"