Insights
Get an API keyEndpoints
GET/v1/establishments/{id}/insightsperiod is last24Hours, last7Days or last28Days (the default). The answer gives, for each connected account, the latest figures Sofia collected.
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
availablewith itsvalue, orunavailablewith itsreason;mayBeDelayedwarns that the network publishes it late.