Skip to content

Authentication

Create a client with your API key. The key is automatically included in all requests via an interceptor.

import { createOpenStatusClient } from "@orbtymon/sdk-node";
const client = createOpenStatusClient({
apiKey: process.env.OPENSTATUS_API_KEY,
});
// No headers needed on individual calls
const { httpMonitors } = await client.monitor.v1.MonitorService.listMonitors({});

Use the default orbtymon client and pass headers on each call.

import { orbtymon } from "@orbtymon/sdk-node";
const headers = {
"x-orbtymon-key": process.env.OPENSTATUS_API_KEY,
};
await orbtymon.monitor.v1.MonitorService.listMonitors({}, { headers });
VariableDescriptionDefault
OPENSTATUS_API_KEYYour OrbtyMon API keyRequired for authenticated calls
OPENSTATUS_API_URLCustom API endpointhttps://api.orbtymon.app/rpc

Get your API key from the OrbtyMon dashboard.

For self-hosted instances or staging environments:

import { createOpenStatusClient } from "@orbtymon/sdk-node";
const client = createOpenStatusClient({
apiKey: process.env.OPENSTATUS_API_KEY,
baseUrl: "https://api.staging.example.com/rpc",
});

The baseUrl option takes precedence over the OPENSTATUS_API_URL environment variable.