Get the live deploy

Read the deploy the site is currently serving. To take it offline, use DELETE /sites/{siteId}/deployments/live.

GET https://sitepaste.com/api/v1/public/sites/{siteId}/deployments/live

Requires the deploy scope.

live is not the same as latest: the most recent deploy may be queued, running, or failed, while the live one is the last that succeeded and has not been taken down.

Preview builds do not count. A promotion does count, because it puts a preview live. A deploy that was queued before an undeploy but finished after it puts the site back online, and this read reports it as live.

Usage

curl "https://sitepaste.com/api/v1/public/sites/default/deployments/live" \
  -H "Authorization: Bearer $TOKEN"

Response

200 OK with the deploy record.

404 when the site is not deployed, meaning it never has been or its last deploy was taken down.