Skip to content
DocsMenu

List prompts

View as Markdown

Open this page inChatGPTClaudeCursor

In the Esign Comply API, GET /v1/prompts lists the prompts generated for the key's domain and environment, newest first, without their Markdown. Use it to find a prompt ID or to see which stored prompts have an update available. It takes a secret key with any permission.

GET /v1/prompts · 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.

Request example

cURL

curl "https://esigncomply.com/v1/prompts?limit=20" \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"

Node SDK

import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

const { data, error } = await esc.prompts.list({ limit: 20 });

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

Lists the prompts generated for the key's domain and environment, newest first. Each item carries the prompt's ID, its content hash, the guidance release it was built from and its status against the current block library and pack catalogue. The list leaves out markdown: read one prompt with Retrieve a prompt for its text.

Paging works as on every list: limit, then after or before with a prompt ID.

Parameters

Name In Type Required Description
limit query string No Items per page, 1 to 100. Default 20.
after query string No Return items after this object ID.
before query string No Return items before this object ID.

Headers: Esign-Comply-Version (optional, a dated API version). See API conventions.

Response

200 OK with a list of Prompt objects.

{
  "object": "list",
  "data": [
    {
      "object": "prompt",
      "id": "esc_prompt_911d",
      "livemode": false,
      "title": "Esign Comply integration: signup acceptance",
      "content_hash": "sha256:a2688db8...",
      "word_count": 2163,
      "guidance_release": "2026.11.2",
      "jurisdictions": [
        "US-FED",
        "US-CA"
      ],
      "pack_versions": {
        "US-CA": "2026-11-21",
        "US-FED": "2026-11-22"
      },
      "block_versions": {
        "tool.other": "2026.11",
        "us.routing": "2026.11",
        "core.client": "2026.11",
        "core.errors": "2026.11",
        "core.gating": "2026.11",
        "core.header": "2026.11",
        "core.server": "2026.11",
        "us.state.ca": "2026.11",
        "core.reports": "2026.11",
        "stack.vercel": "2026.11",
        "verify.steps": "2026.11",
        "core.documents": "2026.11",
        "stack.supabase": "2026.11",
        "core.obligations": "2026.11",
        "stack.nextjs_app": "2026.11",
        "core.assent_design": "2026.11",
        "core.recommendations": "2026.11"
      },
      "profiles": [
        {
          "id": "prof_SVAG",
          "name": "Signup acceptance",
          "source": "reused",
          "use_case": "signup_terms"
        }
      ],
      "documents": [],
      "env": [
        "ESIGNCOMPLY_API_KEY",
        "ESIGNCOMPLY_WEBHOOK_SECRET"
      ],
      "warnings": [
        "use_cases_defaulted:signup_terms",
        "document_id_missing:Terms of Service"
      ],
      "status": {
        "state": "current",
        "behind": 0,
        "blocks": [],
        "packs": [],
        "guidance_release": {
          "built": "2026.11.2",
          "current": "2026.11.2"
        }
      },
      "regenerated_from": null,
      "created_by": "key:key_Doqa",
      "created_at": "2026-11-26T00:17:54.717Z"
    },
    {
      "object": "prompt",
      "id": "esc_prompt_i5Yi",
      "livemode": false,
      "title": "Esign Comply integration: signup acceptance",
      "content_hash": "sha256:80170d02...",
      "word_count": 2163,
      "guidance_release": "2026.11.2",
      "jurisdictions": [
        "US-FED",
        "US-CA"
      ],
      "pack_versions": {
        "US-CA": "2026-11-21",
        "US-FED": "2026-11-22"
      },
      "block_versions": {
        "tool.other": "2026.11",
        "us.routing": "2026.11",
        "core.client": "2026.11",
        "core.errors": "2026.11",
        "core.gating": "2026.11",
        "core.header": "2026.11",
        "core.server": "2026.11",
        "us.state.ca": "2026.11",
        "core.reports": "2026.11",
        "stack.vercel": "2026.11",
        "verify.steps": "2026.11",
        "core.documents": "2026.11",
        "stack.supabase": "2026.11",
        "core.obligations": "2026.11",
        "stack.nextjs_app": "2026.11",
        "core.assent_design": "2026.11",
        "core.recommendations": "2026.11"
      },
      "profiles": [
        {
          "id": "prof_SVAG",
          "name": "Signup acceptance",
          "source": "created",
          "use_case": "signup_terms"
        }
      ],
      "documents": [],
      "env": [
        "ESIGNCOMPLY_API_KEY",
        "ESIGNCOMPLY_WEBHOOK_SECRET"
      ],
      "warnings": [
        "use_cases_defaulted:signup_terms",
        "document_id_missing:Terms of Service"
      ],
      "status": {
        "state": "current",
        "behind": 0,
        "blocks": [],
        "packs": [],
        "guidance_release": {
          "built": "2026.11.2",
          "current": "2026.11.2"
        }
      },
      "regenerated_from": null,
      "created_by": "key:key_Doqa",
      "created_at": "2026-11-26T00:17:54.181Z"
    }
  ],
  "has_more": false
}

Response fields

The list has object (always list), data (the items) and has_more. Each item is a Prompt object:

Field Type Description
object string
id string esc_prompt_...
content_hash string
markdown string
profiles array
guidance_release string

Errors

Code HTTP When
invalid_request 400 limit is not an integer from 1 to 100, both after and before were sent, or the cursor does not exist.

Like every call made with a secret key, it can also return missing_api_key, invalid_api_key, domain_not_verified, insufficient_permission, region_mismatch, rate_limit_exceeded and internal_error.

Every error has the same body: error.type, error.code, error.message, error.doc_url and error.request_id. See Errors.

Questions about GET /v1/prompts

Which credential does GET /v1/prompts 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 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 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 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?

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?

Yes: esc.prompts.list() in the esigncomply package. It resolves to { data, error } and does not throw.

Last updated · API version 2026-11-21