api-referenceGET
GEThttps://analytics.flowsery.com/analytics/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, or an OAuth sign-in, returns every website in the workspace the call lands in. A <code>flow_</code> website API key returns only its own website.

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/analytics/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"
    }
  ]
}