List a context source's test cases
/v1/context-sources/{slug}/test-casesList a context source's test cases.
The source's test set: questions with the sections that answer them, used by test runs to measure the section selection.
Requires an organization admin key, or a key of the source's workspace. Returns 404 when the source does not exist.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
slugstringrequiredThe source's identifier (
ctx-...).
Query parameters
organizationstringrequiredThe organization's identifier (slug).
Responses
casesobject[]The test cases, in the order they were sent.
Child attributes
questionstringrequiredA question your users would ask. At most 4,000 characters.
At least 0 characters · At most 4000 characters
expected_sectionsstring[]requiredIds of the sections (
n12, from the outline) that answer the question, 1 to 8.At most 8 items
idstringThe case's id. Read-only: ignored when you send test cases.
created_atstring<date-time>When the case was saved. Read-only.