---
title: API Media Reference | Datasquirel docs
description: Manage media files via the Datasquirel API
page_title: Media API
page_description: Upload, retrieve, and delete media files programmatically using the Datasquirel API.
---

## Overview

The Media API lets you manage files stored in your Datasquirel media storage. Use it to upload files from your application, retrieve file metadata, and delete files that are no longer needed.

```bash
npm install @moduletrace/datasquirel
```

<div className="w-full grid grid-cols-1 gap-4 items-stretch">
    <DocsCard
        title="GET"
        description="Retrieve media file metadata or a list of files."
        href="/docs/api-reference/media/get"
    />
    <DocsCard
        title="POST"
        description="Upload a new media file."
        href="/docs/api-reference/media/post"
    />
    <DocsCard
        title="DELETE"
        description="Delete a media file."
        href="/docs/api-reference/media/delete"
    />
</div>

## Authentication

All media API requests require a **Full Access** API key. Read-only keys cannot upload or delete media.

Include your key in the `Authorization` header:

```
Authorization: Bearer YOUR_API_KEY
```

Or pass it as `apiKey` in the npm package function call.
