Skip to main content
POST
Create an experiment

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Body

application/json
experiment_type
enum<string>
required
Available options:
DSPY,
BATCH_EVALUATION,
BATCH_EVALUATION_V2
experiment_id
string | null
experiment_slug
string | null
experiment_name
string
workflowId
string

Response

Success

slug
string
required

Slug of the experiment, created or existing

path
string
required

Path to the experiment in the LangWatch app

Last modified on October 12, 2026