Skip to main content
POST
Start a test run

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). Retrying with the same key within 24 hours replays the first response instead of repeating the change.

Path Parameters

Body

application/json
systemPrompt
string

Preview: run with these instructions instead of the saved ones, and compare with the live agent. Nothing is saved.

Maximum string length: 10000
modelId
string

Preview: run with this model id (from GET /v1/agents/{agentId}/models) instead of the saved one.

Response

id
string
required
trigger
enum<string>
required

MANUAL: started by hand or the API. TRAINING: after training. PREVIEW: unsaved instructions or model compared with the live agent.

Available options:
MANUAL,
TRAINING,
PREVIEW
status
enum<string>
required
Available options:
QUEUED,
RUNNING,
COMPLETED,
FAILED
total
number
required
passed
number
required
passRate
number | null
required

passed / total.

baselinePassed
number | null
required

PREVIEW only: how many questions the live agent passes.

error
string | null
required
createdAt
string<date-time>
required
startedAt
string<date-time> | null
required
completedAt
string<date-time> | null
required