Overview

The Webhook Subscriptions API lets an organization register HTTP or HTTPS endpoints that receive signed JSON payloads when subscribed events occur. Subscriptions are scoped to an organization, and every delivery includes an X-Allternit-Signature header computed with HMAC-SHA256 over the payload. For details on verifying delivery signatures and example consumers, see the general Webhooks page.

Base URL

For local development:

Authentication

All subscription routes require a valid bearer token and an active organization. See Authentication.

Subscription object

Endpoints

Events

Delivery makes up to 3 attempts per event. Connect errors, timeouts and 5xx responses are retried with a backoff of 5 s, then 20 s (base overridable with ALLTERNIT_WEBHOOK_RETRY_BASE_SECS); a 4xx response is not retried. Each attempt is recorded and visible through the deliveries endpoint. Only session.event_created and deployment.run_updated are documented with a payload here; check the deliveries list for the exact body of the others.

Create a subscription

Request body

Example request

Example response

List subscriptions

Returns subscriptions for the caller’s organization only.

Example response

Update a subscription

Partial update. At least one field must be provided.

Request body

Example request

Delete a subscription

Returns 204 No Content on success.

List deliveries

Optional status filter: pending, delivered, or failed (anything else returns 400). page defaults to 1; limit defaults to 50 and is clamped to 1-100. The response holds deliveries, total, page, and limit. A subscription outside your organization returns 404.

Delivery payload

Error codes