Inspect

List pull request previews

List the latest state of every preview reported for a pull request, as stored on the Inspect sessions currently linked to it.

Base URL
GET
/api/v2/repositories/{owner}/{repo}/pulls/{pull_request_number}/previews

List the latest state of every preview reported for a pull request, as stored on the Inspect sessions currently linked to it.

Authorization

bearerAuth previews:read
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: previews:read

Path Parameters

owner*string

GitHub repository owner.

Length1 <= length
repo*string

GitHub repository name.

Length1 <= length
pull_request_number*integer

Pull request number.

Formatint64
Range0 < value

Response Body

Previews for the pull request

application/json
  1. response
data*array<>
meta*
Example Request
curl -X GET 'https://app.inspect.com/api/v2/repositories/acme/web/pulls/1234/previews'
Example Response
{  "data": [    {      "name": "default",      "label": "Web app",      "embeddable": false,      "status": "deployed",      "url": "https://web-git-jane-checkout-redesign-acme.vercel.app",      "commit_sha": "8f3c2a1d9e7b6f5a4c3d2e1f0a9b8c7d6e5f4a3b",      "last_succeeded_at": "2026-10-28T15:42:11.204Z",      "error": null,      "occurred_at": "2026-10-28T15:42:11.204Z"    }  ],  "meta": {    "next_cursor": "eyJ2IjoxLCJzIjoicHVibGlzaGVkX2F0X2Rlc2MiLCJrIjpbZmFsc2UsMTc5MzAyNDQ2NzMzMCwicjVqMWI4dDN5NnFlIl19",    "previous_cursor": "eyJ2IjoxLCJzIjoicHVibGlzaGVkX2F0X2Rlc2MiLCJrIjpbZmFsc2UsMTc5MzIwMjEzMTIwNCwieDdrMm05cTRwMXphIl19",    "has_next_page": true,    "has_previous_page": false  }}