api-referenceGET
GEThttps://analytics.flowsery.com/api/v1/websites

List the websites available to the authenticated workspace API token. Use this endpoint to choose the websiteId or domain for subsequent analytics requests.

Bearer Token (workspace API token)

Token scope

A <code>flow_ws_</code> workspace API token returns all websites in the workspace. A legacy <code>flow_</code> website API key returns only the website attached to that key.

Response fields

ParameterTypeDescription
idstringInternal website ID. Pass this as websiteId when using a workspace token.
domainstringPrimary website domain.
timezonestringWebsite reporting timezone.
currencystringWebsite reporting currency.
trackingIdstringPublic tracking ID used by the browser script.
apiKeyPrefixstring | nullThe visible prefix of the website-scoped API key, when one exists. The full secret is never returned.
Example request (curl)
curl --request GET \
  --url https://analytics.flowsery.com/api/v1/websites \
  --header 'Authorization: Bearer <workspace-api-token>'
200
{
  "status": "success",
  "data": [
    {
      "id": "cm8abc123",
      "domain": "example.com",
      "timezone": "America/New_York",
      "currency": "USD",
      "trackingId": "flid_abc123",
      "apiKeyPrefix": "flow_abc123"
    }
  ]
}