Skip to content

Upload a layer image​

POST
/layer-images

Upload one layer image (see "Asset Libraries" for how to send each kind of file):

  • Raster images (PNG, JPEG, GIF, WebP): upload_id from POST /uploads, or url. Processed in the background -- returns status: processing. At most 128 megapixels; a larger image, or one whose size cannot be read, is a 422 and the upload is removed.
  • SVG/EPS and GPX: multipart file, or url. An SVG upload_id is a 422.

The file must match the category's type:

  • clipart / vector categories (or no category): raster images and SVG/EPS.
  • gpx categories: GPX route files. A GPX upload is rendered with your Mapbox access token (Settings > Maps), so it is rejected with 422 when no token is configured.

Requires assets:write ability.

Authorizations​

bearerAuth

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

Type
HTTP (bearer)

Request Body​

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

Responses​

on_duplicate: skip matched an existing layer image; it is returned unchanged.

application/json
JSON
{
  
"id": 12345,
  
"name": "SKU123_BG",
  
"category_id": 321,
  
"status": "processing",
  
"url": "users/4965/image-layers/68c0006568e69_large.webp",
  
"thumbnail_url": "https://cdn.teeinblue.com/users/4965/image-layers/68c0006568e69_thumb.webp",
  
"width": 4000,
  
"height": 4000,
  
"created_at": "2026-10-08T10:30:00Z",
  
"updated_at": "2026-10-08T10:30:05Z"
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.