API REFERENCE
Uploads
Files over 4 MB go up first: a URL to PUT the image to, and the key a conversion names it by.
POST/v1/uploads
Create an upload
Mints a URL to PUT one image to, and the key a conversion names it by. Uploads never pass through the API (a request body is capped well under our 10485760-byte limit). The URL is signed for exactly contentLength bytes: the PUT must send that many. Its type and size are checked again, from the stored bytes, when the conversion is created.
Body
contentTypeone ofimage/png,image/apng,image/jpeg,image/jpg,image/pjpeg,image/webp,image/avif,image/gif,image/bmp,image/x-bmp,image/x-ms-bmp,image/tiff,image/tif,image/x-tiffrequired- The file's media type.
sizeBytesnumber, 1 to 10485760required- The file's exact size in bytes.
Errors
Every refusal carries its code and a requestId. Errors and retries.