---
title: "Search the task logs of several invocation attempts"
method: GET
path: "/v1/vercel-ci/log-search"
tags: ["vercel-ci"]
---

# Search the task logs of several invocation attempts

`GET /v1/vercel-ci/log-search`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/vercel-ci/log-search`
- Auth: HTTP bearer

Searches the task logs of up to 50 invocation attempts at once, for example the most recent runs of a branch from `GET /v2/vercel-ci/invocations`. Only invocations and tasks with matching lines are returned. When more than 1000 lines match, the newest are kept.

## Query parameters

- `invocation` string[], required: Invocation attempts to search, as \"<invocationId>:<attempt>\" (at most 50).
- `search` string, required: Only return log lines containing this text, ignoring case.
- `level` string[]: Only return log lines with one of these levels.
- `teamId` string
- `slug` string

## Response `200`

Successfully searched task logs.

- object
  - `invocations` object[], required
    - `invocationId` string, required
    - `attempt` number, required
    - `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 than 1000 lines matched. The newest lines are returned.

## 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-30** `099fbe1f521c`: 1 info
  - added the non-success response with the status `404`
- **2026-09-25** `7881412aa042`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/api/changes/v1/vercel-ci/log-search/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)
