---
title: "Retrieve an image"
description: "One library image. `GET /api/v1/library-images/{id}`"
url: https://www.unitpost.com/docs/platform/get-library-images-id
section: "Platform API reference"
updated: 2026-10-13
---
# Retrieve an image

`GET /api/v1/library-images/{id}`

One library image. Requires the `templates:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `id` | string | yes | — |
| `path` | string | yes | Put this in a template or design: `<Image src="/img/…">` or `<img src="/img/…">`. Template and design sends resolve it to the image host; a raw `html` send doesn't, so use `url` there. |
| `url` | string | yes | The image's public address on our asset CDN: use it in raw `html` sends and anywhere outside Unitpost. |
| `filename` | string | yes | — |
| `content_type` | string | yes | — |
| `size` | integer | yes | Bytes. |
| `width` | integer \| null | yes | — |
| `height` | integer \| null | yes | — |
| `alt` | string \| null | yes | The alt text suggested when the image is inserted. |
| `created_at` | string | yes | — |
| `updated_at` | string | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 200 | The image. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Image not found. |
| 422 | A query key (this operation takes none). |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/library-images/img_123' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "library_image",
  "id": "id_123",
  "path": "string",
  "url": "https://example.com",
  "filename": "string",
  "content_type": "string",
  "size": 1,
  "width": 0,
  "height": 0,
  "alt": "string",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/platform/get-library-images-id
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
