List a service's deployments
GET
Newest first, the last 100.
bearerheader
AuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
serviceId*stringThe service's id.
limit?integerHow many items to return, 1 to 100. Default 50.
Range
1 <= value <= 100cursor?stringThe nextCursor of the previous page.
Length
length <= 500List a service's deployments
application/json- response
data*array<>nextCursor*|Pass as cursor for the next page; null on the last.
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"}What a service's containers get GET
The variables of the project, its environment and the service, merged with the narrowest winning, as the next deployment will use them. Secrets come without their value.
Deploy a service POST
Deploys the service as it is set now: an image at once; a Git source once it is built (status queued, then building). Variables and settings are taken as they are at this moment.