---
title: "Get logs for a task"
method: GET
path: "/tasks/{id}/logs"
tags: ["tasks", "logs"]
---

# Get logs for a task

`GET /tasks/{id}/logs`

Retrieve the logs recorded for a task

## Path parameters

- `id` string, required

## Query parameters

- `from` string
- `to` string
- `limit` integer

## Response `200`

The call was successful.

- ProcessLog[]
  - `process_id` string — The id of the process running the task
  - `thread_id` string — The id of the thread running the task
  - `activity` string — The activity that generated this log message
  - `created` string, date-time — Time that the log message was created
  - `severity` 'info' | 'severe' | 'warning' — The severity of the event. There are three levels: info is informational and no action is needed, warning may indicate that an error will occur if action is not taken, severe is critical and requires immediate attention (e.g. the application is down).
  - `message` string — The log message

---

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