---
title: "Lists all logs with the specified Workspace Id"
method: GET
path: "/logs"
tags: ["logs"]
---

# Lists all logs with the specified Workspace Id

`GET /logs`

You need `workspaces.logs.read_all` permission to access this resource

## Query parameters

- `workspace_id` string, required
- `flow_ids[]` string[]
- `from` string, date-time
- `to` string, date-time
- `search` string
- `offset` integer
- `limit` integer
- `levels[]` integer[]
- `container_id` string

## Response `200`

OK

- object
  - `total` integer, required — Total number of Logs
  - `hits` object[], required
    - `id` string, required
    - `workspace_id` string, required
    - `flow_id` string, required
    - `user_id` string, required
    - `component_id` string, required
    - `container_id` string, required
    - `step_id` string, required
    - `exec_id` string, required
    - `thread_id` string
    - `method` string, required
    - `api_username` string, required
    - `component_name` string, required
    - `timestamp` string, date-time, required
    - `level` integer, required
    - `message` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
