Developer Portal
Webhooks

Build a webhook endpoint

Request and response requirements for your webhook endpoint.

Impel requires webhook endpoints to accept HTTPS POST requests.

Endpoint request specification

For each event occurrence, Impel sends the event data in the body of the request as JSON. See Event types and schema for the format.

Impel recommends securing your webhook endpoint with an API key. Impel includes your API key as an HTTP request header, x-api-key, and follows security best practices to keep it a well-protected secret. An API key isn't required, but it's not recommended to go without one.

Allowlisting Impel's IP address

All outbound webhook requests from Impel originate from a single static IP address: 54.84.146.6.

If your webhook endpoint is protected by a firewall, reverse proxy or Web Application Firewall (WAF), you must allowlist this IP address so webhook delivery isn't blocked.

Endpoint response specification

Impel expects the endpoint to respond with a valid HTTP status code within 5 seconds. Impel reacts to your response as follows:

Webhook responseImpel response
HTTP 200The event notification succeeded. No further action.
HTTP 401, 407, 409 or 429Impel retries with exponential backoff for the next 24 hours. If a retry succeeds, the notification is considered succeeded. After multiple failed retries it is considered failed, the failure is logged and Impel Support is alerted.
HTTP 5xxSame as above.
No response within 5 secondsSame as above.
HTTP 1xx, 2xx, 3xx or 4xx other than those noted aboveThe event notification failed. The failure is logged and Impel Support is alerted.

If Impel fails to deliver multiple event notifications within a short span of time, Impel might stop sending notifications until Support can investigate.

Because acknowledging receipt properly is so important, your endpoint should return an HTTP 200 status code before running any complex logic that could cause a timeout, and you should handle any internal retry logic accordingly.

On this page