---
title: "Get Tasks Endpoint"
method: GET
path: "/lam/tasks"
tags: ["LAM"]
---

# Get Tasks Endpoint

`GET /lam/tasks`

## Request

- Base URL: `https://api.raccoonai.tech`
- URL: `https://api.raccoonai.tech/lam/tasks`
- Auth: API key in header `raccoon-secret-key`

## Query parameters

- `start_time` integer, nullable: Filter tasks created after this Unix timestamp (in milliseconds).
- `end_time` integer, nullable: Filter tasks created before this Unix timestamp (in milliseconds).
- `task_id` string, nullable: Filter tasks by a specific task ID.
- `page` integer, nullable: Page number for pagination.
- `limit` integer, nullable: Number of tasks per page (maximum 100).
- `executionType[]` string[], nullable: Filter tasks by execution type (e.g., 'default', 'deepsearch').
- `sort_by` 'timestamp' | 'executionTime' | 'taskId' | 'status' | 'executionType', nullable: Field to sort tasks by (e.g., 'timestamp', 'executionTime').
- `sort_order` 'ascend' | 'descend', nullable: Sort order ('ascend' or 'descend').
- `raccoon_passcode` string, nullable: Filter tasks by Raccoon passcode.

## Response `200`

Successful Response

- TaskListResponse
  - `tasks` Task[], required: List of tasks.
    - `executionType` 'default' | 'deepsearch', required: The type of execution performed (e.g., 'default', 'deepsearch').
    - `raccoonPasscode` string, required: Passcode associated with the user.
    - `inputs` object, required: Input parameters used for the task execution.
    - `taskId` string, required: Unique identifier for the task.
    - `timestamp` integer, required: Unix timestamp (in seconds) indicating when the task was created.
    - `executionTime` integer, required: Time taken for the task execution (in seconds).
    - `output` object[], required: Output generated by the task execution.
  - `meta` Meta, required: Metadata about the task list.
    - `totalPages` integer, required: Total number of pages available.
    - `totalRecords` integer, required: Total number of records across all pages.
    - `currentPage` integer, required: The current page number.

## Other responses

- `422`: Validation Error

## Changes

- **2025-03-18** `cc64732da5aa`: 2 breaking, 2 warning, 4 info
  - removed the enum value `extract` from the property `anyOf[subschema #1]/items/` of the `query` request parameter `executionType[]`
  - removed the enum value `run` from the property `anyOf[subschema #1]/items/` of the `query` request parameter `executionType[]`
  - added the new `deepsearch` enum value to the `tasks/items/executionType` response property for the response status `200`
  - added the new `default` enum value to the `tasks/items/executionType` response property for the response status `200`
  - …4 more
- **2025-03-03** `0347d66172e4`: 1 breaking, 6 warning, 7 info
  - removed the request body
  - deleted the `query` request parameter `endTime`
  - deleted the `query` request parameter `raccoonPasscode`
  - deleted the `query` request parameter `sortBy`
  - …10 more
- **2025-03-03** `b0c1c8f44dae`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/raccoonaihq/apis/raccoon-ai-api/changes/lam/tasks/get.md)

---

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