Skip to main content
POST
Track an event (legacy path)

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
event_type
string
required
metrics
object
required
trace_id
string
required
event_id
string
event_details
object
timestamp
number

Response

The event was accepted

message
string
required

Human-readable confirmation