Skip to main content

Webhooks and signature verification

Frihet webhooks let you receive real-time HTTP notifications when events occur in your account. Instead of polling the API, configure an endpoint URL and Frihet sends a POST request with event data the moment it happens.

Quick walkthrough: from your first API read to a verified webhook​

If you already completed your first authenticated read with GET /v1/clients?limit=5 in Developers: getting started, this walkthrough validates the next integration milestone: checking permissions and plan limits, cryptographically verifying the X-Frihet-Signature (HMAC-SHA256) header over the raw request body (rawBody) before opening external traffic, and confirming delivery from the dashboard or via the REST API.

1. Prerequisites, permissions, and plan gate​

Before registering an endpoint via POST /v1/webhooks or from Integrations → Webhooks, confirm these four contract requirements:

RequirementProduction contractWhere to verify
Prior API readReceived 200 OK from GET https://api.frihet.io/v1/clients?limit=5 with your X-API-Key: fri_... headerDevelopers: getting started
API key permissionsCurrent API keys grant full access to account resources (read and write across /v1/*). There are no per-resource granular scopes in v1API Keys (Integrations → API Keys)
Required plan & quotaWebhooks require the Premium (or Enterprise) plan. Account limits: maximum 20 webhooks registered and 100 KB per delivered payloadSettings → Plan & Billing and Plans & billing
URL & secret fieldPublic https:// url (http://localhost or 127.0.0.1 allowed only in local development; RFC 1918 private IPs blocked against SSRF). The secret field (max 256 chars) is write-only on POST /v1/webhooks and PATCH /v1/webhooks/:id: read operations return hasSecret: true without exposing plaintextWebhooks configuration

2. Deterministic walkthrough: verify HMAC-SHA256 signature locally​

The most common webhook integration failure is computing the HMAC over a JSON object that was already parsed and re-serialized by a web framework, which alters whitespace or key ordering and invalidates the signature. The complete signing, constant-time verification, and X-Frihet-Delivery-Id deduplication flow follows this sequence:

Verification flow: Webhook event → HMAC signature → Validation → Rejection or acceptance

X-Frihet-Signature (HMAC-SHA256) + X-Frihet-Delivery-Id
Event emission
invoice.paidPOST HTTPS

Frihet serializes the event payload (max 100 KB) and assigns a unique delivery identifier X-Frihet-Delivery-Id.

rawBody signing
HMAC-SHA256X-Frihet-Signature

Using the endpoint secret, Frihet computes sha256=<hex> over the exact raw UTF-8 HTTP request body bytes.

Receiver validation
timingSafeEqualDeduplication

Your server reads rawBody before JSON parsing, recomputes HMAC-SHA256, and checks whether X-Frihet-Delivery-Id was already seen.

HTTP decision (< 30s)
401 Reject200 Accept

If the signature fails, return 401; if valid, return 200 OK immediately and run business logic exactly once.

Rejection (401 Unauthorized) — Invalid signature or re-serialized JSON

The computed digest does not match X-Frihet-Signature. The receiver drops the payload without mutating state; Frihet logs the failure and schedules up to 3 exponential-backoff retries.

Acceptance (200 OK) — Valid signature + idempotency guard

The signature matches in constant time. If X-Frihet-Delivery-Id is new, record it and process the event; if already seen from a network retry, return 200 OK without duplicating side effects.

View textual specification and Mermaid sequence source
sequenceDiagram
  participant F as Frihet ERP
  participant R as HTTPS Receiver (rawBody)
  F->>R: POST payload + X-Frihet-Signature (sha256=...) + X-Frihet-Delivery-Id
  R->>R: Compute HMAC-SHA256(secret, rawBody) & compare via timingSafeEqual
  alt Invalid signature or tampered body
    R-->>F: 401 Unauthorized (Reject delivery, triggers exponential backoff retry)
  else Valid signature & X-Frihet-Delivery-Id already processed
    R-->>F: Idempotent 200 OK (Ignore duplicate without re-running business logic)
  else Valid signature & fresh X-Frihet-Delivery-Id
    R-->>F: 200 OK (< 30s) + record X-Frihet-Delivery-Id + enqueue job
  end

You can interactively test all three scenarios (valid signature 200 OK, tampered body 401 Unauthorized, and repeated delivery ID 200 OK idempotent) directly in your browser using the deterministic local simulator below, or run the Node.js one-liner in your terminal:

Local webhook signature & idempotency verification lab

100% in-browser · Web Crypto HMAC-SHA256 · Zero network

Test the three scenarios on the synthetic Estudio Norte S.L. fixture (F-2026-0001) or edit rawBody to recompute the HMAC-SHA256 digest via TextEncoder + Web Crypto. The in-memory list simulates X-Frihet-Delivery-Id deduplication (it does not replace durable database persistence or concurrency control).

HTTP 200 OK — Valid signature & new delivery acceptedIn-memory IDs (local deduplication simulation): [del_01J8X9A1B0]

The HMAC-SHA256 digest computed via Web Crypto over the UTF-8 rawBody bytes matches X-Frihet-Signature and X-Frihet-Delivery-Id is not in the in-memory list.

  • HMAC-SHA256 computed via Web Crypto over rawBody (expected):sha256=970173bb5ff9661383456c2737b482c7f654992ec27204d88fa87bf9fc53f10a
  • X-Frihet-Signature header verified via crypto.subtle.verify (in your Node server use crypto.timingSafeEqual):sha256=970173bb5ff9661383456c2737b482c7f654992ec27204d88fa87bf9fc53f10a
  • Simulated receiver action:Record del_01J8X9N8Q4 and process payment for F-2026-0001.

Before exposing your HTTPS receiver to internet traffic, also run this deterministic local test with Node.js (built-in crypto, zero external dependencies). It uses the synthetic documentation fixture (Estudio Norte S.L., tax ID B12345674, facturacion@example.com, invoice F-2026-0001) and the sample secret whsec_test_ejemplo_doc_no_usar_en_produccion:

node -e '
const crypto = require("crypto");
const secret = "whsec_test_ejemplo_doc_no_usar_en_produccion";
const rawBody = "{\"event\":\"invoice.paid\",\"timestamp\":\"2026-10-15T10:00:00.000Z\",\"data\":{\"id\":\"inv_01J8X9N4P2\",\"invoiceNumber\":\"F-2026-0001\",\"clientId\":\"cli_01J8X9M2K4\",\"clientName\":\"Estudio Norte S.L.\",\"clientTaxId\":\"B12345674\",\"clientEmail\":\"facturacion@example.com\",\"subtotal\":1500,\"taxAmount\":315,\"total\":1815,\"status\":\"paid\"}}";
const headerSig = "sha256=970173bb5ff9661383456c2737b482c7f654992ec27204d88fa87bf9fc53f10a";

const expectedHex = crypto.createHmac("sha256", secret).update(rawBody, "utf8").digest("hex");
const receivedHex = headerSig.replace(/^sha256=/, "");
const isValid =
expectedHex.length === receivedHex.length &&
crypto.timingSafeEqual(Buffer.from(expectedHex, "hex"), Buffer.from(receivedHex, "hex"));

console.log(JSON.stringify({ isValid, event: "invoice.paid", signaturePrefix: headerSig.slice(0, 23) + "..." }));
'
Synthetic data and verification boundary
  • Why B12345674 and example.com: B12345674 passes the Spanish check-digit algorithm (4), but does not prove existence, non-existence, or ownership in the AEAT tax census; and example.com is an IANA-reserved documentation domain (RFC 6761), not a controlled QA mailbox or a delivery-blocking guarantee. Do not use these values to issue or send live invoices.
  • Body shape: the fixture body only exercises the signature. The real body shape of each event is in Payload structure.
  • What this command proves vs. what requires live networking: this command deterministically verifies your signature logic (createHmac over rawBody + constant-time timingSafeEqual). To verify network reachability, TLS certificates, and firewall rules from Google Cloud (us-central1), register your URL in Integrations → Webhooks and click Send test (which delivers a body with event: "webhook.test" and the header X-Frihet-Event: invoice.created).

3. Expected result: local check and test delivery​

  1. In your local terminal (command above): you get this exact output with exit code 0:
{"isValid":true,"event":"invoice.paid","signaturePrefix":"sha256=970173bb5ff96613..."}
  1. When registering the webhook (POST /v1/webhooks): the API returns 201 Created with the webhook identifier (id), active: true, hasSecret: true, and the subscribed event types (from the catalog of 39 subscribable event types).
  2. When clicking Send test in the dashboard (Integrations → Webhooks): your server receives a POST request with the headers X-Frihet-Event: invoice.created (the header does NOT carry webhook.test; the test is identified only by the body, event: "webhook.test"), X-Frihet-Delivery-Id, X-Frihet-Timestamp, and X-Frihet-Signature. When your endpoint responds 200 OK within 30 seconds, the Deliveries tab logs the attempt as delivered.

You can register the endpoint and trigger the test delivery from any of the three equivalent channels:

  1. Go to Integrations → Webhooks and click Create webhook.
  2. Enter your HTTPS URL (https://...), select invoice.paid, and set your verification secret.
  3. Open the newly created webhook, click Send test (body webhook.test, header invoice.created), and verify under the Deliveries tab that the attempt is logged as delivered (200 OK).

4. Webhook diagnosis and recovery​

If webhook registration or delivery verification fails, apply this direct recovery table:

Symptom or status codeVerifiable root causeRecovery action
isValid: false or 401 on your receiverYour server ran JSON.parse before computing the HMAC or used a different secret than the one configuredPass raw bytes (express.raw({ type: 'application/json' }) in Express or request.data in Flask) into createHmac. If you lost the secret, rotate it via PATCH /v1/webhooks/:id with a new secret field
403 Forbidden when calling POST /v1/webhooksThe account is not on the Premium plan or has reached the cap of 20 webhooksCheck your subscription in Settings → Plan & Billing, or list current registrations with GET /v1/webhooks and delete unused ones via DELETE /v1/webhooks/:id
400 Bad Request when saving urlThe URL uses http:// outside localhost/127.0.0.1, resolves to a private IP (SSRF protection), or includes event names outside the 39 subscribable event typesUse a public domain with a valid TLS certificate (https://) and verify exact event names in Event types
Status paused (pausedReason: "consecutive_failures")The circuit breaker paused the webhook after 3 consecutive failed deliveries (each with up to 3 attempts and a 30s timeout)Fix the 5xx/timeout error on your server, confirm it responds 2xx in under 30s, and re-enable it from Integrations → Webhooks or by sending PATCH /v1/webhooks/:id with {"active": true}

5. Next action​


Setup​

You can manage webhooks from the Frihet dashboard (Integrations → Webhooks) or programmatically through the REST API.

From the dashboard​

  1. Go to Integrations → Webhooks in your Frihet account
  2. Click Create webhook
  3. Enter a descriptive name, the destination URL, and select the events you want to receive
  4. Optionally, define a secret for HMAC verification (recommended)
  5. Save the webhook

Webhook REST API​

Manage webhooks programmatically with the full CRUD endpoints.

List webhooks​

GET /v1/webhooks
curl https://api.frihet.io/v1/webhooks \
-H "X-API-Key: fri_your-key-here"

Response (200):

{
"data": [
{
"id": "wh_abc123",
"url": "https://my-app.com/hook",
"events": ["invoice.paid", "invoice.created"],
"active": true,
"createdAt": "2026-02-01T10:00:00.000Z"
}
],
"total": 1,
"limit": 50,
"offset": 0
}

Get webhook​

GET /v1/webhooks/:id
curl https://api.frihet.io/v1/webhooks/wh_abc123 \
-H "X-API-Key: fri_your-key-here"

Create webhook​

POST /v1/webhooks
FieldTypeRequiredDescription
urlstringYesDestination URL (HTTPS required in production)
eventsstring[]YesList of event types to receive
secretstringNoSecret for HMAC-SHA256 signing (recommended)
activebooleanNoWebhook status (default: true)
curl -X POST https://api.frihet.io/v1/webhooks \
-H "X-API-Key: fri_your-key-here" \
-H "Content-Type: application/json" \
-d '{
"url": "https://my-app.com/hook",
"events": ["invoice.paid", "expense.created"],
"secret": "my-hmac-secret"
}'

Response (201):

{
"id": "wh_def456",
"url": "https://my-app.com/hook",
"events": ["invoice.paid", "expense.created"],
"active": true,
"createdAt": "2026-03-18T10:00:00.000Z"
}

Update webhook​

PATCH /v1/webhooks/:id

You only need to send the fields you want to modify.

curl -X PATCH https://api.frihet.io/v1/webhooks/wh_def456 \
-H "X-API-Key: fri_your-key-here" \
-H "Content-Type: application/json" \
-d '{
"events": ["invoice.paid", "invoice.created", "expense.created"],
"active": false
}'

Response (200): Updated webhook object.

Delete webhook​

DELETE /v1/webhooks/:id
curl -X DELETE https://api.frihet.io/v1/webhooks/wh_def456 \
-H "X-API-Key: fri_your-key-here"

Response: 204 No Content


URL requirements:

  • Must use HTTPS (HTTP is allowed only for localhost and 127.0.0.1 during development)
  • Private IPs (10.x, 172.16-31.x, 192.168.x) are not allowed to prevent SSRF attacks
  • Must respond with a 2xx status code within 30 seconds

Limits:

  • Maximum 20 webhooks per account
  • Maximum payload size of 100 KB per delivery

Event types​

You can subscribe a webhook to 39 event types, grouped by resource. Any other name is rejected on save.

The Status column shows whether the production version emits the event:

  • Active (15 events): Frihet emits it and delivers it to subscribed webhooks.
  • No emitter (24 events): the name can be subscribed to, but it produces no deliveries today. You can subscribe ahead of time; the body shape of these events is not fixed yet.

Invoices (9 events)​

EventStatusWhen it is emittedBody keys
invoice.createdActiveAn invoice is created. It is emitted after the fiscal number is assigned. More than one delivery can arrive for the same invoice: deduplicate on the id of invoice.invoice
invoice.updatedActiveAn existing invoice is modified. before holds the document as it was before the change.invoice, before
invoice.paidActiveThe invoice status changes to paid.invoice
invoice.overdueActiveThe invoice status changes to overdue.invoice
invoice.generatedNo emitterPlanned: invoice PDF generated.To be defined
invoice.one_off_createdNo emitterPlanned: one-off invoice created outside a recurring schedule.To be defined
invoice.voidedNo emitterPlanned: invoice voided after issuance.To be defined
invoice.payment_status_updatedNo emitterPlanned: change in the invoice payment status.To be defined
invoice.payment_failureNo emitterPlanned: the payment provider failed to charge the invoice.To be defined

Payments (3 events)​

EventStatusWhen it is emittedBody keys
payment.succeededActiveThe payment of an invoice completes through Stripe. payment includes paymentIntentId, amount, currency (uppercase) and invoiceId.payment
payment.requires_actionNo emitterPlanned: the payment needs an extra action from the customer, for example 3-D Secure.To be defined
payment_receipt.createdNo emitterPlanned: payment receipt generated.To be defined

Credit notes (2 events)​

EventStatusWhen it is emittedBody keys
credit_note.createdNo emitterPlanned: credit note created against an issued invoice.To be defined
credit_note.generatedNo emitterPlanned: credit note PDF generated.To be defined

Quotes (5 events)​

EventStatusWhen it is emittedBody keys
quote.createdActiveA quote is created.quote
quote.updatedActiveAn existing quote is modified. before holds the document as it was before the change.quote, before
quote.acceptedActiveThe quote status changes to accepted.quote
quote.rejectedActiveThe quote status changes to rejected.quote
quote.expiredNo emitterPlanned: quote past its due date without a response.To be defined

Expenses (2 events)​

EventStatusWhen it is emittedBody keys
expense.createdActiveAn expense is logged. More than one delivery can arrive for the same expense: deduplicate on the id of expense.expense
expense.updatedActiveAn existing expense is modified.expense

Clients (3 events)​

EventStatusWhen it is emittedBody keys
client.createdActiveA client is created.client
client.updatedActiveA client is modified.client
client.vies_checkNo emitterPlanned: VIES validation of a client VAT ID performed.To be defined

Products (2 events)​

EventStatusWhen it is emittedBody keys
product.createdActiveA product or service is created.product
product.updatedActiveAn existing product or service is modified.product

Dunning (overdue collection) (1 event)​

EventStatusWhen it is emittedBody keys
dunning.finishedNo emitterPlanned: a dunning campaign exhausts all its retries.To be defined

Stay (reservations, properties, guests, cleaning, settlements and channels) (12 events)​

EventStatusWhen it is emittedBody keys
reservation.createdNo emitterPlanned: a reservation is created.reservation
reservation.updatedNo emitterPlanned: a reservation is modified.reservation, before
reservation.cancelledNo emitterPlanned: the reservation status changes to Cancelled.reservation
reservation.checked_inNo emitterPlanned: the reservation status changes to Checked In.reservation
reservation.checked_outNo emitterPlanned: the reservation status changes to Checked Out.reservation
property.createdNo emitterPlanned: a property is created.property
property.updatedNo emitterPlanned: a property is modified.property
guest.compliance_completedNo emitterPlanned: the guest completes document verification and signature.compliance
cleaning_task.createdNo emitterPlanned: a cleaning task is created.cleaning_task
cleaning_task.completedNo emitterPlanned: the task status changes to Completed.cleaning_task
settlement.generatedNo emitterPlanned: a settlement is generated.settlement
channel.sync_completedNo emitterPlanned: a channel sync completes.channel

Payload structure​

Each delivery of an active event is a POST request with a JSON body. The event type is not in the body: it travels in the X-Frihet-Event header.

The body is an object whose main key is the resource name (invoice, quote, expense, client, product or payment). Its value is the document as stored in Frihet, including its id. Timestamps arrive as ISO 8601 strings. invoice.updated and quote.updated add before, with the document as it was before the change.

invoice.paid example (only some fields are shown; the document includes the rest of the invoice fields):

{
"invoice": {
"id": "inv_abc123",
"status": "paid",
"total": 750
}
}

payment.succeeded example:

{
"payment": {
"paymentIntentId": "pi_3Nabc123",
"amount": 750,
"currency": "EUR",
"invoiceId": "inv_abc123"
}
}

The test delivery is the exception: its body carries event: "webhook.test" (the X-Frihet-Event header carries invoice.created) and uses the event, timestamp and data fields, as described in Testing.


Delivery headers​

Every webhook request includes the following headers:

HeaderDescriptionExample
Content-TypeContent typeapplication/json
X-Frihet-EventEvent typeinvoice.paid
X-Frihet-Delivery-IdUnique delivery identifierd4e5f6a7b8c9
X-Frihet-TimestampISO 8601 timestamp2026-02-12T14:30:00.000Z
X-Frihet-SignatureHMAC-SHA256 signature of the payloadsha256=a1b2c3d4e5f6...

The X-Frihet-Signature header is only included if you configured a secret on the webhook.


Signature verification​

If you configure a secret when creating the webhook, Frihet signs every payload with HMAC-SHA256. The verification process:

  1. Take the raw request body
  2. Compute the HMAC-SHA256 using the secret as the key
  3. Compare the result with the value in the X-Frihet-Signature header (without the sha256= prefix)
import { Webhooks } from '@frihet/sdk';

app.post('/webhook/frihet', express.raw({ type: 'application/json' }), (req, res) => {
const isValid = Webhooks.verifySignature(
req.body,
req.headers['x-frihet-signature'],
process.env.FRIHET_WEBHOOK_SECRET,
);

if (!isValid) return res.status(401).send('Invalid signature');

const event = JSON.parse(req.body.toString());
console.log(req.headers['x-frihet-event'], event.data);
res.sendStatus(200);
});

Manual Node.js example​

const crypto = require('crypto');

function verifyWebhookSignature(rawBody, signature, secret) {
const expectedSignature = crypto
.createHmac('sha256', secret)
.update(rawBody)
.digest('hex');

const receivedSignature = signature.replace('sha256=', '');

return crypto.timingSafeEqual(
Buffer.from(expectedSignature, 'hex'),
Buffer.from(receivedSignature, 'hex')
);
}

// Usage in an Express server
app.post('/webhook/frihet', express.raw({ type: 'application/json' }), (req, res) => {
const signature = req.headers['x-frihet-signature'];
const secret = process.env.FRIHET_WEBHOOK_SECRET;

if (!signature || !verifyWebhookSignature(req.body.toString(), signature, secret)) {
return res.status(401).send('Invalid signature');
}

const event = JSON.parse(req.body.toString());
const eventType = req.headers['x-frihet-event'];

console.log(`Event received: ${eventType}`, event.data);

// Handle the event by type
switch (eventType) {
case 'invoice.paid':
// Update your accounting system
break;
case 'expense.created':
// Notify the finance team
break;
}

res.status(200).send('OK');
});

Python example​

import hmac
import hashlib
from flask import Flask, request, abort

app = Flask(__name__)
WEBHOOK_SECRET = 'your-secret-here'

def verify_signature(payload: bytes, signature: str, secret: str) -> bool:
expected = hmac.new(
secret.encode('utf-8'),
payload,
hashlib.sha256
).hexdigest()

received = signature.replace('sha256=', '')

return hmac.compare_digest(expected, received)

@app.route('/webhook/frihet', methods=['POST'])
def handle_webhook():
signature = request.headers.get('X-Frihet-Signature', '')
if not verify_signature(request.data, signature, WEBHOOK_SECRET):
abort(401)

event = request.get_json()
event_type = request.headers.get('X-Frihet-Event')

print(f'Event received: {event_type}')

if event_type == 'invoice.paid':
# Update your accounting system
pass
elif event_type == 'quote.accepted':
# Convert quote to invoice
pass

return 'OK', 200

Important: Always use constant-time comparison (timingSafeEqual in Node.js, compare_digest in Python) to prevent timing attacks.


Retry policy​

If a webhook delivery fails (non-2xx response or timeout), Frihet retries automatically with exponential backoff:

AttemptDelayCumulative time
1 (initial)immediate0s
2 (first retry)2 seconds2s
3 (second retry)4 seconds6s
  • Maximum 3 attempts per delivery (1 initial + 2 retries)
  • Maximum 30 seconds delay between retries
  • 30-second timeout per request
  • If all 3 attempts fail, the delivery is marked failed

Retries are processed by a job that runs every 5 minutes, ensuring reliability even if the main process restarts.

You can check the delivery history for each webhook from the Frihet dashboard, including the response code, response body (first 1000 characters), and errors for each attempt.


Testing​

From the Frihet dashboard, you can send a test event to any configured webhook. The test payload looks like:

{
"event": "webhook.test",
"timestamp": "2026-02-12T14:30:00.000Z",
"data": {
"message": "This is a test webhook from Frihet ERP"
}
}

This lets you verify that your endpoint is reachable, that signature validation works, and that your system handles events without errors.


Best practices​

Respond fast​

Your endpoint should respond with a 200 status code as quickly as possible. If you need to do heavy processing (send emails, update external databases, etc.), accept the event and process it asynchronously in a job queue.

Handle idempotency​

It's possible for the same event to be delivered more than once (for example, if your server timed out but still processed the event). Use the X-Frihet-Delivery-Id header as an idempotency key to avoid duplicates.

Always verify the signature​

Never trust a webhook without verifying the X-Frihet-Signature header. Anyone with access to your URL could send fake payloads.

Use HTTPS​

In production, your endpoint must be protected with HTTPS. Frihet rejects HTTP URLs (except in local development).

Monitor failures​

Check delivery logs in the Frihet dashboard periodically. If you see recurring failed deliveries, verify that your endpoint is available and responds in under 30 seconds.

Filter events​

Subscribe only to the events you need. Each webhook can listen to one or several event types. Processing fewer unnecessary events reduces load on your server.


Debugging deliveries​

Frihet logs the result of every webhook delivery. You can inspect them from the dashboard:

  1. Go to Integrations → Webhooks
  2. Click on the webhook you want to inspect
  3. Open the Deliveries tab

Each entry shows:

  • Response code returned by your endpoint
  • Response time in milliseconds
  • Response body (first 1000 characters)
  • Date and time of each attempt (including retries)
  • Final status: delivered, retrying, or failed

Common issues​

SymptomLikely causeSolution
All deliveries fail with timeoutEndpoint takes more than 30s to respondAccept the event with an immediate 200 and process asynchronously
SSL/TLS errorExpired certificate or incomplete chainRenew the certificate and verify the chain with openssl s_client
Systematic 403Firewall blocking inbound POST requestsAllow traffic from Google Cloud IPs (us-central1)
502/503Server down or under maintenanceCheck your server logs and verify the process is running

Test button​

On each webhook's detail screen, the Send test button sends a synthetic event to your URL. The body carries event: "webhook.test", but the X-Frihet-Event header carries invoice.created: a consumer that routes on the header will see the test as a created invoice; tell them apart by the body. Use this button to verify:

  • That the URL is reachable from the internet
  • That the HMAC signature validates correctly
  • That your server responds with a 2xx code

The test result appears immediately in the delivery log.


Troubleshooting​

Not receiving webhooks​

  1. Verify the webhook URL is correct and publicly accessible
  2. Check that the webhook is active in the dashboard
  3. Review delivery logs for errors
  4. If you use a firewall, ensure inbound POST requests from Google Cloud (us-central1) are allowed

Signatures not matching​

  1. Verify you're using the raw request body (before parsing the JSON)
  2. Confirm the secret in your code matches the one configured in the Frihet dashboard
  3. Do not modify or reformat the body before verifying the signature
  4. Check that your framework isn't automatically parsing the body before you can access the raw version

Retries not arriving​

  1. Retries are processed every 5 minutes. If your endpoint was briefly down, the retry attempts may have already been exhausted
  2. Check the delivery history to confirm the status of each attempt
  3. If all 3 attempts failed, the delivery will not be retried automatically

Payload too large​

If the resource associated with the event is very large (many line items in an invoice, extensive fields), the payload may exceed the 100 KB limit and the delivery will be rejected. Simplify the resource data or contact support if you need a higher limit.


Related: Webhooks configuration · REST API · MCP Server