Skip to main content
POST
Report DSPy optimizer steps

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
run_id
string
required
index
string
required
score
number
required
label
string
required
optimizer
object
required
predictors
object[]
required
timestamps
object
required
examples
object[]
required
llm_calls
object[]
required
workflow_version_id
string | null
experiment_id
string | null
experiment_slug
string | null

Response

Every step in the batch was recorded

message
string
required

Human-readable confirmation