Skip to main content
GET
List default reviewer triggers
Lists, one page at a time, the Devin Review auto-review rules and exclusions the caller can see. Each trigger carries a version_id to pass back when you change or delete it.

Permissions

Requires a service user or personal access token with the ManageReview permission in the organization. A personal access token acts as its user. Account-wide ManageReview lets the caller manage every scope; organization-level ManageReview covers only the repositories that organization can access.

Behavior

  • Results are paginated: first sets the page size (default 100, maximum 200) and after takes the end_cursor of the previous page. Rules come first, then exclusions.
  • Each item’s kind is rule (starts reviews automatically) or exclusion (stops matching pull requests from being reviewed). Pass kind to list only one of them.
  • A trigger marked readonly is visible to the caller but can’t be changed by it.
  • capabilities reports, for the account scope and every scope a trigger on the page uses, whether the caller can attach triggers to it.
  • Returns 404 when Review triggers are not enabled for the organization.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

Query Parameters

after
string | null
first
integer
default:100
Required range: 1 <= x <= 200
kind
enum<string> | null

Only rules, or only exclusions.

Available options:
rule,
exclusion

Response

Successful Response

One page of triggers, rules first and then exclusions (kind on each item says which).

actor_kind
enum<string>
required

How the caller is authorized: 'account' (account-wide), 'organization' (one org's repositories) or 'user'.

Available options:
account,
organization,
user
actor_org_id
string | null
required
broken_count
integer
required

Stored entries this server cannot parse; the webapp shows them.

can_edit
boolean
required
capabilities
ReviewScopeCapabilityResponse · object[]
required

Editability of every scope used by this page's triggers, plus the account scope.

items
ReviewTriggerResponse · object[]
required
end_cursor
string | null

Cursor to fetch the next page, or None if this is the last page.

has_next_page
boolean
default:false

Whether there are more items available after this page.

total
integer | null

Optional total count (can be omitted for performance).