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

Recupere dados analiticos segmentados por objetivos personalizados.

Chave API (Bearer token)

Parametros opcionais

ParametroTipoDescricao
startAtstringData/hora de início da ISO 8601. A norma são os últimos 30 dias quando omitido.
endAtstringISO 8601 end date/time. Defaults to now when omitted.
timezonestringFuso horario para agregacao (por ex., UTC, America/New_York). Recorre ao fuso horario configurado do seu site.
limitnumberNumero maximo de linhas a retornar (1-1000, padrao: 100).
offsetnumberLinhas a pular para paginacao (min 0, padrao: 0).
Exemplo de requisicao (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
  }
}