Skip to main content
POST
Start an experiment

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
name
string
required
Maximum string length: 100
Example:

"Shorter instructions"

candidatePercent
number
required

Share of new conversations (in %) that get the candidate. At most 50 through the API.

Required range: 1 <= x <= 50
Example:

20

candidateModelId
string

A model id (modelDetails.id on an agent) for the candidate. Must be available on the plan.

candidateSystemPrompt
string

Instructions (system prompt) for the candidate.

Maximum string length: 10000

Response

id
string
required
agentId
string
required
name
string
required
status
enum<string>
required
Available options:
RUNNING,
STOPPED
candidatePercent
number
required
Required range: 1 <= x <= 99
candidateModelId
string | null
required

Null when the candidate keeps the control model.

candidateSystemPrompt
string | null
required

Null when the candidate keeps the control instructions.

controlModelId
string
required

The model when the experiment started.

controlSystemPrompt
string
required

The instructions when the experiment started.

startedAt
string<date-time>
required
stoppedAt
string<date-time> | null
required