---
title: "Upload media for agent"
method: POST
path: "/api/media/{agentId}/upload-media"
tags: ["media"]
---

# Upload media for agent

`POST /api/media/{agentId}/upload-media`

Upload image or video media for an agent

## Path parameters

- `agentId` string, uuid, required

## Response `200`

Media uploaded successfully

- object
  - `id` string, uuid
  - `url` string — URL of the uploaded media
  - `type` 'image' | 'video'
  - `mimeType` string
  - `size` integer

## Other responses

- `400` — Invalid request or file type
- `404` — Agent not found
- `413` — File too large
- `415` — Unsupported media type
- `500` — Error uploading media

---

[API](https://skmtc.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/revisions/f43280bfdb0c/schema)
