Skip to main content
Use the Rain SDK to interact with the Rain API in TypeScript, Go, or Python. You get full type safety, IDE autocomplete, and a consistent interface across every language. Follow these steps to go from SDK installation to your first call:
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.
In Go, namespaces are PascalCase fields on the client: 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 use param.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.