API Reference

Sites

List the sites your API key can access.

Use the Sites endpoint to discover which sites your API key can read, and to get the numeric site IDs used by every other endpoint.

List sites

GET /api/v1/sites

Returns the sites the key's owner is a member of.

curl https://app.otusanalytics.com/api/v1/sites \
  -H "Authorization: Bearer sk_live_xxx"

Each site includes its numeric ID, which you pass to the site-scoped endpoints, for example:

GET /api/v1/sites/123/analytics/overview