v1

latestOpenAPI 3.1.0MIT2026-07-26134154266.9 KB

List all trainings

List all training scenarios for your organization. Trainings teach the AI how to respond to specific situations. Supports filtering by search term, type, and draft status, with pagination.

get/training

Query parameters

searchstring

Case-insensitive search on title or content

type'BEHAVIORAL' | 'SCENARIO_SPECIFIC'

Filter by type: BEHAVIORAL or SCENARIO_SPECIFIC

is_draft'true' | 'false'

Filter by draft status

limitinteger

Max items to return (1-100, default 50)

offsetinteger

Number of items to skip (default 0)

sort_by'created_at' | 'handoff_count'

Sort by field: created_at (default) or handoff_count (most handoffs first)

metadatastring

Filter by metadata — JSON object of key-value pairs to match (uses jsonb @> containment)

Response

Default Response

totalnumber required

Total matching items before pagination

limitnumber required
offsetnumber required
has_moreboolean required

Whether more items exist beyond this page