Read an accessible Triage change
curl --request GET \
--url https://api.coderabbit.ai/v1/triage/changes/{id} \
--header 'x-coderabbitai-api-key: <api-key>'import requests
url = "https://api.coderabbit.ai/v1/triage/changes/{id}"
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/triage/changes/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"external_id": "<string>",
"provider": "github",
"provider_host": "<string>",
"url": "<string>",
"repository": {
"id": "<string>",
"owner": "<string>",
"name": "<string>"
},
"title": "<string>",
"state": "open",
"author": {
"id": "<string>",
"username": "<string>",
"name": "<string>"
},
"head_revision": "<string>",
"latest_commit_at": "2023-11-07T05:31:56Z",
"latest_reviewable_observed_at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"age_seconds": 1,
"last_activity_at": "2023-11-07T05:31:56Z",
"last_human_activity_at": "2023-11-07T05:31:56Z",
"change_type": "bugfix",
"focus_state": "now",
"priority": {
"level": "p0",
"source": "calculated",
"reason": "<string>",
"reason_codes": [
"<string>"
],
"score": 50,
"confidence": 0.5,
"override": {
"level": "p0"
},
"revision": "<string>"
},
"close_candidate": {
"value": true,
"status": "available",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>",
"source": "manual",
"reason": "<string>"
},
"requires_attention": true,
"attention_reason_codes": [
"<string>"
],
"next_action": {
"kind": "merge",
"responsible_role": "author",
"responsible_users": [
{
"id": "<string>",
"username": "<string>",
"name": "<string>"
}
],
"reason_codes": [
"<string>"
],
"status": "available"
},
"review_status": {
"status": "available",
"value": "reviewed",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"approval_status": {
"status": "available",
"value": "approved",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"blast_radius": {
"status": "available",
"value": "low",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"merge_risk": {
"status": "available",
"value": {
"level": "low",
"score": 0.5,
"basis": "direct",
"reason": "<string>"
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"security_risk": {
"status": "available",
"value": {
"level": "minimal",
"reason": "<string>"
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"review_effort": {
"status": "available",
"value": 0.5,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"review_depth": {
"status": "available",
"value": "light",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"participants": [
{
"user": {
"id": "<string>",
"username": "<string>",
"name": "<string>"
},
"roles": [
"author"
]
}
],
"blocked_change_count": {
"status": "available",
"value": 1,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"issue_severity": {
"status": "available",
"value": "low",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"complexity": {
"status": "available",
"value": 3,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"diff": {
"status": "available",
"value": {
"additions": 1,
"deletions": 1,
"base_revision": "<string>"
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"readiness": {
"is_draft": {
"status": "available",
"value": true,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"checks": {
"status": "available",
"value": "none",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"conflicts": {
"status": "available",
"value": "clean",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"provider_eligibility": {
"status": "available",
"value": "allowed",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
}
},
"closure": {
"closeability": {
"status": "available",
"value": 0.5,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"revival": {
"status": "available",
"value": 0.5,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"supersession": {
"status": "available",
"value": {
"reason": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"replacements": [
{
"external_id": "<string>",
"url": "<string>"
}
]
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
}
}
},
"meta": {
"request_id": "<string>",
"org_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z",
"view": "mine"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unauthenticated",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "head_changed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "precondition_failed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "payload_too_large",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unavailable",
"message": "<string>",
"retry_after": 1
}
}Read an accessible Triage change
Returns the Triage detail of one change that the caller can access, including priority.revision for set_triage_change_priority. Unknown, stale and unsupported observations keep their recorded status and a null value.
GET
/
v1
/
triage
/
changes
/
{id}
Read an accessible Triage change
curl --request GET \
--url https://api.coderabbit.ai/v1/triage/changes/{id} \
--header 'x-coderabbitai-api-key: <api-key>'import requests
url = "https://api.coderabbit.ai/v1/triage/changes/{id}"
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/triage/changes/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"external_id": "<string>",
"provider": "github",
"provider_host": "<string>",
"url": "<string>",
"repository": {
"id": "<string>",
"owner": "<string>",
"name": "<string>"
},
"title": "<string>",
"state": "open",
"author": {
"id": "<string>",
"username": "<string>",
"name": "<string>"
},
"head_revision": "<string>",
"latest_commit_at": "2023-11-07T05:31:56Z",
"latest_reviewable_observed_at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"age_seconds": 1,
"last_activity_at": "2023-11-07T05:31:56Z",
"last_human_activity_at": "2023-11-07T05:31:56Z",
"change_type": "bugfix",
"focus_state": "now",
"priority": {
"level": "p0",
"source": "calculated",
"reason": "<string>",
"reason_codes": [
"<string>"
],
"score": 50,
"confidence": 0.5,
"override": {
"level": "p0"
},
"revision": "<string>"
},
"close_candidate": {
"value": true,
"status": "available",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>",
"source": "manual",
"reason": "<string>"
},
"requires_attention": true,
"attention_reason_codes": [
"<string>"
],
"next_action": {
"kind": "merge",
"responsible_role": "author",
"responsible_users": [
{
"id": "<string>",
"username": "<string>",
"name": "<string>"
}
],
"reason_codes": [
"<string>"
],
"status": "available"
},
"review_status": {
"status": "available",
"value": "reviewed",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"approval_status": {
"status": "available",
"value": "approved",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"blast_radius": {
"status": "available",
"value": "low",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"merge_risk": {
"status": "available",
"value": {
"level": "low",
"score": 0.5,
"basis": "direct",
"reason": "<string>"
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"security_risk": {
"status": "available",
"value": {
"level": "minimal",
"reason": "<string>"
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"review_effort": {
"status": "available",
"value": 0.5,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"review_depth": {
"status": "available",
"value": "light",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"participants": [
{
"user": {
"id": "<string>",
"username": "<string>",
"name": "<string>"
},
"roles": [
"author"
]
}
],
"blocked_change_count": {
"status": "available",
"value": 1,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"issue_severity": {
"status": "available",
"value": "low",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"complexity": {
"status": "available",
"value": 3,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"diff": {
"status": "available",
"value": {
"additions": 1,
"deletions": 1,
"base_revision": "<string>"
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"readiness": {
"is_draft": {
"status": "available",
"value": true,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"checks": {
"status": "available",
"value": "none",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"conflicts": {
"status": "available",
"value": "clean",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"provider_eligibility": {
"status": "available",
"value": "allowed",
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
}
},
"closure": {
"closeability": {
"status": "available",
"value": 0.5,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"revival": {
"status": "available",
"value": 0.5,
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
},
"supersession": {
"status": "available",
"value": {
"reason": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"replacements": [
{
"external_id": "<string>",
"url": "<string>"
}
]
},
"observed_at": "2023-11-07T05:31:56Z",
"revision": "<string>"
}
}
},
"meta": {
"request_id": "<string>",
"org_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z",
"view": "mine"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unauthenticated",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "head_changed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "precondition_failed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "payload_too_large",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unavailable",
"message": "<string>",
"retry_after": 1
}
}- CLI Tool
- MCP Server
coderabbit api request "/triage/changes/$ID"
An agent connected to the CodeRabbit MCP server runs this operation as the
get_triage_change tool. The connection selects the organization, so the arguments have no org_id or org_name.{
"method": "tools/call",
"params": {
"name": "get_triage_change",
"arguments": {
"id": "<id>"
}
}
}
Authorizations
See Authentication for the key types and where to create a key.
Query Parameters
Organization for a workspace key: the Git-provider organization ID (scope.provider_organization_id) or the CodeRabbit organization ID (scope.id, or id from list organizations). Supply either org_id or org_name, never both. Omit for organization keys and MCP connections.
Minimum string length:
1Was this page helpful?