> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vibraniumlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Heartbeats

Heartbeats allow you to monitor that scheduled jobs, background workers, and recurring processes are running on time. Vibe OnCall expects a ping from your job at a defined interval — if no ping arrives within the expected window, an alert is automatically created and routed through your notification rules.

For organization and team navigation, see [Global and team pages](https://docs.vibraniumlabs.ai/administration/global-and-team-pages.md).

***

### How Heartbeats Work

1. Navigate to **Oncall → Heartbeats**.
2. Create a heartbeat, specifying a name, expected ping interval, and optionally an associated team.
3. Copy the unique **ping URL** generated for your heartbeat.
4. Add a call to the ping URL at the end of each successful execution of your job.
5. If a ping does not arrive within the expected window, Vibe OnCall creates an alert and pages your on-call team according to your configured notification rules.
6. When a ping arrives after an alert was fired, the alert is **automatically resolved** — no manual action is required.

***

### Common Use Cases

* Cron jobs and scheduled tasks
* Background workers and queue consumers
* Data pipelines and ETL jobs
* Any process that should run on a predictable cadence

***

### Ping Endpoint

```txt theme={null}
POST https://events.vibraniumlabs.ai/heartbeat/ping/{shortId}
```

Replace `{shortId}` with the unique identifier shown in your heartbeat's detail page (e.g., `VP-HB-XXXX`).

***

### Authentication

All ping requests require a valid Vibe OnCall API key in the `Authorization` header. Requests without a valid key receive a `401 Unauthorized` response.

A ping counts as a change, so the key's **Access** matters: a **Full access** key works, a **Custom** key must include **Ping heartbeats**, and a **Read-only** key receives `403 Forbidden`. A key can only ping heartbeats that belong to its own organization; any other heartbeat returns `404`.

```txt theme={null}
Authorization: Bearer vlk_your_api_key_here
```

See [API Key Management](https://docs.vibraniumlabs.ai/api/api-key-management.md) for instructions on creating and managing API keys.

***

### Code Examples

**Bash / cron:**

```bash theme={null}
run_my_job.sh && curl -fsS -X POST https://events.vibraniumlabs.ai/heartbeat/ping/VP-HB-XXXX \  -H "Authorization: Bearer vlk_your_api_key_here"
```

**Node.js:**

```javascript theme={null}
await fetch('https://events.vibraniumlabs.ai/heartbeat/ping/VP-HB-XXXX', {  method: 'POST',  headers: { Authorization: 'Bearer vlk_your_api_key_here' },});
```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.