Build

SDKs

Official SDKs wrap authentication, streaming helpers, and response parsing.

Available SDKs

No SDKs available at the moment.

Install an SDK

SDKs are published with synchronized versions across languages. Choose the language that matches your stack.

npm install @disruptiverain/sdk
Configure credentials

Store your client ID and secret in environment variables. SDKs read these values to sign requests.

DISRUPTIVERAIN_CLIENT_ID=...

DISRUPTIVERAIN_CLIENT_SECRET=...

Make a request
import { DisruptiveRainClient } from '@disruptiverain/sdk';

const client = new DisruptiveRainClient({
  clientId: process.env.DISRUPTIVERAIN_CLIENT_ID,
  clientSecret: process.env.DISRUPTIVERAIN_CLIENT_SECRET,
  baseUrl: 'https://<gateway-host>',
});

const response = await client.chat.completions.create({
  input: { text: 'Summarize our escalation playbook.' },
  stream: false,
});

console.log(response.output.text);

Gateway base URL

Set baseUrl to the gateway origin assigned to your organization.
Was this page helpful?