> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Eventbrite incoming webhooks: event paths, payloads, and response data.

The Eventbrite plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see [Overview](https://docs.corsair.dev/plugins/eventbrite/overview.md) for setup context and the exact URL shape).

> [!NOTE]
>
> **New to Corsair?** See [webhooks](https://docs.corsair.dev/concepts/webhooks.md) and [hooks](https://docs.corsair.dev/concepts/hooks.md).

## Webhook map

* `notifications`
  * `delivery` (`notifications.delivery`)

## HTTP handler setup

```ts app/api/webhook/route.ts theme={null}
import { processWebhook } from "corsair";
import { corsair } from "@/server/corsair";

export async function POST(request: Request) {
    const headers = Object.fromEntries(request.headers);
    const body = await request.json();
    const result = await processWebhook(corsair, headers, body);
    return result.response;
}
```

## Events

## Notifications

### Delivery

`notifications.delivery`

An Eventbrite webhook delivery: the notification naming the changed object’s `api_url` and the `config.action` that fired, not the object itself

**Payload**

| Name | Type | Required | Description |
| - | - | - | - |
| `api_url` | `string` | Yes | Absolute v3 API URL of the object that changed, always on eventbriteapi.com. |
| `config` | `object \| null` | No | — |

> [accordion] config full type
>
> ```ts theme={null}
> {
>   action?: string | null,
>   endpoint_url?: string | null,
>   user_id?: string | null,
>   webhook_id?: string | null
> } | null
> ```

> [accordion] Response data full type
>
> ```ts theme={null}
> {
>   api_url: string,
>   config?: {
>     action?: string | null,
>     endpoint_url?: string | null,
>     user_id?: string | null,
>     webhook_id?: string | null
>   } | null,
>   action: string | null,
>   organizationId: string | null
> }
> ```

**`webhookHooks` example**

```ts theme={null}
eventbrite({
    webhookHooks: {
        notifications: {
            delivery: {
                before(ctx, args) {
                    return { ctx, args };
                },
                after(ctx, response) {
                },
            },
        },
    },
})
```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.