List images
GET/api/v1/library-images
GET /library-images
curl -X GET 'https://www.unitpost.com/api/v1/library-images' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"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"
}
]
}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.
Parameters3 fields
| Field | Type | Description |
|---|---|---|
limit | integer · query | Max rows to return (default 20, max 100). |
after | string · query | Return rows after this id (forward paging). |
before | string · query | Return rows before this id (backward paging). |
Response · 200 fields12 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
pathrequired | string | 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. |
urlrequired | string | The image's public address on our asset CDN: use it in raw `html` sends and anywhere outside Unitpost. |
filenamerequired | string | — |
content_typerequired | string | — |
sizerequired | integer | Bytes. |
widthrequired | integer | null | — |
heightrequired | integer | null | — |
altrequired | string | null | The alt text suggested when the image is inserted. |
created_atrequired | string | — |
updated_atrequired | string | — |
200401403422