POST /images/preview
This endpoint accepts a clothing photo and returns the processed result.Request
Send the image as a file field namedfile in a multipart/form-data request body.
Response fields
Status: 201 CreatedExample request
Example response
Using image_id when creating a clothing item
Theimage_id returned by POST /images/preview is the value you pass in the image_id field when calling POST /users/me/clothing. Without it, you cannot create a clothing item — the field is required.
The typical flow is:
- Call
POST /images/previewwith the photo. - Store the returned
image_id(and optionally pre-fillimage_category,image_seasons,image_tags). - Call
POST /users/me/clothingwith theimage_idand any other clothing fields.
GET /uploads/clothing_images/
Once a clothing item has been created, you can retrieve its processed image using this endpoint. Pass theclothing_id of the item as a path parameter.
The endpoint returns the processed image file directly, suitable for displaying in a wardrobe view.