Skip to content
DocsMenu

Get usage

View as Markdown

Open this page inChatGPTClaudeCursor

In the Esign Comply API, GET /v1/usage reports what the subscription has used in the current period: live events, test events, certificates and supplement storage. Use it to watch usage against the plan's limit, or as an unmetered check that a key works.

GET /v1/usage · 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/usage \
  -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.usage.get();

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 what the subscription has used in the current period. Live events are counted per subscription year on paid plans and per UTC calendar month on the Free plan. The call is never metered, which also makes it the simplest way to check that a key works.

Field Description
plan, plan_name The plan id: sandbox, starter, unlimited or enterprise. sandbox is the id of the Free plan. plan_name is the name a person reads, for example "Free".
subscription_status active, incomplete, past_due or canceled.
period The subscription year. Paid plans count live events and certificates per subscription year. On Free, live events are counted per UTC month: see events.period.
events.period, events.period_start, events.resets_at The period live events are counted in: "month" on Free, "year" on paid plans. Then the start of that period and the time the count starts again: the first of the next month (UTC) on Free, the end of the subscription period on paid plans. resets_at is null while the account is locked, because a locked account gets no new allowance on its own. It can also be null on a paid plan with no renewal date set.
events.used Sealed live records in that period: this UTC month on Free, this subscription year on paid plans. One signer completing one ceremony is one event. Test records, verifications, downloads, supplements and certificates are not counted. This is the true count. It can be higher than events.allowance.
events.open_sessions Live sessions that are open and not expired, on every plan. Informational: it is not part of used and is not subtracted from remaining.
events.quota, events.event_packs, events.allowance The plan quota, the event packs bought this year, and the limit: quota plus 1,000 per pack. On Free, quota and allowance are 10. On Unlimited and Enterprise, quota and allowance are null: there is no limit.
events.remaining allowance - used, never below 0. null on Unlimited and Enterprise.
events.locked Boolean. true from the moment the account locks, when used reaches allowance, until payment. The lock does not lift on its own. On Free, upgrading to a paid plan removes it. On Starter, upgrading to Unlimited, adding an event pack or paying for renewal removes it. Always false on Unlimited and Enterprise.
events.locked_since The time the lock was set, or null when the account is not locked.
events.level ok, notice_50, notice_80, notice_90 or limit_reached: the highest of 50%, 80%, 90% and 100% of the allowance that used has reached. The values are the same on Free and Starter. Always ok on Unlimited and Enterprise.
events.event_packs_enabled Whether an event pack is bought automatically when the limit is reached. Starter only.
events.over_quota_since Always null. Kept so that existing clients do not break.
test_events Test-mode events this calendar month against the plan's monthly allowance.
certificates.included, used, remaining, resets_at The certificate allowance for the subscription year. null means not capped.
certificates.charged_units, charged_month_to_date, spend_limit, unit_amount Units charged this year, this month's certificate charges, the monthly limit and the unit price, in cents.
certificates.live_available false on the Free plan, where certificates exist for test records only. true on paid plans.
supplements Supplements on file, bytes of supplement files stored, and the storage allowance (null when contracted).

On the Free plan live events are counted per UTC calendar month. The same call with a Free key, abbreviated to the fields that differ:

{
  "object": "usage",
  "plan": "sandbox",
  "plan_name": "Free",
  "subscription_status": "active",
  "events": {
    "period": "month",
    "period_start": "2026-11-01T00:00:00.000Z",
    "resets_at": "2026-12-01T00:00:00.000Z",
    "used": 6,
    "open_sessions": 1,
    "quota": 10,
    "allowance": 10,
    "remaining": 4,
    "locked": false,
    "locked_since": null,
    "level": "notice_50"
  },
  "test_events": { "used_this_month": 42, "quota_per_month": 500 }
}

Six live events are complete this month, so four are left and level is notice_50. One live session is open. It is reported in open_sessions and is not subtracted from remaining. The account is not locked, so the count starts again at resets_at.

Free covers 10 live signatures a month. If you use all 10 in a month, the account locks until you upgrade to a paid plan. It does not unlock at the start of the next month. Past the limit, new live signatures can be refused, so upgrade before you get there.

Starter covers 2,000 live signature events a year. At 2,000 the account locks until you pay: upgrade to Unlimited, add an event pack, or renew. Past the limit, new live signatures can be refused, so upgrade before you get there.

While an account is locked, locked is true, locked_since holds the time of the lock, level is limit_reached and resets_at is null. A refused request returns 402 quota_exhausted. See Free plan limits and Starter limits.

On Unlimited and Enterprise there is no limit: quota, allowance and remaining are null, locked is false and level is ok.

The usage.threshold_reached webhook is sent at 50%, 80%, 90% and 100% of the limit, on Free and Starter. Its threshold is 50, 80, 90 or 100. Owners and admins get an email at the same four points. Sessions already created still complete. See the pricing summary for what counts as a signature event.

Parameters

This call takes no parameters. Headers: Esign-Comply-Version (optional, a dated API version).

Response

200 OK with an Usage object.

{
  "object": "usage",
  "plan": "sandbox",
  "plan_name": "Free",
  "subscription_status": "active",
  "period": {
    "start": "2026-11-26T00:15:23.620Z",
    "end": null
  },
  "events": {
    "used": 0,
    "quota": 10,
    "period": "month",
    "period_start": "2026-11-01T00:00:00.000Z",
    "resets_at": "2026-12-01T00:00:00.000Z",
    "open_sessions": 0,
    "event_packs": 0,
    "allowance": 10,
    "remaining": 10,
    "level": "ok",
    "locked": false,
    "locked_since": null,
    "event_packs_enabled": false,
    "over_quota_since": null
  },
  "test_events": {
    "used_this_month": 5,
    "quota_per_month": 500
  },
  "certificates": {
    "included": null,
    "used": 0,
    "remaining": null,
    "charged_units": 0,
    "resets_at": null,
    "charged_month_to_date": 0,
    "spend_limit": 20000,
    "unit_amount": 0,
    "live_available": false
  },
  "supplements": {
    "count": 0,
    "storage_used_bytes": 0,
    "storage_allowance_bytes": 2147483648
  }
}

Response fields

Field Type Description
object string
plan string sandbox, starter, unlimited or enterprise. sandbox is the id of the Free plan.
plan_name string The name a person reads, for example "Free".
subscription_status string
period object { start, end } of the subscription period.
events object Live signature events: used (a true count, can be higher than allowance), quota, allowance, remaining, period (month or year), period_start, resets_at (null while locked), open_sessions, level (ok, notice_50, notice_80, notice_90, limit_reached), locked (boolean), locked_since (datetime or null), event_packs, event_packs_enabled.
test_events object { used_this_month, quota_per_month }.
certificates object { included, used, remaining, charged_units, resets_at, charged_month_to_date, spend_limit, unit_amount, live_available }.
supplements object

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/usage

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

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/usage?

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

Last updated · API version 2026-11-21