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

# Webhooks

> Receive real-time events about your cards, cardholders, tokens and transactions.

The Enfuce platform is event-based. Every change in your card program generates an event: a card is created, updated or closed, a cardholder is created or updated, a token is created or updated, and a transaction moves through its lifecycle. Enfuce delivers these events to you in real time through webhooks.

Webhooks are the primary way to integrate with Enfuce. They let you act on what is happening in your program as it happens, without polling the API for changes.

## How webhooks work

You host an endpoint, and Enfuce sends each event to it as an HTTP POST request. Each webhook has a defined payload, described in the API reference.

Webhook notifications describe events that have already occurred. Where Enfuce needs a decision from you, such as approving or declining an authorisation, it uses a separate synchronous request instead. See the [Authorisation Request API](https://nextgen-docs.enfuce.com/api/transaction-lifecycle/authorisation-control/authorisation-request-openapi.md).

Your webhook subscriptions are agreed with your Onboarding Manager as part of your onboarding.

## Available webhooks

| Webhook | Sent when | Payload |
| :- | :- | :- |
| Card | A card is created, updated or closed | [Card Webhook](https://nextgen-docs.enfuce.com/api/cards/webhook/card-webhook.md) |
| Cardholder | A cardholder is created or updated | [Cardholder Webhook](https://nextgen-docs.enfuce.com/api/cardholders/webhook/cardholder-webhook.md) |
| Token | A token is created or updated | [Token Webhook](https://nextgen-docs.enfuce.com/api/wallet/webhook/token-webhook.md) |
| Transaction event | A transaction lifecycle event has occurred, such as an authorisation advice or clearing | [Transaction Event Webhook](https://nextgen-docs.enfuce.com/api/transaction-lifecycle/transaction-event/transaction-event-webhook-openapi.md) |

## Authentication

Enfuce authenticates the requests it sends to your endpoints. See [Authentication for Outgoing Endpoints and Webhook Notifications](https://nextgen-docs.enfuce.com/api/authentication-outgoing-endpoints-webhooks.md).

## What you can do with webhooks

Use webhooks for anything that should happen immediately, such as:

* notifying a cardholder about a transaction or a change to their card
* updating your app or internal systems
* triggering an operational action, such as a review or a follow-up
* building and maintaining your own databases: store each event as it arrives, and your data stays current throughout the day

## Webhooks and Data Files

Webhooks and [Data Files](https://nextgen-docs.enfuce.com/guides/data/data-files/overview.md) are built from the same underlying events. Webhooks deliver each event in real time. Data Files delivers the same activity as structured daily files, for periodic processes such as loading a data warehouse, daily reconciliation or regulatory reporting. You can use either or both.
