Skip to main content
POST
Review tap script (AI)

Authorizations

x-api-key
string
header
required

Optional API key for authentication (enabled via application.yaml)

Body

application/json
script
string
required
tapName
string
recordCount
integer

Record count from the latest test run

durationMs
integer<int64>

Duration of the latest test run in milliseconds

logs
string

Logs from the latest test run

oldScriptPath
string

Path of the current script, deleted if a rewrite is stored

priorIterations
string

JSON-encoded array of prior review/optimize iterations, so the AI doesn't repeat suggestions

Response

Review result

script
string
packages
string[]
scriptPath
string
changes
string[]

Human-readable list of what changed

rewritten
boolean

True when the AI produced a modified script