Get Organization

Retrieve details for a specific organization

Usage #

// Import the typed helper
import { getOrganization } from "@hotglue/sdk/sentry";
const result = await client.execute({
...getOrganization({
organization_id_or_slug: string,
detailed: string,
}),
userId: "user_123",
});
// result is typed as GetOrganizationOutput
const result = await client.execute({
integration: "sentry",
tool: "get_organization",
userId: "user_123",
input: {
organization_id_or_slug: string,
detailed: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["sentry"],
userId: "user_123",
}),
});
await agent.generate("run the Get Organization tool");

Input Schema #

organization_id_or_slug string required

Organization ID or slug

detailed string

Set to "0" to exclude projects and teams from response

Output Schema #

id string required
slug string required
name string required
dateCreated string
features string[]

This tool calls: #

GET https://sentry.io/api/0/organizations/{organization_id_or_slug}/