Set up the Business API
Create service accounts and API keys, and set limits for Business API access.
Last updated 5 days ago
Summary
The Business API lets your business connect its own systems to Reah. Owners and Admins manage service accounts and API keys at Settings > Developer. Depending on the key, an integration can read business data, issue cards, or initiate wallet transfers, create wallets and convert between assets. This article shows you how to get access, create a service account and an API key, set the key's limits, and keep it safe. It is meant for businesses with an engineering team that wants to automate wallet transfers, card issuing or reporting.
Before you begin
Business API access is available on request. If you can't find Developer under Settings, or the page says "Developer settings are not enabled for this entity," contact your Reah representative to get started.
You need the built-in Owner or Admin role to open Developer. Custom roles can't open this page.
Admins can request changes, but only the current Owner can execute them. This applies to creating a service account, issuing a key, revoking a key, changing the daily limit and switching the Contacts whitelist. Assigned Admins can still approve requests.
Reah asks you to complete security verification when you submit or execute these requests.
Use the Reah web app for the steps in this article.
If you plan to use a Money movement key, have the server IP addresses or ranges your integration will call from ready.
Choose a key type
Each API key has one set of permissions. Choose the smallest set your integration needs.
Important: Transfers and conversions made with Money movement keys don't go through a separate approval each time, so you set the guardrails up front. They stay within your API daily limit, and transfers also stay within your Contacts whitelist when it is on. You set both in step 3 below.
Set up the Business API
Step 1: Create a service account
A service account represents one integration. Use one service account per integration.
Go to Settings > Developer.
Select Create service account.
Enter a Service account name, for example the name of the system that will connect.
Select Request approval and complete security verification if asked.
Reah takes you to Approvals. An Owner must approve this request before the service account is created. The Owner opens the request and selects Approve & Execute, or Execute if it is already approved.
Once the Owner executes the request, the service account appears in the Service accounts list with an Active status. Select it to manage its keys.
Step 2: Issue an API key
Go to Settings > Developer and select the service account.
Under API keys, select Issue API key.
Enter a Key name that tells you what the key is for, for example "Card automation." Issue a separate key for each environment.
Choose the Permissions for the key. See Choose a key type above.
Under Access restrictions, set when the key expires and where it can be used:
Never expires: Select this to create a key with no expiry. It isn't available for Money movement keys.
Expires at (local time): Choose the expiry date and time. The default is 90 days. Money movement keys need an expiry within 365 days.
Allowed IP addresses or CIDR ranges: Enter up to 64 IPv4 or IPv6 addresses or ranges, separated by commas or new lines. Requests from any other IP address are rejected.
Select Request approval.
An Owner opens the request in Approvals and selects Approve & Execute or Execute. No key is active until an Owner executes the approval. For a Money movement key, the Owner also confirms with their device.
When the Owner executes the request, Reah shows the new key once. Select Copy and save it in a secure place before you close the window.
Reah does not show the key again after you close the window. If you lose it, revoke the key and request a replacement.
Step 3: Set your API transfer controls
Skip this step if you only use Read-only or Card management keys. Money movement keys can't initiate wallet transfers until your business has an API daily limit. These controls apply to all API keys in your business and appear in the API transfers area at the top of Settings > Developer.
Each change needs approval and Owner execution, the same as a new key. Editing an individual contact doesn't need this approval. To add a recipient to the whitelist, save them as a Contact first. See Add a payment contact.
The area shows your API transfer budget remaining, along with Daily limit, Used, Pending and Whitelist. It also shows when it was Last checked. Select the refresh button to update it.
Approvals and API activity
Every change to API access goes through an approval. This covers new service accounts, new keys, key revocations, daily limit changes and whitelist changes. This approval policy is always on and can't be turned off.
API requests can't be approved in bulk.
Transfers and conversions made with a Money movement key do not wait for a separate approval. They appear in Approvals as read-only records marked "Executed directly by a Business API key."
To learn how approvals and approval rules work for your team, see Submit, approve, and execute requests and Set transaction approval rules.
Store your key safely
Save the key in a secrets manager or your hosting provider's secret storage as soon as you copy it.
Don't put the key in source code, chat messages, emails, screenshots or shared documents.
Give each integration and each environment its own key.
Choose the smallest key type and the shortest expiry that works for your integration.
Allow only the IP addresses your integration calls from.
If a key may have been exposed, revoke it right away and issue a replacement.
Rotate or revoke a key
Rotate a key
Issue a replacement key with the same settings. See step 2 above.
Update your integration to use the new key and confirm that it works.
Revoke the old key.
Revoke a key
Go to Settings > Developer and select the service account.
Find the key in the API keys list. Each key shows its name, the first characters of the key, its permissions, status, expiry and allowed IP addresses.
Select the delete icon, labeled Revoke API key, on that key.
Select Request revocation.
An Owner approves and executes the request in Approvals.
The key stays usable until the approved revocation is complete. Admins can request a revocation, but only the Owner can execute it. After revocation, the key's status shows Revoked. Keys past their expiry show Expired.
Troubleshooting
What to do next
Still need help?
Reach out to Reah Support through the in-app chat or visit support.reah.com for more assistance.