Integrateprovider-connections
GET/repositories/{repo_id}/provider-connections
List a repository's provider connections
list_repo_connections
provider_connection:read
A token needs theprovider_connection:readscope: View provider connectionsGranted byread_api,write_api.Every operation this scope unlocksSingle-resource
x-gitmoap-isolation: {"kind":"single_or_self_scoped"}
Paginated
Pass thenext_tokena page returns to get the next one.
Only the connections defined here, not those inherited from groups above. Credential values are
never returned, only references to where they are kept. Paginated with limit (20 by default,
at most 100) and next_token. Reporters and above, as members of the repository: a public
repository does not make its connections readable.
Parameters
Path
- repo_idRepositoryId (string · uuid)Repository id
Query
- limitinteger · int32optionalPage size (1-100, default 20)
- next_tokenstringoptionalOpaque pagination cursor
Responses
200application/json
itemsarray of ProviderConnectionResponse
- The ProviderConnectionResponse schema
- auth_modeConnectionAuthModestatic_credentialsoidc_federationHow this connection authenticates.
- created_atstring
created_byActorSummary
- The ActorSummary schema
- emailstring
- idstring
- usernamestring
- avatar_urlstring or nulloptional
- idConnectionId (string · uuid)
- nameProviderConnectionName (string)
- provider_idProviderId (string)
- scope_idstring
- scope_typeScopeTypegrouprepository
- secret_refsobjectThe names of the stored credential fields, each with a reference to where it is stored. Never the values. Empty for an
oidc_federationconnection. - config_overridesobjectoptional
federation_targetOidcFederationTarget or nulloptionalThe cloud role the connection assumes. Present only when
auth_modeisoidc_federation.- The OidcFederationTarget schema
- cloudaws
- role_arnRoleArn (string)The IAM role the pipeline assumes.
- audiencestring or nulloptionalThe audience of the identity token. Defaults to
sts.amazonaws.com. - regionAwsRegion (string) or nulloptionalThe AWS region for the provider's calls.
- last_rotated_atstring or nulloptional
- next_tokenstring or nulloptional
200 exampleSynthesized example
{
"items": [
{
"auth_mode": "static_credentials",
"created_at": "2026-10-09T03:02:30Z",
"created_by": {
"email": "tomas@acme.example",
"id": "id-2ea6",
"username": "lin"
},
"id": "f53cffa3-0d76-492a-81a5-996bf77400fc",
"name": "payments-api",
"provider_id": "faf022e0-f614-4e01-9be7-9db1d6563fbb",
"scope_id": "674cf19d-a84b-4f47-a4e5-7adf7d1f3ac4",
"scope_type": "group",
"secret_refs": {
"secret_refs": "secret-refs-0581"
}
}
],
"next_token": "next-token-37f7"
}
400Bad request — a path parameter is not a well-formed value of its typeapplication/json
Error codes
- BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
400 exampleSynthesized example
{
"error": {
"code": "code-400d",
"message": "Inline scalar newtypes but keep their brand"
}
}
401application/json
Error codes
- UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
401 exampleSynthesized example
{
"error": {
"code": "code-3e61",
"message": "Pin a page's payload to the build that rendered it"
}
}
403application/json
Error codes
- FORBIDDENYou are signed in but may not do this here;
reasonnames the permission or the rule that refused it - INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs;
required_scopenames it - PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
403 exampleSynthesized example
{
"error": {
"code": "code-3188",
"message": "Pin a page's payload to the build that rendered it"
}
}
404application/json
Error codes
- NOT_FOUNDThe resource does not exist — or exists and you cannot see it: a private resource you have no access to answers exactly as an absent one does
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
404 exampleSynthesized example
{
"error": {
"code": "code-7266",
"message": "Stream pipeline status into the run header"
}
}
CLI
gitmoap provider-connections list-repo-connections
- --repo-ididRepository id (id or owner/repo path)
- --limitnumberoptionalPage size (1-100, default 20)
- --next-tokenstringoptionalOpaque pagination cursor