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

# Get Tasks Endpoint

`GET /lam/tasks`

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

---

[API](https://skmtc.net/raccoonaihq/apis/raccoon-ai-api.md) · [All operations](https://skmtc.net/raccoonaihq/apis/raccoon-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/raccoonaihq/raccoon-ai-api/revisions/cc64732da5aa/schema)
