Get deploy status

Get the most recent deploy’s status for a site. Use it to poll after triggering a deploy.

GET https://sitepaste.com/api/v1/public/builds/latest

Usage

curl https://sitepaste.com/api/v1/public/builds/latest \
  -H "Authorization: Bearer $TOKEN"

Authorizations

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Query parameters

ParameterTypeRequiredDescription
siteIdstringNoTarget site ID (short ID or UUID). Defaults to your default site.

Response

{
  "id": "k8QjXv2mZlPwR9tGhY3nA",
  "businessId": "b4NcRt7wYqLmS2vHxK9jE",
  "status": "success",
  "triggeredBy": "api",
  "durationMs": 4523,
  "startedAt": "2026-02-08T12:00:01Z",
  "completedAt": "2026-02-08T12:00:05Z",
  "createdAt": "2026-02-08T12:00:00Z"
}
FieldTypeDescription
idstringBuild ID.
businessIdstringYour workspace ID.
statusstringOne of queued, running, success, or failed.
errorMessagestringWhy the build failed. Only on failed builds.
triggeredBystringWhat started the build: api, manual (dashboard), auto, or promotion (preview promoted to live).
durationMsnumberBuild time in milliseconds. Only once the build has finished.
previewIdstringOnly on builds of the draft preview site.
startedAtstringRFC 3339. Only once the build has started.
completedAtstringRFC 3339. Only once the build has finished.
createdAtstringRFC 3339. When the build was queued.

Returns 404 when no builds exist for the site.