---
title: "Get Task Logs"
method: GET
path: "/tasks/{id}/logs"
tags: ["Tasks"]
---

# Get Task Logs

`GET /tasks/{id}/logs`

Get the logs of a task

## Path parameters

- `id` string, objectid, required — Task ID

## Query parameters

- `latest` boolean — Whether to get latest logs (default: true)
- `page` integer — Page (default: 1)
- `size` integer — Size (default: 10000)

## Response `200`

OK

- ControllersListResponseString
  - `data` string[]
  - `error` string
  - `message` string
  - `status` string
  - `total` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

- **2026-07-17** `c7a4715c1f13` — 1 breaking, 1 warning, 12 info
  - for the `path` request parameter `id`, the format changed from no format to `objectid`
  - removed the optional property `code` from the response with the `200` status
  - api operation id `get_task_logs` was added
  - added the new optional `query` request parameter `latest`
  - …10 more
- **2025-03-03** `14e4eafea538` — 1 warning
  - removed the optional property `data` from the response with the `200` status
- **2025-03-02** `526e5bdf6dee` — 2 breaking, 6 warning, 6 info
  - added the pattern `^[0-9a-fA-F]{24}$` to the `path` request parameter `id`
  - the `data` response's property type changed from `array` to `object` for status `200`
  - deleted the `query` request parameter `latest`
  - deleted the `query` request parameter `page`
  - …10 more

[Change history](https://skmtc.dev/crawlab-team/apis/crawlab-api/changes/tasks/:id/logs/get.md)

---

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