Skip to main content
POST
Playground analysis

Authorizations

Authorization
string
header
required

Valiqor API key. Pass as Bearer token: Authorization: Bearer vq-xxxxxxxxxxxxxxxxxxxx

Body

application/json

Request for lightweight single-item failure analysis from dashboard playground.

Security limits:

  • input: 2000 chars max (typical user prompts are <500)
  • output: 5000 chars max (enough for most responses)
  • context: 5000 chars max (sufficient for RAG demo)
  • Combined token budget: 4000 tokens max (checked at runtime)
input
string
required

User prompt/query (max 2000 chars)

Maximum string length: 2000
output
string
required

AI response to analyze (max 5000 chars)

Maximum string length: 5000
context
string | null

Retrieved documents or system prompt (max 5000 chars)

Maximum string length: 5000
tool_calls
Tool Calls · object[] | null

Tool invocations with outputs (max 5)

Maximum array length: 5

Response

Successful Response

Response from playground analysis - simplified for dashboard UI.

run_id
string
required
summary
FailureSummary · object
required

Summary of failure analysis results.

failure_tags
FailureTagResponse · object[]
required
checks_passed
integer
required

Number of checks that passed (for showing thoroughness)

duration_ms
integer
required
security_flags
Security Flags · object
playground_runs_today
integer
default:0

Number of playground runs used today

playground_limit_per_day
integer
default:10

Daily playground run limit