api-referenceGET
GET
https://analytics.flowsery.com/api/v1/goalsFetch analytics data segmented by custom goals.
Bearer Token (API key)
Optional parameters
| Parameter | Type | Description |
|---|---|---|
startAt | string | ISO 8601 start date/time. Defaults to the last 30 days when omitted. |
endAt | string | ISO 8601 end date/time. Defaults to now when omitted. |
timezone | string | Timezone for aggregation (e.g., UTC, America/New_York). Falls back to your site's configured timezone. |
limit | number | Maximum rows to return (1-1000, default: 100). |
offset | number | Rows to skip for pagination (min 0, default: 0). |
Example request (curl)
curl --request GET \
--url https://analytics.flowsery.com/api/v1/goals \
--header 'Authorization: Bearer <api-key>'200
{
"status": "success",
"data": [
{
"id": "goal_123",
"createdAt": "2026-04-01T10:15:00.000Z",
"updatedAt": "2026-04-14T08:30:00.000Z",
"name": "newsletter_signup",
"description": null,
"isServer": false,
"completions": 49730,
"visitors": 27797
},
{
"id": "goal_124",
"createdAt": "2026-04-02T09:00:00.000Z",
"updatedAt": "2026-04-14T08:30:00.000Z",
"name": "payment",
"description": "Tracked from the backend",
"isServer": true,
"completions": 35100,
"visitors": 30807
}
],
"pagination": {
"limit": 5,
"offset": 0,
"total": 48
}
}