> ## 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.

# PrReviewsClient

## Constructor

```typescript
PrReviewsClient(options: BaseClientOptions): PrReviewsClient
```

### Parameters

**options** `BaseClientOptions` *required*

### Returns

`PrReviewsClient`

## Methods

### createPrReview()

```typescript
createPrReview(request: CreatePrReviewPrReviewsRequest, requestOptions?: RequestOptions): HttpResponsePromise<PrReviewResponse>
```

Trigger a Devin Review for a pull/merge request.

Creates a database record that will be picked up by the review
worker pool. Always fetches the latest commit from the PR.

```ts
await client.prReviews.createPrReview({
        org_id: "org-abc123def456",
        body: {
            pr_url: "https://github.com/owner/repo/pull/123"
        }
    })
```

#### Parameters

**request** `CreatePrReviewPrReviewsRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<PrReviewResponse>`

### getPrReviewStatus()

```typescript
getPrReviewStatus(request: GetPrReviewStatusPrReviewsRequest, requestOptions?: RequestOptions): HttpResponsePromise<PrReviewResponse>
```

Return the latest Devin Review for a PR scoped to the organization.

When `commit_sha` is omitted, the PR's current head commit is
fetched from the provider and used. Returns `404` when no review
exists for the resolved commit.

```ts
await client.prReviews.getPrReviewStatus({
        org_id: "org-abc123def456",
        pr_url: "https://github.com/owner/repo/pull/123"
    })
```

#### Parameters

**request** `GetPrReviewStatusPrReviewsRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<PrReviewResponse>`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.