# Sentry new issue notifications on your phone > Get a push notification whenever Sentry sees a brand-new issue, with priority based on Sentry's own issue priority. - Company: Sentry (https://www.justpush.io/recipes/sentry) - Event: `issue.created` (Issue created) - Tags: Developer tools, Monitoring - Install: https://studio.justpush.io/recipes/sentry/new-issue - Web page: https://www.justpush.io/recipes/sentry/new-issue ## Setup 1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL. 2. In Sentry, go to Settings > Developer Settings > Custom Integrations and create an Internal Integration. 3. Paste your webhook URL (shown in Studio after install) as the Webhook URL and follow the setup notes below for Issue created. 4. Save the integration. 5. In your internal integration (**Settings → Developer Settings → Custom Integrations**), give it **Issue & Event: Read** permission, tick **issue** under **Webhooks**, and save. 6. This sends a push for **every** new issue across all projects. If that's too much, use the [issue alert](../issue-alert) recipe with an alert rule that filters what you care about. 7. Sentry signs each request with a `Sentry-Hook-Signature` header, but JustPush doesn't check it yet, so keep your endpoint URL private. ## Code Studio calls `handleRequest(request)` with the incoming webhook (`{ method, headers, body, query, raw }`) and sends the message object it returns. Returning `null` sends nothing. ```js // Sentry → new issue (issue.created) // Fires when Sentry sees a new issue in any project, if your internal integration // subscribes to the "issue" webhook. // Docs: https://docs.sentry.io/organization/integrations/integration-platform/webhooks/issues/ // Sentry's own issue priority → push priority. const PRIORITIES = { high: 1, medium: 0, low: -1 } // Look a key up in one of the tables above, ignoring inherited names like "toString". function pick(table, key, fallback) { return Object.prototype.hasOwnProperty.call(table, key) ? table[key] : fallback } // Only link to real http(s) URLs. function link(url, cta) { return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : [] } function handleRequest(request) { const body = request.body || {} const issue = body.data?.issue // Guard: only newly created issues, not resolved/assigned/archived updates. if (body.action !== "created" || !issue) { console.log(`Ignoring Sentry "${body.action ?? "unknown"}" webhook — not a new issue`) return null } const project = issue.project?.name ?? issue.project?.slug const where = [project, issue.culprit].filter((part) => typeof part === "string" && part.trim()) return { title: `🐛 New issue${issue.shortId ? ` ${issue.shortId}` : ""}`, message: (issue.title || "Untitled issue") + (where.length ? ` — ${where.join(" · ")}` : ""), topic: "Sentry", // Every new issue pushes, so lean on Sentry's priority to keep the noise down. priority: pick(PRIORITIES, issue.priority, 0), buttons: link(issue.permalink ?? issue.web_url, "View issue"), } } ``` ## Sentry issue.created webhook payload (sample) ```json { "data": { "issue": { "id": "1234567890", "count": "3", "level": "error", "title": "TypeError: Cannot read properties of undefined (reading 'total')", "status": "unresolved", "culprit": "app/checkout/Summary.tsx in renderTotals", "project": { "id": "4509877862268928", "name": "web", "slug": "web", "platform": "javascript" }, "shortId": "WEB-3F2", "web_url": "https://acme.sentry.io/issues/1234567890/", "lastSeen": "2026-09-29T08:06:00.738000+00:00", "platform": "javascript", "priority": "high", "firstSeen": "2026-09-29T08:06:00.679000+00:00", "permalink": "https://acme.sentry.io/issues/1234567890/", "substatus": "new", "userCount": 3 } }, "actor": { "id": "sentry", "name": "Sentry", "type": "application" }, "action": "created", "installation": { "uuid": "24b397fc-a86e-43ef-9297-949e21b82480" } } ``` ## FAQ ### Does this work on iPhone and Android? Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification. ### Do I need to write code? No. Install the recipe in Studio, paste your webhook URL into Sentry and you are done. The code is there if you want to change the text, the sound or the buttons. ### Can I change what the notification says? Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save. ### What does it cost? JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.