Skip to main content
POST
/
api
/
try-on
curl --request POST \
  --url https://hemsy.ai/api/try-on \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userPhoto": "https://cdn.example.com/user-photo.jpg",
  "products": [
    {
      "variantId": "44772123456789"
    }
  ]
}
'
{
  "image": "<string>",
  "code": "<string>",
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
userPhoto
string
required

Public URL or base64 data URL of the user image.

products
(Variant ID · object | Images · object)[]
required
Minimum array length: 1

For each product, choose one option: variantId or images.

Response

200 - application/json

Successful try-on

image
string
code
string
error
string
message
string