---
title: "Get log lines for the tasks of an invocation attempt"
method: GET
path: "/v1/vercel-ci/invocations/{invocationId}/attempts/{attempt}/task-logs"
tags: ["vercel-ci"]
---

# Get log lines for the tasks of an invocation attempt

`GET /v1/vercel-ci/invocations/{invocationId}/attempts/{attempt}/task-logs`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/vercel-ci/invocations/{invocationId}/attempts/{attempt}/task-logs`
- Auth: HTTP bearer

Returns log lines for the tasks of an invocation attempt in a single request, grouped by task. Tasks can be narrowed by name and by conclusion, for example `conclusion=failed` to fetch only the logs of failed tasks. With `search`, every matching task is searched at once and only tasks with matching lines are returned.

## Path parameters

- `invocationId` string, required
- `attempt` string, required

## Query parameters

- `task` string[]: Only return tasks with one of these names (e.g., \"web#test\").
- `conclusion` string[]: Only return completed tasks with one of these conclusions.
- `level` string[]: Only return log lines with one of these levels.
- `search` string: Only return log lines containing this text, ignoring case. Tasks without matching lines are left out, `limit` is ignored, and at most 1000 lines are returned.
- `limit` number: Maximum number of tasks to return (default: 10, max: 25).
- `teamId` string
- `slug` string

## Response `200`

Successfully fetched task log lines.

- object
  - `tasks` object[], required
    - `jobDefinitionId` string, required
    - `jobName` string, required
    - `jobRunAttempt` number, required
    - `taskDefinitionId` string, required
    - `taskName` string, required
    - `taskRunAttempt` number
    - `conclusion` union
      - object
        - `result` string, required
      - object
        - `result` string, required
      - object
        - `result` string, required
        - `reason` string, required
      - object
        - `result` string, required
        - `reason` string, required
    - `lines` object[], required
      - `level` string, required
      - `timestamp` number, required
      - `message` string, required
  - `hasMore` boolean, required: Whether more tasks matched the filters than were returned. With `search`, whether more than 1000 lines matched.

## Other responses

- `400`: One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `410`
- `429`
- `500`

## Changes

- **2026-09-25** `7881412aa042`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/api/changes/v1/vercel-ci/invocations/:invocationId/attempts/:attempt/task-logs/get.md)

---

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