---
title: "Get task logs"
method: GET
path: "/api/{workspaceId}/sources/logs"
tags: ["Syncs"]
---

# Get task logs

`GET /api/{workspaceId}/sources/logs`

## Request

- Base URL: `https://use.jitsu.com`
- URL: `https://use.jitsu.com/api/{workspaceId}/sources/logs`
- Auth: HTTP bearer

Streams gzipped plain-text logs for a sync task. Lines are joined by the `#ENDLINE#` sentinel by default; pass `download=true` for newline-separated output and a `Content-Disposition: attachment` header.

## Path parameters

- `workspaceId` string, required

## Query parameters

- `taskId` string, required
- `syncId` string, required
- `download` string

## Response `200`

Streaming response

## Other responses

- `400`: Bad request
- `401`: Authorization required
- `403`: Forbidden — no access to this workspace, or the workspace's plan does not include this feature
- `500`: Internal server error

---

[API](https://skmtc.dev/jitsu/apis/jitsu-api.md) - [All operations](https://skmtc.dev/jitsu/apis/jitsu-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jitsu/apis/jitsu-api/revisions/f6b8702d246f?raw)
