> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Webhooks

A webhook is the simplest way to react to what happens on EVVA: a fan writes, a message is read, an order moves, a
post is published. Your agency registers an HTTPS endpoint for your application in the
[Partner Hub](https://partner.evvahub.com), and EVVA `POST`s each event to it as JSON, signed per
[Standard Webhooks](https://www.standardwebhooks.com). One endpoint receives the events of **every creator** your
application is granted; each event names its `creatorId`.

## How a delivery flows

```mermaid
sequenceDiagram
    autonumber
    participant EVVA as EVVA
    participant App as Your endpoint
    EVVA->>EVVA: An event your application may see is recorded
    EVVA->>EVVA: Access re-checked for this creator and event type
    EVVA->>App: POST event + webhook-id, webhook-timestamp, webhook-signature
    App->>App: Verify the signature on the raw body
    App->>App: Deduplicate on webhook-id (= eventId)
    App-->>EVVA: 2xx within 10 seconds
    Note over EVVA,App: No 2xx? EVVA retries with backoff for up to 24 hours
```

## Build it in four steps

#### Subscribe an endpoint

Prepare a public HTTPS endpoint, have the agency register it for your application in the Partner Hub with the
event types you need, and store the signing secret it shows once. See [Subscribing](/webhooks/subscribing).

#### Verify every delivery

Check the `webhook-signature` on the raw body and refuse a `webhook-timestamp` more than five minutes old. See
[Verifying signatures](/webhooks/signatures).

#### Acknowledge fast, then deduplicate

Answer `2xx` within 10 seconds and process in the background. Keep the `webhook-id` of every event you handled.
See [Delivery, retries and replay](/webhooks/delivery).

#### Handle the event types you need

Branch on `type`, read the details you need through the API, and ignore types you do not know. See the
[event catalogue](/webhooks/events).

## What EVVA guarantees — and what it does not

|              | Guarantee                                                                                                                                                                          | What your endpoint does                                                                                                                                                |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Delivery** | **At least once.** A timeout, a retry or a replay can deliver the same event again. There is no exactly-once delivery.                                                             | Deduplicate on `webhook-id` — it equals the event's `eventId`, stable across retries, replays and channels.                                                            |
| **Order**    | **Not guaranteed.** Deliveries run concurrently, and retries and replays arrive later. `occurredAt` is informational, not the delivery order.                                      | When you need the strict order, read the [event feed](/event-feed) from your own checkpoint: its order is deterministic. Never order deliveries by `occurredAt` alone. |
| **Retries**  | `429`, `5xx`, timeouts and connection failures are retried with exponential backoff and full jitter — up to 12 attempts within 24 hours. `Retry-After` is honoured up to one hour. | Answer `2xx` once the event is safely queued. Answer `410` or another `4xx` only when the event must not be retried.                                                   |
| **Replay**   | Events whose retries ran out go to the dead-letter list; the agency can replay them from the Partner Hub. The event feed keeps every event for 7 days.                             | Catch up from the feed after an outage.                                                                                                                                |
| **Access**   | Your application's access to the creator and the event type is checked again before every attempt.                                                                                 | Nothing: an event you may no longer see is never sent.                                                                                                                 |
| **Data**     | `data` carries ids and references — never message text or amounts. At most 64 KiB per event.                                                                                       | Read details through the API when you need them.                                                                                                                       |

## Webhooks, realtime or the event feed?

All three carry the same events in the same envelope, with the same `eventId`, so you can combine them and
deduplicate once.

|               | Webhooks                                   | [Realtime](/realtime)         | [Event feed](/event-feed)                                     |
| ------------- | ------------------------------------------ | ----------------------------- | ------------------------------------------------------------- |
| Direction     | EVVA pushes HTTPS `POST`s to you           | You hold one WebSocket open   | You pull pages with a cursor                                  |
| Latency       | Seconds                                    | Lowest                        | Your polling interval                                         |
| Order         | Not guaranteed                             | Deterministic, as on the feed | Deterministic: the same on every read, fixed within a creator |
| Missed events | Retried for 24 hours, then kept for replay | Resumed from your last cursor | Kept for 7 days                                               |
| Best for      | HTTP-only services, serverless             | Live inboxes, chat automation | Batch jobs, catch-up, strict order                            |

> **Tip**
>
> The official SDKs combine realtime with the feed in one event stream: realtime for latency, the feed to fill any gap.
> Webhooks work alongside either.

## A delivery at a glance

**`A delivery (example values)`**

```http title="A delivery (example values)"
POST /webhooks/evva HTTP/1.1
Content-Type: application/json
webhook-id: evt_01EXAMPLE
webhook-timestamp: 1767225600
webhook-signature: v1,EXAMPLE_BASE64_HMAC_SHA256=

{
  "eventId": "evt_01EXAMPLE",
  "type": "message.received",
  "schemaVersion": 1,
  "occurredAt": "2026-12-01T10:00:00.000Z",
  "creatorId": "creator_EXAMPLE",
  "data": { "messageId": "message_EXAMPLE", "conversationId": "conversation_EXAMPLE", "buyerRef": "buyer_EXAMPLE" }
}
```

The envelope is shortened here; the [event catalogue](/webhooks/events) shows every field and every event type.

## Reference

#### [Event catalogue](/webhooks/events)

Every event type, what it means, the scope it needs and its `data` fields.

#### [List events](/api-reference/events/list-events)

`GET /partner/v1/events` — the durable feed, in order, from a cursor.

#### [Event checkpoints](/api-reference/events/get-event-checkpoint)

Read and commit a consumer group's position in the feed.

#### [Realtime channel](/realtime)

Every event over one WebSocket, resumable by cursor.