Insights

Get an API key

period is last24Hours, last7Days or last28Days (the default). The answer gives, for each connected account, the latest figures Sofia collected.

bash
curl "https://api.sofia-post.com/api/v1/establishments/$ESTABLISHMENT_ID/insights?period=last7Days" \
  -H "Authorization: Bearer $SOFIA_API_KEY"
  • An account not yet collected is awaiting, never zero.
  • Each measure is available with its value, or unavailable with its reason; mayBeDelayed warns that the network publishes it late.