> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molesignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Loki push

> Loki JSON push endpoint.

```http theme={null}
POST /api/v1/loki/api/v1/push
```

Accepts the Loki JSON push shape:

```json theme={null}
{"streams":[{"stream":{"service":"api"},"values":[["1717200000000000000","started"]]}]}
```

Each value becomes a log event; labels become fields and the line becomes `message`. Set
`stream-name` to choose the target stream (default `default`). Gzip request bodies are accepted.
The current endpoint does not decode Loki snappy-protobuf payloads.

Send a JWT or `ms_*` API token as `Authorization: Bearer ...`; the principal needs
`streams.write`. Success returns `204`.
