# Heartbeat signal

> Your scheduled job calls Pulse on every run. If the call stops arriving on time, Pulse alerts you.

- Section: Monitor your apps
- Availability: From the Free plan. On iPhone, iPad, Mac and Android.
- URL: https://pulse-app.si/en/docs/apps/signal

## Receive a heartbeat

### iPhone and iPad

1. Tap **Add**, then **Enter Address** on the **Monitor an Address** page.
2. Tap **A scheduled job instead? Receive a heartbeat**.
3. Enter an **App Name**, such as `helio-backup`, then tap **Continue**.
4. Copy the command and add it at the end of your job. **Send to Developer** passes it to someone else.
5. The screen stays on **Waiting for First Heartbeat** until the first call, then shows **Done**.

### Mac

1. Click **Add**, then choose **Monitor an Address**.
2. Click **A scheduled task instead?**.
3. Enter a **Name**, such as `helio-backup`, then click **Get the Key**.
4. Copy the command and add it at the end of your job. **Send to Developer** passes it to someone else.
5. The window stays on **Waiting for First Heartbeat** until the first call.

### Android

1. Tap **Add**, then **Enter Address** on the **Monitor an Address** page.
2. Tap **A scheduled job instead? Receive a heartbeat**.
3. Enter an **App Name**, such as `helio-backup`, then tap **Continue**.
4. Copy the command and add it at the end of your job. **Send to Developer** passes it to someone else.
5. The screen stays on **Waiting for First Heartbeat** until the first call, then shows **Done**.

> **Set the interval right away**
>
> A new heartbeat expects a call every minute with Pro and Team, every 5 minutes with Free. If your job runs less often, Pulse will raise false alerts. Open **App Settings › Interval** and choose how often the job really runs.

## The command

**zsh**

```bash
curl -fsS -X POST https://api.pulse-app.si/ingest/heartbeat -H "Authorization: Bearer pk_live_…"
```

With `&&`, the heartbeat only goes out if the job succeeded. If it fails, the silence triggers the alert.

**crontab**

```bash
# Every night at 3 a.m., the heartbeat goes out if the backup succeeds
0 3 * * * /opt/helio/backup.sh && curl -fsS -X POST https://api.pulse-app.si/ingest/heartbeat -H "Authorization: Bearer pk_live_…"
```

To report a failure right away instead of waiting for the silence, send `{"ok":false}`. After two reported failures in a row, the notification reads “helio-backup is down” and “Failure reported by the app.”

**zsh**

```bash
curl -fsS -X POST https://api.pulse-app.si/ingest/heartbeat -H "Authorization: Bearer pk_live_…" -H "Content-Type: application/json" -d '{"ok":false}'
```

## When Pulse alerts you

After each heartbeat, Pulse allows the **Interval** plus 60 seconds of grace. Past that, the next check opens the alert (“Cron late”, “helio-backup · no heartbeat received on schedule.”), so it goes out at most one interval after the limit.

The next heartbeat closes the alert and tells you it’s back.

> **Nothing before the first heartbeat**
>
> Until a first heartbeat arrives, the app stays **Pending** and Pulse doesn’t alert you. A job that has never run triggers nothing, so run it once by hand after editing it.

### A job that runs less than once an hour

**App Settings › Interval** offers 30 seconds, 1 minute, 5, 10, 15, or 30 minutes, and 1 hour. For a daily job, use the `update_app` tool of the [MCP connector](https://pulse-app.si/en/docs/mcp/tools), available with Pro and Team. `intervalSeconds` goes up to 86,400 seconds (24 hours) and `heartbeatGraceSeconds` changes the 60-second grace.

## The key

- It starts with `pk_live_` in production and `pk_test_` in staging. The app only shows it in full when it’s created.
- It goes in the `Authorization: Bearer` or `x-pulse-key` header, never in the URL.
- It can only write this app’s state and gives no access to your account.
- If it has leaked, open **App Settings › Heartbeat Key › Create New Key**. The old one stops working right away.

## What Pulse replies

| Reply | What it means |
| --- | --- |
| `202` with `"accepted":true` | Heartbeat received. |
| `202` with `"accepted":false` | Heartbeat ignored: the app is paused, or your account is suspended. |
| `401` | The key is unknown because it was replaced or miscopied. With `-f`, `curl` exits with an error. |

- [No signal received](https://pulse-app.si/en/docs/help/no-signal): What to check when the app stays pending.
- [Frequency and thresholds](https://pulse-app.si/en/docs/apps/rhythm): Intervals and grace in detail.
