API reference

Instance administration

For whoever runs a deployment: claim it, and configure mail, storage and timestamping.

GET/setup/status

Is this instance claimed?

An instance is unclaimed while its user table is empty, and the web app sends anyone arriving at one to a setup screen rather than a login form. The answer is only claimed: an unclaimed instance does not confirm what its setup token looks like, or whether one is configured at all.

Authentication None

Response 200

Whether anybody has claimed this instance.

Response fields
  • claimedboolean
  • requiresSetupTokenboolean

Errors

Request
curl https://api.signrs.com/api/v1/setup/status
Response 200
{
  "claimed": true,
  "requiresSetupToken": true
}

POST/setup/claim

Become the first administrator of an unclaimed instance

The one endpoint that creates an account without an account already existing. In one transaction it creates the user, the organisation, an OWNER membership and a session, guarded by a re-check that the instance is still unclaimed, so two people racing produce one administrator and one ALREADY_CLAIMED. Nothing is seeded: there is no default administrator and no default password. The setup token is not optional, and that is the part worth arguing: an instance is reachable the moment DNS resolves, which is minutes before its owner opens it, and a stranger who finds it first would own an audit trail somebody may later rely on in court. It is generated during provisioning, written to /etc/esign/env beside the database password, and compared in constant time. An instance with no token configured cannot be claimed at all.

Authentication None

Request body

  • setupTokenstring16 to 256 characters
  • emailstringrequired3 to 254 characters
  • passwordstringrequired12 to 256 characters
  • namestring1 to 200 characters
  • organisationNamestringrequired1 to 200 characters

Response 201

The administrator, their organisation, and a session for it.

Response fields
  • tokenstring
  • sessionIdstring
  • expiresAtstringdate-time
  • userobject
    • idstring
    • emailstring
    • namestring or any or null
    • emailVerifiedAtstring or any or null
    • localestring
    • timezonestring
  • organisationobject
    • idstring
    • namestring
    • slugstring
  • rolestring

    One of "OWNER", "ADMIN", "MANAGER", "MEMBER"

  • scopesarray of string

Errors

Request
curl -X POST https://api.signrs.com/api/v1/setup/claim \
  -H "Content-Type: application/json" \
  -d '{
    "email": "dana.ruiz@example.com",
    "password": "your password",
    "name": "Dana Ruiz",
    "organisationName": "example"
  }'
Response 201
{
  "token": "example",
  "sessionId": "ses_6Hn3kQw8",
  "expiresAt": "2026-11-03T16:51:04.087Z",
  "user": {
    "id": "env_8kR4tZp1",
    "email": "dana.ruiz@example.com",
    "name": "Dana Ruiz",
    "emailVerifiedAt": "2026-11-03T16:51:04.087Z",
    "locale": "example",
    "timezone": "example"
  },
  "organisation": {
    "id": "env_8kR4tZp1",
    "name": "Dana Ruiz",
    "slug": "example"
  },
  "role": "OWNER",
  "scopes": [
    "example"
  ]
}

GET/settings/signing

Whether this deployment can seal documents

Read-only. The signing certificate is deployment configuration, not a runtime setting, so there is no PUT and signing is not a settings key. This exists so an administrator can see that sealing is not possible without sending an envelope to find out. The reason names what is missing; it never carries the certificate or the key.

Authentication API token or Sender session

Response 200

Whether a document could be sealed, and why not.

Response fields
  • configuredboolean
  • reasonstring or any or null

Errors

Request
curl https://api.signrs.com/api/v1/settings/signing \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "configured": true,
  "reason": "example"
}

GET/settings/{key}

Read one runtime setting, without its credential

key is storage, mail or timestamping. The response carries what an administrator may read (which bucket, which host, which authorities) and hasSecret rather than the secret. There is no reveal, for any role, ever: a credential that can be read back out of a settings screen is one that leaks through a screenshot, a support session or a compromised admin account . An unconfigured key answers with configured: false rather than 404: the screen for a setting nobody has made yet is the screen an administrator most needs.

Authentication API token or Sender session

Parameters

  • keypath · stringrequired

Response 200

The readable half of the setting.

Response fields
  • keystring
  • configuredboolean
  • hasSecretboolean
  • valueobject
  • updatedAtstring or any or null

Errors

Request
curl https://api.signrs.com/api/v1/settings/smtp \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "key": "example",
  "configured": true,
  "hasSecret": true,
  "value": {},
  "updatedAt": "2026-11-03T16:51:04.087Z"
}

PUT/settings/{key}

Configure object storage, outbound mail or the timestamp authorities

These are settings rather than deployment configuration, so rotating a Spaces key or moving mail provider is an admin action and not a redeployment . The request body is the schema for the key: StorageSetting, MailSetting or TimestampingSetting. A secret sent here is stored envelope-encrypted and never returned; omitting it leaves the stored one alone, which is what lets somebody change a bucket name without retyping a key they can no longer read. Timestamping requires two authorities, because a timestamp failure is fatal and never falls back to system time: one authority makes its downtime an unsealed envelope after every party has already signed. Every change writes an administrative event naming the key, the actor and the time, and never the value.

Authentication API token or Sender session

Parameters

  • keypath · stringrequired
  • Idempotency-Keyheader · string

    Scoped to (organisation, key), TTL 24 hours. Replaying with the same body returns the original response with Idempotency-Replayed: true; a different body returns 409 IDEMPOTENCY_KEY_REUSED.

Request body

Response 200

The stored setting, without its credential.

Response fields
  • keystring
  • configuredboolean
  • hasSecretboolean
  • valueobject
  • updatedAtstring or any or null

Errors

Request
curl -X PUT https://api.signrs.com/api/v1/settings/smtp \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "bucket": "example",
    "region": "example"
  }'
Response 200
{
  "key": "example",
  "configured": true,
  "hasSecret": true,
  "value": {},
  "updatedAt": "2026-11-03T16:51:04.087Z"
}

POST/settings/{key}/test

Prove a configuration works before anything depends on it

Storage writes a small object under a reserved prefix and reads it back before deleting it: a credential with write and no read stores documents nobody can download, which would otherwise surface weeks later on a first download. Mail sends to an address the caller supplies in `to`. Timestamping checks that each authority answers. The test never writes the setting: a caller tests what they are about to save, and saving stays a separate act. A body that omits the secret uses the stored one, which is the only way to re-test a setting saved months ago. This exists because the alternative is discovering the credentials are wrong at the moment a signer clicks Sign.

Authentication API token or Sender session

Parameters

  • keypath · stringrequired

Request body

Response 200

The configuration works.

Response fields
  • okboolean
  • detailstring

Errors

Request
curl -X POST https://api.signrs.com/api/v1/settings/smtp/test \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "bucket": "example",
    "region": "example"
  }'
Response 200
{
  "ok": true,
  "detail": "example"
}