Authorization header, and RemitFlex validates it before processing the request.
Generating an API Key
API keys are created and managed from the RemitFlex Dashboard. Each key is tied to your account and the permissions you assign to it.Open API Key Settings
Log in to the RemitFlex Dashboard and navigate to Settings → API Keys.
Create a New Key
Click Create new key. Give it a descriptive name that identifies its purpose or the environment it belongs to — for example,
production-payments or staging-webhooks.Select Environment and Scopes
Choose whether this key is for the Sandbox or Live environment, then select the scopes your integration needs. See Key Scopes below for a breakdown of available permissions.
Using Your API Key
Include your API key as a Bearer token in theAuthorization header of every request.
Key Types: Sandbox vs. Live
RemitFlex issues two categories of API keys so you can develop and test without touching real funds.| Key Type | Prefix | Environment | Effect |
|---|---|---|---|
| Test key | rf_test_ | Sandbox | Simulates payments — no real money moves |
| Live key | rf_live_ | Production | Initiates real payments and conversions |
The sandbox environment is a full-fidelity replica of production. Every endpoint, response shape, and error code behaves identically — only the underlying settlement is simulated.
Key Scopes
When you create a key, you assign it one or more scopes that limit what the key can do. Follow the principle of least privilege: grant only the scopes your integration actually needs.read
Fetch payments, quotes, recipients, and account data. No mutations permitted.
write
Create and update payments, quotes, and recipients. Includes all
read permissions.admin
Full access including key management, webhook configuration, and account settings. Reserve this for internal tooling only.
Security Best Practices
Follow these practices to keep your keys secure:- Rotate keys regularly. Create a new key, update your integration, then revoke the old key. Rotation limits the blast radius if a key is ever exposed.
- Use one key per environment. Keep sandbox and production keys completely separate so a mistake in testing can never affect live payments.
- Scope keys to the minimum required. A service that only reads payment status doesn’t need
writeoradminpermissions. - Audit key usage. The Dashboard logs every API call made with each key — review these periodically for unexpected activity.
- Revoke unused keys. Delete keys that belong to decommissioned services or team members who have left your organization.
Authentication Errors
If a request fails authentication, RemitFlex returns an HTTP401 Unauthorized response with a JSON error body.
401 response:
| Cause | Resolution |
|---|---|
Missing Authorization header | Add Authorization: Bearer YOUR_API_KEY to every request |
Malformed header (e.g. Token prefix instead of Bearer) | Use the exact format Bearer rf_test_... or Bearer rf_live_... |
| Key has been revoked | Generate a new key from the Dashboard |
| Using a test key against the live base URL (or vice versa) | Match your key prefix (rf_test_ / rf_live_) to the correct environment |
| Key lacks the required scope | Re-create the key with the necessary scope or use an admin key to update permissions |
If you receive a
403 Forbidden instead of a 401, your key is valid but lacks permission to perform the requested action. Check the key’s assigned scopes in the Dashboard under Settings → API Keys.