
# Pending changes

List the pages, authors, and site-setting changes not yet deployed. This tells a script or an agent whether a deploy is needed at all. Both the monthly build quota and the 30-second cooldown apply to a deploy that changes nothing, so skipping one saves quota.

```sh
GET https://sitepaste.com/api/v1/public/sites/{siteId}/pending-changes
```

Requires the `deploy` scope.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/sites/default/pending-changes" \
  -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](/api/authentication). |

## Response

```json
{
  "pages": [ { "id": "p4xyza7bcdef", "slug": "hello", "title": "Hello", "contentType": "blog", "changeType": "created" } ],
  "authors": [
    { "id": "a7xkq3mz9r2t", "name": "Ada Lovelace", "changeType": "modified",
      "fields": [ { "field": "bio", "changeType": "modified", "from": "Mathematician", "to": "Mathematician and writer" } ] }
  ],
  "siteChanges": [
    { "category": "theme", "kind": "text", "changeType": "modified", "from": "classic", "to": "paper" },
    { "category": "show_toc", "kind": "toggle", "changeType": "created" }
  ],
  "lastDeploymentAt": "2026-08-30T12:00:05Z",
  "lastDeploymentTriggeredBy": "manual",
  "proFeaturesInUse": []
}
```

Each list holds what a deploy would publish, measured against the deployment the site is serving. A site that is serving nothing, because it has never deployed or was taken down, has everything pending. All three are empty when the live site already matches what is saved, so a deploy would change nothing and can be skipped without spending from the [hourly budget](/api/overview#rate-limiting).

| Field | Type | Description |
|-------|------|-------------|
| pages | array | Pages created, updated, or deleted since the last deploy, with `changeType`. |
| authors | array | Author records changed since the last deploy, with `changeType`. A modified author whose deployed version is known also has `fields`, one entry per changed field (`name`, `bio`, `image`, `email`, `website`, `twitter`, or `linkedin`), each a value change as described below. |
| siteChanges | array | Site settings changed since the last deploy. Each has the setting's `category`, such as `theme` or `show_toc`, its `kind`, and a value change. Treat `category` as an open set. |
| lastDeploymentAt | string | RFC 3339. When the deployment the site is serving finished. Omitted when the site has never deployed or has been undeployed. |
| lastDeploymentTriggeredBy | string | How that deploy started: `api`, `manual`, or `promotion`, the same values as a deployment's `triggeredBy`. Treat it as an open set. Omitted when the site has never deployed or has been undeployed. |
| proFeaturesInUse | array | The Pro features the site uses while its workspace is not on Pro, such as after a Pro trial has ended. While it holds any, the site cannot be deployed or previewed: [deploying](/api/deployments/post-deployments) answers 402 with `pro_features_in_use`. Always empty on Pro. The values are `site_protection`, `site_theme`, `newsletter_signup`, `custom_domain`, `extra_sites`, `page_password`, `page_theme`, `comments`, and `pro_widgets`. Treat it as an open set. |

A change's `changeType` is `created`, `modified`, or `deleted`, and `kind` says what those mean for a setting:

| kind | created | deleted | modified |
|------|---------|---------|----------|
| `text` | Set, with the new value in `to`. | Removed. | Changed, with the old value in `from` and the new one in `to`. |
| `toggle` | Turned on. | Turned off. | Not used. |
| `hidden` | Set. | Removed. | Changed. The values are never sent, because they are secret, such as the site password, or are not text, such as the navigation links. |

`from` and `to` hold at most 30 characters of a value, followed by `…` when it was cut. Each is omitted when the change has no such value. An author's field changes follow the `text` row.