Skip to Content
SelloDeveloper docs
Getting Started

Get an API key

Mint a Sello API key from the dashboard — live vs test.

Every request to the Issuance API is authenticated with a per-consumer API key. You mint keys from the Sello dashboard (the control-plane portal), not through the /v1 API.

Mint a key

  1. Sign in to the Sello dashboard.
  2. Open API Keys.
  3. Create a key and give it a name. Either pin it to a single emisor, and it takes its environment from that emisor (test for a sandbox emisor, live for a production one) and the dashboard locks it, or leave it account-wide and state its environment (live or test).
  4. Choose its Access: Full access (the default) or Read-only. See Permissions below.
  5. Copy the key immediately — it is shown exactly once.

Sello stores only a SHA-256 hash of the key, never the secret itself. If you lose a key you cannot recover it; mint a new one and revoke the old.

Live vs test keys

A key is minted for one environment, encoded into the key string itself. The key does not pick where a document is filed — the emisor does. It decides which emisors the key may act on:

  • test keys are for development. They may act on a sandbox emisor only, and are refused on a production emisor.
  • live keys may act on any emisor. On a production emisor they file to Hacienda production, for real.

The environment is baked into the key prefix (sello_live_… / sello_test_…), so a key is recognizable at a glance and by secret scanners. Both kinds use the same base URL — see Environments.

Scope

A key's scope is derived from the key, never from a caller-supplied header:

  • Every key is bound to exactly one account (tenant). A key for account A can never read or act on account B.
  • A key may optionally be pinned to a single emisor. An account-wide key can name the acting emisor per request via the Sello-Emisor-Id header (it can only ever select an emisor within the key's account — it can never widen scope).
  • An emisor-pinned key cannot register or replace the account-wide webhook endpoint.

Permissions

A key also says which operations it may run:

AccessPermissionsCan
Full accessall fiveissue, email, ingest and respond to received documents, read everything, register the webhook endpoint
Read-onlydocuments:read, received-documents:readread documents and received documents, and nothing else

A key used for an operation it may not run gets 403 https://sello.cr/problems/insufficient-permission, and nothing is spent. Keys created before permissions existed hold full access. Permissions are fixed when you create the key; to change them, create a new key and revoke the old one. The full list is on Authentication.

Revoking a key

Revoke a compromised or unused key from the dashboard. Revocation is immediate: the next request presenting that key gets a 401.

Treat API keys like passwords. Keep them in environment variables or a secret manager, never in source control or client-side code.

On this page