---
title: "Stream structured logs via Server-Sent Events"
method: GET
path: "/v1/logs"
tags: ["Logs"]
---

# Stream structured logs via Server-Sent Events

`GET /v1/logs`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/logs`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

SSE stream of API log events.

Query params:
- node_id: filter by compute node ID
- level: filter by log level (info, warning, error)

Connect with:
    const es = new EventSource('/v1/logs', { headers: { Authorization: 'Bearer sk_...' } })

## Query parameters

- `node_id` string, nullable
- `level` string, nullable

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
