---
title: "Create experiment"
method: POST
path: "/api/v1/automations/{id}/experiments"
tags: ["Evaluation"]
---

# Create experiment

`POST /api/v1/automations/{id}/experiments`

Start an asynchronous experiment batch for one automation. Omit `examples` to run the full dataset, or pass specific example ids to run a subset.

## Path parameters

- `id` string, required — Automation id or typed alias.

## Request body

- ExperimentCreate — Request body for starting an experiment batch.
  - `examples` string[] — Optional dataset example ids to run. Omit to run the full dataset.
  - `batchConcurrency` integer, nullable — Maximum concurrent example runs for this experiment.
  - `sourceRef` string — Optional source version/ref to use for experiment runs.

## Response `202`

Experiment accepted and runs enqueued.

- ExperimentCreateResponse — Accepted experiment batch and the runs it enqueued.
  - `id` string, required — Experiment batch id.
  - `runs` object[], required — Runs enqueued for this experiment.
    - `id` string, required — Run id.
    - `exampleId` string, nullable, required — Dataset example id.
  - `total` integer, required — Number of runs enqueued.

## Other responses

- `400` — Validation error. Request shape did not match the spec.
- `401` — Missing or invalid API key
- `403` — API key lacks required scope
- `404` — Resource not found
- `413` — Payload too large. Upload exceeded the per-request size cap.
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.dev/eigenpal/apis/eigenpal-api.md) · [All operations](https://skmtc.dev/eigenpal/apis/eigenpal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eigenpal/eigenpal-api/revisions/dddcddf1975c/schema)
