---
title: "Get a media asset"
method: GET
path: "/api/assets/{assetId}"
tags: ["Media"]
---

# Get a media asset

`GET /api/assets/{assetId}`

## Request

- Base URL: `https://api-app.postnext.io`
- URL: `https://api-app.postnext.io/api/assets/{assetId}`
- Auth: API key in header `x-api-key`

Returns a single asset's metadata (JSON), scoped to your team.

## Path parameters

- `assetId` string, required

## Response `200`

Asset metadata

- object
  - `success` boolean
  - `data` Asset
    - `_id` string
    - `teamId` string
    - `userId` string
    - `folderId` string, nullable
    - `name` string: Stored (S3) filename.
    - `originalName` string
    - `type` string: MIME type (stored under `type`, not `mimeType`).
    - `url` string, uri
    - `size` integer: Bytes.
    - `width` integer
    - `height` integer
    - `displayName` string
    - `source` 'user_upload' | 'unsplash' | 'pixabay' | 'pexels' | 'brand_scraper' | 'ai_generated' | 'other'
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Missing or invalid API key
- `404`: Asset not found

---

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