Skip to main content

Webhooks | Real-time Event Notifications

What are Webhooks?

Webhooks let you receive real-time HTTP notifications when something happens on your Uplup forms and quizzes. Instead of polling the API, Uplup sends a POST to your server the moment a response arrives, a quiz is scored or a payment goes through.

Uplup webhooks follow the same patterns used by Stripe, GitHub and Typeform: HTTPS delivery, HMAC-SHA256 signatures for verification and structured JSON payloads.

Uplup Webhooks management panel showing the Create Webhook button

Plan Requirements

Webhooks are available on the Pro plan and higher. The check runs against the workspace owner’s plan, both when you create a subscription and before every delivery, so if the workspace drops to Free the deliveries stop until it is upgraded again. A workspace can hold up to 25 webhooks.

PlanWebhooks
FreeNot available
ProUp to 25 per workspace, all events, per-form filtering, signing secret
BusinessUp to 25 per workspace, all events, per-form filtering, signing secret

Setting Up Webhooks

  1. Open your workspace and go to the Integrations page
  2. Open the Webhooks tab (under the Developer section)
  3. Click Create Webhook
  4. Enter your endpoint URL. It must use https and point at a public host; private, loopback and link-local addresses are refused
  5. Select the events you want. One webhook can subscribe to several, or to all of them with *
  6. Optionally filter to specific forms. Leave the filter empty to receive events from every form in the workspace
  7. Click Create Webhook

Important: the signing secret is shown once, right after creation. Copy it and store it securely, because you need it to verify signatures. You can regenerate it at any time from the webhook detail page, and doing so invalidates the previous secret straight away.

You can also create and manage webhooks through the REST API (POST /api/v1/webhooks with url, events and form_ids) or by asking an AI assistant connected through the MCP server. The endpoint reference is at uplup.com/api.

Event Types

Uplup sends five events. A subscription can list any of them, or * to receive all five. These are the only names the API accepts.

Create Webhook modal in Uplup showing the webhook events
EventWhen it fires
submission.createdA form or quiz response is received
quiz.completedA quiz attempt is scored
payment.succeededA payment taken through a payment field succeeds
payment.failedA payment attempt fails
payment.refundedA payment is refunded
*Every event above

Payload Format

Every delivery sends a JSON payload with this structure:

{
  "event": "submission.created",
  "form_id": "abc12345",
  "timestamp": 1762950000,
  "data": {
    "submission_id": "sub_789",
    "content_type": "form",
    "fields": [
      { "id": "2f1c...", "type": "shortAnswer", "label": "Name", "value": "Jane Smith" },
      { "id": "9b7e...", "type": "email", "label": "Email", "value": "user@example.com" }
    ],
    "metadata": { "country": "US", "region": "California" }
  }
}

timestamp is a Unix time in seconds and is the same value as the X-Webhook-Timestamp header, so it is part of what the V2 signature covers. The data object varies by event type. The webhook subscription id is delivered in the X-Webhook-Id header.

Request Headers

Each delivery includes these headers:

HeaderDescription
Content-Typeapplication/json
X-Webhook-IdThe id of the webhook subscription that fired
X-Webhook-EventThe event type (for example submission.created, or test for a test send)
X-Webhook-TimestampUnix time in seconds at the moment of sending
X-Webhook-Signature-V2HMAC-SHA256 hex digest of the string {timestamp}.{body}, signed with your webhook secret. This is the one to verify.
X-Uplup-SignatureThe original V1 signature: HMAC-SHA256 hex digest of the raw body alone. Still sent so existing receivers keep working.

Verifying Webhook Signatures

Always verify the signature before you act on a payload. Take the value of X-Webhook-Timestamp, a dot, then the raw request body exactly as received, compute HMAC-SHA256 over that string with your signing secret, and compare the hex result with X-Webhook-Signature-V2 using a constant-time comparison. Because the timestamp is signed, you can also reject deliveries whose timestamp is more than a few minutes old, which stops a captured request from being replayed later.

If you already verify X-Uplup-Signature, that still works: it is the HMAC-SHA256 of the body alone. New integrations should use the V2 header.

JavaScript (Node.js)

const crypto = require('crypto');

function verifyWebhook(rawBody, headers, secret) {
  const ts = headers['x-webhook-timestamp'];
  const signature = headers['x-webhook-signature-v2'];
  if (!ts || !signature) return false;
  // Reject deliveries more than five minutes old
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${ts}.${rawBody}`, 'utf8')
    .digest('hex');
  return expected.length === signature.length &&
    crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}

// Express.js example (keep the raw body for the signature)
app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {
  if (!verifyWebhook(req.body.toString('utf8'), req.headers, process.env.WEBHOOK_SECRET)) {
    return res.status(401).send('Invalid signature');
  }
  const event = JSON.parse(req.body);
  console.log('Received:', event.event);
  res.status(200).send('OK');
});

Python

import hmac
import hashlib
import time

def verify_webhook(body: bytes, headers, secret: str) -> bool:
    ts = headers.get('X-Webhook-Timestamp', '')
    signature = headers.get('X-Webhook-Signature-V2', '')
    if not ts or not signature:
        return False
    if abs(time.time() - int(ts)) > 300:
        return False
    expected = hmac.new(
        secret.encode('utf-8'),
        f"{ts}.".encode('utf-8') + body,
        hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(expected, signature)

# Flask example
@app.route('/webhook', methods=['POST'])
def webhook():
    if not verify_webhook(request.get_data(), request.headers, WEBHOOK_SECRET):
        return 'Invalid signature', 401
    event = request.get_json()
    print(f"Received: {event['event']}")
    return 'OK', 200

PHP

<?php
$body = file_get_contents('php://input');
$ts = $_SERVER['HTTP_X_WEBHOOK_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_X_WEBHOOK_SIGNATURE_V2'] ?? '';
$secret = getenv('WEBHOOK_SECRET');

if ($ts === '' || abs(time() - (int)$ts) > 300) {
    http_response_code(401);
    exit('Stale or missing timestamp');
}

$expected = hash_hmac('sha256', $ts . '.' . $body, $secret);

if (!hash_equals($expected, $signature)) {
    http_response_code(401);
    exit('Invalid signature');
}

$event = json_decode($body, true);
error_log('Received: ' . $event['event']);
http_response_code(200);
echo 'OK';

Delivery Policy

  • Timeout: 10 seconds. Your endpoint must respond within 10 seconds
  • Success: any 2xx HTTP status counts as a successful delivery
  • Public https only: the URL must use https and resolve to a public address. The check runs when you create or edit the webhook and again before every delivery, so a host that later starts resolving to a private address is skipped
  • No redirects: Uplup does not follow redirects. A 301 or 302 from your endpoint is logged as a failed delivery
  • No automatic retries: failed deliveries are logged but not retried. Use Send Test to check your endpoint again, or read the delivery log to see what happened
  • Delivery log: every attempt, successful or not, is recorded with the event type, status, HTTP response code and time, and you can read it on the webhook detail page or through GET /api/v1/webhooks/{webhook_id}/deliveries

Testing Webhooks

You can test your endpoint directly from the dashboard:

  1. Open the webhook in the Webhooks tab
  2. Click Send Test
  3. A signed payload with the event name test is sent to your URL
  4. The result shows the HTTP status your endpoint answered with and whether that counted as delivered. The body your endpoint returned is never shown

Test deliveries appear in the delivery log like real events.

Managing Webhooks

Pausing a Webhook

Toggle the switch next to any webhook in the list to pause or resume it. Paused webhooks do not receive any events.

Editing a Webhook

Open a webhook to change the URL, the subscribed events or the form filter, or to regenerate the signing secret. A new URL goes through the same https and public-host check as at creation.

Deleting a Webhook

Click Delete on the webhook detail page and confirm. Deleted webhooks stop receiving events immediately.

Filtering by Form

When creating or editing a webhook, you can filter to one or more forms in the workspace. The webhook then fires only for events on those forms. Leave the filter empty to receive events for every form in the workspace.

Security Best Practices

  • Always verify signatures. Never act on a payload until X-Webhook-Signature-V2 has checked out
  • Check the timestamp. Reject deliveries older than a few minutes so a captured request cannot be replayed
  • Store secrets securely. Keep your signing secret in environment variables, never in source code
  • Respond quickly. Return a 200 at once and handle the event in a background job, well inside the 10 second timeout
  • Handle duplicates. Use the submission_id in the payload together with X-Webhook-Id to make your handler idempotent

FAQ

Which plans support webhooks?

Pro and Business. The Free plan does not include webhooks, and the check is made against the workspace owner’s plan.

How many webhooks can I have?

Up to 25 per workspace. Deleting a webhook frees its slot.

Can a single webhook subscribe to multiple events?

Yes. Select any combination of the five events, or * for all of them. Through the API, a subscription created without an events list receives submission.created.

Are webhook deliveries retried?

No. Failed deliveries are logged with the HTTP status or the fact that no response came back, but they are not retried. Use Send Test to check your endpoint again, and watch the delivery log.

Can I use an http URL or a local tunnel?

The URL must use https and resolve to a public address. localhost, private network ranges and link-local addresses are refused. A tunnelling service that gives you a public https URL works fine for development.

What happens if my server is down?

The delivery fails and is logged with the status code or as unreachable. Uplup does not retry, so monitor the delivery log to catch gaps.

What is the request timeout?

Uplup waits up to 10 seconds for your endpoint to respond. Anything longer counts as a failed delivery.