Get the profile
/v1/shoppers/meThe shopper's profile in words: the styles learnt from their reactions, what they lean toward and away from, the notes and sizes kept for them, and their body measurements. Never the vectors behind it. Show it on a "your profile" screen, with a way to forget each part.
Headers
1The shopper's profile token, from auth/start, auth/verify or any call that made a profile.
Response
A profile in words. Never the vectors behind it.
true once the shopper confirmed an email: the profile is theirs, lasts until they delete it, and works at every store that runs Stylor.
The confirmed email. Null on an anonymous profile.
Styles learnt from their reactions, strongest first. At most four per slot.
Kinds of whole look they liked, strongest first.
Styles they passed on often enough to say.
Labels they clearly lean toward, read from their reactions, never said by them ("colour: black"). At most 8.
Labels they clearly lean away from. At most 8.
What they told you, kept with remember.
Sizes they wear, by brand or store.
Their body measurements in centimetres, and how they like things to fit. Null when none are kept.
Reactions learnt from.
Errors
22Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
Send the shopper's token in x-shopper-token, or start a profile (auth/start).No X-Shopper-Token was sent.
That shopper token is not valid here. Start a profile or sign in again.X-Shopper-Token was sent but cannot be opened with this key.
Shopper profiles are switched off for this organization.The organization turned shopper profiles off.
curl -X GET "https://stylor.ai/api/v1/shoppers/me" \
-H "Authorization: Bearer $STYLOR_API_KEY"{
"profile": {
"saved": true,
"email": "[email protected]",
"styles": [
{
"id": "3f9a1c2e",
"name": "black, relaxed, t shirt",
"slot": "top",
"strength": 7.4
}
],
"outfits": [
{
"id": "8c2d4e6f",
"name": "all neutrals, separates",
"strength": 3
}
],
"avoidStyles": [
{
"id": "5b7e9a1d",
"name": "floral, dress",
"slot": "one-piece"
}
],
"likes": [
"colour: black",
"fit: relaxed"
],
"avoids": [
"pattern: floral"
],
"notes": [
{
"id": "a1b2c3d4",
"text": "Starting a new office job in March",
"kind": "occasion"
}
],
"sizes": [
{
"brand": "Levi's",
"slot": "bottom",
"kind": "jeans",
"label": "30",
"fit": "right"
}
],
"body": {
"waist": 76,
"hips": 98,
"height": 168,
"fit": "relaxed",
"unit": "cm"
},
"signals": 24
}
}