registercheckby openlaw group
Get started

Authentication

How API keys work, what they are scoped to, and how they fail.

Every request except GET /health, and GET /openapi.json (which redirects to the published schema), needs an API key, sent as a bearer token:

Authorization: Bearer registercheck_YOUR_KEY

There is no other authentication scheme. Query-string keys, cookies and the X-API-Key header are not accepted on the customer API.

Creating and revoking keys

Keys are managed on the Usage (API & Nutzung) page. Owners, admins and developers of a workspace can create them. A key is displayed once, at creation. Losing it means revoking it and creating another.

A revoked key stops working within about a minute.

What a key is scoped to

A key belongs to the workspace it was created in, not to a project or an environment, and acts as the person who created it, with that person's role there. Every key of a workspace reads and writes the same lists and the same monitors, and draws on the same credit balance; a key created in another workspace sees that workspace's. Use separate names to tell keys apart in the usage breakdown; do not expect keys of one workspace to be isolated from one another.

Limits are shared across a workspace's keys

Besides each key's own monthly allowance, the same allowance is enforced across the workspace. Creating a second key does not give you a second allowance — see Rate limits.

Checking a key works

GET /health needs no key and tells you the API is reachable. To check the key itself, call GET /account: it needs a key and costs nothing.

curl -sS -o /dev/null -w '%{http_code}\n' \
  "https://api.registercheck.de/v1/account" \
  -H "Authorization: Bearer $REGISTERCHECK_API_KEY"

200 means the key is good. For anything else, see below.

Authentication failures

StatuscodeWhat it means
401unauthorizedNo Authorization: Bearer header, or the key is wrong, revoked, disabled or expired.
402insufficient_creditsThe key is valid; the workspace has no credits left for this call.
429rate_limitedThe key is valid; it or your workspace has used its request allowance. Wait for Retry-After.
503service_unavailableKeys cannot be checked right now; your key was not rejected. Retry after Retry-After; do not rotate it.

Each is a problem document with that code.

Keeping keys safe

  • A key carries your permissions in its workspace, including deleting lists and monitors. Treat one as a password.
  • Never ship a key in browser code. Every call in these docs is a server-side call.
  • Rotate by creating the new key, deploying it, then revoking the old one — in that order.

On this page