Export conversation.
Changed onExports the complete conversation history (all prompts and agent responses) as a downloadable file. Use this to archive conversations, share transcripts, or analyze conversation content offline. The file format is selected by the format query parameter.
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The ID of the agent to get the messages for
The session ID of the converstaions to get the messages for
Query parameters
Export file format.
Set to true to limit the export to a specific number of rows defined by the rowsNumber parameter. When false (default), all matching conversations are exported.
The maximum number of rows to include in the export. Must be a positive integer (minimum: 1). Only applied when isCustomRowsNumber is true.
Start date for filtering exported conversations. Format: YYYY-MM-DD (e.g., 2024-01-15). Conversations created on or after this date are included. Omit to include all conversations up to endDate.
End date for filtering exported conversations. Format: YYYY-MM-DD (e.g., 2024-03-31). Conversations created on or before this date are included. Omit to include all conversations from startDate onward.
Response
Export a conversation as a downloadable file
Changes
- info
endpoint added
- info