Data fetching

There are more than one way to fetch data from Aurora Credit. In this guide, we will look at the different ways to fetch data.

Webhooks

Webhooks are a way to receive real-time data from Aurora Credit. When a webhook is triggered, the data is sent to the URL you specify. This is useful when you want to receive data as soon as it is available.

API endpoint

The API endpoint for fetching data on a flow is /api/flow/{flowId}/data. The flow ID is the ID of the flow you want to fetch data from.

Example request with bearer token

curl https://api.aurora.stacc.dev/api/flow/0123456789abcdef/data \
  -H "Authorization: Bearer {token}"

Both will have data looking like this:

TODO

Was this page helpful?