---
title: "Get Task Media Endpoint"
method: GET
path: "/lam/tasks/{taskId}/media"
tags: ["LAM"]
---

# Get Task Media Endpoint

`GET /lam/tasks/{taskId}/media`

## Request

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

## Path parameters

- `taskId` string, required: The ID of the task

## Response `200`

Successful Response

- TaskMediaResponse
  - `media` SessionMediaResponse[], required: A list of media data, including actions and recordings.
    - `actions` Action[], required: A list of actions performed, not applicable to fleet sessions.
      - `action` string, required: The type of action performed, e.g., 'click'.
      - `index` integer, required: The sequential index of the action.
      - `screenshot` string, required: URL of the screenshot taken at the time of the action.
    - `recordings` Recording[], required: A list of recordings associated.
      - `pageTitle` string, required: The title of the webpage where the recording took place.
      - `pageUrl` string, required: The URL of the webpage where the recording took place.
      - `url` string, required: URL of the recording file.
    - `sessionId` string, required: A unique identifier for the session.
  - `taskId` string, required: A unique identifier for the task.

## Other responses

- `422`: Validation Error

## Changes

- **2025-03-04** `a83675606f7f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/raccoonaihq/apis/raccoon-ai-api/changes/lam/tasks/:taskId/media/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)
