Git Repositories
Return list of active repositories in the organization
π Requires the read:package permission
App installation ID for the repository
12345678List of active repositories
List of active repositories
200Repositories retrieved successfullyFailed to list repositories
Failed to authenticate user
Missing required scopes. π Requires the read:package permission
No active repositories found
Git installation already exists
Too many requests
GET /api/v1/git/repos HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"statusCode": 200,
"message": "Repositories retrieved successfully",
"repos": [
{
"provider": "github",
"repo": "organization/repository",
"installationId": "12345678",
"createdBy": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true,
"triggers": [
{
"id": "123e4567-e89b-12d3-a456-42661417400",
"git_ref": "main",
"path": "path/to/subdirectory",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true
}
],
"publisherJobId": "123e4567-e89b-12d3-a456-42661417400"
}
]
}Register a new trigger for the git repository
π Requires the create:package permission
App installation ID for the repository
12345678Repository name with owner
organization/repositoryThe git branch name the package was created from
mainThe git subdirectory path of the package repository
path/to/subdirectoryThe package name e.g. @bluebricks/aws-vpc
@bluebricks/aws-vpcTrigger registered successfully
Trigger registered successfully
Git provider type
githubPossible values: Repository name with owner
organization/repositoryApp installation ID for the repository
12345678The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z
The date and time the resource was updated e.g. 2022-01-01T00:00:00.000Z
Indicates if the repository is active
trueUnique identifier for the publisher status stream job
123e4567-e89b-12d3-a456-42661417400Failed to register trigger
Failed to authenticate user
Missing required scopes. π Requires the create:package permission
No active git configurations found or repository does not exist
Trigger already exists
Too many requests
POST /api/v1/git/register HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 142
{
"installation_id": "12345678",
"repo": "organization/repository",
"git_ref": "main",
"path": "path/to/subdirectory",
"package": "@bluebricks/aws-vpc"
}{
"provider": "github",
"repo": "organization/repository",
"installationId": "12345678",
"createdBy": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true,
"triggers": [
{
"id": "123e4567-e89b-12d3-a456-42661417400",
"git_ref": "main",
"path": "path/to/subdirectory",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true
}
],
"publisherJobId": "123e4567-e89b-12d3-a456-42661417400"
}Activate git trigger
π Requires the create:package permission
Unique identifier for the git trigger
123e4567-e89b-12d3-a456-42661417400Updated trigger information for the git repository
Updated trigger information for the git repository
Git provider type
githubPossible values: Repository name with owner
organization/repositoryApp installation ID for the repository
12345678The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z
The date and time the resource was updated e.g. 2022-01-01T00:00:00.000Z
Indicates if the repository is active
trueUnique identifier for the publisher status stream job
123e4567-e89b-12d3-a456-42661417400Failed to activate trigger
Failed to authenticate user
Missing required scopes. π Requires the create:package permission
Trigger not found
Too many requests
PUT /api/v1/git/trigger HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"triggerId": "123e4567-e89b-12d3-a456-42661417400"
}{
"provider": "github",
"repo": "organization/repository",
"installationId": "12345678",
"createdBy": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true,
"triggers": [
{
"id": "123e4567-e89b-12d3-a456-42661417400",
"git_ref": "main",
"path": "path/to/subdirectory",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true
}
],
"publisherJobId": "123e4567-e89b-12d3-a456-42661417400"
}Deactivate git trigger
π Requires the create:package permission
Unique identifier for the git trigger
123e4567-e89b-12d3-a456-42661417400Updated trigger information for the git repository
Updated trigger information for the git repository
Git provider type
githubPossible values: Repository name with owner
organization/repositoryApp installation ID for the repository
12345678The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z
The date and time the resource was updated e.g. 2022-01-01T00:00:00.000Z
Indicates if the repository is active
trueUnique identifier for the publisher status stream job
123e4567-e89b-12d3-a456-42661417400Failed to deactivate trigger
Failed to authenticate user
Missing required scopes. π Requires the create:package permission
Trigger not found
Too many requests
DELETE /api/v1/git/trigger HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"triggerId": "123e4567-e89b-12d3-a456-42661417400"
}{
"provider": "github",
"repo": "organization/repository",
"installationId": "12345678",
"createdBy": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true,
"triggers": [
{
"id": "123e4567-e89b-12d3-a456-42661417400",
"git_ref": "main",
"path": "path/to/subdirectory",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": null,
"isActive": true
}
],
"publisherJobId": "123e4567-e89b-12d3-a456-42661417400"
}Return git credentials for the publisher within the organization
π Requires the read:package permission
The git remote url of the package repository
https://github.com/username/repository.gitGit credentials for the publisher within the organization
Git credentials for the publisher within the organization
The organization ID
org_abCdeFghIjklMnmPThe git remote url of the package repository
https://github.com/username/repository.gitApp installation ID for the repository
12345678Failed to get git credentials
Failed to authenticate user
Missing required scopes. π Requires the read:package permission
No active git configurations found
Too many requests
POST /api/v1/git-credentials HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"git_remote_url": "https://github.com/username/repository.git"
}{
"credentials": {
"token": "text",
"type": "text",
"expiration": "2025-04-07T11:00:00Z"
},
"organization": "org_abCdeFghIjklMnmP",
"git_remote_url": "https://github.com/username/repository.git",
"installation_id": "12345678"
}Last updated