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

# HTTP alert source

## Overview

Use the **HTTP** alert source when the system that raises your alerts has no dedicated integration in Vibe OnCall: an internal service, a job runner, a script, or any tool that can send JSON over HTTP. Your system decides when an alert opens and when it resolves. Vibe OnCall records the alert, deduplicates it, runs it through the alert route, and pages responders.

**Where to find it:** **Settings → On-call → Routing** (or *your team* → **Routing**) → **Create** → **Alert source** → **HTTP**. After you save the source, copy its webhook URL into your system. Treat the URL like a password: anyone who has it can send alerts into Vibe OnCall.

For how sources connect to routes, see [Routing](https://docs.vibraniumlabs.ai/alerts/routing.md).

***

## Request

Send a `POST` with `Content-Type: application/json` and one alert event per request. The body is a flat JSON object with the fields below. Payloads can be up to `1 MiB`; larger requests are rejected.

## Fields

| Field | Required | What it is |
| - | - | - |
| `externalId` | Yes | Identifies **one alert lifecycle**. Keep it the same from `open` through `resolved`. Use a new value when the same problem starts again later. |
| `dedupKey` | Yes | Identifies **the condition**. Keep it the same across every occurrence of the same problem. While an alert with this key is active, repeat `open` events are folded into it instead of creating a new alert. |
| `status` | Yes | `open`, `acknowledged`, or `resolved`. Case-insensitive. |
| `title` | Yes | The alert title shown in the alert list and in pages. |
| `source` | Yes | The name of the system sending the alert, for example `billing-worker`. |
| `severity` | No | `critical` → SEV0 · `major` → SEV1 · `minor` → SEV2 · `warning` → SEV4 · `info` → SIGNAL. Omitted or any other value → SIGNAL. |
| `description` | No | Longer text shown on the alert. |
| `sourceUrl` | No | A link back to the alert in your system. |
| `timestamp` | No | When the event happened, as ISO 8601 or epoch milliseconds. Omitted → the time Vibe OnCall received the request. |
| `metadata` | No | An object of your own key/value pairs. Available to route attributes, notification-rule conditions, and alert filters. |

> [!NOTE]
>
> All five required fields are checked on **every** event, including `acknowledged` and `resolved`. A resolve that leaves out `title` or `source` is dropped. Only `externalId` and `dedupKey` are used for matching, so the other values can simply repeat what you sent on `open`.

> [!NOTE]
>
> Set `severity`. Without it the alert is recorded as SIGNAL, which most notification rules do not page on. If your system cannot send a severity, set one with an attribute on the route instead. See [Alert Routes: Enrichment and Notifications](https://docs.vibraniumlabs.ai/alerts/alert-routes-enrichment-and-notifications).

***

## Response

A successful request returns `200`:

```json theme={null}
{ "success": true, "message": "Webhook received and processed" }
```

A team-scoped source also returns `"provider": "http"`.

> [!NOTE]
>
> `200` means Vibe OnCall **accepted** the request. The event is processed right after the response. A body that is missing a required field, or a lifecycle event that matches no active alert, is accepted with `200` and then dropped. To confirm what happened, check the [Alerts](https://docs.vibraniumlabs.ai/alerts/alerts.md) list, or call `GET /api/v1/alerts?providers=http` on the [Public API](https://docs.vibraniumlabs.ai/api/public-api-reference.md).

| Status | Meaning | What to do |
| - | - | - |
| `4xx` with `"success": false` | The webhook URL or its token is not valid. | Copy the URL from the source again. If the source was regenerated, update your system. |
| `429` | Too many requests from your organization. | Wait the number of seconds in the `Retry-After` header, then retry. |
| `5xx` | Vibe OnCall could not accept the request. | Retry with backoff. |

***

## Lifecycle

What each `status` does depends on whether an **active** alert already exists. Active means **Open** or **Acknowledged**.

| Event | No active alert | Active alert exists |
| - | - | - |
| `open` | Creates a new alert. The route runs its attributes and notification rule, and responders are paged. | No new alert. The event is recorded as another occurrence of the existing alert, and the route's notification rule runs again, so responders can be paged again unless the alert is acknowledged, muted, or inside a maintenance window. |
| `acknowledged` | Dropped. | Marks the alert Acknowledged. Repeat `open` events stop paging. |
| `resolved` | Dropped. | Marks the alert Resolved. Its `dedupKey` is free again. |

### How an event finds its alert

1. By `externalId`: the most recent active alert with the same `externalId`.
2. If none, by `dedupKey`: the most recent active alert with the same `dedupKey`.

This fallback means a resolve still lands on the right alert if your system restarted and lost the original `externalId`. A Resolved or Closed alert is never reopened; a later `open` always creates a new alert.

### Choosing the two identifiers

* `dedupKey` names the problem: `payments:queue-backlog`, `search-api:latency-p95`. Never put a timestamp or a random id in it.
* `externalId` names one occurrence of the problem. A simple, reliable choice is the `dedupKey` plus the time the problem started: `payments:queue-backlog:2026-10-28T13:40:00Z`.
* Send `open` once when the problem starts, not on a timer. Each repeat `open` on an active alert can page again.

For the general rules, see [Alert Deduplication](https://docs.vibraniumlabs.ai/alerts/alert-deduplication.md).

***

## Example: trigger → resolve → recurrence

A queue worker detects a backlog, recovers, then hits the same backlog again two hours later. Three requests, two alerts.

**1. Trigger.** No active alert with this `dedupKey`, so a new alert is created and the route pages.

```json theme={null}
{
  "externalId": "payments:queue-backlog:2026-10-28T13:40:00Z",
  "dedupKey": "payments:queue-backlog",
  "status": "open",
  "severity": "critical",
  "title": "Payments queue backlog above 10,000 messages",
  "source": "queue-worker",
  "sourceUrl": "https://monitoring.example.com/queues/payments",
  "metadata": { "service": "payments", "region": "us-east-1" }
}
```

**2. Resolve.** Same `externalId`, `status` changes. The alert is marked Resolved.

```json theme={null}
{
  "externalId": "payments:queue-backlog:2026-10-28T13:40:00Z",
  "dedupKey": "payments:queue-backlog",
  "status": "resolved",
  "title": "Payments queue backlog above 10,000 messages",
  "source": "queue-worker"
}
```

**3. Recurrence.** New `externalId`, same `dedupKey`. The previous alert is Resolved, so this creates a second alert and pages again.

```json theme={null}
{
  "externalId": "payments:queue-backlog:2026-10-28T15:05:00Z",
  "dedupKey": "payments:queue-backlog",
  "status": "open",
  "severity": "critical",
  "title": "Payments queue backlog above 10,000 messages",
  "source": "queue-worker"
}
```

If request 3 had reused the first `externalId` it would still create a new alert, because the first one is no longer active. Keeping one `externalId` per occurrence matters while an alert is active: it is what lets a later `acknowledged` or `resolved` find the right alert.

***

## Moving from the PagerDuty Events API

If your system currently sends PagerDuty Events API v2 requests, the fields map one to one.

| PagerDuty Events API v2 | HTTP alert source |
| - | - |
| `routing_key` | The source's webhook URL |
| `dedup_key` | `dedupKey` |
| `event_action`: `trigger` / `acknowledge` / `resolve` | `status`: `open` / `acknowledged` / `resolved` |
| `payload.summary` | `title` |
| `payload.severity`: `critical` / `error` / `warning` / `info` | `severity`: `critical` / `major` / `warning` / `info` |
| `payload.source` | `source` |
| `payload.timestamp` | `timestamp` |
| `payload.custom_details` | `metadata` |
| `links[0].href` | `sourceUrl` |
| — | `externalId`: new per occurrence, for example `dedup_key` plus the start time |

***

## Related

* [Alert sources](https://docs.vibraniumlabs.ai/integrations/alert-sources) — every source Vibe OnCall accepts and what each one dedups on
* [Routing](https://docs.vibraniumlabs.ai/alerts/routing.md) — create the source and connect it to a route
* [Alert Routes: Enrichment and Notifications](https://docs.vibraniumlabs.ai/alerts/alert-routes-enrichment-and-notifications) — set severity from the title, decide who gets paged
* [Alert Deduplication](https://docs.vibraniumlabs.ai/alerts/alert-deduplication.md) — how `dedupKey` works across all sources
* [Alert mute](https://docs.vibraniumlabs.ai/alerts/alert-mute.md) and [Maintenance Window](https://docs.vibraniumlabs.ai/alerts/maintenance-window.md) — stop repeat `open` events from paging
* [Public API Reference](https://docs.vibraniumlabs.ai/api/public-api-reference.md) — read alerts back to verify your adapter


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