Skip to main content

Endpoints

  • List coding agent session events: every model call, compaction, rate limit and tool run of one session, in time order, with input, output, cache-read and cache-creation tokens, cost, duration and model per row.
  • Get pull request coding agent usage: the rollup of everything spent on a pull request over its lifetime, split by project, user and agent.
Both authenticate with a project API key and read under the project’s data privacy policy: an API key resolves as a public viewer, so it reads what the policy captures and never what it restricts or drops. The same data renders in the product on the sessions and pull requests views, and over the command line as langwatch session events <sessionId> and langwatch trace transcript <traceId>.
Last modified on August 27, 2026