Inspect

List pull request deployments

List the latest status of every environment the pull request has been deployed to.

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

List the latest status of every environment the pull request has been deployed to.

Authorization

bearerAuth deployments:read
headerAuthorizationBearer <token>

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

Scope: deployments: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

Deployments 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/deployments'
Example Response
{  "data": [    {      "environment": "production",      "status": "deployed",      "url": "https://acme.com",      "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  }}