Report pull request preview
Record the deploy status of a named preview for a pull request, typically from CI. The status is applied to every Inspect session currently linked to the pull request; sessions linked later receive the next reported status. Retries are safe: an update whose `occurred_at` is older than the stored status for the same preview is ignored. A `deploying` or `failed` status keeps the last successful URL.
Record the deploy status of a named preview for a pull request, typically from CI. The status is applied to every Inspect session currently linked to the pull request; sessions linked later receive the next reported status. Retries are safe: an update whose occurred_at is older than the stored status for the same preview is ignored. A deploying or failed status keeps the last successful URL.
bearerAuth previews:writeAuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
Scope: previews:write
owner*stringGitHub repository owner.
1 <= lengthrepo*stringGitHub repository name.
1 <= lengthpull_request_number*integerPull request number.
int640 < valuename*stringPreview name chosen by the caller, e.g. default or storybook. Lowercase kebab-case where each segment starts with a letter, at most 64 characters. The default preview is the session's primary preview.
^[a-z][a-z0-9]*(?:-[a-z][a-z0-9]*)*$length <= 64application/json- body
Unknown properties are rejected.
status*"deploying""deploying"commit_sha?|Commit the preview was built from. Recommended: Inspect uses it to mark previews of older commits as outdated.
1 <= length <= 64label?|Display name for the preview. Omit to keep the current label.
1 <= length <= 100embeddable?booleanWhether the preview can be shown in a frame inside the Inspect UI. Set it to true only when the preview URL allows Inspect as a frame ancestor and loads without a sign-in page that refuses to be framed. Omit to keep the current value; new previews default to false, which shows a link that opens the preview in a new tab.
error?|Failure details, recorded when status is failed.
length <= 2000occurred_at?stringWhen the status change occurred. Defaults to receipt time.
date-timeThe status was accepted
application/json- response
data*curl -X PUT 'https://app.inspect.com/api/v2/repositories/acme/web/pulls/1234/previews/default' \ -H 'Content-Type: application/json' \ -d '{ "status": "deploying"}'{ "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", "session_ids": [ "n4b8v2c6x9zq" ] }}