Deployments
Preview

List a deployment's pull request previews

The previews that exist now, newest pull request first. There are at most as many as the deployment's cap, so the list is not paged.

GET
/deployments/{deploymentId}/previews
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid

Response Body

The previews.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/previews'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "repo": "string",      "prNumber": 0,      "headSha": "string",      "headRef": "string",      "state": "active",      "detailsUrl": "string",      "url": "string",      "fork": true,      "labeledBy": "string",      "expiresAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}