List API keys
In the Esign Comply API, GET /v1/api-keys lists the domain's API keys in the calling key's mode, newest first and revoked keys included, never with a secret. Use it to audit which keys exist, what permission each has and when each was last used.
GET /v1/api-keys · API version 2026-11-21
Authentication
Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs full_access 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/api-keys \
-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.apiKeys.list();
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 keys of the domain in the calling key's mode, newest first, revoked keys included. The secret is never returned.
Parameters
This call takes no parameters. Headers: Esign-Comply-Version (optional, a dated API version).
Response
200 OK with a list of ApiKey objects.
{
"object": "list",
"data": [
{
"object": "api_key",
"id": "key_2bQ1",
"name": "Preview deployments",
"livemode": false,
"permission": "recording_access",
"prefix": "esc_test_us_...",
"api_version": "2026-11-21",
"last_used_at": null,
"revoked_at": null,
"created_at": "2026-11-26T00:18:00.296Z"
},
{
"object": "api_key",
"id": "key_Doqa",
"name": "Development",
"livemode": false,
"permission": "full_access",
"prefix": "esc_test_us_...",
"api_version": "2026-11-21",
"last_used_at": "2026-11-26T00:17:31.420Z",
"revoked_at": null,
"created_at": "2026-11-26T00:15:27.031Z"
}
],
"has_more": false
}
Response fields
The list has object (always list), data (the items) and has_more. Each item is an ApiKey object:
| Field | Type | Description |
|---|---|---|
object |
string | |
id |
string | |
name |
string | |
livemode |
boolean | |
permission |
string | |
prefix |
string | |
api_version |
string | |
created_at |
datetime | |
last_used_at |
datetime | |
revoked_at |
datetime | |
key |
string | The secret key. Present only in the creation response. |
revoked |
boolean |
Errors
This call has no error of its own. 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/api-keys
Which credential does GET /v1/api-keys need?
A secret key with full_access 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/api-keys 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/api-keys 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/api-keys 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/api-keys?
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/api-keys?
Yes: esc.apiKeys.list() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Account: the overview of the resource and all of its operations.
- Revoke an API key:
DELETE /v1/api-keys/{id} - Create a webhook endpoint:
POST /v1/webhooks - List webhook endpoints:
GET /v1/webhooks - Update a webhook endpoint:
PATCH /v1/webhooks/{id} - Domains
- Test mode
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21