Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.flowestate.app/llms.txt

Use this file to discover all available pages before exploring further.

List endpoints accept these query parameters:
ParamTypeDefaultNotes
limitinteger 1..10050Page size.
offsetinteger ≥ 00Number of records to skip.
querystringFree-text search across name, email, company, phone (where supported).
sortBystringcreatedAtEndpoint-specific. See each endpoint.
sortOrderasc | descdesc

Walking through pages

async function* iterateLeads(apiKey) {
  let offset = 0;
  const limit = 100;
  while (true) {
    const res = await fetch(
      `https://panel.flowestate.app/api/v1/leads?limit=${limit}&offset=${offset}`,
      { headers: { Authorization: `Bearer ${apiKey}` } }
    );
    const { data, pagination } = await res.json();
    for (const lead of data) yield lead;
    if (!pagination.hasMore) break;
    offset += limit;
  }
}
Stop when pagination.hasMore is false.

Filters

Most list endpoints accept additional filter parameters on top of the standard ones — for example status and source on /leads. Filter parameters are listed per endpoint in the API Reference.

Notes

  • Don’t cache offsets across long-lived sessions. New records are inserted at the top (sorted by createdAt desc by default), so an offset that pointed at “page 5” yesterday is no longer the same window today. Re-paginate from scratch.
  • For large exports, consider sorting sortBy=createdAt&sortOrder=asc and paginating chronologically. That way new inserts don’t shift your position.
  • limit is capped at 100. Higher values are silently clamped.