List images

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
FieldTypeDescription
limitinteger · queryMax rows to return (default 20, max 100).
afterstring · queryReturn rows after this id (forward paging).
beforestring · queryReturn rows before this id (backward paging).
Response · 200 fields12 fields
FieldTypeDescription
objectrequiredstring—
idrequiredstring—
pathrequiredstringPut 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.
urlrequiredstringThe image's public address on our asset CDN: use it in raw `html` sends and anywhere outside Unitpost.
filenamerequiredstring—
content_typerequiredstring—
sizerequiredintegerBytes.
widthrequiredinteger | null—
heightrequiredinteger | null—
altrequiredstring | nullThe alt text suggested when the image is inserted.
created_atrequiredstring—
updated_atrequiredstring—
200401403422

Search docs and guides

Search the docs and product guides.