api-referenceGET
GET
https://analytics.flowsery.com/api/v1/websitesList 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
| Parameter | Type | Description |
|---|---|---|
id | string | Internal website ID. Pass this as websiteId when using a workspace token. |
domain | string | Primary website domain. |
timezone | string | Website reporting timezone. |
currency | string | Website reporting currency. |
trackingId | string | Public tracking ID used by the browser script. |
apiKeyPrefix | string | null | The 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"
}
]
}