Create avatar with photo

I’ve seen you have v2/avatars POST request.
May I use it for my project to generate avatar by photo w/o using iFrame and etc.?

Thanks in advance!

Hi and welcome to the Forum

We don’t have official documentation on this out yet, but you can use the following POST request to achieve it:

    "data": {
        "userId": {rpmUserId}
        "partner": "{theirSubdomain}",
        "bodyType": "fullbody"
        "base64Image: {base64EncodedSelfie},
        "gender": {optionalGender},
        "assets": {
            "outfit": "{assetID}"

Please note that the POST will only create the avatar draft, to actually use the avatar you need to save it too, by using PUT [{avatarId}

1 Like