Sentry projects and teams in the organization.

Context Vars

Optional
  • sentry.token
  • sentry.org

Functions

get-project

fn (project: Str): Map
fn (project: Str, opts: Map): Map

GET /projects/{org}/{project}/ - One project by slug or id: platform, teams, options.

Example

project ::sentry::projects/get-project("my-api")
project.platform

list-all-projects

fn (): Vec
fn (max: Int): Vec
fn (opts: Map): Vec
fn (max: Int, opts: Map): Vec

Every project in the organization, following cursors up to max (default 1000).

Example

projects ::sentry::projects/list-all-projects()
map(projects, %.slug)

list-all-teams

fn (): Vec
fn (max: Int): Vec
fn (opts: Map): Vec
fn (max: Int, opts: Map): Vec

Every team in the organization, following cursors up to max (default 1000).

Example

teams ::sentry::projects/list-all-teams(200)
map(teams, %.slug)

list-projects

fn (): ::sentry::api/Page
fn (params: Map): ::sentry::api/Page
fn (params: Map, opts: Map): ::sentry::api/Page

GET /organizations/{org}/projects/ - One page of the organization's projects (query, per_page, cursor). Returns a Page.

Example

page ::sentry::projects/list-projects({per_page: 50})
map(page.items, %.slug)
page.next_cursor

list-teams

fn (): ::sentry::api/Page
fn (params: Map): ::sentry::api/Page
fn (params: Map, opts: Map): ::sentry::api/Page

GET /organizations/{org}/teams/ - One page of teams (query, detailed, per_page, cursor). Returns a Page.

Example

page ::sentry::projects/list-teams({detailed: false})
map(page.items, %.slug)