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
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.
| Input | Type | Description | |
|---|---|---|---|
organization | string | Required | Organization ID or slug |
issue_id | string | Required | Issue ID |
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.
| Input | Type | Description | |
|---|---|---|---|
organization | string | Required | Organization ID or slug |
issue_id | string | Required | Issue ID |
query | string | Optional | Search filter, e.g. release:abc |
stats_period | string | Optional | Relative period such as 24h or 14d |
per_page | integer | Optional | Rows per page, up to 100 |
cursor | string | Optional | Pagination cursor |
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.
| Input | Type | Description | |
|---|---|---|---|
organization | string | Required | Organization ID or slug |
project | string | Required | Project ID or slug |
query | string | Optional | Sentry search query, e.g. is:unresolved level:error |
stats_period | string | Optional | Stats period (24h default) |
cursor | string | Optional | Pagination cursor |
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.
await setu.execute({
userId: "user_1",
action: "sentry.list_organizations",
input: {},
});List projectsreadsentry.list_projectsList the projects of a Sentry organization.
| Input | Type | Description | |
|---|---|---|---|
organization | string | Required | Organization ID or slug |
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.
| Input | Type | Description | |
|---|---|---|---|
organization | string | Required | Organization ID or slug |
issue_id | string | Required | Issue ID |
status | string | Required | New status |
await setu.execute({
userId: "user_1",
action: "sentry.update_issue_status",
input: {
"organization": "<organization>",
"issue_id": "<issue_id>",
"status": "<status>"
},
});