API key authentication
Include your API key in thex-api-key header for all requests:
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:- Sandbox: sandbox.rinne.com.br/security
- Production: dashboard.rinne.com.br/security
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.
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
Store API keys securely
Store API keys securely
- 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
Rotate and revoke keys regularly
Rotate and revoke keys regularly
- 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
Use HTTPS only
Use HTTPS only
All API requests must use HTTPS. HTTP requests will be rejected.
Implement rate limiting
Implement rate limiting
Implement exponential backoff for retries and respect rate limits to avoid throttling.
Validate webhook signatures
Validate webhook signatures
When receiving webhooks, validate the signature to ensure requests are from Rinne.
Error responses
Authentication errors return a 401 status code:Next steps
Create your first transaction
Follow the quickstart guide
User management
Manage users, roles, and permissions

