Agent

Export agent sessions

Changed on

Export whole conversations: the sessions named in session_ids, or every session of the user that passes the filters, newest activity first. An export of more sessions than agent_session_export_max_sessions is refused with 422 and detail {code: 'too_many_sessions', count, limit}.

post/api/v0/agent/sessions/export

Request

Request body

session_idsstring[] nullable

Export exactly these sessions. Cannot be combined with the filters.

persona_idstring uuid nullable

Keep the sessions of this persona.

without_personaboolean

Keep the sessions on the default persona.

section_idstring uuid nullable

Keep the sessions filed under this section.

qstring nullable

Keep the sessions whose name or message text matches, or with this session ID.

Response

Successful Response

exported_atstring date-time required

When the export was made.

Changes