Integrations & API

Webhooks

Have Sponsy call your own URL when slots, customers, and deals change, with signed requests, automatic retries, and a delivery log.

Webhooks let Sponsy call a URL of yours when something changes in your workspace. Add an endpoint, choose the events it should receive, and Sponsy sends a signed POST request with a JSON body each time one of those events happens.

Use webhooks when your own system needs to react to Sponsy, for example to update a data warehouse when a slot changes, or to notify a channel when a deal moves stage. If you would rather not run an endpoint, Zapier covers the same events without code. To read or change Sponsy data from your system, use the API.

Webhooks are in beta and available on every plan. Only workspace owners and administrators can manage them, because the requests include prices.

Add an endpoint

  1. Go to Settings → Integrations and choose Manage on the Webhooks card.
  2. Choose Add endpoint.
  3. Enter the Endpoint URL. It must start with https:// and be reachable from the public internet.
  4. Add an optional description, so teammates know what the endpoint is for.
  5. Tick the Events it should receive. Select a row or column heading to tick the whole row or column.
  6. Choose the Publications. Leave it on All to include publications you add later.
  7. Choose Add endpoint.

The Add endpoint window with a URL, a description, the events table and the publications field

Sponsy then shows the endpoint's signing secret. Copy it and store it somewhere safe: it is shown only once. You use it to check that a request really came from Sponsy.

A workspace can have up to 20 endpoints.

Events

EventSent when
slot.createdA slot is booked in a publication
slot.updatedA slot changes, for example its status, date, or customer
slot.deletedA slot is removed and its date is free again
customer.createdA customer is added
customer.updatedA customer or one of its contacts changes
customer.deletedA customer is removed
deal.createdA deal is created
deal.updatedA deal changes, including a change of stage
deal.deletedA deal is removed
deal.stage_changedA deal moves to another stage

The publication choice applies to slot events. Customer and deal events are not tied to a publication, so they are sent to every endpoint that subscribes to them.

A deal that changes stage produces two events, deal.updated and deal.stage_changed. Subscribe to the one you need.

What Sponsy sends

Each request is a POST with a JSON body:

{
  "id": "evt_3f2a9c0d1b7e4a5f8c6d2e1f0a9b8c7d",
  "type": "slot.updated",
  "createdAt": "2026-12-01T10:00:00.000Z",
  "workspaceId": "1b6f0c2e-8a47-4d19-9e53-c0d2a7f4b681",
  "publicationId": "9f1c2b3a-4d5e-6f70-8192-a3b4c5d6e7f8",
  "data": {
    "object": {
      "id": "7c0a5b1e-2d3f-4a6b-8c9d-0e1f2a3b4c5d",
      "date": "2026-12-10",
      "status": { "id": "…", "name": "Ready to be sent" },
      "publication": { "id": "…", "name": "Northwind Daily" }
    },
    "changes": ["status"],
    "previous": {
      "status": { "id": "…", "name": "Reserved" }
    }
  }
}
  • data.object is the slot, customer, or deal after the change. It has the same fields as the Zapier payloads, including prices.
  • data.changes lists the fields an update changed.
  • data.previous holds the old values of those fields, so you can tell what a record moved away from.
  • publicationId is null for customer and deal events.

Each request also carries these headers:

HeaderValue
Sponsy-SignatureTimestamp and signature, used to verify the request
Sponsy-Event-IdThe event's id. It stays the same when a delivery is retried or resent
Sponsy-Event-TypeThe event's type
Sponsy-Delivery-IdThe id of this delivery in the delivery log

Respond with any 2xx status within 10 seconds to confirm you received the event. Do slow work after you respond.

Sponsy may send the same event more than once, and events can arrive out of order. Use Sponsy-Event-Id to ignore an event you have already handled, and createdAt to order them.

Verify the signature

Anyone who learns your endpoint URL could send it a request. The signature lets you confirm that a request came from Sponsy and was not changed on the way.

The Sponsy-Signature header looks like this:

t=1796130000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd

t is the time the request was signed, in seconds. v1 is an HMAC-SHA256 of the timestamp, a dot, and the raw request body, using your signing secret.

To verify a request:

  1. Read the raw request body, before any JSON parsing.
  2. Compute the HMAC-SHA256 of <t>.<raw body> with your signing secret.
  3. Compare it with each v1 value in the header, using a constant-time comparison.
  4. Reject the request if nothing matches, or if t is more than five minutes old.

Node.js:

import crypto from "node:crypto";

export function isFromSponsy(rawBody, signatureHeader, secret) {
  const parts = signatureHeader.split(",");
  const timestamp = parts.find((part) => part.startsWith("t="))?.slice(2);
  if (!timestamp || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) {
    return false;
  }

  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody}`)
    .digest("hex");

  return parts
    .filter((part) => part.startsWith("v1="))
    .map((part) => part.slice(3))
    .some(
      (signature) =>
        signature.length === expected.length &&
        crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))
    );
}

Python:

import hashlib
import hmac
import time


def is_from_sponsy(raw_body: bytes, signature_header: str, secret: str) -> bool:
    parts = signature_header.split(",")
    timestamp = next((p[2:] for p in parts if p.startswith("t=")), "")
    if not timestamp.isdigit() or abs(time.time() - int(timestamp)) > 300:
        return False

    expected = hmac.new(
        secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256
    ).hexdigest()

    return any(
        hmac.compare_digest(p[3:], expected) for p in parts if p.startswith("v1=")
    )

Retries and disabled endpoints

If your endpoint does not answer with a 2xx status within 10 seconds, Sponsy tries again: 5, 10, 20, and 40 minutes after the previous attempt. That is five attempts over about 75 minutes. Redirects are not followed and count as a failed attempt.

When an event has failed all five attempts, Sponsy disables the endpoint and emails the person who created it and the workspace owners and administrators. An endpoint that answers 410 Gone is disabled straight away.

A disabled endpoint receives no events. Once it is responding again, open it and choose Enable endpoint. To send the deliveries that failed before it was disabled, open the delivery log and choose Resend on each one.

Events that happen while an endpoint is disabled or paused are not recorded and cannot be resent. If your system must not miss a change, read the current state from the API after you enable the endpoint again.

You can also pause an endpoint yourself with the Send events switch. Sponsy does not email anyone about a pause.

An endpoint's Overview tab with the Send events switch, its URL and events, the signing secret and the option to delete it

Delivery log

Open an endpoint and choose Delivery Log to see every request Sponsy sent to it in the last 30 days, with its status:

  • Completed: your endpoint answered with a 2xx status.
  • Pending: waiting to be sent, or waiting for the next attempt.
  • Failed: all attempts failed.
  • Skipped: not sent, because the endpoint was paused, disabled, or deleted first.

The Delivery Log tab listing recent deliveries with their event, status, attempts and a Resend button

Select a delivery to see the request body, your endpoint's response, and each attempt. Resend sends the same event again as a single attempt.

Send a test event

Open an endpoint and choose Send test event. Sponsy sends a webhook.test event and shows the result in the delivery log. A test event is sent once, works on a paused or disabled endpoint, and never disables an endpoint, so it is a safe way to check your setup.

Roll the signing secret

If you lose the signing secret, or think someone else has it, open the endpoint and choose Roll secret. Sponsy shows a new secret once.

For 24 hours, each request carries two signatures: one made with the new secret and one with the previous secret. Your endpoint keeps accepting requests while you switch it to the new secret.

Search Sponsy documentation

Search docs pages and in-page sections