---
title: "Get latest tasks for syncs"
method: POST
path: "/api/{workspaceId}/sources/tasks"
tags: ["Syncs"]
---

# Get latest tasks for syncs

`POST /api/{workspaceId}/sources/tasks`

## Request

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

Given a list of `syncId`s in the body, returns the most recent non-skipped task per sync as a `{ syncId: task }` map. Useful for rendering status badges next to many syncs at once.

## Path parameters

- `workspaceId` string, required

## Request body

- string[]

## Response `200`

OK

- object
  - `ok` boolean, required
  - `error` string
  - `tasks` object

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