api-referenceGET
GET
https://analytics.flowsery.com/api/v1/goalsObtener datos de analisis segmentados por objetivos personalizados.
Clave API (Bearer token)
Parametros opcionales
| Parametro | Tipo | Descripcion |
|---|---|---|
startAt | string | Fecha/hora de inicio ISO 8601. El valor predeterminado es los últimos 30 días cuando se omite. |
endAt | string | ISO 8601 end date/time. Defaults to now when omitted. |
timezone | string | Zona horaria para la agregacion (por ejemplo, UTC, America/New_York). Recurre a la zona horaria configurada de su sitio. |
limit | number | Maximo de filas a devolver (1-1000, predeterminado: 100). |
offset | number | Filas a omitir para paginacion (min. 0, predeterminado: 0). |
Solicitud de ejemplo (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
}
}