Dataset export
Chatbot
Dataset export
Download a CSV file of recent student conversations for a course.
GET
Dataset export
Exports recent student conversations for a course as a CSV file download. Use this endpoint to build fine-tuning datasets or review chatbot performance. Authentication is required.
CSV columns:
Request headers
Your JWT authentication token.
Path parameters
The ID of the course to export conversations for.
Query parameters
Maximum number of conversations to include in the export. The value is clamped to the range 10–100 — values below 10 are raised to 10, and values above 100 are lowered to 100. Defaults to
50 if omitted or not a valid number.Response
200 — Success
Returns a CSV file attachment. Conversations are ordered from most recent to oldest. Response headers:| Header | Value |
|---|---|
Content-Type | text/csv |
Content-Disposition | attachment; filename="dataset-{courseId}-{timestamp}.csv" |
| Column | Description |
|---|---|
Start Time | ISO timestamp of when the conversation was recorded |
User Question | The student’s original message |
Assistant Answer | The AI assistant’s response |
Example
200