Webhooks are the primary way to receive tracking updates from Terminal49. Follow these practices to build a consumer that handles every edge case reliably.Documentation Index
Fetch the complete documentation index at: https://terminal49.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Respond quickly with a 2xx
Terminal49 expects your endpoint to return one of these status codes:200, 201, 202, or 204. Return the response before doing any heavy processing.
Handle retries and duplicate deliveries
Terminal49 retries failed deliveries, which means your endpoint may receive the same notification more than once. Design your consumer to be idempotent. Every webhook notification has a uniqueid in data.id. Use it to deduplicate:
Verify the webhook source
Terminal49 publishes the IP addresses that webhook notifications originate from. Use the List Webhook IPs endpoint to fetch the current list and validate incoming requests:Cache the IP list and refresh it periodically (e.g., daily). The list rarely changes, but checking the endpoint ensures you stay current.
Monitor delivery status
Use the Webhook Notifications API to check delivery status and catch any notifications your endpoint may have missed:Test with the Trigger endpoint
Use the Trigger Webhook endpoint to send a one-time sample webhook notification to an HTTPS URL. This is useful when you want to validate your signature verification, parsing, queueing, and event routing before subscribing a production webhook.secret, Terminal49 signs the test request with the same X-T49-Webhook-Signature header used by real webhook deliveries.
Keep your webhook active
Terminal49 may deactivate a webhook after repeated delivery failures. Check your webhook’sactive status periodically:
active: true.
Summary checklist
- Return
2xximmediately, process asynchronously - Deduplicate using the notification
id - Validate the source IP against the webhook IPs list
- Monitor failed notifications
- Subscribe only to the events you need
- Log raw payloads for debugging
Related
- Setting up webhooks — create and configure endpoints
- Event catalog — all available events
- Webhook API Reference — CRUD operations for webhooks