---
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

---

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