Logstreem
API reference

API reference

Base URL, authentication, conventions, and every endpoint Logstreem exposes.

One REST API over HTTPS. JSON in, JSON out, bearer tokens. Everything the console and the CLI do goes through these endpoints — there is no privileged internal API.

Base URL

Base URL
https://api.logstreem.com/v1

Authentication

Every request carries a token in the Authorization header. Tokens are created in the dashboard or via POST /v1/tokens, and are scoped to actions and datasets — see tokens.

cURL
curl https://api.logstreem.com/v1/datasets \
  -H "Authorization: Bearer lstrm_live_9f2c…"
PrefixReachesBilled
lstrm_test_The documentation sandboxNo
lstrm_live_Your organisation's dataYes

Resources

Conventions

  • Ids are prefixed and opaque: ds_, mon_, ntf_, tok_, dsh_, ann_. Never parse them.
  • List endpoints return { object: "list", data, has_more, next_cursor } — see pagination.
  • Timestamps are RFC 3339 in UTC, always with a Z.
  • Unknown request fields are rejected with 400, not ignored — a typo fails loudly.
  • Every response carries X-Request-Id, and every error repeats it in the body.

Try it calls a sandbox

The panels on these pages hit simulated endpoints on this site. The query endpoint genuinely evaluates LSQL; the rest return fixtures. See Sandbox.