v1
latestOpenAPI 3.0.32026-07-264469137.7 KBMedia
Upload a file
Upload a file and receive an upload_id. Pass this ID in the media array when creating or updating a product.
Files must be sent as multipart/form-data. Maximum size is 20 MB.
post/v1/utilities/uploads
Response
Upload created
Example response
{
"upload_id": "upl_4f3e2d1c",
"provider": "s3",
"file_name": "product-hero.png",
"mime_type": "image/png",
"file_size_bytes": 204800,
"url": "https://cdn.bachs.io/uploads/upl_4f3e2d1c/product-hero.png"
}