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_idfromPOST /uploads, orurl. Processed in the background -- returnsstatus: processing. At most 128 megapixels; a larger image, or one whose size cannot be read, is a422and the upload is removed. - SVG/EPS and GPX: multipart
file, orurl. An SVGupload_idis a422.
The file must match the category's type:
clipart/vectorcategories (or no category): raster images and SVG/EPS.gpxcategories: GPX route files. A GPX upload is rendered with your Mapbox access token (Settings > Maps), so it is rejected with422when 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"
{
}
POST
/layer-images