HTTP API reference
Every endpoint lives under /v1 and speaks JSON unless noted. All requests need
a bearer token; see authentication.
POST /v1/write
Writes points in the v3 line protocol. The body is text/plain, one point per
line, up to 5,000 points or 4 MB per request, whichever comes first. Returns 204 on success.
A partial failure returns 207 with a per-line error list; the successful lines are still
written, because dropping a whole batch for one malformed line is how you lose data.
POST /v1/query
Runs a query. Takes query, an optional dialect of
meridianql or promql, and an optional timeout capped at
120 seconds. Responses stream as newline-delimited JSON.
POST /v1/query/explain
Returns the physical plan without executing it, including estimated rows scanned per stage and which filters were pushed down. Added in v3.1.0.
GET /v1/series
Lists series matching a selector. Paginated with a cursor; the page size defaults to 1,000 and caps at 10,000.
DELETE /v1/series
Deletes series matching a selector. Asynchronous — returns a job ID to poll at
GET /v1/jobs/{id}. Deletes are tombstoned immediately and reclaimed at the next
compaction, so space does not come back instantly.
Errors
Errors return a JSON body with code, message, and
request_id. Codes are stable strings such as rate_limited,
invalid_query, and retention_exceeded. Do not match on message text;
it changes.