Skip to content

Sentry Client

@theholocron/sentry-client wraps the Sentry REST API for managing organizations and projects.

Terminal window
pnpm add @theholocron/sentry-client
import { createSentryClient } from "@theholocron/sentry-client";
const client = createSentryClient({
token: process.env.SENTRY_AUTH_TOKEN!,
});
const org = await client.auth.getOrganization("my-org");
const projects = await client.projects.list("my-org");
const project = await client.projects.create("my-org", { name: "my-app", platform: "node" });
const keys = await client.projects.listKeys("my-org", "my-app");

The full API reference is generated from the package’s TSDoc comments.