Chats / store
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/jsonfor JSON bodies. - For Bearer auth, you can provide either a session JWT or an opaque API key where supported.