The upload endpoints accept image files viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Pana-Baker/llms.txt
Use this file to discover all available pages before exploring further.
multipart/form-data and return the updated resource — either the product or the bakery — with the new image URL populated. All three endpoints use the same underlying upload mechanism: a POST with a single image form field carrying the file.
Upload mechanism
The app constructs aFormData object with one field named image, determines the MIME type from the file extension, and sends the request with Content-Type: multipart/form-data. The X-User-Name header is still required, but Content-Type: application/json is not sent on upload requests.
Supported file types
| Extension | MIME type |
|---|---|
.jpg / .jpeg | image/jpeg |
.png | image/png |
.webp | image/webp |
image/jpeg. The server may reject unsupported formats with a non-2xx status.
POST /upload/product/:id
Uploads a photo for a specific product. Use this after creating or editing a product to attach or replace its image.Path parameters
The unique product ID. Obtain this from the response of
POST /products or GET /products/my.Request
Form fields
The image file to upload. Accepted types:
image/jpeg, image/png, image/webp.Response
Returns the updated product object withimageUrl populated.
POST /upload/bakery/logo
Uploads a square logo image for the authenticated bakery. The app recommends a 1:1 aspect ratio.Request
Form fields
The logo image file. Use a square crop for best results. Accepted types:
image/jpeg, image/png, image/webp.Response
Returns the updated bakery object withlogoUrl populated.
POST /upload/bakery/banner
Uploads a wide banner image for the authenticated bakery. The app uses a 16:9 aspect ratio for the banner crop.Request
Form fields
The banner image file. Use a 16:9 crop for best results. Accepted types:
image/jpeg, image/png, image/webp.Response
Returns the updated bakery object withbannerUrl populated.
Upload endpoints do not share the JSON error format used by other endpoints. If the upload fails, the server returns a non-2xx status and the app throws
Error("Upload failed: <status>"). Ensure your server returns an appropriate HTTP status code on failure.