# Retrieve a prompt update

> Retrieve a prompt update in the Esign Comply API with GET /v1/prompts/{id}/update: parameters, a tested cURL and Node SDK example, the response and every error.

Source: https://esigncomply.com/docs/api/account/retrieve-a-prompt-update

Last updated November 26, 2026

In the Esign Comply API, `GET /v1/prompts/{id}/update` builds the update prompt for a stored prompt whose blocks or packs have newer versions, with only what changed. Call it when a prompt's status is `update_available`, then apply the update under review if you choose to.

`GET /v1/prompts/{id}/update` · API version `2026-11-21`

## Authentication

Send a secret key in the `Authorization` header: `Bearer $ESIGNCOMPLY_API_KEY`. The key needs any permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under [Authentication](https://esigncomply.com/docs/api.md#authentication).

## Request example

### cURL

```bash
curl https://esigncomply.com/v1/prompts/esc_prompt_i5Yi/update \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"
```

This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with `...`.

## What it does

Returns the update prompt for a stored prompt that is behind the current block library or pack catalogue. It describes only what changed. Applying it is your choice: code built from the earlier prompt keeps working.

When the stored prompt is current there is nothing to apply: `id` and `markdown` are `null`, and `changes` and `notes` are empty.

With `format=markdown`, or an `Accept: text/markdown` header and no `format`, the response is the update prompt alone, as `text/markdown`. Asked for as Markdown, a prompt that is current answers `404`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | Yes | ID of the prompt. |
| `format` | query | string | No | markdown or json. Default json. |

Headers: `Esign-Comply-Version` (optional, a dated API version). See [API conventions](https://esigncomply.com/docs/api.md).

## Response

`200 OK` with a PromptUpdate object.

```json
{
  "object": "prompt_update",
  "id": null,
  "prompt": "esc_prompt_i5Yi",
  "guidance_release": "2026.11.2",
  "status": {
    "state": "current",
    "behind": 0,
    "blocks": [],
    "packs": [],
    "guidance_release": {
      "built": "2026.11.2",
      "current": "2026.11.2"
    }
  },
  "changes": [],
  "markdown": null,
  "notes": []
}
```

### Response fields

| Field | Type | Description |
|---|---|---|
| `object` | string | Always "prompt_update". |
| `id` | string | ID of the update prompt. null when the prompt is current. |
| `prompt` | string | The stored prompt the update is for. |
| `guidance_release` | string |  |
| `status` | object | Where the stored prompt stands against the block library and the pack catalogue. |
| `changes` | array |  |
| `markdown` | string | The update prompt. null when the prompt is current. |
| `notes` | array |  |

## Errors

| Code | HTTP | When |
|---|---|---|
| [`invalid_request`](https://esigncomply.com/docs/api/errors.md#invalid_request) | 400 | `format` is neither `markdown` nor `json`. `param` is `format`. |
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | No such prompt in this domain and environment, or the prompt is current and the request asked for Markdown. |

Like every call made with a secret key, it can also return [`missing_api_key`](https://esigncomply.com/docs/api/errors.md#missing_api_key), [`invalid_api_key`](https://esigncomply.com/docs/api/errors.md#invalid_api_key), [`domain_not_verified`](https://esigncomply.com/docs/api/errors.md#domain_not_verified), [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission), [`region_mismatch`](https://esigncomply.com/docs/api/errors.md#region_mismatch), [`rate_limit_exceeded`](https://esigncomply.com/docs/api/errors.md#rate_limit_exceeded) and [`internal_error`](https://esigncomply.com/docs/api/errors.md#internal_error).

Every error has the same body: `error.type`, `error.code`, `error.message`, `error.doc_url` and `error.request_id`. See [Errors](https://esigncomply.com/docs/api/errors.md).

## Questions about GET /v1/prompts/{id}/update

### Which credential does GET /v1/prompts/{id}/update need?

A secret key with any permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.

### Does GET /v1/prompts/{id}/update work with a test key?

Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.

### Does GET /v1/prompts/{id}/update count as a signature event?

No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.

### Is GET /v1/prompts/{id}/update idempotent?

It is a read, so it is safe to repeat. It takes no Idempotency-Key header.

### What is the rate limit for GET /v1/prompts/{id}/update?

The limit is counted for each key and depends on the plan: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

### Does the Node SDK have a method for GET /v1/prompts/{id}/update?

No. Call it over HTTP, or with esc.request() in the esigncomply package, which sends the key and returns { data, error }.

## Related

- [Account](https://esigncomply.com/docs/api/account.md): the overview of the resource and all of its operations.
- [Register a domain](https://esigncomply.com/docs/api/account/register-a-domain.md): `POST /v1/domains`
- [List domains](https://esigncomply.com/docs/api/account/list-domains.md): `GET /v1/domains`
- [Retrieve a domain](https://esigncomply.com/docs/api/account/retrieve-a-domain.md): `GET /v1/domains/{id}`
- [Update a domain](https://esigncomply.com/docs/api/account/update-a-domain.md): `PATCH /v1/domains/{id}`
- [Domains](https://esigncomply.com/docs/guides/domains.md)
- [Test mode](https://esigncomply.com/docs/guides/test-mode.md)
- [Errors](https://esigncomply.com/docs/api/errors.md): every error code, with what to do.
- [API conventions](https://esigncomply.com/docs/api.md): authentication, idempotency, rate limits and versioning.
