---
title: "Download Agent File"
method: GET
path: "/api/agents/{agent_id}/files/download"
tags: ["files"]
---

# Download Agent File

`GET /api/agents/{agent_id}/files/download`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/{agent_id}/files/download`
- Auth: HTTP bearer

Stream a file out of the agent's running container.

The agent advertises files by emitting a ```maritime-file``` fenced
block in its chat output; the dashboard renders that as a download
button which calls this endpoint with the `path` it saw.

## Path parameters

- `agent_id` string, required

## Query parameters

- `path` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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