Skip to main content
POST
Python

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
config
object
required

What this run covers and what it runs against. Written onto the run plan the name resolves.

name
string

The run plan this run joins or creates. A run plan is identified by its name, so sending the same name again replaces that plan's configuration with this one. Leave it out and the name is derived from what the run covers and what it runs against. Up to 200 characters.

Required string length: 1 - 200
idempotencyKey
string

Repeat the same key to make a retry join the batch the first call started instead of running everything again. Defaults to a new key per call.

parameters
object

Constant values applied to every scenario in the run, e.g. a fixture id or a tenant. A value supplied here overrides the scenario's own default for that name.

note
string

One short line describing why this batch was run, e.g. a commit hash or what you changed. It is stored on every run of the batch and shown beside the run in the platform. Up to 200 characters.

Maximum string length: 200

Response

200 - application/json

Success

scheduled
boolean
required

True once the runs are queued.

batchRunId
string
required

The id of this batch. Every run started here carries it.

setId
string
required

The result set the batch is filed under in the platform.

jobCount
number
required

How many runs were queued.

skippedArchived
object
required

What the run left out, and why.

items
object[]
required

Every run this call queued.

runPlanId
string
required

The run plan this run was filed under.

planName
string
required

The name that plan answers to.

created
boolean
required

True when this run created the plan, false when it joined a plan already there.

platformUrl
string<uri>
required

Where to watch this run in the LangWatch platform.

Last modified on August 28, 2026