Skip to main content
Every Suresign API request is authenticated with an API key that belongs to one workspace. You send the key in the Authorization header as a Bearer token. This page shows how to create a key, how to send it, and what each error means.
API keys are available on the Pro and Business plans. Only workspace admins can see, create, revoke or delete keys.

How API keys work

  • One workspace per key. A key only reaches documents in the workspace it was created in. There is no way to ask for another workspace’s documents.
  • Shown once. You see the full key only when you create it. Suresign stores just a SHA-256 hash, so nobody (including Suresign) can show it to you again.
  • Easy to recognise. Every key starts with dtd_. The settings page shows the first few characters so you can tell keys apart.
  • Last used. The settings page shows when each key was last used, which helps you spot keys nobody needs any more.

Create a key

1

Open the Developers settings

Sign in as an admin and go to Settings > Developers. The API keys section is at the top.
2

Create a key

Under Create a key, give it a name that says where it is used, for example crm-sync.
3

Copy and store it

Copy the key straight into your app’s secret store or a password manager. You will not see it again.

Send the key

Put the key in the Authorization header of every request:
Check your key
A working key returns the workspace and key it belongs to:
Response
Call GET /api/v1/me first whenever you set up a new key. It answers the two questions a failed request leaves you with: is the key valid, and is it the right workspace?

Errors

Every error is JSON with a plain-language error message. For safety, every 401 looks the same. Suresign does not say whether a key was never valid, revoked or deleted.

Revoke or delete a key

In Settings > Developers, each key has two options:
  • Revoke stops the key at once but keeps it on the list, marked Revoked.
  • Delete key stops it and removes it from the list. Its name and prefix are still kept in your workspace’s audit history, so a leaked key can be traced later.

Keep keys safe

Treat an API key like a password. Anyone with the key can read and download your workspace’s documents.
  • Never put a key in front-end code, a mobile app or a public repository.
  • Use a separate key for each app, so you can revoke one without breaking the others.
  • If a key may have leaked, revoke it and create a new one straight away.

Next steps

REST API

List documents and download PDFs.

Webhooks

Get told when documents change.