> ## 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 端点。

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

接受 Loki JSON push 结构：

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

每个 value 成为一条日志事件，label 成为字段，日志行写入 `message`。通过 `stream-name` 选择目标流
（默认 `default`），并支持 gzip 请求体。当前端点不解析 Loki snappy-protobuf 请求。

通过 `Authorization: Bearer ...` 发送 JWT 或 `ms_*` API Token，主体需要
`streams.write`。成功返回 `204`。
