← All help articles
Webhooks
What is it?
Webhooks automatically notify external systems about lab events — e.g., a CI pipeline, a chat tool, or your own dashboard. As soon as something happens (a test fails, a report is ready, …), TestLabIQ sends an HTTP POST to the URL you configured.
How to use it
- Setting one up: Settings → Webhooks → New webhook. Choose a name, target URL (https recommended), and the desired events. The target URL must be publicly reachable — see Common issues.
- Events:
test.completed— test case completed (passed or failed)test.failed— test case failed (in addition totest.completed)sequence.completed— all test cases in a sequence completedreport.ready— PDF report readyreport.approved— PDF report approved electronically (only then visible in the client portal)calibration.due— equipment calibration is expiring / has expired
- Signing secret: Shown only once when the webhook is created — copy it right away and store it at the receiver. If it was lost or may have leaked: Rotate secret on the webhook. The old one stops working immediately. At most 20 webhooks per organization.
- Headers of every delivery:
X-TestLabIQ-Event— event nameX-TestLabIQ-Delivery— ID of this delivery, the same across retries (to detect duplicates)X-TestLabIQ-Timestamp— Unix seconds when sentX-TestLabIQ-Signature-V2—sha256=HMAC-SHA256 over<timestamp>.<raw body>(recommended: also check the timestamp is at most 5 minutes old, so a captured request can't be replayed later)X-TestLabIQ-Signature—sha256=HMAC-SHA256 over the raw body (previous format, kept for existing receivers) The body also containsid— the event ID, the same for all webhooks and also when resent manually.
- Testing: Via Send test you can trigger a sample delivery immediately.
- Delivery history: Expandable under the webhook, one entry per event
with its state (queued, retrying with the next attempt time,
delivered, gave up, not queued), number of attempts, HTTP status or
error. Resend delivers an event again (e.g. after an outage at the
receiver) — as a new delivery with the same event
id.
Common issues
- "Nothing is arriving." Check the state in the delivery history: if an HTTP status is shown, it was sent — then the issue is on your endpoint's side. Network error means the URL was unreachable. Not queued means the delivery couldn't be started on our side — Resend tries again.
- "Deliveries keep failing." A failed delivery is retried up to 4 times (after 30 s, 2 min, 10 min and 1 h); after that it gave up. If 3 events in a row finally fail, owners and admins are notified. Common causes: endpoint down, wrong URL, timeout, or your server not responding with 2xx.
- "Signature verification fails." The signature is computed over the
raw request body (for V2 prefixed with
<timestamp>.) — verify before JSON parsing and with the exact secret of this webhook. After rotating, only the new secret is valid. - "I can't see the secret anymore." Intended: it is only shown when created or rotated. Rotate secret and store the new one at the receiver.
- "Webhook is inactive." Disabled webhooks send nothing; re-enable it in the list.
- "The URL points to an internal address." TestLabIQ calls your URL from
its own server. Targets that are only reachable from inside a private
network —
localhost,192.168.…,10.…,….local,….internal— are therefore rejected: from our data centre they would be unreachable anyway, and the call would instead point at our own infrastructure. Use a publicly reachable address (e.g. via a reverse proxy or a tunnelling service). For the same reason the URL must not contain a username or password (https://user:pass@…); authenticate using the signature we send instead. Deliveries do not follow redirects (301/302) — configure the final URL directly. The address actually connected to is checked; a name that only switches to an internal address at call time is blocked too. - "Blocked even though the address is correct." On a self-hosted
installation inside your own network, an internal target is exactly what you
want. There, the environment variable
WEBHOOK_ALLOW_PRIVATE_TARGETS=truelifts the check. In the hosted service it is deliberately not set. - Diagnosing via the support agent: The AI support can look at recent
deliveries with state, attempts and error directly (
get_webhook_deliveriestool, also filtered per webhook or failures only) and answer "why didn't my webhook arrive?" without a screenshot.