---
title: "List images"
description: "The workspace's image library, newest first: the images a template embeds. `GET /api/v1/library-images`"
url: https://www.unitpost.com/docs/platform/get-library-images
section: "Platform API reference"
updated: 2026-10-13
---
# List images

`GET /api/v1/library-images`

The workspace's image library, newest first: the images a template embeds. Each image's `path` (`/img/…`) is what a template's `<Image src>` (or `<img src>`) takes; `url` is its public address. Requires the `templates:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Max rows to return (default 20, max 100). |
| `after` | query | string | no | Return rows after this id (forward paging). |
| `before` | query | string | no | Return rows before this id (backward paging). |

## 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 | A page of images. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 422 | Invalid pagination params, or an unknown query key. |

## Example request

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

## Example response (200)

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "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
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
