Skip to main content
DeveloperIntegrations

Webhooks

Register a webhook endpoint to receive NimbusOS event notifications, verify the HMAC signature, and read delivery history and status.

6 min read
Published
1,150 words

NimbusOS can push event notifications to an HTTPS endpoint you control. You register the endpoint, pick which events to subscribe to, and NimbusOS sends an HMAC-signed POST request whenever one of those events happens. This covers setup, the event catalog, the request shape, signature verification, and what happens today when a delivery fails.

Setup

Open Settings -> Integrations -> Webhooks and click Add Webhook, or call the API directly:

POST /api/v1/developer/webhooks/
Content-Type: application/json
Authorization: Bearer <your session token or API key>

{
  "url": "https://your-service.example.com/hooks/nimbus",
  "description": "Data pipeline ingestion",
  "events": ["contact.created", "email.replied"]
}

The response includes a secret field. That is the signing secret for this endpoint, and it is only returned once, at creation (and again if you rotate it). Store it; NimbusOS does not show it again.

Requests to this endpoint need either a logged-in session or a NimbusOS API key, sent as X-API-Key: nimbus_... or Authorization: Bearer nimbus_.... API keys are managed separately under Settings -> Integrations -> API Keys.

Event catalog

The event catalog has 19 event types, grouped here the same way the Add Webhook form groups them:

Contacts: contact.created, contact.updated, contact.deleted

Email: email.sent, email.opened, email.clicked, email.replied, email.bounced, email.unsubscribed

Campaigns: campaign.started, campaign.paused, campaign.completed

Sequences: sequence.enrolled, sequence.completed

Scoring: lead.scored

Deals: deal.created, deal.updated, deal.won, deal.lost

Subscribe to the specific events you need in the events array; an endpoint only receives the events it is subscribed to.

The delivery request

Every delivery is an HTTP POST with a JSON body and these headers:

| Header | Value | | --- | --- | | Content-Type | application/json | | X-NimbusOS-Event | the event type, e.g. contact.created | | X-NimbusOS-Delivery-ID | a UUID identifying this delivery attempt | | X-NimbusOS-Signature | t=<unix timestamp>,v1=<hex HMAC-SHA256> | | User-Agent | NimbusOS-Webhooks/1.0 |

Verifying the signature

The signature is an HMAC-SHA256 over the string {timestamp}.{request_body}, keyed with your endpoint's signing secret, hex-encoded. To verify a delivery:

  1. Parse t and v1 out of the X-NimbusOS-Signature header.
  2. Recompute HMAC-SHA256 of f"{t}.{raw_request_body}" using your stored secret.
  3. Compare the result to v1 with a constant-time comparison. Reject the request if they do not match.
import hashlib
import hmac

def verify_signature(secret: str, timestamp: str, raw_body: bytes, signature_header: str) -> bool:
    parts = dict(p.split("=", 1) for p in signature_header.split(","))
    expected = hmac.new(
        secret.encode(), f"{timestamp}.{raw_body.decode()}".encode(), hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Testing an endpoint

POST /api/v1/developer/webhooks/{id}/test/ sends a single test delivery (event type test.ping by default, or pass {"event_type": "..."} to simulate a specific real event). The payload shape is:

{
  "event": "test.ping",
  "timestamp": "2026-10-19T12:00:00+00:00",
  "data": {
    "message": "This is a test webhook from NimbusOS CDP",
    "endpoint_id": "<your endpoint's UUID>"
  }
}

Delivery history

GET /api/v1/developer/webhooks/{id}/deliveries/ returns up to the 50 most recent delivery attempts for that endpoint, each with its event type, HTTP response code, response body (truncated to 2,000 characters), duration in milliseconds, and status (pending, success, failed, or retrying).

What happens when a delivery fails

As of today, NimbusOS attempts each event delivery once. A non-2xx response or a request error is recorded as a failure on both the delivery record and the endpoint (total_failures, consecutive_failures, last_failure_reason, last_response_code). There is no automatic retry yet: the delivery log reserves an attempt/max_attempts pair (default 5) and a next_retry_at field, and the endpoint reserves auto_disabled/auto_disabled_at fields, but nothing schedules a retry or flips auto_disabled to true today. If your endpoint is failing, check last_failure_reason and last_response_code on the endpoint, fix the issue on your side, and the next real event will deliver normally. You can disable an endpoint yourself at any time by setting is_active to false via PATCH.

Rotating the signing secret

POST /api/v1/developer/webhooks/{id}/rotate_secret/ generates a new secret and returns it once in the response. The old secret stops working immediately, so update your verification code before you rotate, or you will reject a delivery that arrives mid-rotation.

References

Related articles

Still stuck?

Our team answers every support ticket. If the answer is not in the docs, open a ticket and we will write the missing page.