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

# Public API Reference

Last updated: 2026-12-01

The Vibe OnCall Public API gives programmatic access to your organization's incidents, alerts, escalations, paging history, alert sources and routings, maintenance windows, services, teams, members, on-call schedules, labels, and automation actions. It follows REST conventions, returns JSON, and requires an API key on every endpoint except the OpenAPI spec.

***

## Base URL

```txt theme={null}
https://api-prod.vibraniumlabs.ai/api/v1
```

## Authentication

All endpoints except the OpenAPI spec require an API key in the Authorization header:

```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. Requests without a valid key receive a `401 Unauthorized` response. A key's **Access** limits what it can do: a **Read-only** key, or a **Custom** key that lacks the needed action, receives `403 Forbidden` on any request that makes a change. The response names the actions the key is missing. Every request is scoped to the organization that owns the key.

***

## Conventions

| **Topic** | **Detail** |
| - | - |
| Pagination | List endpoints take `limit` (max 100) and `offset`. List responses include `total` and `hasMore`. Default page sizes are listed per endpoint below. |
| Array filters | Pass multiple values comma-separated, e.g. `?statuses=open,acknowledged`. |
| Timestamps | All timestamps are ISO 8601 instants, e.g. `2026-09-20T14:00:00Z`. |
| Severity | `SEV0` – `SEV5` or `SIGNAL`. |
| Team identifiers | Team endpoints take the team `shortId` (e.g. `VP-TEAM-ABC123`) or its numeric `id` in the path. A service's `teamId` and a schedule's `teamIds` are numeric team `id`s. `GET /teams` returns both. |
| User identifiers | `userId` is the user `id` returned by `GET /members`, which lists every member of the organization. `GET /teams/{teamShortId}/members` returns the same `id` for members of one team. |
| Rate limits | Requests are rate limited per API key. A throttled request receives `429` with a `Retry-After` header giving the number of seconds to wait before retrying. `POST /escalations` also has its own limit of 60 requests per 60-second window per key; retried and skipped requests count toward it. |
| Idempotency | `POST /incidents` and `POST /escalations` accept an optional `Idempotency-Key` header: 1–255 printable ASCII characters, no spaces. Sending the same key again within 24 hours returns the original response — including a `500` if the first attempt failed — without repeating the work. Keys are scoped to your organization and the endpoint, so they keep working across API key rotation. Reusing a key with a different body, or while the first request is still running, returns `409`. After 24 hours the key can be used for new work. |
| Status codes | `200` / `201` / `202` / `204` success · `400` invalid request · `401` missing, invalid, expired, or revoked API key · `403` the key's Access doesn't allow the request · `404` not found in your organization · `409` conflict (for example, an external ID already in use, a chat platform that is not connected, or an `Idempotency-Key` reused with a different body) · `429` rate limited · `500` server error. |

***

## Endpoints

### Incidents

Incident responses carry the service catalog entries attached to the incident — each service's `id`, `name`, `kind`, `links`, and the groups it belongs to. Every write below is recorded on the incident's timeline, attributed to the API key that made it. A comment can also name the person who wrote it — see `POST /incidents/{id}/comments`.

Every incident has two status fields. `normalizedStatus` is always one of `open`, `acknowledged`, `blocked`, `observation`, or `resolved`. `status` is a legacy display value, such as `In Progress`, `Investigating`, or `Resolved`, in list, get, batch, and create responses; in `PATCH /incidents/{id}` responses it holds the same value as `normalizedStatus`. Read `normalizedStatus` when you need a stable value — the `statuses` filter uses the same five values.

Every incident also carries `impactStartedAt` and `impactEndedAt`, when the impact began and ended, as UTC timestamps or `null`. They're separate from `reportedAt` and `resolvedAt`: setting them doesn't change those or the status.

`customFields` is an array of `{"id": "...", "name": "region", "value": "us-east-1"}`. Each field gets a permanent `id` when it's created and keeps it, so refer to fields by `id` when removing them. Names are exact and case-sensitive, and `value` can be `null`.

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/incidents` | List incidents (default `limit` 10). Filters: `since`, `until`, `updatedSince` (incidents whose record changed at or after that time — see **Polling for changes** below), `severities`, `statuses` (`open`, `acknowledged`, `blocked`, `observation`, `resolved`), `responderTeamIds`, `responderUserIds`, `channels` (Slack or Microsoft Teams channel IDs), `labelIds`, `serviceIds`, `lastActivityBefore`, `searchTerm`, `includeArchived` (default `true`). Sort with `sortBy` (`createdAt`, the default, or `updatedAt`) and `sortOrder` (`DESC`, the default, or `ASC`); equal times are ordered by `id`, ascending. Each item includes `resolvedAt`, `updatedAt`, `impactStartedAt`, `impactEndedAt`, `customFields`, and `lastActivity`, which falls back to `createdAt` when no activity time is recorded. |
| `POST` | `/incidents` | Create an incident. Body: `title` (required, 500 characters max), `description` (required), `severity` (required), `status` (default `open`), `responders` (same items as `responders/add`, without `overrideEscalationPolicyId`), `labels` (up to 5 names), `serviceIds`, `customFields` (`[{"name": "region", "value": "us-east-1"}]`), `impactStartedAt`, `impactEndedAt`, and `pageResponders` (default `true`: responders are paged as soon as the incident is created; send `false` to add them without paging). Services don't add their responders, and no Slack or Microsoft Teams incident channel is opened. Needs **Create incidents**, plus **Page responders** when it pages. Accepts an `Idempotency-Key` header (see Conventions). Returns `201` with the full incident — the same shape as `GET /incidents/{id}`, including `customFields` — and a `Location` header. |
| `GET` | `/incidents/{id}` | Get one incident, including its `customFields` and `updatedAt`. Use `include` to expand optional fields: `postmortems`, `conversations`, `meetingTranscripts`, `timeline`. |
| `PATCH` | `/incidents/{id}` | Update an incident's fields. Body: any combination of `title`, `description` (send `null` to clear it), `severity`, `status` (`open`, `acknowledged`, `blocked`, `observation`, `resolved`), `reportedAt`, `resolvedAt`, `impactStartedAt`, and `impactEndedAt` — at least one is required. Timestamps need an explicit offset and are returned in UTC. `reportedAt` and `resolvedAt` can't be cleared; `resolvedAt` needs the incident to be resolved (already, or through `status` in the same request) and can't be earlier than `reportedAt`. `impactStartedAt` and `impactEndedAt` can be set while the incident is open, are cleared with `null`, and the end can't be before the start. Returns the full incident. Example: `{"title": "Checkout API latency elevated", "status": "acknowledged"}`. |
| `POST` | `/incidents/{id}/archive` | Archive an incident without changing its status or any other field. No body is needed. Returns `{"id": 101, "archivedAt": "..."}`; archiving again returns the original `archivedAt`. Archived incidents stay readable and are included in `GET /incidents` unless you send `includeArchived=false`. Slack and Microsoft Teams channels stay open. |
| `POST` | `/incidents/batch` | Get up to 100 incidents by ID. Body: `{"ids": [101, 102]}`. |
| `PUT` | `/incidents/{id}/services` | Replace the incident's services with the set you send — internal service catalog IDs, as strings. This does not add those services' responders to the incident. Body: `{"serviceIds": ["123", "456"]}`. |
| `POST` | `/incidents/{id}/responders/add` | Add responders. Each item is `{"type": "user", "userId": 345}` or `{"type": "team", "teamId": 12}`, and a team item may also carry `overrideEscalationPolicyId` to page through a policy other than the team's default. Users must be active or pending. Body: `{"responders": [{"type": "user", "userId": 345}]}`. |
| `POST` | `/incidents/{id}/responders/remove` | Remove responders. Same body as add. Removal also works for a user who has since been deprovisioned, so stale responders can be cleaned up. |
| `POST` | `/incidents/{id}/labels/add` | Add labels by name. Labels that don't exist yet are created in the default label color. 1–5 labels per call, 30 characters max each, and 5 labels per incident in total. Body: `{"labels": ["customer-impacting"]}`. |
| `POST` | `/incidents/{id}/labels/remove` | Remove labels by name. Body: `{"labels": ["customer-impacting"]}`. |
| `POST` | `/incidents/{id}/comments` | Add a comment. It also appears on the incident timeline. Body: `comment` (required), plus optional `author` and `timestamp`. `author` is who wrote it: the email of an active member links the comment to that member; any other value — a name, a description, or the email of a pending or revoked member — is stored as plain text. Without `author`, the comment is attributed to the API key. `timestamp` sets the comment's time, for importing history; it can't be in the future but can be earlier than the incident. The timeline entry and notifications still use the time of the request. Each returned comment has an `author`: `{"type": "user", ...}`, `{"type": "text", ...}`, `{"type": "api_key", ...}`, or `null` for older comments. Example: `{"comment": "Rolled back the deploy", "author": "alice@example.com", "timestamp": "2026-10-20T09:30:00Z"}`. |
| `PATCH` | `/incidents/{id}/comments/{commentId}` | Edit a comment. Returns the incident's comments. Body: `{"comment": "..."}`. The author can't be changed — sending `author` returns `400`. |
| `DELETE` | `/incidents/{id}/comments/{commentId}` | Delete a comment. Returns the incident's remaining comments. |
| `POST` | `/incidents/{id}/timeline` | Add a timeline entry by hand. Body: `content` (required), plus optional `timestamp` and `author`. `timestamp` is when it happened: it needs a time zone, can't be in the future, and can be earlier than the incident; omit it for the current time. `author` follows the same rules as for comments, 1–255 characters. The entry is marked as added manually and recorded against the API key. Entries are listed in event-time order. Needs **Update incidents**. Returns `201` with `timelineEvent`. |
| `POST` | `/incidents/{id}/custom-fields/add` | Add custom fields, or change the value of existing ones, matched by exact name. Fields you don't send are kept, and a matched field keeps its `id`. Renaming isn't supported. Body: `{"customFields": [{"name": "region", "value": "us-east-1"}]}`. |
| `POST` | `/incidents/{id}/custom-fields/remove` | Remove custom fields by `id`. IDs that don't exist are ignored. Body: `{"customFieldIds": ["..."]}`. |

#### Polling for changes

`updatedSince` filters on the time the incident record itself was last written — the `updatedAt` returned on every incident — and the cutoff is inclusive.

| **Moves `updatedAt`** | **Does not move it** |
| - | - |
| Creating the incident · `PATCH /incidents/{id}` (title, description, severity, status, `reportedAt`, `resolvedAt`, impact times) · archiving · custom fields add and remove · services replace · responders and labels added or removed · timeline entries added by hand, in the app or through the API · status and severity changes made in the app · Vibe OnCall refreshing the incident's summary | Comments · responder and label requests that change nothing · timeline entries Vibe OnCall writes on its own · chat messages · postmortems |

A timeline entry added by hand moves `updatedAt` to the time it was added, even when its own time is earlier.

To sync incrementally: call `GET /incidents?updatedSince=…&sortBy=updatedAt&sortOrder=ASC` and page with `offset` until `hasMore` is `false`. Then set your cursor to the highest `updatedAt` you saw. Because the cutoff is inclusive, incidents written at that exact instant come back again on the next call; skip the ones you already have by `id`. Comments don't move the cursor, so read those with `GET /incidents/{id}?include=timeline` for the incidents you care about.

### Alerts

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/alerts` | List alerts (default `limit` 10). Filters: `createdAfter`, `createdBefore`, `severities`, `statuses` (`open`, `acknowledged`, `closed`, `resolved`), `providers`, `teamIds`, `labelIds`, `searchTerm`, `acknowledgedByUserIds` (alerts whose most recent acknowledgment was by one of these users). Each alert includes `acknowledgedAt`, `acknowledgedBy` (`id`, `email`, `fullName`), `resolvedAt`, and `closedAt`. |
| `GET` | `/alerts/{id}` | Get one alert, including its timeline and linked incidents. Repeat triggers in a row are returned as one timeline entry, the newest of the run, carrying `occurrences: { count, firstAt, lastAt }`. An entry without `occurrences` is a single event. |
| `PATCH` | `/alerts/{id}` | Change an alert's severity, status, or both. Body: `severity` and/or `status` (`open`, `closed`, `resolved`), e.g. `{"severity": "SEV3", "status": "resolved"}`. To acknowledge, use the endpoint below. Allowed status changes: open → closed or resolved; acknowledged → open, closed, or resolved; closed → open; resolved → open or closed. Sending the current status is accepted and changes nothing. A disallowed change rejects the whole request with `400`, including any severity change; so does a status change made by someone else at the same moment — retry it. Status changes affect paging and run the same timeline entries, notifications, and automations as in the app. Returns `severity`, `canonicalSeverity`, and `status`. |
| `POST` | `/alerts/{id}/acknowledge` | Acknowledge an alert. No body. Works on open alerts; an alert that is already acknowledged is returned unchanged, and a closed or resolved alert can't be acknowledged (`400`). Needs **Acknowledge alerts**. Returns the same fields as `PATCH`. |
| `POST` | `/alerts/batch` | Get up to 100 alerts by ID. Body: `{"ids": [201, 202]}`. |
| `POST` | `/alerts/{id}/notes` | Add a note. Returns the alert's notes. Body: `{"note": "Disk usage back under 80%"}`. |
| `PATCH` | `/alerts/{id}/notes/{noteId}` | Edit a note. Body: `{"note": "..."}`. |
| `DELETE` | `/alerts/{id}/notes/{noteId}` | Delete a note. |
| `POST` | `/alerts/{id}/metadata/add` | Add or replace top-level metadata entries. Body: `{"metadata": {"runbook": "https://..."}}`. |
| `POST` | `/alerts/{id}/metadata/remove` | Remove metadata entries by key. Keys that don't exist are ignored. Body: `{"metadataKeys": ["runbook"]}`. |
| `POST` | `/alerts/{id}/labels/add` | Add labels by name. Labels that don't exist yet are created. 1–5 labels, 30 characters max each. Body: `{"labels": ["database"]}`. |
| `POST` | `/alerts/{id}/labels/remove` | Remove labels by name. Body: `{"labels": ["database"]}`. |

`acknowledgedAt`, `resolvedAt`, and `closedAt` are the most recent acknowledgment, resolve, and close on the alert's timeline, or `null` if it never happened. They're kept when the alert is reopened, so check `status` for its current state. `acknowledgedBy` is the person behind the most recent acknowledgment, the same one the app's **Last acked by** shows. It's `null` when no person made that acknowledgment: the alert was acknowledged with an API key, or by its source sending an acknowledgment. An alert acknowledged by declaring an incident has no acknowledgment event, so both acknowledge fields stay `null` for it. These fields come back on `GET /alerts`, `GET /alerts/{id}`, `POST /alerts/batch`, and a maintenance window's suppressed alerts.

To page an alert through an escalation policy — including before a routing rule's delay ends — use `POST /escalations` (see **Escalations** below).

#### Window conditions

Without conditions, a window applies to every alert in its scope. To narrow it, send `conditions` together with `conditionsLogicalOperator` (`AND` or `OR`) — neither is accepted on its own. Each condition is one of:

| **type** | **rule** |
| - | - |
| `severity` | `{"operator": "equal_to", "severity": "SEV2"}`. Operators: `equal_to`, `greater_than` (more severe than), `greater_than_or_equal` (that severity or more severe), `less_than` (less severe than), `less_than_or_equal` (that severity or less severe) — see **Severity operators** below. |
| `field` | `{"fieldPath": "details.cluster", "operator": "contains", "conditionValue": "prod", "isCaseSensitive": false}`. Operators: `contains`, `exact_match`, `not_contains`, `matches_regex`. `fieldPath` is a dot-path into the incoming payload, where the source's own fields sit under `details`. A path that matches nothing never fires. |
| `provider` | `{"operator": "one_of", "providers": ["datadog", "grafana"]}`. |
| `time` | `{"timezone": "Asia/Seoul", "operator": "day_in_between", "timeInterval": {"startHourOffset": "09:00", "endHourOffset": "18:00"}}`. Use `week_in_between` with `weekRanges` for day-of-week ranges (`startDay` / `endDay` are 0–6). |
| `group` | `{"operator": "AND", "conditions": [...]}` — holds plain conditions only. Use either plain conditions, or groups joined with `conditionsLogicalOperator` `OR` — see the example under [**Routing rules**](https://docs.vibraniumlabs.ai/api/public-api-reference.md#routing-rules), where the same `conditions` list works in a window. |

#### Severity operators

Severity conditions compare by severity rank, not by the number in the label. SEV0 is the most severe and SIGNAL the least: SEV0, SEV1, SEV2, SEV3, SEV4, SEV5, SIGNAL. With SEV3 as the threshold:

| **Operator** | **Reads as** | **Matches** |
| - | - | - |
| `greater_than` | More severe than SEV3 | SEV0, SEV1, SEV2 |
| `greater_than_or_equal` | SEV3 or more severe | SEV0, SEV1, SEV2, SEV3 |
| `equal_to` | Exactly SEV3 | SEV3 |
| `less_than_or_equal` | SEV3 or less severe | SEV3, SEV4, SEV5, SIGNAL |
| `less_than` | Less severe than SEV3 | SEV4, SEV5, SIGNAL |

If your organization shows P-levels, P0–P5 stand in for SEV0–SEV5 and SIGNAL keeps its name. A value outside the scale never matches. The same operators, with the same meaning, drive the severity conditions in Routing, automation actions, notification policies, and alert enrichment in the app.

### Escalations

Page an existing alert or incident through any escalation policy in your organization — for example, to bring in another team, or to page an alert before a routing rule's delay ends. Paging starts at the policy's first tier right away. Policy IDs are listed by `GET /escalation-policies` (see the OpenAPI spec).

> [!WARNING]
>
> This starts a new escalation; it does not cancel one a routing rule has already scheduled. If the alert is still open and unmuted when that delay ends, the route's recipients are paged as well. Acknowledging or resolving the alert stops the delayed page.

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `POST` | `/escalations` | Page through an escalation policy. Body: `escalationPolicyId` plus exactly one of `alertId` or `incidentId`, e.g. `{"incidentId": 101, "escalationPolicyId": 7}`. Returns an empty `202`; notifications go out in the background, following each responder's notification preferences. If the alert or incident is no longer open, or the alert is muted, nobody is paged and the response is still `202`. It never reopens anything. Needs **Page from alerts** for an alert or **Page responders** for an incident. Accepts an `Idempotency-Key` header (see Conventions); a repeat with the same key doesn't page again, while each request without a key pages again. Limited to 60 requests per 60 seconds per key. |

### Paging history

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/pages` | List who was paged, when, through which channel, and the outcome, newest first (default `limit` 20). Filters: `incidentId`, `alertId`, `userIds`, `startDate` (inclusive), `endDate` (exclusive), `statuses` (`initiated`, `pending`, `success`, `failed`, `acknowledged`, `suppressed`), `types` (`email`, `phone`, `sms`, `slack`, `teams`, `mobile`, `escalation`). `success` means the page reached the person's channel; `acknowledged` means they responded to it, and `acknowledgedAt` says when. A `type` of `escalation` marks a handoff to the next tier rather than a channel. Each page has `id`, `type`, `status`, `user`, `incidentId`, `incidentTitle`, `alertId`, `acknowledgedAt`, and `createdAt`. |

### Alert sources

An **alert source** is where a monitoring tool sends alerts. Each source has its own webhook URL, or an inbound address for an email source.

Anyone with a source's webhook URL can send alerts into Vibe OnCall and page your team. That's why every alert source endpoint needs **Manage alert sources**, including reads. A **Read-only** key gets `403` here.

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/alert-sources` | List alert sources. Filter: `teamId` (that team's sources; the literal `null` for organization-level sources only; omit for every scope). Returns `{"alertSources": [...]}`. |
| `POST` | `/alert-sources` | Create a source. Body: `name` (required, 255 characters max, unique within its scope and provider), `provider` (required — `datadog`, `grafana`, `prometheus`, `newrelic`, `coralogix`, `cloudwatch`, `sns`, `azuremonitor`, `sentry`, `embraceio`, `opsgenie`, `cloudamqp`, `jira`, `http`, or `email`), `teamId` (omit or `null` for an organization-level source), `alertRoutingId` (a routing in the same scope), `isEnabled` (default `true`), `deduplication` (email sources only, see below). `provider` and `teamId` are fixed after creation. Returns `201`. |
| `GET` | `/alert-sources/{id}` | Get one source, including `webhookUrl` and `webhookToken` (or `emailAddress` for an email source) to put in your monitoring tool's config. |
| `PATCH` | `/alert-sources/{id}` | Update `name`, `alertRoutingId`, `isEnabled`, or `deduplication`; send only the fields you want to change. `{"alertRoutingId": null}` detaches the source from its routing. A source that is off rejects what arrives on it. |
| `DELETE` | `/alert-sources/{id}` | Delete a source. Its webhook URL or inbound address stops accepting alerts right away; alerts that already arrived stay. Returns `204`. |

An email source's `deduplication` is a template that decides when an email joins an open or acknowledged alert, built from `{{subject}}`, `{{sender}}`, and `{{body}}`, up to 500 characters. `null` uses the default, `{{subject}}`; an empty string gives every email its own alert. Omit it on create for the default, and on update to keep the current setting. Alerts only match alerts from the same source.

### Alert routings

An **alert routing** is the API name for an **alert route** in the app. It holds the ordered rules that decide who gets paged for alerts arriving on the sources that point at it. Reads work with any key. Writes need **Manage alert routing**.

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/alert-routings` | List routings with their rules. Filter: `teamId`, same as alert sources. Returns `{"alertRoutings": [...]}`. |
| `POST` | `/alert-routings` | Create a routing. Body: `name` (required, 255 characters max, unique within its scope), `description` (5,000 characters max), `teamId` (omit or `null` for an organization-level routing — fixed after creation), `isEnabled` (default `true`), `rules` (see [**Routing rules**](https://docs.vibraniumlabs.ai/api/public-api-reference.md#routing-rules) below). Returns `201`. Then point sources at it with their `alertRoutingId`. |
| `GET` | `/alert-routings/{id}` | Get one routing. `rules` come back in evaluation order. |
| `PATCH` | `/alert-routings/{id}` | Update `name`, `description`, `isEnabled`, or `rules`; send only the fields you want to change. A `rules` list replaces every rule, so send the whole list in the new order to reorder; `[]` removes them all. |
| `DELETE` | `/alert-routings/{id}` | Delete a routing and every rule on it, including the attributes set up in the app. Returns `204`. A routing that an alert source or heartbeat still uses returns `409`. Repoint or delete those sources first; heartbeats are changed in the app. |

#### Routing rules

Rules are evaluated top to bottom, and the **first rule that matches decides** what happens to the alert. They read back exactly in the order you sent them. Each rule takes:

| **Field** | **Detail** |
| - | - |
| `name` | Optional label for the rule. |
| `logicalOperator` | `AND` or `OR` — how the top-level `conditions` combine. |
| `conditions` | Same as [**Window conditions**](https://docs.vibraniumlabs.ai/api/public-api-reference.md#window-conditions) above, with `logicalOperator` in place of `conditionsLogicalOperator`, plus `count`: `{"countThreshold": 3, "timeframe": 600000}` matches once that many alerts arrived within `timeframe` milliseconds (at least 2 alerts and 1 minute). Severity also accepts aliases such as `P1`, which read back as the canonical value. |
| `action` | Exactly one. `{"type": "ESCALATE", "value": {"escalation": [{"type": "escalationPolicy", "value": 7}]}}` pages the targets — each target is an `escalationPolicy`, `schedule`, or `user` by ID. Optional `delayMs` (1 minute to 24 hours) waits before paging, and `notificationUrgency` (`HIGH`, `MEDIUM`, `LOW`) overrides the urgency. `{"type": "DO_NOTHING"}` records the alert without paging anyone. |

A rule with `logicalOperator` `AND` and no conditions is the **fallback rule** — the **ELSE** branch in the app. It matches every alert, so it can only be last; anywhere else returns `400`. Every target must exist in your organization, or the whole write returns `400` and nothing changes.

To match one set of conditions or another, put each set in a group and join the groups with `OR`. This rule matches SEV1 and worse from Datadog, or anything from the payments service:

```json theme={null}
{
  "name": "Critical or payments",
  "logicalOperator": "OR",
  "conditions": [
    {"type": "group", "operator": "AND", "conditions": [
      {"type": "severity", "rule": {"operator": "greater_than_or_equal", "severity": "SEV1"}},
      {"type": "provider", "rule": {"operator": "one_of", "providers": ["datadog"]}}
    ]},
    {"type": "group", "operator": "AND", "conditions": [
      {"type": "field", "rule": {"fieldPath": "details.service", "operator": "exact_match", "conditionValue": "payments"}}
    ]}
  ],
  "action": {"type": "ESCALATE", "value": {"escalation": [{"type": "escalationPolicy", "value": 7}]}}
}
```

### Services

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/services` | List active services (default `limit` 20). Filters: `query`, `teamId`, `externalProvider`, `externalServiceId`. Each service includes its responders and stakeholders. A service's `responders` are the teams and users added to it; its owning team (`teamId`) is paged for the service without being listed there. |
| `POST` | `/services` | Create a service. Body: `name` (required), `description`, `teamId` (owning team), `externalProvider`, `externalServiceId`. Returns `201`. |
| `GET` | `/services/{id}` | Get one service. |
| `PATCH` | `/services/{id}` | Update a service. Accepts the same fields as create; send only the fields you want to change. |
| `DELETE` | `/services/{id}` | Archive a service. Returns `204`. |
| `POST` | `/services/{id}/responders/add` | Add responder teams or users. Each item takes exactly one of `teamId` or `userId`. Body: `{"responders": [{"teamId": 12}, {"userId": 345}]}`. Adding the owning team keeps it responding after the service moves to another team. |
| `POST` | `/services/{id}/responders/remove` | Remove responder teams or users. Same body as add. The owning team keeps responding while it owns the service. |
| `POST` | `/services/{id}/stakeholders/add` | Add stakeholders. Body: `{"userIds": [345]}`. |
| `POST` | `/services/{id}/stakeholders/remove` | Remove stakeholders. Body: `{"userIds": [345]}`. |

### Members

These endpoints cover the whole organization, including members who belong to no team. A member's organization role is separate from the team role returned by `GET /teams/{teamShortId}/members`.

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/members` | List every member of the organization, oldest first (default `limit` 20). Filters: `search` (case-insensitive substring of full name or email), `status` (`active`, `pending`, `revoked`), `roleIds` (organization roles), `labelIds`. Filters combine with AND; values within one filter combine with OR. |
| `GET` | `/members/{userId}` | Get one member: email, full name, account status, organization role, labels, and timestamps. |

### Teams

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/teams` | List teams (default `limit` 20). |
| `POST` | `/teams` | Create a team. Body: `name` (required, 255 characters max), `description`, `externalProvider` (32 characters max), `externalTeamId` (128 characters max). Returns `201`. |
| `GET` | `/teams/{teamShortId}` | Get one team. |
| `PATCH` | `/teams/{teamShortId}` | Update a team. Accepts the same fields as create; send only the fields you want to change. |
| `DELETE` | `/teams/{teamShortId}` | Delete a team that owns nothing. A team that still owns escalation policies, schedules, alert routes, alert sources, heartbeats, services, maintenance windows, automation actions or integrations returns `409`. Escalation policies, schedules, alert sources and routings, services, and maintenance windows can be deleted through the API first, alert sources before the routings they use. Heartbeats, automation actions, and integrations can't, so a team that owns any of them has to be deleted from the app, which moves or deletes each of them with it. |
| `GET` | `/teams/{teamShortId}/members` | List a team's members with their team role and account status. `limit` is optional; omit it to return every member. |
| `POST` | `/teams/{teamShortId}/members` | Add a member, or change an existing member's role. Body: `{"userId": 345, "role": "admin"}`. `role` is `admin` (Team admin) or `member`; default `member`. |
| `DELETE` | `/teams/{teamShortId}/members/{userId}` | Remove a member. Any member can be removed, including a team's last Team admin. A member still on one of the team's schedule rotations, upcoming overrides, escalation policy tiers or routing rules returns `409`, and the message lists each one. Replace or remove them there first, or remove them in the app, which lets you choose a replacement for each. |
| `GET` | `/teams/{teamShortId}/on-call` | Get the team's current first-tier on-call responders, resolved from the team's default escalation policy when one exists. |

### Schedules

A schedule is global or belongs to one or more teams. It has one or more rotations, each with an ordered list of participants and an on-call window, and an override puts a different person on a rotation for a set time. Writes need an API key with **Manage on-call schedules** (or Full access). Changing which teams own an existing schedule needs **Manage schedule teams** instead.

Every schedule response lists its owners in `teamIds`, in ascending order, and empty for a global schedule. The older `teamId` field is still returned, holding the lowest owning team's ID, but it is deprecated — read `teamIds`.

With `splitAtLocalMidnight=true`, the on-call hours report and the timeline cut each shift at midnight in its schedule's time zone, and each piece carries `localDate` and `weekday`, so hours sort into local days. Totals don't change. Days when the clocks change count their real 23 or 25 hours, and a midnight that occurs twice splits at its first occurrence.

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/schedules` | List schedules with their rotations, newest first (default `limit` 20). Filter: `teamId` returns every schedule that team owns, including ones it shares with other teams; omit it to list every schedule, global ones included. Use it to find a schedule's `id` by name or team. |
| `GET` | `/schedules/on-call` | List schedules with the current on-call responder emails for each (default `limit` 20). |
| `GET` | `/schedules/on-call-hours` | Report on-call hours per member for a date range. Required: `startDate`, `endDate`. Optional: `scheduleIds` (takes precedence over `teamShortIds`), `teamShortIds`, `memberIds`, `hoursPerDay`, `splitAtLocalMidnight`. Each shift carries its schedule's `timezone`. Recorded shifts update every 10 minutes and end at the current time at the latest; for shifts still to come, use `GET /schedules/timeline`. |
| `GET` | `/schedules/timeline` | List who is on call per rotation across a time range, with overrides applied. Required: `startAt`, `endAt` (at most 90 days after `startAt`, and at most a year from now). Optional: `scheduleIds`, `teamShortIds` (ignored when `scheduleIds` is set), `memberIds`, `splitAtLocalMidnight`. Before now it returns the recorded shifts, the same ones the on-call hours report reads; after now it projects the rotations and overrides, so you can check a schedule before it goes live. Each shift has `scheduleId`, `scheduleName`, `rotationId`, `rotationName`, `memberId`, `memberName`, `memberEmail`, `startAt`, `endAt`, `isOverride`, and `timezone`. |
| `POST` | `/schedules` | Create a schedule. Body: `name` (required, 255 characters max), `timezone` (required, an IANA time zone such as `America/New_York`), `teamIds` (the numeric team `id`s that own it; omit it or send `[]` for a global schedule), and `rotations` (required, at least one — see **Rotation body** below). A single `teamId` is still accepted in place of `teamIds`, but not both. Returns `201`. |
| `GET` | `/schedules/{id}` | Get one schedule with its rotations. |
| `GET` | `/schedules/{id}/on-call` | Get who is on call on one schedule right now: the schedule's `id`, `name`, `team` (`shortId` and `name` of the lowest-ID owning team, or `null` for a global schedule), and `onCallResponders`, each with `id`, `name`, and `email` and listed once even if they are on more than one rotation. Overrides and the schedule's time zone are applied. Empty when nobody is on call. |
| `PATCH` | `/schedules/{id}` | Change a schedule's `name` or `timezone`; omitted fields keep their values. Sending `teamId` or `teamIds` returns `400` — change owners with `PUT /schedules/{id}/teams`, and rotations with the rotation endpoints. |
| `PUT` | `/schedules/{id}/teams` | Replace the full set of teams that own the schedule. Body: `{"teamIds": [12, 50]}`; `[]` makes it global. The schedule, its rotations, and its overrides are kept, and nobody is added to a team. Sending the current set changes nothing. Needs **Manage schedule teams**. Returns the schedule. |
| `DELETE` | `/schedules/{id}` | Delete a schedule. Returns `204`. A schedule that an escalation policy tier or routing rule still pages returns `409` — change those first. |
| `POST` | `/schedules/{id}/rotations` | Add a rotation after the schedule's last one. Body: a rotation (see **Rotation body**). Returns `201`. |
| `PUT` | `/schedules/{id}/rotations/{rotationId}` | Replace a rotation. Send the whole rotation, including every participant; it keeps its place in the schedule. For how the participant order is saved, see **Participant order on update** below. |
| `DELETE` | `/schedules/{id}/rotations/{rotationId}` | Delete a rotation. A schedule's last rotation can't be deleted (`409`). Returns `204`. |
| `GET` | `/schedules/{id}/rotations/{rotationId}/overrides` | List a rotation's overrides, past and future, in start order. Filters: `from` and `to` (ISO 8601 with an explicit offset) return overrides that overlap that range. Returned timestamps are UTC. |
| `POST` | `/schedules/{id}/rotations/{rotationId}/overrides` | Put a member on the rotation for a set window. Body: `userId`, `startAt`, `endAt`, all required. Timestamps need an explicit offset, such as `2026-10-10T09:00:00-04:00`, and are saved on the schedule's clock. Returns `201`. |
| `PUT` | `/schedules/{id}/rotations/{rotationId}/overrides/{overrideId}` | Replace an override. Send all three fields: `userId`, `startAt`, `endAt`. |
| `DELETE` | `/schedules/{id}/rotations/{rotationId}/overrides/{overrideId}` | Delete an override. Returns `204`. |

#### Rotation body

Used by `POST /schedules` (as each item of `rotations`), `POST /schedules/{id}/rotations`, and `PUT /schedules/{id}/rotations/{rotationId}`. Reads return every rotation in this same shape — including rotations created in the app or brought in by an importer — so a rotation you read can be sent back unchanged.

| **Field** | **Detail** |
| - | - |
| `name` | Required. 255 characters max. |
| `startAt` | Required. The first date the rotation takes effect, as `YYYY-MM-DD`. |
| `participants` | Required. Member `id`s from `GET /members`, in on-call order. Through the API each member can appear once per rotation; to give someone more than one slot, edit the rotation in the app. |
| `rotationConfig` | Required. Daily: `{"type": "daily", "payload": {"startTime": "08:00", "endTime": "20:00"}}` — an end time earlier than the start time crosses midnight, and an end time equal to the start time covers the full 24 hours. Weekly: `{"type": "weekly", "payload": {...}}` with either `startDay`, `startTime`, `endDay` and `endTime` (plus optional `dailyStartTime` and `dailyEndTime`), or `windows` — a list of `startDay` / `startTime` / `endDay` / `endTime` ranges. A range that starts and ends on the same day and time covers the full week. Optional `handOffDay` and `handOffTime` set when the next participant takes over, independent of coverage: `handOffTime` (default `00:00`) needs `handOffDay`. Times are `HH:MM`; days run from `0` (Sunday) to `6` (Saturday). |
| `storeParticipantsAsSent` | `PUT` only. Optional, default `false`. See [Participant order on update](https://docs.vibraniumlabs.ai/api/public-api-reference.md#participant-order-on-update). |

#### Participant order on update

A new participant order is always saved as sent. What differs is a change that only removes participants, or only appends them at the end:

| **`storeParticipantsAsSent`** | **Saved order** | **Who is on call** |
| - | - | - |
| `false` or omitted | May be rotated so the person on call now stays on call. The order you read back can differ from the one you sent, and repeating the same request can save a different order. | Unchanged by the update. |
| `true` | Exactly as sent. Repeating the request changes nothing. | Set by `startAt` and the order alone, so removing or appending someone can change who is on call right away. |

Clients that compare what they sent with what they read back, such as infrastructure-as-code tools, should send `true`. Edits in the app always keep the person on call.

### Labels

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/labels` | List all labels. Use the returned IDs with the `labelIds` filter on incidents, alerts, and members. |

### Automation Actions

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/automation-actions` | List automation actions (default `limit` 20). |
| `GET` | `/automation-actions/{id}/executions` | List an automation action's execution logs, newest first (default `limit` 20). Filters: `from`, `to`. |
| `GET` | `/automation-actions/{id}/execution-summaries` | List one summary per run instead of per step log, newest first (default `limit` 20). Filters: `createdAtFrom`, `createdAtTo`. |
| `GET` | `/automation-actions/{id}/executions/{executionId}` | Get the details of one run. `executionId` is the ID shared by every step log from that run. |

### Maintenance windows

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/maintenance-windows` | List maintenance windows, newest start first (default `limit` 20). Filters: `activeAt` (only windows covering that instant — a window covers its start instant and has ended by its end instant), `teamId` (that team's windows; the literal `null` for global windows only; omit for every scope). |
| `POST` | `/maintenance-windows` | Create a window. Body: `name` (required, 64 characters max), `startAt` and `endAt` (required; `endAt` must be after `startAt`, and `startAt` no more than two minutes in the past), `description` (512 characters max), `teamId` (omit or `null` for a global window — fixed after creation), `conditions` with `conditionsLogicalOperator`, and `announcementChannels` (channel IDs from `GET /integrations/chat/channels`). Returns `201`. |
| `GET` | `/maintenance-windows/{id}` | Get one window. `status` is `upcoming`, `active`, or `ended`. |
| `PATCH` | `/maintenance-windows/{id}` | Partial update; accepts the same fields as create except `teamId`. To end an active window early, send `{"endAt": "<now>"}`. Ended windows are immutable, and an active window cannot change `startAt` or move `endAt` into the past. |
| `DELETE` | `/maintenance-windows/{id}` | Cancel the window. Returns `204`. |
| `GET` | `/maintenance-windows/{id}/suppressed-alerts` | List the alerts this window held back from automatically paging, most recently suppressed first (default `limit` 20). |

### Chat integrations

Look up the Slack or Microsoft Teams channels your organization is connected to.

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/integrations/chat/channels` | List the channels of the connected chat platform, sorted by name (default `limit` 20). On Slack, every workspace channel is listed. On Microsoft Teams, channels belong to a team, so `microsoftTeamsTeamId` is required — and it is rejected for Slack organizations. Filter: `search` (names containing the text on Slack, names starting with it on Microsoft Teams). |
| `GET` | `/integrations/chat/microsoft-teams/teams` | List the Microsoft Teams teams Vibe OnCall has joined, sorted by name (default `limit` 20). Filter: `search`. Pass a team's `id` as `microsoftTeamsTeamId` above. Microsoft Teams organizations only. |

### OpenAPI spec

| **Method** | **Endpoint** | **Description** |
| - | - | - |
| `GET` | `/openapi.yaml` | Retrieve the full OpenAPI spec. No authentication required. |

***

## What each write returns

Every write returns its stored result in the response, so there is no need to read the resource back — except the few that return only an acknowledgement, marked below. Work that a write sets off — paging, notifications, chat posts, automations — continues after the response and shows up on the incident or alert timeline as it completes.

| **Endpoint** | **Response** | **Continues after the response** |
| - | - | - |
| `POST /incidents` | `201`, the full incident (same shape as `GET /incidents/{id}`) | Paging of responders (when `pageResponders` is true), notifications, and automations |
| `PATCH /incidents/{id}` | `200`, the full incident | Notifications, chat posts, and automations the change triggers |
| `POST /incidents/{id}/archive` | `200`, `id` and `archivedAt` only | — |
| `PUT /incidents/{id}/services` | `200`, the incident's `serviceIds` | — |
| `POST /incidents/{id}/responders/add` · `…/remove` | `200`, `{"success": true}` — read the incident for the resulting responder list | Paging that adding a responder triggers |
| `POST /incidents/{id}/labels/add` · `…/remove` | `200`, the incident's `labels` | — |
| `POST /incidents/{id}/comments` · `PATCH` · `DELETE …/{commentId}` | `200`, the incident's visible `comments`, each with its `author` | Comment notifications |
| `POST /incidents/{id}/timeline` | `201`, the new `timelineEvent` | Timeline-update automations |
| `POST /incidents/{id}/custom-fields/add` · `…/remove` | `200`, the incident's `customFields` | — |
| `PATCH /alerts/{id}` · `POST /alerts/{id}/acknowledge` | `200`, `severity`, `canonicalSeverity`, `status` | Timeline entries, notifications, and automations the status change triggers |
| `POST /alerts/{id}/notes` · `PATCH` · `DELETE …/{noteId}` | `200`, the alert's `notes` | — |
| `POST /alerts/{id}/metadata/add` · `…/remove` | `200`, the alert's `metadata` | — |
| `POST /alerts/{id}/labels/add` · `…/remove` | `200`, the alert's `labels` | — |
| `POST /escalations` | `202`, empty | Paging through the policy |
| `POST /services` · `PATCH /services/{id}` | `201` / `200`, the service | — |
| `DELETE /services/{id}` | `204`, empty | — |
| `POST /services/{id}/responders/add` · `…/remove` | `200`, the service's `responders` | — |
| `POST /services/{id}/stakeholders/add` · `…/remove` | `200`, the service's `stakeholders` | — |
| `POST /teams` · `PATCH /teams/{teamShortId}` | `201` / `200`, the team | — |
| `DELETE /teams/{teamShortId}` | `200`, `{"success": true}` | — |
| `POST /teams/{teamShortId}/members` | `200`, `success`, `userId`, `role` | — |
| `DELETE /teams/{teamShortId}/members/{userId}` | `200`, `{"success": true}` | — |
| `POST /schedules` · `PATCH /schedules/{id}` | `201` / `200`, the schedule with its rotations | — |
| `PUT /schedules/{id}/teams` | `200`, the schedule with its rotations | — |
| `POST /schedules/{id}/rotations` · `PUT …/{rotationId}` | `201` / `200`, the rotation's `id` only — read the schedule for the saved rotation | — |
| `POST …/overrides` · `PUT …/overrides/{overrideId}` | `201` / `200`, the override | — |
| `DELETE` schedule · rotation · override | `204`, empty | — |
| `POST /escalation-policies` · `PATCH /escalation-policies/{id}` | `201` / `200`, the policy (see the OpenAPI spec) | — |
| `DELETE /escalation-policies/{id}` | `204`, empty | — |
| `POST /alert-sources` · `PATCH /alert-sources/{id}` | `201` / `200`, the source with its webhook URL and token | — |
| `DELETE /alert-sources/{id}` | `204`, empty | — |
| `POST /alert-routings` · `PATCH /alert-routings/{id}` | `201` / `200`, the routing with its rules in order | — |
| `DELETE /alert-routings/{id}` | `204`, empty | — |
| `POST /maintenance-windows` · `PATCH /maintenance-windows/{id}` | `201` / `200`, the window | Start and end announcements, when channels are set |
| `DELETE /maintenance-windows/{id}` | `204`, empty | — |

***

## Importing services and teams from another system

| **Topic** | **Detail** |
| - | - |
| Order | Create teams first, then services and schedules. A service references its owning team by numeric `teamId`, a schedule its owning teams by `teamIds`, and a schedule's participants by member `id`. |
| Keep the mapping | Set `externalProvider` (the source system, e.g. `backstage`) and `externalServiceId` / `externalTeamId` (the object's ID in that system) so each object stays linked to its source. |
| Re-running an import | An external ID can belong to only one active service or team per provider. Creating a second one returns `409`. Look the object up and update it with `PATCH` instead. Services can be looked up with `GET /services?externalProvider=…&externalServiceId=…`; for teams, match `externalTeamId` in the `GET /teams` response. |
| Volume | Write endpoints take one object per request. There is no bulk-write or dry-run mode. |

***

## Example requests

List the current on-call responders for every schedule:

```bash theme={null}
curl -H "Authorization: Bearer vlk_your_api_key" \
  https://api-prod.vibraniumlabs.ai/api/v1/schedules/on-call
```

Create a service owned by team `12`:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Checkout API", "teamId": 12, "externalProvider": "backstage", "externalServiceId": "component:default/checkout-api"}' \
  https://api-prod.vibraniumlabs.ai/api/v1/services
```

Retitle incident `101` and acknowledge it in one call:

```bash theme={null}
curl -X PATCH -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"title": "Checkout API latency elevated", "status": "acknowledged"}' \
  https://api-prod.vibraniumlabs.ai/api/v1/incidents/101
```

Put a team on incident `101` as a responder:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"responders": [{"type": "team", "teamId": 12}]}' \
  https://api-prod.vibraniumlabs.ai/api/v1/incidents/101/responders/add
```

Create an incident that pages team `12`, safe to retry with the same `Idempotency-Key`:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: checkout-latency-2026-10-29" \
  -d '{"title": "Checkout API latency elevated", "description": "p95 latency above 2s since 14:05 UTC", "severity": "SEV2", "responders": [{"type": "team", "teamId": 12}], "serviceIds": ["123"]}' \
  https://api-prod.vibraniumlabs.ai/api/v1/incidents
```

Page escalation policy `7` for alert `201`:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: alert-201-policy-7" \
  -d '{"alertId": 201, "escalationPolicyId": 7}' \
  https://api-prod.vibraniumlabs.ai/api/v1/escalations
```

List who is on call on schedule `55` for December, split into local days for a payroll report:

```bash theme={null}
curl -H "Authorization: Bearer vlk_your_api_key" \
  "https://api-prod.vibraniumlabs.ai/api/v1/schedules/timeline?scheduleIds=55&startAt=2026-12-01T00:00:00Z&endAt=2026-12-31T00:00:00Z&splitAtLocalMidnight=true"
```

List the phone and SMS pages sent for incident `101`:

```bash theme={null}
curl -H "Authorization: Bearer vlk_your_api_key" \
  "https://api-prod.vibraniumlabs.ai/api/v1/pages?incidentId=101&types=phone,sms"
```

Create a schedule for team `12` with one rotation covering 8am–8pm New York time:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Checkout API Primary", "timezone": "America/New_York", "teamIds": [12], "rotations": [{"name": "Business hours", "startAt": "2026-10-06", "rotationConfig": {"type": "daily", "payload": {"startTime": "08:00", "endTime": "20:00"}}, "participants": [345, 346]}]}' \
  https://api-prod.vibraniumlabs.ai/api/v1/schedules
```

List the schedules team `12` owns:

```bash theme={null}
curl -H "Authorization: Bearer vlk_your_api_key" \
  "https://api-prod.vibraniumlabs.ai/api/v1/schedules?teamId=12"
```

Share schedule `55` between teams `12` and `50`:

```bash theme={null}
curl -X PUT -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"teamIds": [12, 50]}' \
  https://api-prod.vibraniumlabs.ai/api/v1/schedules/55/teams
```

Cover member `347` on rotation `80` of schedule `55` for one day:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"userId": 347, "startAt": "2026-10-10T09:00:00-04:00", "endAt": "2026-10-10T17:00:00-04:00"}' \
  https://api-prod.vibraniumlabs.ai/api/v1/schedules/55/rotations/80/overrides
```

Open a two-hour maintenance window for team `12`, announced in one channel:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Database upgrade", "teamId": 12, "startAt": "2026-09-21T22:00:00Z", "endAt": "2026-09-22T00:00:00Z", "announcementChannels": ["C0123456789"]}' \
  https://api-prod.vibraniumlabs.ai/api/v1/maintenance-windows
```

Route team `12`'s Datadog alerts: SEV1 and worse page escalation policy `7`, everything else is recorded without paging. Create the routing first:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Payments paging", "teamId": 12, "rules": [{"name": "SEV1 and worse", "logicalOperator": "AND", "conditions": [{"type": "severity", "rule": {"operator": "greater_than_or_equal", "severity": "SEV1"}}], "action": {"type": "ESCALATE", "value": {"escalation": [{"type": "escalationPolicy", "value": 7}]}}}, {"name": "Everything else", "logicalOperator": "AND", "conditions": [], "action": {"type": "DO_NOTHING"}}]}' \
  https://api-prod.vibraniumlabs.ai/api/v1/alert-routings
```

Then create the source with the returned routing `id`, and put the `webhookUrl` from the response into Datadog:

```bash theme={null}
curl -X POST -H "Authorization: Bearer vlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Datadog - Payments", "provider": "datadog", "teamId": 12, "alertRoutingId": 31}' \
  https://api-prod.vibraniumlabs.ai/api/v1/alert-sources
```

***

## OpenAPI specification

The full OpenAPI spec is available at:

```txt theme={null}
GET https://api-prod.vibraniumlabs.ai/api/v1/openapi.yaml
```

No authentication is required to retrieve the spec. It lists every endpoint with its full request and response schemas, and it is generated from the API itself, so it is always current. Use it to generate API clients, including Go clients, or import it into tools such as Postman or Insomnia.

***

## Related

* [API Key Management](https://docs.vibraniumlabs.ai/api/api-key-management.md)
* [Maintenance Window](https://docs.vibraniumlabs.ai/alerts/maintenance-window.md)
* [MCP Server](https://docs.vibraniumlabs.ai/ai/mcp-server.md)
* [Heartbeats](https://docs.vibraniumlabs.ai/integrations/heartbeats.md)
* [Alert Source & Routing](https://docs.vibraniumlabs.ai/alerts/routing.md)


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