Audits

Launch an audit

Queues an audit of a prompt set, or of chosen prompts, on the engines you name, and returns the created audits. Each recorded answer spends one prompt run; set max_attempts to cap the spend, and estimate first with the estimate operation. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

POST/v1/projects/{project_id}/audits

Needs the audits:run scope

Queues an audit of a prompt set, or of chosen prompts, on the engines you name, and returns the created audits. Each recorded answer spends one prompt run; set max_attempts to cap the spend, and estimate first with the estimate operation. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

Path parameters

Path parameters
Parameter
project_idstring (uuid)pathrequired

Headers

Headers
Parameter
Idempotency-Keystringheaderrequired

Request body

Request body
ParameterDescription
prompt_set_idstring (uuid) | nullbody
prompt_idsstring (uuid)[]body
Default[]
enginesLogicalEngine[]bodyrequired
repetitionsinteger | nullbody
market_idsstring (uuid) | null[]body
Default[null]
benchmark_modeBenchmarkMode | nullbody
audit_scopestringbody
One ofbrandcommerceDefault"brand"
random_seedstring | nullbody
max_attemptsintegerbodyrequired

Response 201: Audit[]