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

# Choose a Back-End solution

> Compare API requests and webhooks to choose the right back-end solution for receiving customer data.

If you've chosen Flinks Connect as your front-end solution, the next step to connecting customer accounts is choosing a back-end solution. The back-end solution allows you to receive the end user's financial data.

Flinks offers two back-end configuration options:

* Setting up API requests to receive customer data
* Setting up Webhooks to receive customer data

To learn more about the capabilities and requirements for each option, refer to the table below and to the following sections:

| **SOLUTION** | **RECEIVES END USER DATA** | **DELIVERED TO YOU AUTOMATICALLY** | **ERRORS ARE HANDLED AUTOMATICALLY** |
| :- | :- | :- | :- |
| API requests | | | |
| Webhooks | | | |

### How the two flows compare

Both flows share the same front end: the end user connects their account through Flinks Connect. They only differ in how your back end receives the resulting data:

* **Standard (API) flow.** After the user connects, your server calls the API to pull the data. When [/GetAccountsDetail](https://docs.flinks.com/api/connect/endpoints/account-linking/get-accounts-detail.md) returns `202 OPERATION_PENDING`, you poll [/GetAccountsDetailAsync](https://docs.flinks.com/api/connect/endpoints/account-linking/get-accounts-detail-async.md) every \~10 seconds (up to a 30-minute processing window) until the data is ready. You control when you fetch. See the full [Standard Integration](https://docs.flinks.com/guides/connect/standard-integration.md) walkthrough.
* **Webhook flow.** Flinks pushes the data to a URL you register at onboarding as soon as it's ready, with no polling. Your endpoint returns HTTP `200` to acknowledge receipt. See [Webhooks](https://docs.flinks.com/guides/webhooks/introduction.md).

> [!NOTE]
>
> Enriched data ([Attributes](https://docs.flinks.com/guides/enrich/attributes.md)) is always fetched on demand with a separate API call. It is not delivered through webhooks, regardless of which flow you choose.

## Setting up API requests to receive data

> [!TIP]
>
> #### Use this solution if:
>
> You want to make an API call to Flinks when you are ready to receive customer data.

Set up your API to communicate directly with Flinks APIs to receive end-user data. If you choose this back-end integration option, you'll need to set up your servers to make a call to our API each time you want to receive new or refreshed customer data.

For more information about which endpoints to call and how to handle the response, see [Retrieve Account Data](https://docs.flinks.com/guides/connect/retrieve-account-data.md).

## Setting up Webhooks to receive customer data

> [!TIP]
>
> #### Use this solution if:
>
> You want to receive customer data automatically, without needing to make API calls.

Receive end-user data automatically by setting up Webhooks. A Webhook is a custom callback from our application to yours: as soon as Flinks finishes retrieving the data, it pushes the payload to a URL you register at onboarding. There is a delay while Flinks retrieves the data, but the callback fires the moment it's ready, with no polling on your side.

For more information about Webhooks, see our [API Reference](https://docs.flinks.com/api/connect/webhooks.md).

> [card] [Types of data you can receive](https://docs.flinks.com/guides/connect/connect-bank-accounts.md#types-of-data-that-you-can-receive-from-flinks)
