Skip to main content
POST
Trigger Devin Review

Permissions

Requires a service user with the UseReviewManual permission at the enterprise level.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Body

application/json
pr_url
string
required

Full URL of the pull/merge request to review (e.g. https://github.com/owner/repo/pull/123).

Example:

"https://github.com/owner/repo/pull/123"

Response

Successful Response

commit_sha
string
required

Commit SHA of the PR head that will be reviewed.

created_at
string<date-time>
required

When the review was accepted.

pr_number
integer
required

Pull/merge request number.

repo_path
string
required

Normalized host-prefixed repo path (e.g. github.com/owner/repo).

status
enum<string>
required

Current review status. Newly accepted reviews start as pending.

Available options:
pending,
running,
completed,
errored,
cancelled