Skip to main content
POST
/
v3
/
organizations
/
{org_id}
/
pr-reviews
Trigger Devin Review
curl --request POST \
  --url https://api.devin.ai/v3/organizations/{org_id}/pr-reviews \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pr_url": "<string>"
}
'
{
  "commit_sha": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "pr_number": 123,
  "repo_path": "<string>",
  "status": "pending"
}

Documentation Index

Fetch the complete documentation index at: https://docs.devin.ai/llms.txt

Use this file to discover all available pages before exploring further.

Permissions

Requires a service user with the UseReviewManual permission for the specified organization.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

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