Chats / store

Back to API Docs

API Overview

Path: /api/chats/store — Method: POST

Auth: session-cookie

Request Details

No headers required

No path params required

No query required

Body

  • chats(array, required)
  • dateRange(object, required)

Responses

  • 200Stored successfully
    {"success":true,"message":"N chats stored successfully","count":N}
  • 400Invalid payload
    {"error":"Valid chats array and dateRange are required"}
  • 500Failed to store 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