Integrations /
List repositories
Gets a list of repositories accessible to this account
Required permission
Account > Git > General > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.vcs_service
stringIf provided, only returns repositories belonging to this version control provider.one ofbitbucket, gitlab, github, self-hosted, azureself_hosted_vcs_id
stringIf provided, only returns repositories belonging to this self-hosted version control provider.account_login
stringIf provided, only returns repositories that can be accessed by the linked version control account with this name.vcs_link_id
stringIf provided, only returns repositories belong to that VCS link.
Response body
- {object}Response object.
data
{object} requiredResult data.repos
[array]A list of accessible repositories.- {object}Details about an accessible repository.
vcsService
string requiredVersion control provider of the repository.one ofbitbucket, gitlab, github, self-hosted, azureselfHostedVcsId
stringIf `vcsService` is `self-hosted`, the ID of the self-hosted provider.id
string requiredThe ID of the repository from the version control provider. This is always returned from the Northflank API as a string for consistency across providers. This value is the numerical ID of a GitHub repository, the numerical ID of a GitLab project, or the UUID of a Bitbucket repository.name
string requiredThe name of the repository.full_name
string requiredThe full name of the repository.url
string requiredThe url of the repository.owner
{object} requiredDetails about the repository owner.login
string requiredThe login of the repository owner.accountLogin
string requiredThe login of the linked version control account that can access this repository.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/integrations/vcs/repos
Example response
200 OK
The list of repos.
JSON
{
"data": {
"repos": [
{
"vcsService": "github",
"id": "123456789",
"name": "gatsby-with-northflank",
"full_name": "northflank/gatsby-with-northflank",
"url": "https://github.com/northflank/gatsby-with-northflank",
"owner": {
"login": "northflank"
},
"accountLogin": "example-user"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}