Skip to content

Read whether a project's agents' pull requests are reviewed

GET
/projects/{id}/agent-reviews
Code sample: Shell / cURL
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.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

The project’s review settings.

Media typeapplication/json
object
data
required

Whether a project’s agents’ pull requests are reviewed, who reviews, and what it spends.

object
agent
required

The Code review agent that reviews; null when none is installed

Any of:
object
canOpenProject
required

False until the agent is a member of the project

boolean
id
required
string
name
required
string
audit

The monthly security audit; absent on an older server

object
agent
required

The Security agent; null when none is installed

Any of:
object
canOpenProject
required

False until the agent is a member of the project

boolean
id
required
string
name
required
string
agentMonthUsd
required

What the Security agent spent this UTC month

number
enabledBy
required

Who switched the audit on, and answers for what it costs

Any of:
object
id
required
string
name
required
string
isOn
required

Whether the project’s repository is audited every month

boolean
projectMonthUsd
required

What this project’s audits spent this UTC month

number
canChange
required

Whether the caller may switch reviews on or off

boolean
enabledAt
required

When reviews were last switched on

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
enabledBy
required

Who switched them on, and answers for what they cost beyond a lead’s tickets

Any of:
object
id
required
string
name
required
string
githubReachable
required

Whether GitHub can deliver pull request events to this instance

boolean
hasRepository
required

Whether the project has a linked repository

boolean
projectId
required
string
qa

The QA pass of a ticket reaching review; absent on an older server

object
agent
required

The QA agent; null when none is installed

Any of:
object
canOpenProject
required

False until the agent is a member of the project

boolean
id
required
string
name
required
string
agentMonthUsd
required

What the QA agent spent this UTC month

number
enabledBy
required

Who switched the QA pass on, and answers for what it costs

Any of:
object
id
required
string
name
required
string
isOn
required

Whether a ticket reaching the review status gets a QA pass

boolean
reviewStatus
required

The status that starts it; null while the review stage is unmapped

Any of:
object
id
required
string
name
required
string
reviewAgentPullRequests
required

Whether agents’ pull requests are reviewed

boolean
spend
required
object
agentMonthLimitUsd
required

The agent’s monthly limit

number
agentMonthUsd
required

What the Code review agent spent this UTC month

number
projectMonthUsd
required

What this project’s reviews spent this UTC month

number
reviewLimitUsd
required

The most one review may spend, in dollars

number
ticketLimitUsd
required

The most all reviews of one ticket may spend

number
team

The review of the team’s own pull requests, found through their ticket link; absent on an older server

object
enabledBy
required

Who switched it on, and answers for what it costs

Any of:
object
id
required
string
name
required
string
isOn
required

Whether the team’s own pull requests are reviewed

boolean

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.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Conflict.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Invalid input.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.