latestOpenAPI 3.0.32026-08-227451,2751.8 MB

d0fc0114da66

Analysis

Evaluate an AI assertion

(deprecated - use /agent/assertion?workspaceId={workspace_id}) Evaluate an AI assertion

post/analysis/{workspace_id}/assertion/evaluate

Path parameters

workspace_idstring required

The workspace associated with this assertion

Request body

test_run_idstring required

The test run ID for which this assertion is being evaluated

assertion_promptstring required

The assertion prompt text to use in evaluating the assertion

assertion_criteriastring[]

The assertion criteria to use in evaluating the assertion

regenerate_criteriaboolean

Whether to regenerate the assertion criteria for the assertion (if no criteria are specified, they will always be generated regardless of this setting)

screenshotstring required

Base64-encoded screenshot of the element to use in evaluating the assertion

screenshot_mime_typestring

The MIME type of the Base64-encoded screenshot data (optional; defaults to image/png if not provided)

session_idstring

The ID of the current editing session for the assertion, if applicable

test_invariant_idstring

The ID of the test in which this assertion is being evaluated

test_type'api' | 'browser' | 'performance' | 'mobile'

Type of test

training_session_idstring

The ID of the current training session for the assertion, if applicable

urlstring

The URL on which this assertion is being evaluated

Response

Unknown error

idstring
codeinteger
messagestring