Read the current user’s GitHub connection status. If disconnected or reauthorization is required, call connect for provider consent, then read status again. installUrl manages GitHub App repository access; installing the app alone does not connect the account.
curl --request POST \
--url https://api.itoflow.ai/integrations/github/getConnection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.itoflow.ai/integrations/github/getConnection"
payload = {}
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({})
};
fetch('https://api.itoflow.ai/integrations/github/getConnection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"installUrl": "<string>",
"providerSlug": "<string>",
"settingsUrl": "<string>",
"status": "connected"
}{
"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
Get Connection
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_getConnection.
POST
https://api.itoflow.ai
/
integrations
/
github
/
getConnection
Read the current user’s GitHub connection status. If disconnected or reauthorization is required, call connect for provider consent, then read status again. installUrl manages GitHub App repository access; installing the app alone does not connect the account.
curl --request POST \
--url https://api.itoflow.ai/integrations/github/getConnection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.itoflow.ai/integrations/github/getConnection"
payload = {}
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({})
};
fetch('https://api.itoflow.ai/integrations/github/getConnection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"installUrl": "<string>",
"providerSlug": "<string>",
"settingsUrl": "<string>",
"status": "connected"
}{
"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
The body is of type object.