Skip to content
Skip to Content

List a service's deployments

GET
/services/{serviceId}/deployments

Newest first, the last 100.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

serviceId*string

The service's id.

Query parameters

limit?integer

How many items to return, 1 to 100. Default 50.

Range1 <= value <= 100
cursor?string

The nextCursor of the previous page.

Lengthlength <= 500

Response body

List a service's deployments

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page; null on the last.

Example request
curl "https://openpanel.sh/api/v1/services/$SERVICE_ID/deployments" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "serviceId": "8f8bb40f-b96b-40fe-9064-5031fbe483f9",      "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",      "status": "queued",      "commit": "string",      "image": "string",      "config": {        "property1": null,        "property2": null      },      "rollbackOf": "65f4f6e9-31b7-43b4-9674-5c6963c953c2",      "error": "string",      "createdBy": "string",      "createdAt": "2019-08-24T14:15:22Z",      "finishedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}