Skip to main content
GET
List exact-repository Review billing rules
Lists the repository billing rules for Devin Review that the caller can manage in one organization. Each rule charges future Review usage on one exact repository to an organization or a budget. Create or change a rule with Set a repository billing rule and remove one with Delete a repository billing rule.

Permissions

Requires a service user or personal access token with the ManageReview permission in the organization. The caller can manage rules only for repositories delegated to that organization, and can bill only to that organization or a budget it manages.

Behavior

  • Results are paginated. Pass first (page size) and after (the previous page’s end_cursor) while has_next_page is true. A page can be short or empty while has_next_page is still true, so keep paging until it is false.
  • repository is owner/repo for github.com and host/path for other providers.
  • bill_to.type is organization or budget, and bill_to.id is the organization ID or budget ID that pays.

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

Response

Successful Response

items
ReviewRepoBillingRuleResponse · 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).