Skip to content
ERPDocs

Creating an API Key

An API key is how your own systems authenticate to ERPDocs. Every request carries the key, and the key decides which organization the request acts on and what it is allowed to do.


Try it first — the public demo key

Before you create your own key, you can evaluate the API with the shared demo key on the developer portal. It is a read-only sandbox key pointing at a demo organization with sample templates and envelopes — no sign-up required. It lets you call GET /ping, GET /templates, GET /signpacks, GET /workspaces and GET /users immediately.

It is rate-limited to 30 requests/minute, cannot send anything, and must not be used in production code (it is shared and may be rotated). When you are ready to send real envelopes, create your own key below.


Who can do this

Only users with the integrations admin permission can create or revoke API keys. If you cannot see Admin → API & Webhooks, ask your Account Owner. See Roles & Permissions.


Steps

  1. Go to Admin → API & Webhooks. This opens the API Keys page.
  2. In the Create Key panel, enter a key label naming the system that will use it — for example Procurement portal or NetSuite sync. One key per system, so you can revoke one without breaking the others.
  3. Choose the environment:
    • Live — sends real emails to real people.
    • Sandbox — read-only. Good for testing the connection, the key and the scopes. It cannot send anything and does not simulate signing.
  4. Tick the scopes the integration needs (see below).
  5. Click Create.
  6. Copy the key immediately. It is shown once and never again.

If you lose a key, you cannot recover it. Revoke it and create a new one.


Choosing scopes

Grant the least the integration needs. A reporting job that only reads should not be able to send a thousand agreements.

Scope What it allows Grant it when
template.read List templates and read their role names and prefillable field labels Almost always — the developer needs this to build the mapping
signpack.write Create and send single envelopes, and send manual reminders The system sends one at a time
signpack.bulk Queue bulk sends, up to 1000 envelopes per request The system sends batches
signpack.embed Mint embedded-signing tokens for hosting the signing experience in an iframe The system hosts signing inside its own product
signpack.read Read envelopes, recipients, batch progress, and download completed PDFs Almost always — needed to check what happened
workspace.read List workspaces The system needs to file envelopes into a specific workspace
user.read List active members of your organization The developer wants to look up valid sender addresses
brand.read List and read brand profiles The system needs to pick a brand to send under
brand.write Create, update and delete brand profiles, and set the default The system manages branding itself instead of an admin doing it in Admin → Branding

If your organisation uses ERPDocs Verify, the same page also offers the Verify scopes (verify.kyb, verify.digilocker, verify.entitylocker, verify.read, verify.documents, verify.onboard, verify.onboard.data). What each allows is in the API reference.

signpack.bulk is deliberately separate from signpack.write. An integration can be allowed to send single envelopes without the ability to fan out thousands of emails. signpack.embed is separate from signpack.write so a host application can embed signing without gaining raw send authority.

A key with no scopes can still call the connection test (/ping) and nothing else.


Sandbox first

The recommended sequence:

  1. Create a sandbox key with all the read scopes.
  2. Have your developer confirm the connection works and that they can read the template contract.
  3. Create a live key with the scopes actually needed.
  4. Revoke the sandbox key when the integration goes live, or keep it for future testing.

A sandbox key used on a write endpoint (send, bulk-send, remind) is rejected with 403 sandbox_write_blocked — so there is no risk of a test run mailing real counterparties.


Revoking a key

  1. Go to Admin → API & Webhooks.
  2. Find the key in the list and click Revoke.

Revocation is immediate and permanent. Any system still using that key starts failing on the next request, so coordinate before revoking a key in production.

Revoke a key when:

  • The system that used it is decommissioned.
  • Someone who had the key leaves.
  • You suspect the key was exposed — in a log file, a screenshot, a support ticket, or committed to a code repository.

Keeping keys safe

  • Treat a key like a password. It grants access to your whole organization's envelopes.
  • Never put a key in front-end code, a mobile app, or anything a customer can view. Anyone who can read the page can read the key.
  • Store it in your system's secrets manager or environment configuration, not in source code.
  • Use a separate key per system so one leak does not force you to rotate everything.
  • Key creation and revocation are recorded in the Audit Log, and each key shows when it was last used — a key that has never been used is a good candidate for revocation.

What to hand your developer

  • The key.
  • Your ERPDocs host, for example https://www.erpdocs.com. The API lives at /api/v1 on it.
  • The API reference and Postman collection.
  • The template ID (visible in the template's URL) and whether it is a user template or a document template.
  • The exact role names and field labels from the template.
  • The sender email — an active user in your organization, who will appear as the sender on every email.

Ask them to run the connection test (GET /ping) first. It confirms the key, the organization and the granted scopes in one call, before anything else is worth debugging.


Next steps