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

Fetch the configuration metadata for your website.

Bearer Token (workspace token or website API key)

Workspace tokens need a website selector

Workspace API tokens can access every website in the workspace. Pass either <code>websiteId</code> or <code>domain</code> so Flowsery knows which website to query or mutate. Website API keys are already scoped to one website, so the selector can be omitted.

Website selector

ParameterTypeDescription
websiteIdstringWebsite ID to use with a workspace API token. Omit when authenticating with a website API key.
domainstringWebsite domain to use with a workspace API token when websiteId is not provided. Omit when authenticating with a website API key.

Response fields

Response fields

ParameterTypeDescription
domainstringThe website's domain.
timezonestringIANA timezone identifier for the site (e.g., "America/New_York", "UTC").
namestringCustom display name for the website.
logostring | nullURL of the custom site logo, or null when none is set.
kpiColorSchemestringColor scheme used for KPI visualizations. Possible values: red, orange, yellow, green, purple, pink, gray, blue, teal, indigo.
kpistring | nullThe custom goal/event name designated as the key performance indicator for this site.
currencystringCurrency code (e.g., "USD", "EUR", "GBP").
Example request (curl)
curl --request GET \
  --url https://analytics.flowsery.com/analytics/api/v1/metadata \
  --header 'Authorization: Bearer <api-key>'
200
{
  "status": "success",
  "data": [
    {
      "domain": "example.com",
      "timezone": "America/New_York",
      "name": "My Awesome Website",
      "logo": "https://d1aebdcemlt4l7.cloudfront.net/website-logos/xK9mPq2bR7nYwJ3vL5tA.png",
      "kpiColorScheme": "orange",
      "kpi": "signup",
      "currency": "USD"
    }
  ]
}