Skip to main content
POST
Run experiment

Authorizations

Authorization
string
header
required

Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.

Headers

X-User-Id
string
required

User id. May also be sent in the request body or as a userId query param.

Body

application/json
agentId
string
required
Example:

"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10"

datasetId
string
required
Example:

"ds_orders_v3"

scorers
string[]

Scorer types from the catalog (e.g. "tone", "bias"). Code scorers and LLM judges both supported.

Example:
async
boolean
default:false
name
string
Example:

"Refund tone — August"

description
string
Example:

"Checks the refund answers after the new brand-voice block"

metadata
object
Example:
version
integer

Dataset version to run against. Defaults to the newest.

Example:

3

maxConcurrency
integer
Example:

5

itemTimeout
integer

Milliseconds one item may take before it is failed.

Example:

60000

maxRetries
integer
default:2

Retries per dataset item before it is recorded as failed. Defaults to 2 so a transient provider fault does not fail an item; pass 0 to fail on the first error.

variables
object

Values for the {{variable}} placeholders in the agent's prompt blocks, applied to every item. Scalars or arrays of them; a dot path up to 3 segments may be sent nested ({ "user": { "language": "FR" } }) or dotted ({ "user.language": "FR" }). Reserved: now.*. A dataset item's own requestContext.variables are merged over these leaf by leaf. Display-only — never used for authorization or identity.

Example:
strictVariables
boolean
default:true

Refuse to start (400) when a placeholder with no default has no value for some item, or a supplied value is rejected by the limits. Pass false to run anyway and read the variables report on the response.

Response

The finished run, or — with async: true — the id of the run that was started

status
enum<string>

started on an async run; the scores are not ready yet.

Available options:
completed,
started
experimentId
string

Async runs only — poll the experiment by this id.

summary
object

Sync runs only: the scorer results over the dataset. Its shape follows the scorers you asked for.

variables
object