Skip to content
API referenceList a context source's test cases

List a context source's test cases

GET/v1/context-sources/{slug}/test-cases

List 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

  • slugstringrequired

    The source's identifier (ctx-...).

Query parameters

  • organizationstringrequired

    The organization's identifier (slug).

Responses

200application/json
  • casesobject[]

    The test cases, in the order they were sent.

    Child attributes
    • questionstringrequired

      A question your users would ask. At most 4,000 characters.

      At least 0 characters · At most 4000 characters

    • expected_sectionsstring[]required

      Ids of the sections (n12, from the outline) that answer the question, 1 to 8.

      At most 8 items

    • idstring

      The case's id. Read-only: ignored when you send test cases.

    • created_atstring<date-time>

      When the case was saved. Read-only.

NVIDIA Inception Program member

VectorAxis is built by GK Labs, a member of NVIDIA Inception.