List the organisation's source-control bindings and their AI review switches
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings \
--header 'Authorization: Bearer <token>'{
"bindings": [
{
"provider": "<string>",
"binding_external_id": "<string>",
"display_name": "<string>",
"detail": "<string>",
"ai_review": true,
"mention_replies": true,
"pr_previews": true,
"merge_when_green": true,
"review_model": "<string>",
"review_drafts": true,
"max_reviews_per_pr": 123,
"custom_instructions": "<string>",
"repo_overrides": [
{
"repo_full_name": "<string>",
"ai_review": true,
"mention_replies": true,
"pr_previews": true,
"review_model": "<string>",
"review_drafts": true,
"max_reviews_per_pr": 123
}
]
}
],
"total": 123
}AI Environment
List the organisation's source-control bindings and their AI review switches
Every GitHub App installation and GitLab or Bitbucket credential of the organisation, with its AI review, mention replies, PR previews and merge-when-green switches, review model, draft handling, per-pull-request cap, custom instructions and repository rules. Any member of the organisation may read it.
GET
/
api
/
v1
/
org
/
ai-gateway
/
scm-bindings
List the organisation's source-control bindings and their AI review switches
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings \
--header 'Authorization: Bearer <token>'{
"bindings": [
{
"provider": "<string>",
"binding_external_id": "<string>",
"display_name": "<string>",
"detail": "<string>",
"ai_review": true,
"mention_replies": true,
"pr_previews": true,
"merge_when_green": true,
"review_model": "<string>",
"review_drafts": true,
"max_reviews_per_pr": 123,
"custom_instructions": "<string>",
"repo_overrides": [
{
"repo_full_name": "<string>",
"ai_review": true,
"mention_replies": true,
"pr_previews": true,
"review_model": "<string>",
"review_drafts": true,
"max_reviews_per_pr": 123
}
]
}
],
"total": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.