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
npm install @rocketstack/sdkpip install rocketstack-sdkdotnet add package RocketStack.Sdkgem install rocket_stack_sdkSimple, 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 specReady to integrate?
Get your API key and start building with your favorite SDK.