Skip to main content
POST
Connect repository and environments
Required permissions: repository.connect. Personal keys are capped by their owner’s current team role. See request conventions and automation workflows. MCP clients use the task-oriented tool catalogue.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
repositoryOwner
string
required
Required string length: 1 - 255
repositoryName
string
required
Required string length: 1 - 255
environments
object[]
required
Minimum array length: 1
githubInstallationId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
provider
string
default:github
Allowed value: "github"

Response

Source, connected environments and initial sync outcomes.

syncs
object[]
required
source
object
required
environments
object[]
required
localization
object
required
Last modified on September 21, 2026