Team
Create and manage Sentry teams.
Authentication
Section titled “Authentication”You can authenticate with Sentry in two ways:
-
Environment variable (recommended):
.env SENTRY_AUTH_TOKEN=your_auth_token -
Pass the token directly:
const team = await Team("my-team", {authToken: alchemy.secret(process.env.SENTRY_AUTH_TOKEN),name: "My Team",organization: "my-org",});
Get your auth token from Sentry’s API settings.
Examples
Section titled “Examples”Minimal
Section titled “Minimal”import { Team } from "alchemy/sentry";
const team = await Team("my-team", { name: "My Team", organization: "my-org",});
For when you have an existing Team within Sentry:
import { Team } from "alchemy/sentry";
const team = await Team("my-team", { adopt: true, name: "My Team", organization: "my-org",});