List repositories accessible through the connected GitHub App. Start at page 1, then follow each response’s nextPage using the same perPage value. Use a returned repositoryId for subsequent operations.
curl --request POST \
--url https://api.itoflow.ai/integrations/github/listRepositories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"perPage": 30
}
'import requests
url = "https://api.itoflow.ai/integrations/github/listRepositories"
payload = {
"page": 1,
"perPage": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({page: 1, perPage: 30})
};
fetch('https://api.itoflow.ai/integrations/github/listRepositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"defaultBranch": "<string>",
"fullName": "<string>",
"name": "<string>",
"private": true,
"repositoryId": "<string>",
"url": "<string>"
}
],
"nextPage": 123,
"truncated": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}GitHub
List Repositories
Acts on the signed-in user’s own GitHub connection. Available only when GitHub integration is enabled; check GET /integrations/github/availability. Request bodies are limited to 128 KiB. Objects passed through from GitHub, such as branches, commits and pull requests, can include more fields than listed.
Operation ID: github_listRepositories.
POST
https://api.itoflow.ai
/
integrations
/
github
/
listRepositories
List repositories accessible through the connected GitHub App. Start at page 1, then follow each response’s nextPage using the same perPage value. Use a returned repositoryId for subsequent operations.
curl --request POST \
--url https://api.itoflow.ai/integrations/github/listRepositories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"perPage": 30
}
'import requests
url = "https://api.itoflow.ai/integrations/github/listRepositories"
payload = {
"page": 1,
"perPage": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({page: 1, perPage: 30})
};
fetch('https://api.itoflow.ai/integrations/github/listRepositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"defaultBranch": "<string>",
"fullName": "<string>",
"name": "<string>",
"private": true,
"repositoryId": "<string>",
"url": "<string>"
}
],
"nextPage": 123,
"truncated": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Body
application/json