Skip to content

Create a pre-signed upload​

POST
/uploads

Step 1 of uploading an image (see "Asset Libraries"). Returns an upload_url to PUT the image bytes to, and an upload_id to pass to POST /layer-images, POST /cliparts or POST /library-images once the bytes are uploaded.

Accepted extensions: .png, .jpg, .jpeg, .gif, .webp, .svg. An .svg upload is for POST /library-images only: layer images and cliparts take their SVGs as multipart, as the portal sends them, and refuse an SVG upload_id with 422. Send EPS and GPX files as multipart.

Images larger than 128 megapixels are rejected here when filewidth and fileheight are given; the create endpoint checks the size again from the file itself. 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
{
  
"filename": "SKU123_BG.png",
  
"filesize": 8388608,
  
"filewidth": 4000,
  
"fileheight": 4000
}

Responses​

Upload created; PUT the file bytes to upload_url next.

application/json
JSON
{
  
"upload_id": "9b2f6c1e-3d4a-4f7b-9c1d-2e5a6b7c8d9e",
  
"upload_url": "https://example.com",
  
"upload_headers": {
  
  
"additionalProperties": "string"
  
},
  
"expires_at": "2026-10-08T10:35:00Z"
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.