Before you begin
Identify your program type and management model, since they shape which guides and API references apply to your build. Rain provides separate instances for sandbox and production. Use the sandbox to build and test your integration, then switch to production when you go live.1
Accept your Dashboard invite
Your access depends on the environment:
- Sandbox: Rain creates a sandbox account for you and sends an email invite from the implementation team. Accept it to reach your Developer Dashboard.
- Production: When you’re ready to go live, you need a Rain Spend account. Sign up for a production account.
2
Get your API keys
Open the Config page in the Dashboard to retrieve your API key and
secret:You use these keys to authenticate every API request. A new key defaults to
the
admin role, which has full access. To create keys with narrower
access, rotate keys, or restrict a key to specific IP addresses, see
Authenticating with the API.3
Choose the SDK or REST
Decide how you want to call the API:
- SDK: The Rain SDK is available for TypeScript and Python and gives you type safety, IDE autocomplete, and a consistent interface. See the SDK overview to install it and make your first call.
- REST: The SDK is optional. You can make the same calls directly to the Rain REST API using any HTTP client.
4
Authenticate your requests
Include your API key in the With the SDK, pass your API key when you initialize the client and choose
your environment:
Api-Key header on every request:What’s next
Connect webhooks
Set your webhook URL and verify signatures so you catch events from your
first call.
Onboard a cardholder
Submit a KYC or KYB application and confirm approval.
Authenticating with the API
See API key roles, rotation, and IP restrictions in full.