Read whether a project's agents' pull requests are reviewed
curl --request GET \ --url https://example.com/api/v1/projects/example/agent-reviews \ --header 'Authorization: Bearer <token>'Returns the switch that sends a Code review agent over each pull request the project’s agents open, who switched it on, whether the project has a repository, whether GitHub can reach this instance, which agent reviews and whether it can open the project, and what reviews have spent this month against their limits, plus the QA pass and the monthly security audit blocks. Off until a person turns it on. Requires projects.view and a project the caller reaches.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”The project’s review settings.
object
Whether a project’s agents’ pull requests are reviewed, who reviews, and what it spends.
object
The monthly security audit; absent on an older server
object
What the Security agent spent this UTC month
Whether the project’s repository is audited every month
What this project’s audits spent this UTC month
Whether the caller may switch reviews on or off
Whether GitHub can deliver pull request events to this instance
Whether the project has a linked repository
The QA pass of a ticket reaching review; absent on an older server
object
What the QA agent spent this UTC month
Whether a ticket reaching the review status gets a QA pass
Whether agents’ pull requests are reviewed
object
The agent’s monthly limit
What the Code review agent spent this UTC month
What this project’s reviews spent this UTC month
The most one review may spend, in dollars
The most all reviews of one ticket may spend
The review of the team’s own pull requests, found through their ticket link; absent on an older server
Example generated
{ "data": { "agent": { "canOpenProject": true, "id": "example", "name": "example" }, "audit": { "agent": { "canOpenProject": true, "id": "example", "name": "example" }, "agentMonthUsd": 1, "enabledBy": { "id": "example", "name": "example" }, "isOn": true, "projectMonthUsd": 1 }, "canChange": true, "enabledAt": "2026-04-15T12:00:00Z", "enabledBy": { "id": "example", "name": "example" }, "githubReachable": true, "hasRepository": true, "projectId": "example", "qa": { "agent": { "canOpenProject": true, "id": "example", "name": "example" }, "agentMonthUsd": 1, "enabledBy": { "id": "example", "name": "example" }, "isOn": true, "reviewStatus": { "id": "example", "name": "example" } }, "reviewAgentPullRequests": true, "spend": { "agentMonthLimitUsd": 1, "agentMonthUsd": 1, "projectMonthUsd": 1, "reviewLimitUsd": 1, "ticketLimitUsd": 1 }, "team": { "enabledBy": { "id": "example", "name": "example" }, "isOn": true } }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC