Skip to main content
POST
/
v2
/
security
/
audit-trace
Run Security Audit From Trace
curl --request POST \
  --url https://api.valiqor.com/v2/security/audit-trace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_name": "<string>",
  "trace": {},
  "batch_name": "<string>",
  "categories": [
    "<string>"
  ],
  "config": {},
  "openai_api_key": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request to run security audit from a trace

project_name
string
required

Project name (will be created if doesn't exist)

trace
Trace · object
required

Trace data containing messages/spans

batch_name
string | null

Optional batch name

categories
string[] | null

Categories to check (e.g., ['S1', 'S2'])

config
Config · object

Optional configuration

openai_api_key
string | null

Optional OpenAI key override

Response

Successful Response