Chats / fetch

Back to API Docs

API Overview

Path: /api/chats/fetch — Method: GET

Auth: session-cookie

Request Details

No headers required

No path params required

Query

  • startDate(string, required)
  • endDate(string, required)

No body required

Responses

  • 200Chat data
    {"data":[{"id":"...","messages":["..."]}]}
  • 400Missing dates
    {"error":"startDate and endDate are required"}
  • 500Failed to fetch chat data

Notes & Tips

  • Ensure headers match exactly (e.g., x-apikey).
  • Use Content-Type: application/json for JSON bodies.
  • For Bearer auth, you can provide either a session JWT or an opaque API key where supported.
Advancelytics | Detect Silent Churn, Surface Growth Signals