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
| Header | Type | Required | Description |
|---|
| Authorization | string | Yes | Bearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication. |
Query parameters
| Parameter | Type | Required | Description |
|---|
| siteId | string | No | Target 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"
}
| Field | Type | Description |
|---|
| id | string | Build ID. |
| businessId | string | Your workspace ID. |
| status | string | One of queued, running, success, or failed. |
| errorMessage | string | Why the build failed. Only on failed builds. |
| triggeredBy | string | What started the build: api, manual (dashboard), auto, or promotion (preview promoted to live). |
| durationMs | number | Build time in milliseconds. Only once the build has finished. |
| previewId | string | Only on builds of the draft preview site. |
| startedAt | string | RFC 3339. Only once the build has started. |
| completedAt | string | RFC 3339. Only once the build has finished. |
| createdAt | string | RFC 3339. When the build was queued. |
Returns 404 when no builds exist for the site.