Resolve a repository by its provider URL
Looks up the repositories a provider URL names, scoped to your organization. A .git suffix and trailing slashes are normalized away, so every spelling of the same repository resolves alike and shares a cursor.
An unparseable providerUrl and a genuine empty result both answer PROVIDER_URL_NOT_FOUND, deliberately: a caller must not be able to distinguish a malformed URL from a repository that exists outside their organization. There is no endpoint that enumerates an organization’s repositories, so this is the way to resolve one you can name. If you are heading for a merge queue, GET /v2/merge-queues needs no arguments and returns every queue in your organization already carrying repositoryId, repositoryUrl and targetBranch — one call rather than two.
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
Response
A page of repositories