Docs SDKs & Libraries

SDKs & Libraries

Official client libraries for JavaScript/TypeScript, Python, C#, and Ruby. Type-safe, fully documented, and always in sync with our API.

Official SDKs

JavaScript / TypeScript

npm

View on npm
npm install @rocketstack/sdk

Python

pip

View on PyPI
pip install rocketstack-sdk

C# / .NET

NuGet

View on NuGet
dotnet add package RocketStack.Sdk
gem install rocket_stack_sdk

Simple, Intuitive API

All SDKs share the same interface. Learn once, use everywhere.

example.ts
import { RocketStack } from '@rocketstack/sdk';

const client = new RocketStack({
  apiKey: process.env.ROCKETSTACK_API_KEY
});

// Store a value
await client.kv.set('user:123', {
  name: 'John Doe',
  email: 'john@example.com'
});

// Retrieve it later
const user = await client.kv.get('user:123');
console.log(user); // { name: 'John Doe', ... }

More languages

Need Go, Java, PHP, or another language? Use our OpenAPI spec to generate a client for your stack.

OpenAPI spec

Ready to integrate?

Get your API key and start building with your favorite SDK.