Retrieve an image

Retrieve an image

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

GET /library-images/{id}
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'
Response · 200
{
  "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"
}

One library image. Requires the templates:read capability.

Parameters1 field
FieldTypeDescription
idrequiredstring · path—
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—
200401403404422

Search docs and guides

Search the docs and product guides.