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
| Parameter |
|---|
project_id |
Headers
| Parameter |
|---|
Idempotency-Key |
Request body
| Parameter | Description |
|---|---|
prompt_set_id | |
prompt_ids | Default [] |
engines | |
repetitions | |
market_ids | Default [null] |
benchmark_mode | |
audit_scope | One of brandcommerceDefault"brand" |
random_seed | |
max_attempts |
Response 201: Audit[]