Skip to main content
POST
Query analytics timeseries (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
startDate
required
endDate
required
series
object[]
required
timeZone
string
required
query
string
filters
object
traceIds
string[]
negateFilters
boolean
excludeOrigins
string[]
groupBy
string
Minimum string length: 1
groupByKey
string
timeScale
Allowed value: "full"
shouldSkipPreviousPeriod
boolean

Response

Success

currentPeriod
object[]
required
previousPeriod
object[]
required
Last modified on October 12, 2026