Integrations /
List repositories
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-hostedself_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.
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-hostedselfHostedVcsId
stringIf
vcsService
isself-hosted
, the ID of the self-hosted provider.id
requiredThe ID of the repository, according to the version control provider.
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.
GET /v1/vcs/repos
Example response
200 OK
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
}
}