List prompt test cases
/v1/prompts/{slug}/test-casesList 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
slugstringrequiredthe prompt's slug
Query parameters
organizationstringrequiredslug of the organization that owns it
Responses
prompt_slugstringSlug of the prompt.
dataobject[]The test cases.
Child attributes
idstringThe test case's unique id (UUID).
prompt_idstringId (UUID) of the prompt.
namestringThe test case's name.
variables_jsonmap<string, string>The variable values the prompt is rendered with, as a JSON object of strings.
expected_patternstringThe 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).