Skip to content

Upload a library image​

POST
/library-images

Upload one library image: upload_id from POST /uploads, or url (see "Asset Libraries"). Multipart uploads are not accepted.

The file must be a format its type takes (see "Library Images"; a mask must carry transparency):

  • A raster image is processed in the background and returns status: processing. At most 128 megapixels; a larger image, or one whose size cannot be read, is a 422.
  • An SVG must have a viewBox. It is kept as a vector and returns status: ready.

A file that is refused is removed, so create a new upload to try again. Requires assets:write ability.

Authorizations​

bearerAuth

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

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"upload_id": "9b2f6c1e-3d4a-4f7b-9c1d-2e5a6b7c8d9e"
}

Responses​

on_duplicate: skip matched an existing library image of the same type and name in the same category; it is returned unchanged.

application/json
JSON
{
  
"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"
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.