logs

Export Text Logs

Changed on

Export 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).

get/api/v1/logs/text/export

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/logs/text/export
  • Auth: none declared

Query parameters

text_widget_group_idstring uuid nullable
was_transferredboolean nullable
contact_sourcestring nullable
transfer_destinationstring nullable
outcome'voicemail' | 'missed_by_system' | 'transferred' | 'handled_end_to_end' | '__null__' nullable
has_first_responseboolean nullable
has_endedboolean nullable
local_hour_of_dayinteger nullable

Filter to rows stamped at this tenant-local hour (0-23); heatmap cell drill.

local_day_of_weekinteger nullable

Filter to rows stamped on this tenant-local weekday (0=Mon..6=Sun); heatmap cell drill.

bucketsstring[] nullable
handling_outcomesstring[] nullable
crm_record'yes' | 'no' nullable
dispositionsstring[] nullable
needs_owner_reviewboolean nullable
use_created_atboolean nullable

Deprecated - use date_field=created_at.

format'xlsx' | 'csv'

File format: xlsx or csv.

columnsstring[] nullable

Ordered visible column keys to export. Core identity columns (when/visitor/hotel) always export. Unknown keys are a 422.

metric_idsstring[] nullable

Custom metrics to export — two columns each (result, score).

idsstring[] nullable

Export only these selected sessions (still ANDed with filters).

report_namestring nullable

Filename stem (sanitized to ASCII kebab).

context_labelstring nullable

Human filter description for the workbook context header.

limitinteger nullable
offsetinteger nullable
pageinteger nullable

Deprecated - use offset.

per_pageinteger nullable

Deprecated - use limit.

start_datestring date nullable
end_datestring date nullable
date_fieldstring nullable

Which timestamp the date range filters. Valid values differ per subject; an unknown one is a 422 listing them.

date_fromstring date-time nullable

Deprecated - use start_date.

date_tostring date-time nullable

Deprecated - use end_date.

property_ids_excludestring[] nullable
include_considered_hotelsboolean nullable

Include hotels the conversation was only considered for, not just the one it was attributed to.

string uuid
OR
'__null__'
outcome_agent_refstring nullable
outcome_agent_refsstring[] nullable
outcome_agent_refs_excludestring[] nullable
outcome_agent_kind'ai_voice' | 'ai_text' | 'human' nullable
reviewedboolean nullable
statusstring nullable
has_booking_intentboolean nullable
has_bookingboolean nullable
booking_madeboolean nullable
booking_attributedboolean nullable
tag_idsstring[] nullable
countrystring nullable
selected_languagestring nullable
language_selection_sourcestring nullable
channelstring[] nullable
countriesstring[] nullable
countries_excludestring[] nullable
is_after_hoursboolean nullable
population_filtersstring[] nullable

Named conversation-population filters: business_hours, min_call_25s, real_customer_message, exclude_spam_test, dedupe_24h.

searchstring nullable
standard_filtersstring nullable
metric_filtersstring nullable
sort_bystring nullable
sort_order'asc' | 'desc' nullable
strictboolean

Reject filters this subject cannot apply with a 422, instead of returning a wider population and reporting them in ignored_filters.

voice_agent_idstring uuid nullable

Deprecated - use agent_id.

metric_idstring uuid nullable

Deprecated - use metric_filters.

metric_state'pass' | 'fail' | 'na' | 'not_run' | 'error' nullable

Deprecated - use metric_filters.

booking_intentboolean nullable

Deprecated - use has_booking_intent.

Response

The export file (XLSX or CSV, per the format param).

unknown required

Changes