# Render service down notifications on your phone

> Get a Highest-priority push notification when a Render service or database becomes unavailable or is suspended, and a quiet one when it's back.

- Company: Render (https://www.justpush.io/recipes/render)
- Event: `server_failed` (Server Failed)
- Tags: Hosting & deployment, Uptime & downtime
- Install: https://studio.justpush.io/recipes/render/service-failed
- Web page: https://www.justpush.io/recipes/render/service-failed

## 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 the Render Dashboard, open your workspace's Integrations > Webhooks and click + Create Webhook (Pro plan or higher, workspace admins only).
3. Give it a name and paste your webhook URL (shown in Studio after install) as the URL.
4. Select the Server Failed event and click Create Webhook.
5. In the Render Dashboard, open **Integrations → Webhooks → + Create Webhook** (Pro plan or higher) with the URL above, and select:
6. **Server Failed** and **Server Hardware Failure**: the service went down
7. **Server Available**: it's back (a quiet push)
8. **Service Suspended** and **Service Resumed** (optional)
9. **Postgres Unavailable / Available** and **Key Value Unhealthy / Available** (optional, for databases)
10. Render's payload only carries the service name, not the error. Tap **Open Render** for the logs.
11. On a **Pro** workspace you get a single webhook URL, so one integration receives every event you select; the recipe ignores the events it doesn't handle. Scale and Enterprise workspaces can add a webhook per recipe.
12. Render signs deliveries with Standard Webhooks headers (`webhook-signature`), but JustPush doesn't check that signature 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
// Render → service unavailable, suspended or back up
// Fires when a Render workspace webhook sends server_failed, server_hardware_failure,
// service_suspended, postgres_unavailable or key_value_unhealthy, and their recoveries.
// Docs: https://render.com/docs/webhooks

// Event types, how to word them and how loud to be.
const EVENTS = {
    // Down right now: users are affected.
    server_failed: { emoji: "🔥", verb: "is down", message: "Render marked the service unavailable, usually because of a runtime error", priority: 2 },
    server_hardware_failure: { emoji: "🔥", verb: "is down", message: "The service became unavailable because of a hardware failure at Render", priority: 2 },
    postgres_unavailable: { emoji: "🔥", verb: "is unavailable", message: "The Render Postgres database became unavailable", priority: 2 },
    // Needs you soon, but may be deliberate (suspended) or degraded rather than down.
    service_suspended: { emoji: "⏸️", verb: "was suspended", message: "The service was suspended and isn't serving traffic", priority: 1 },
    key_value_unhealthy: { emoji: "⚠️", verb: "is unhealthy", message: "The Render Key Value instance became unhealthy", priority: 1 },
    // Recoveries are good news.
    server_available: { emoji: "✅", verb: "is back up", message: "The service is available again", priority: -1 },
    service_resumed: { emoji: "▶️", verb: "resumed", message: "The service was resumed", priority: -1 },
    postgres_available: { emoji: "✅", verb: "is available again", message: "The Render Postgres database is available again", priority: -1 },
    key_value_available: { emoji: "✅", verb: "is available again", message: "The Render Key Value instance is available again", priority: -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 && typeof request.body === "object" ? request.body : {}
    const data = body.data && typeof body.data === "object" ? body.data : {}

    // Guard: only the availability events above.
    const event = pick(EVENTS, body.type, null)
    if (!event) {
        console.log(`Ignoring Render "${body.type ?? "unknown"}" event`)
        return null
    }

    const name = typeof data.serviceName === "string" && data.serviceName ? data.serviceName : "Your service"

    return {
        title: `${event.emoji} ${name} ${event.verb}`,
        message: event.message,
        topic: "Render",
        priority: event.priority,
        buttons: link("https://dashboard.render.com", "Open Render"),
    }
}
```

## Render server_failed webhook payload (sample)

```json
{
  "data": {
    "id": "evt-d3k9z8n015js70180kq0",
    "serviceId": "srv-d2kouhrtq21c73e9scng",
    "serviceName": "acme-api"
  },
  "type": "server_failed",
  "timestamp": "2026-09-29T08:21:05.114Z"
}
```

## 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 Render 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.
