Get all historical chat messages.
Export raw user_queries rows for a date range.
A row is in the range when its start_time (UTC) is on or after start_date and before end_date: start_date is included, end_date is not.
Every field on each row is documented under the response schema below, in UserQueryRow. Note the alias pairs: is_scheduled / created_by_schedule (this run was scheduled) and has_schedule / has_active_schedule (the parent chat has a schedule). Use acc_actual when present, otherwise acc_consumed; summed by chat_kind, they split what building apps cost from what questions cost.
Request
- Base URL: https://app.getdot.ai (the document declares no server; this is the origin it was published from)
- URL: https://app.getdot.ai/api/export_history
- Auth: one of:
- API key in header X-API-KEY
- API key in cookie Authorization
- OAuth 2 (password, token URL /api/auth/token)
- API key in query parameter user_id+api_token
Query parameters
First day included (UTC), YYYY-MM-DD. Default: 14 days before today.
First day NOT included (UTC), YYYY-MM-DD: the range ends at the start of this day. Default: tomorrow, so today is included. For a single day, pass that day and the day after.
Include history from all workspaces (main workspace only)
Add answer to each row: the answer the user read for that question. Rows without a saved answer get null.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.