Setu Recipes: reusable digital workers across every app.Browse templates

Integrations / Sentry

Sentry

Sentry: browse organizations, projects and issues, read an issue's events and change an issue's status.

6 actions API key 5 read1 write Calls sentry.io

Connect

TypeScript
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "sentry" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();

Permissions requested

This toolkit uses a single credential and requests no scopes.

Actions

Get issuereadsentry.get_issueGet one Sentry issue: title, status, level, event count, first and last seen, and link.
InputTypeDescription
organizationstringRequiredOrganization ID or slug
issue_idstringRequiredIssue ID
TypeScript
await setu.execute({
  userId: "user_1",
  action: "sentry.get_issue",
  input: {
    "organization": "<organization>",
    "issue_id": "<issue_id>"
  },
});
List issue eventsreadsentry.list_issue_eventsList the events (individual occurrences) of an issue, newest first, with IDs, titles and timestamps.
InputTypeDescription
organizationstringRequiredOrganization ID or slug
issue_idstringRequiredIssue ID
querystringOptionalSearch filter, e.g. release:abc
stats_periodstringOptionalRelative period such as 24h or 14d
per_pageintegerOptionalRows per page, up to 100
cursorstringOptionalPagination cursor
TypeScript
await setu.execute({
  userId: "user_1",
  action: "sentry.list_issue_events",
  input: {
    "organization": "<organization>",
    "issue_id": "<issue_id>"
  },
});
List project issuesreadsentry.list_issuesList issues of a project. Defaults to unresolved issues; pass a Sentry search query to change that. Uses the project issues endpoint, which Sentry marks deprecated.
InputTypeDescription
organizationstringRequiredOrganization ID or slug
projectstringRequiredProject ID or slug
querystringOptionalSentry search query, e.g. is:unresolved level:error
stats_periodstringOptionalStats period (24h default)
cursorstringOptionalPagination cursor
TypeScript
await setu.execute({
  userId: "user_1",
  action: "sentry.list_issues",
  input: {
    "organization": "<organization>",
    "project": "<project>"
  },
});
List organizationsreadsentry.list_organizationsList the Sentry organizations the token can access.

No input.

TypeScript
await setu.execute({
  userId: "user_1",
  action: "sentry.list_organizations",
  input: {},
});
List projectsreadsentry.list_projectsList the projects of a Sentry organization.
InputTypeDescription
organizationstringRequiredOrganization ID or slug
TypeScript
await setu.execute({
  userId: "user_1",
  action: "sentry.list_projects",
  input: {
    "organization": "<organization>"
  },
});
Update issue statuswritesentry.update_issue_statusSet a Sentry issue's status to resolved, unresolved, ignored or resolvedInNextRelease. Only the status field is sent.
InputTypeDescription
organizationstringRequiredOrganization ID or slug
issue_idstringRequiredIssue ID
statusstringRequiredNew status
TypeScript
await setu.execute({
  userId: "user_1",
  action: "sentry.update_issue_status",
  input: {
    "organization": "<organization>",
    "issue_id": "<issue_id>",
    "status": "<status>"
  },
});