Deployments
Preview

List a deployment's snapshots

The snapshots of the deployment, newest first, each without its manifest. A snapshot a render guard held shows its review state.

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

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

deploymentId*string
Formatuuid
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

Response Body

A page of snapshots.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots'
Example Response
{  "items": [    {      "promotedFrom": {        "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",        "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2"      },      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",      "origin": "sync",      "commit": "string",      "branch": "string",      "sourceRepo": "string",      "commitSubject": "string",      "commitAuthor": "string",      "committedAt": "2019-08-24T14:15:22Z",      "apps": [        {          "appId": "28c365d5-df94-4a54-8217-3ce51d068868",          "name": "string",          "sourceRepo": "string",          "sourcePath": "string",          "renderType": "string",          "commit": "string",          "branch": "string",          "branchProtected": true,          "prNumber": 0,          "pusher": "string",          "commitSubject": "string",          "commitAuthor": "string",          "committedAt": "2019-08-24T14:15:22Z",          "refKind": "branch",          "refName": "string",          "commitsSince": 0,          "commitRange": [            {              "sha": "string",              "subject": "string",              "author": "string"            }          ]        }      ],      "manifestDigest": "string",      "contentId": "string",      "resourceCount": 0,      "totalBytes": 0,      "createdBy": "string",      "createdAt": "2019-08-24T14:15:22Z",      "reviewState": "held"    }  ],  "nextCursor": "string"}