Skip to content

List library images​

GET
/library-images

List your library images. Two ways to look an image up:

  • Listing (no search): newest first, read straight from the database, so an image appears as soon as it is created. Filter with type, category_id and an exact name. Cursor-paginated (cursor, per_page).
  • Search (search given): matched by relevance through the search index, as in the portal's image library -- partial words and small typos still match, so check the name of what comes back. Filter with type and category_id. Page-numbered (page, per_page); cursor does not apply. The index is updated in the background, so an image created a moment ago may not be found by search yet -- use the exact name filter to find it immediately.

name and search cannot be combined. Requires assets:read ability.

Authorizations​

bearerAuth

Include Authorization: Bearer <token> header. Token must have the required abilities.

Type
HTTP (bearer)

Parameters​

Query Parameters

type

Only return images of this type.

Type
string
Valid values
"image""mask"
category_id

Only return items in this category.

Type
integer
Example321
name

Only return items whose name is exactly this value (case-sensitive). Use it to check whether an item already exists, e.g. SKU123_BG.

Type
string
Example"SKU123_BG"
search

Search by name, ranked by relevance through the search index (partial words and small typos match), as the portal's image library does. Names are split into words at spaces, - and _, so mask finds SKU123_mask. A leading - is read as part of the text, not as an exclusion. Cannot be combined with name.

Type
string
Example"SKU123 mask"
Max Length
255
cursor

Pagination cursor for retrieving the next set of results. This is an opaque string returned in the meta.next_cursor field of the previous response. Do not manually construct cursor values - always use the exact string provided by the API. For first page requests, omit this parameter entirely.

Type
string
Example"eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSAxMDozMDowMCIsImlkIjoxMjM0NX0"
page

Page number, for search results only.

Type
integer
Minimum
1
Default
1
per_page

Number of items to return per page.

Type
integer
Example25
Minimum
1
Maximum
100
Default
25

Responses​

A page of library images. A listing returns cursor pagination (meta.next_cursor); a search returns page numbers (meta.current_page, meta.last_page, meta.total).

application/json
JSON
{
  
"data": [
  
  
{
  
  
  
"id": 7788,
  
  
  
"type": "image",
  
  
  
"category_id": 42,
  
  
  
"name": "SKU123_mask",
  
  
  
"status": "processing",
  
  
  
"url": "users/4965/library/68c0006568e69_large.webp",
  
  
  
"thumbnail_url": "https://cdn.teeinblue.com/users/4965/library/68c0006568e69_thumb.webp",
  
  
  
"width": 2000,
  
  
  
"height": 2000,
  
  
  
"created_at": "2026-10-16T10:30:00Z",
  
  
  
"updated_at": "2026-10-16T10:30:05Z"
  
  
}
  
],
  
"links": {
  
  
"next": "https://example.com",
  
  
"prev": "https://example.com"
  
},
  
"meta": {
  
  
"per_page": 0,
  
  
"next_cursor": "string",
  
  
"prev_cursor": "string",
  
  
"current_page": 0,
  
  
"last_page": 0,
  
  
"total": 0
  
}
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.