v1

latestOpenAPI 3.1.02026-07-175793186.0 KB
sessions

Export session as GEPA dataset

Convert a session's turn history into a JSONL dataset suitable for GEPA optimization. Requires a target module slug to determine the column mapping.

post/api/v1/sessions/{session_id}/export

Path parameters

session_idstring required

Identifier of the session to export as a dataset.

Identifier of the session to export as a dataset.

Request body

module_slugstring required

Target GEPA module slug whose dataset keys determine the export column mapping.

Response

Successful Response

idstring required

Unique dataset identifier.

namestring required

Human-readable dataset name.

row_countinteger required

Number of rows/examples in the dataset.

formatstring required

File format (json or jsonl).

module_slugstring nullable

Associated module slug, when provided.

created_atstring required

ISO-8601 creation timestamp.