1
Install the SDK
In your terminal, run:
The SDK is optional. You can make all the same calls directly to the Rain REST API using any HTTP client. See Authenticating with the API for details.
2
Initialize the client
Create a client instance by passing your API key and choosing your environment. Your API key defaults to the
RAIN_API_KEY environment variable.In Go, select the environment with
option.WithEnvironmentDev() or option.WithEnvironmentProduction() instead of a string.3
Make your first call
List your companies to verify the SDK is working:
Explore the API
The SDK organizes all endpoints into resource namespaces that mirror the API Reference: Type
client. in your IDE to see all available namespaces, then type client.cards. to see the methods on that resource. Every method maps directly to an endpoint in the API Reference. client.Cards, client.Transactions, client.Applications.User, and so on.
Type safety
Import request and response types for full type safety. In Go, optional fields useparam.Opt[T] wrappers — construct them with helpers like rainsdk.String(...) and rainsdk.Int(...), and check response field presence with .JSON.<Field>.Valid().
What’s next
Configuration
Set up error handling, retries, timeouts, and logging.
Card Issuance
Issue your first card end-to-end with the SDK.
Embedded Wallets
Add non-custodial embedded wallets to your Android or iOS app.