Export Text Sessions
Changed onExport the sessions matching the current filters as typed .xlsx / pure CSV.
Same filters, same crud query, same enrichment as list_text_sessions — the file equals the screen by construction. Above the row cap the request 422s rather than silently truncating. Every export writes a durable ExportAudit row (metadata only, never row contents).
Request
- Base URL: https://api.getanana.com (the document declares no server; this is the origin it was published from)
- URL: https://api.getanana.com/api/v1/text-ai/text-sessions/export
- Auth: none declared
Query parameters
Filter to rows stamped at this tenant-local hour (0-23); heatmap cell drill.
Filter to rows stamped on this tenant-local weekday (0=Mon..6=Sun); heatmap cell drill.
Deprecated - use date_field=created_at.
File format: xlsx or csv.
Ordered visible column keys to export. Core identity columns (when/visitor/hotel) always export. Unknown keys are a 422.
Custom metrics to export — two columns each (result, score).
Export only these selected sessions (still ANDed with filters).
Filename stem (sanitized to ASCII kebab).
Human filter description for the workbook context header.
Deprecated - use offset.
Deprecated - use limit.
Which timestamp the date range filters. Valid values differ per subject; an unknown one is a 422 listing them.
Deprecated - use start_date.
Deprecated - use end_date.
Include hotels the conversation was only considered for, not just the one it was attributed to.
Named conversation-population filters: business_hours, min_call_25s, real_customer_message, exclude_spam_test, dedupe_24h.
Reject filters this subject cannot apply with a 422, instead of returning a wider population and reporting them in ignored_filters.
Deprecated - use agent_id.
Deprecated - use metric_filters.
Deprecated - use metric_filters.
Deprecated - use has_booking_intent.
Response
The export file (XLSX or CSV, per the format param).
Changes
- info
added the new optional
queryrequest parametercrm_record - info
added the new optional
queryrequest parameterhandling_outcomes
- info
- info
added the new optional
queryrequest parameterchannel
- info