---
title: "Retrieve loki logs"
method: POST
path: "/api/v1/projects/loki-logs"
tags: ["Projects"]
---

# Retrieve loki logs

`POST /api/v1/projects/loki-logs`

## Request body

- ProjectsLogsCommand
  - `query` LokiLogsQuery
    - `projectId` integer
    - `parameters` string, nullable
    - `filters` Filter[], nullable
      - `operator` string, nullable
      - `value` string, nullable
    - `startDate` string, date-time, nullable
    - `endDate` string, date-time, nullable
    - `limit` integer, nullable
    - `direction` string, nullable

## Response `200`

OK

- LokiResult[]
  - `stream` Stream
    - `job` string, nullable
    - `namespace` string, nullable
    - `pod` string, nullable
    - `podTemplateHash` string, nullable
    - `streamStream` string, nullable
    - `app` string, nullable
    - `container` string, nullable
    - `filename` string, nullable
    - `tier` string, nullable
    - `component` string, nullable
  - `values` string[], nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/taikun/apis/taikun-webapi.md) · [All operations](https://skmtc.dev/taikun/apis/taikun-webapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/taikun/taikun-webapi/revisions/09395964d191/schema)
