Data fetching

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

Webhooks

Webhooks are a way to receive real-time data from the Stacc SBL API. 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/flows/{flowId}. The flow ID is the ID of the flow you want to fetch data from.

Example request with bearer token

curl https://api.sbl.express.stacc.live/api/flows/0123456789abcdef \
  -H "Authorization: Bearer {token}"

Was this page helpful?