# Receive delivery webhooks

> Relay posts an event to your endpoint whenever a message is queued, delivered, opened or fails.

Source: https://helpdox.fekbd.com/docs/relay-api/webhooks/receive-delivery-webhooks/

Relay posts an event to your endpoint whenever a message is queued, delivered, opened or fails. Follow the steps below — it takes just a few minutes.

## Before you begin

- A Relay account and a test-mode API key
- `curl` or one of the official SDKs

## Steps

1. 1Add an endpointDevelopers → Webhooks → Add endpoint. Choose the events you want.
2. 2Return 2xx quicklyAcknowledge within 5 seconds and process the event in a background job.
3. 3Handle retriesFailed deliveries retry with backoff for 72 hours.

Tip

Events can arrive out of order — compare `created_at`.

## Still stuck?

Include the request ID from the `Relay-Request-Id` response header — it lets us find your call in seconds.
