curl --request GET \
--url https://api.coderabbit.ai/v1/linked-repositories \
--header 'x-coderabbitai-api-key: <api-key>'import requests
url = "https://api.coderabbit.ai/v1/linked-repositories"
headers = {"x-coderabbitai-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-coderabbitai-api-key': '<api-key>'}};
fetch('https://api.coderabbit.ai/v1/linked-repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"repository": {
"id": "12345",
"name": "acme/api",
"organization_id": "550e8400-e29b-41d4-a716-446655440000"
},
"linked_repositories": [
{
"id": "67890",
"name": "acme/shared",
"organization_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "MANUAL"
}
]
}
],
"next_cursor": null
}List linked repositories
Lists manual configured candidates derived only from saved UI settings and stored automatic links filtered by saved UI settings. The manual projection approximates saved UI inheritance and overrides and normalizes at most 20 entries per settings layer. This is not a complete manual graph, effective configuration, or a record of review usage. Repository and central YAML-derived links are not read; custom sources and per-review overrides are also unavailable. These sources can change both manual associations and automatic mode. Repository and organization filters select a union of source repositories; omitted or empty filters select the full scope. Targets are resolvable active repositories in the source organization, within the authorized scope. Requires Enterprise, an authenticated CodeRabbit administrator (cr_admin), and both repository management and repository settings read permissions. Organization keys require an organization administrator; workspace keys require a workspace administrator. Self-hosted keys without user context are denied.
curl --request GET \
--url https://api.coderabbit.ai/v1/linked-repositories \
--header 'x-coderabbitai-api-key: <api-key>'import requests
url = "https://api.coderabbit.ai/v1/linked-repositories"
headers = {"x-coderabbitai-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-coderabbitai-api-key': '<api-key>'}};
fetch('https://api.coderabbit.ai/v1/linked-repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"repository": {
"id": "12345",
"name": "acme/api",
"organization_id": "550e8400-e29b-41d4-a716-446655440000"
},
"linked_repositories": [
{
"id": "67890",
"name": "acme/shared",
"organization_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "MANUAL"
}
]
}
],
"next_cursor": null
}- CLI Tool
- MCP Server
coderabbit api request /linked-repositories
Authorizations
See Authentication for the key types and where to create a key.
Query Parameters
Was this page helpful?