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
type
string
required
Allowed value: "SCENARIO_RUN_STARTED"
timestamp
number
required
batchRunId
string
required
scenarioId
string
required
scenarioRunId
string
required
metadata
object
required
rawEvent
any
scenarioSetId
string
default:default

Response

Event created successfully

success
boolean
required
url
string | null
Last modified on May 19, 2026