Apps and sources
Preview

List the deployments that use a source

The deployments of the apps built from the source that the caller may read, by name, each with the newest commit its branch was seen at and its newest render.

GET
/sources/{sourceId}/deployments
cookiebetter-auth.session_token<token>

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

sourceId*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 deployments.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/sources/497f6eca-6276-4993-bfeb-53cbbbba6f08/deployments'
Example Response
{  "items": [    {      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "deploymentName": "string",      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "appName": "string",      "targetName": "string",      "namespace": "string",      "arrival": "branch",      "branch": "string",      "lastCommit": "string",      "lastPushAt": "2019-08-24T14:15:22Z",      "lastRenderAt": "2019-08-24T14:15:22Z",      "lastRenderSnapshotId": "9c791ea7-7c48-41b1-967e-0e8fb0dbcd60",      "lastRenderCommit": "string"    }  ],  "nextCursor": "string"}