Skip to content
API referenceList prompt test cases

List prompt test cases

GET/v1/prompts/{slug}/test-cases

List prompt test cases.

Returns the prompt's test cases. Requires membership of the prompt's workspace (organization admins have it). 404 when the prompt 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 prompt's slug

Query parameters

  • organizationstringrequired

    slug of the organization that owns it

Responses

200application/json
  • prompt_slugstring

    Slug of the prompt.

  • dataobject[]

    The test cases.

    Child attributes
    • idstring

      The test case's unique id (UUID).

    • prompt_idstring

      Id (UUID) of the prompt.

    • namestring

      The test case's name.

    • variables_jsonmap<string, string>

      The variable values the prompt is rendered with, as a JSON object of strings.

    • expected_patternstring

      The pattern a passing answer matches: a case-insensitive regular expression, or a substring when it is not a valid regular expression. Null when every completed answer passes.

    • created_atstring<date-time>

      When the test case was created (ISO 8601).

NVIDIA Inception Program member

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