Skip to main content
The Rinne API authenticates every request with an API key. Each key carries its own permissions, checked on every request.

API key authentication

Include your API key in the x-api-key header for all requests:
Keep your API keys secure. Never commit them to version control, expose them in client-side code, or share them over insecure channels.

How API keys work

Each API key is:
  • Hashed on creation — Rinne stores only a SHA-256 hash. The raw key is shown exactly once at creation time and can never be retrieved again.
  • Scoped with permissions — Every key carries its own set of permissions, enforced on every request. By default, keys are created with full access, but you can restrict them to specific operations.
  • Optionally time-limited — You can set an expiration date. Expired keys are automatically rejected.
  • Soft-revocable — Revoked keys stop authenticating immediately but their records are retained for audit.

Authentication scope

Your API key determines which resources you can access based on the company it belongs to:
  • Organization scope — Organization API keys can access organization-level resources and all merchants under the organization.
  • Merchant scope — Merchant API keys can only access the merchant’s own resources.

Managing API keys

API keys are created and revoked in the Rinne portal, under Settings › API keys: The page shows the keys of the company you are signed in to. A sandbox key doesn’t work in production, and the other way around.
Managing keys takes a portal user with the api_key.create, api_key.list or api_key.delete permission. An API key cannot create or revoke keys, so a leaked key cannot be used to mint others.

Creating an API key

1

Fill in the form

Click New API key and fill in:
  • Name: a label to identify the key (max 100 characters).
  • Expires on: optional. Without a date, the key works until you revoke it.
  • Full access: leave it on, or turn it off to pick only the permissions the integration uses.
2

Store the key securely

Click Create key. The portal shows the full key only this once: click Copy key and store it in a secure location, such as a secrets manager or an environment variable. It cannot be retrieved again.
The list then shows each key by its name, with a masked value, its permissions, when it was last used and when it expires.

Revoking an API key

Click Revoke on a key to immediately stop it from authenticating. Revocation is permanent and cannot be undone.

Limits

Each company (organization or merchant) can have at most 20 active API keys at any time. Active keys are those that are neither revoked nor expired. If you reach the limit, revoke unused keys before creating new ones.

Security best practices

  • Use environment variables or a secrets manager for API keys
  • Never commit keys to version control
  • Use scoped permissions — avoid full access for keys that only need specific operations
  • Set expiration dates on API keys when possible
  • Revoke keys that are no longer in use
  • Rotate keys periodically by creating a new key before revoking the old one
  • If a key is compromised, revoke it immediately in the portal
All API requests must use HTTPS. HTTP requests will be rejected.
Implement exponential backoff for retries and respect rate limits to avoid throttling.
When receiving webhooks, validate the signature to ensure requests are from Rinne.

Error responses

Authentication errors return a 401 status code:
Authorization errors return a 403 status code:

Next steps

Create your first transaction

Follow the quickstart guide

User management

Manage users, roles, and permissions