Omnist API
API Reference

Webhooks

Configure webhook delivery and inspect delivery records.

Webhook endpoints let a workspace receive monitor events at an HTTPS target and inspect recent delivery attempts.

GET /v1/webhooks

Returns the workspace webhook configuration.

{
  "webhook": {
    "configured": true,
    "url": "https://example.com/omnist/webhooks",
    "enabled": true,
    "signing_secret": {
      "version": 2,
      "preview": "whsec_...abcd"
    }
  }
}

PUT /v1/webhooks

Creates or updates the webhook target.

Request body

FieldTypeRequiredNotes
urlstringRequired unless a target already existsHTTPS target URL.
enabledbooleanNoDefaults to the existing value, or true for a new target.
{
  "url": "https://example.com/omnist/webhooks",
  "enabled": true
}

The response includes new_signing_secret when a secret is first created.

POST /v1/webhooks/rotate-signing-secret

Rotates the signing secret and returns the new secret once. Store it immediately; later reads only include a preview.

POST /v1/webhooks/test

Queues and immediately attempts a test delivery to the configured target.

{
  "delivery": {
    "id": "delivery_...",
    "event_id": "event_...",
    "event_type": "webhook.test",
    "delivery_status": "succeeded",
    "attempt_count": 1,
    "last_http_status": 200
  }
}

GET /v1/webhooks/test

Fetches a test delivery by id, or the most recent test deliveries when no ID is supplied.

Query parameters:

ParameterTypeNotes
idnumberOptional test delivery ID.

GET /v1/webhooks/events

Lists recent delivery attempt records.

Query parameters:

ParameterTypeNotes
pagenumberDefaults to 1; page size is 50.
startISO datetimeStart of inspection window.
endISO datetimeEnd of inspection window.

GET /v1/webhooks/stats

Returns delivery-attempt counts grouped by time bucket and status.

{
  "bucket_minutes": 60,
  "start_at": "2026-05-07T00:00:00Z",
  "end_at": "2026-05-08T00:00:00Z",
  "stats": [
    {
      "bucket_start": "2026-05-07T14:00:00Z",
      "delivery_status": "succeeded",
      "attempt_count": 12
    }
  ]
}

On this page