Skip to content

Suggested searches

    Search all documentation ↑↓ to navigate Enter to open Esc to close

    Webhook Delivery and Recovery

    Operate a production Probo webhook receiver, covering the JSON envelope, headers, idempotency, retries, delivery states, secret rotation, and failed-job recovery.

    Markdown

    Treat each Probo webhook as an at-least-once notification of a change that already happened. Acknowledge quickly, make your handler idempotent, and reconcile with the API when a delivery ends as FAILED.

    Every delivery body is a JSON object with a fixed root envelope. Resource-specific fields live under data (and optionally updatedFrom) — they are never promoted to the root.

    {
    "eventId": "whevt_01ABC123",
    "subscriptionId": "whsub_01DEF456",
    "organizationId": "org_01GHI789",
    "eventType": "document:updated",
    "createdAt": "2026-07-15T10:30:00Z",
    "data": {
    "id": "doc_01VWX234",
    "title": "Information Security Policy"
    },
    "updatedFrom": {
    "id": "doc_01VWX234",
    "title": "InfoSec Policy"
    }
    }
    Root fieldTypeAlways presentDescription
    eventIdstringYesUnique delivery ID. Never assigned to another delivery. Retries of this delivery reuse the same ID. Safe as a unique idempotency key
    subscriptionIdstringYesWebhook subscription that received the event
    organizationIdstringYesOrganization where the event occurred
    eventTypestringYesWire-format event name (e.g. document:updated, third-party:created)
    createdAtstringYesWhen the event was created (RFC 3339)
    dataobjectYesCurrent resource payload for the event. Shape depends on eventType — see Event types
    updatedFromobjectNoPresent only on *:updated events. Full snapshot of the same resource shape as data, taken before the update. Omitted for create, delete, archive, signature, and other non-update events

    Each request also carries metadata in headers. Some headers mirror root envelope fields so you can route or reject a delivery before parsing the body.

    HeaderMirrors body fieldDescription
    Content-Type—Always application/json
    Idempotency-KeyeventIdStable delivery ID. Identical on every retry of the same delivery
    X-Probo-Webhook-Delivery-IdeventIdSame value as Idempotency-Key and the body eventId
    X-Probo-Webhook-EventeventTypeWire-format event name (e.g. document:updated)
    X-Probo-Webhook-Organization-IdorganizationIdOrganization ID
    X-Probo-Webhook-Timestamp—Unix timestamp in seconds used when computing the signature. Regenerated on each attempt
    X-Probo-Webhook-Signature—Hex-encoded HMAC-SHA256 of {timestamp}:{rawBody}
    X-Probo-Webhook-Host—Hostname of the Probo instance that sent the delivery (for multi-region / self-hosted receivers)
    Use casePrefer
    Signature verificationHeaders (X-Probo-Webhook-Timestamp, X-Probo-Webhook-Signature) + raw body bytes
    Fast allow/deny before JSON parseHeaders (X-Probo-Webhook-Event, X-Probo-Webhook-Organization-Id, X-Probo-Webhook-Host)
    Business logic / diffsRoot envelope + data / updatedFrom
    IdempotencyeventId, Idempotency-Key, or X-Probo-Webhook-Delivery-Id (same value on every retry)

    subscriptionId and createdAt exist only in the body root — they are not duplicated as headers.

    1. Verify the signature using the headers and untouched request body. See Signature verification.
    2. Parse the JSON only after verification succeeds.
    3. Confirm organizationId and eventType are ones your endpoint expects.
    4. Atomically record eventId (or the Idempotency-Key / X-Probo-Webhook-Delivery-Id header — they are the same value) before producing side effects. Ignore an ID you have already processed.
    5. Enqueue the event and return a 2xx response.

    For update events, compare updatedFrom with data to identify the change. Resource IDs such as a document or user ID are nested under data; they are not root fields.

    A unique index on eventId is the right idempotency primitive. The same ID on a later POST is a retry, not a new event.

    • The URL must use HTTPS.
    • If a firewall or WAF restricts inbound traffic by source IP, allowlist the Probo Cloud egress address for the region that hosts the organization. Self-hosted Probo uses the outbound addresses of your own network.
    • The HTTP request times out after 15 seconds (PROBOD_WEBHOOK_REQUEST_TIMEOUT on self-hosted). Return 2xx before that, and do slow work after you acknowledge.
    • Any 2xx (200–299) within that window is success.
    • Timeouts, network errors, 408, 425, 429, and 5xx are transient and are retried.
    • Other 4xx responses fail immediately.

    The 15-second limit is the HTTP request timeout. It is separate from the 5-minute signature freshness check your receiver should apply to X-Probo-Webhook-Timestamp.

    Return 429 with Retry-After when you need Probo to back off. Do not return 5xx for an invalid signature — that looks like a transient failure and will be retried.

    Probo claims pending deliveries about every 5 seconds and can send several at once (default concurrency is 5).

    Each delivery has a unique eventId. Retries reuse that ID and the same JSON body. A later delivery never reuses an earlier ID. Each attempt signs a fresh X-Probo-Webhook-Timestamp, so a delayed retry still passes a 5-minute freshness check.

    Transient failures retry automatically, up to 12 attempts:

    • Network errors and timeouts
    • 408, 425, 429, and 5xx responses

    Retry delay uses exponential backoff with full jitter: the delay doubles from a 30-second base and caps at 4 hours, then Probo waits a random duration up to that delay. If the endpoint returns Retry-After on a retryable response, Probo honors it up to the same 4-hour cap. Retry-After may be a delay in seconds or an HTTP-date.

    StatusMeaning
    PENDINGThe job is new or waiting to retry. Attempts remain.
    SUCCEEDEDThe endpoint returned 2xx within the request timeout.
    FAILEDA non-retryable error occurred, or the 12th attempt did not succeed. The job is not re-queued.

    Inspect status under Settings > Webhooks or with:

    Terminal window
    prb webhook event list <webhook-subscription-id>

    Deliveries are claimed oldest-first, but several can be in flight at once, and retries interleave with newer events. Do not assume that user:updated for one person arrives after user:created, or that two updates arrive in createdAt order. Apply the payload you received, or fetch current state from the GraphQL API when order matters.

    Outbound bodies are JSON snapshots of the root envelope plus data (and updatedFrom on update events). They include resource metadata, not file binaries or full document bodies. Current event types are far smaller than a typical 1 MB receiver limit.

    Probo stores up to 64 KB of your HTTP response for troubleshooting. That cap applies to the response Probo records, not to the request it sends. Avoid returning secrets or sensitive records in the response body.

    There is no dashboard button, API mutation, or support-triggered resend. Automatic retries are the only replay, and they keep the original eventId. A FAILED delivery is not re-queued.

    Recover by:

    1. Alerting when delivery history shows FAILED.
    2. Reconciling local state with the Probo API, CLI, or MCP for the affected resource type.
    3. Waiting for a later event after you fix the endpoint, if a subsequent change will overwrite the missed one.

    Probo generates a signing secret prefixed with whsec_ when you create a subscription. That secret does not change if you later update the endpoint URL or selected events. There is no in-place rotation and no overlap window of two valid secrets on one subscription.

    To rotate, create a new subscription (new ID and new secret), point the receiver at the new secret, then delete the old subscription. The old secret stops being used as soon as that subscription is deleted.

    Store the secret in a secret manager, scope it to the receiving service, and never log it or include it in client-side code. Give each subscription its own URL path so you can select the secret before verification. See Signature verification.

    InterfaceUse it to
    Settings > WebhooksCreate a subscription, copy the signing secret, and review delivery history
    prb webhookCreate, update, list, view, and delete subscriptions; list delivery events
    MCP webhook toolsThe same operations from an MCP client (createWebhookSubscription, and related tools)
    n8n Probo TriggerCreate and delete a subscription as part of the workflow lifecycle
    Console GraphQLcreateWebhookSubscription and related mutations at /api/console/v1/graphql

    Programmatic create, update, and delete require the v1:webhook OAuth scope and permission to manage subscriptions in the organization.

    Self-hosted operators can change sender behavior with PROBOD_WEBHOOK_* (or the probod.notifications.webhook.* YAML keys):

    VariableDefaultReceiver-visible effect
    PROBOD_WEBHOOK_SENDER_INTERVAL5 secondsHow often the sender claims pending deliveries
    PROBOD_WEBHOOK_REQUEST_TIMEOUT15 secondsHow long your endpoint has to return 2xx
    PROBOD_WEBHOOK_RETRY_BASE30 secondsBase of the exponential retry delay
    PROBOD_WEBHOOK_RETRY_MAX14400 seconds (4 hours)Cap for retry delay and Retry-After
    PROBOD_WEBHOOK_MAX_CONCURRENCY5How many deliveries can be in flight
    PROBOD_WEBHOOK_STALE_AFTER300 secondsHow long a stuck send lease is held before the sender recovers it. Not the receiver signature window
    PROBOD_WEBHOOK_CACHE_TTL86400 secondsHow long decrypted signing secrets are cached on the sender

    The 12-attempt limit is not configurable through these variables. See the environment variable reference and configuration reference.

    • Preserve the raw body until signature verification is complete.
    • Accept requests only from expected organizations and event types.
    • Use eventId (or Idempotency-Key) as a unique idempotency key.
    • Queue work before sending the response.
    • Return 429 with Retry-After when you need Probo to back off.
    • Do not expect a resend button. Alert on FAILED deliveries and reconcile missed changes with the API.
    • Ignore unknown JSON fields so additive payload changes do not break your receiver.