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