Skip to content

Avatar v4

Reference for the Avatar v4 endpoints on Roblox.

Base URL: https://avatar.roblox.com

Method Path Name
GET /v4/avatar getAvatar
PATCH /v4/avatar patchAvatar
GET /v4/avatar/users/:userId getAvatarUsersUserid
PATCH /v4/outfits/:outfitId patchOutfitsOutfitid
GET /v4/outfits/:outfitId/details getOutfitsOutfitidDetails
POST /v4/outfits/create postOutfitsCreate

GET /v4/avatar

Gets the currently wearing avatar definition for the authenticated user.

Usage
import { fetchApi } from 'rozod';
import { getAvatar } from 'rozod/endpoints/avatarv4';
const data = await fetchApi(getAvatar, {
selectionTypes: /* array */
});
Name Type Required Description
selectionTypes array Yes Selection types for the avatar data to return.
Field Type Description
avatarModel object See below
avatarConfigurations object See below

avatarModel fields:

Field Type Description
scales object See below
playerAvatarType `“R6” “R15”`
bodyColors object See below
assets object[] See below

scales fields:

Field Type Description
height number
width number
head number
depth number
proportion number
bodyType number

bodyColors fields:

Field Type Description
headColor string
torsoColor string
rightArmColor string
leftArmColor string
rightLegColor string
leftLegColor string

assets[] item fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id number
name string

meta fields:

Field Type Description
order number
puffiness number
position object See below
rotation object See below
scale object See below
headShape `0 1
staticFacialAnimation boolean
version number

position fields:

Field Type Description
X object
Y object
Z object

rotation fields:

Field Type Description
X object
Y object
Z object

scale fields:

Field Type Description
X object
Y object
Z object

avatarConfigurations fields:

Field Type Description
emotes object[] See below
background object See below
thumbnailCustomizations object[] See below
profileFrame object See below

emotes[] item fields:

Field Type Description
assetId number
assetName string
position number

background fields:

Field Type Description
backgroundAsset object See below

backgroundAsset fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id object
name object

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

thumbnailCustomizations[] item fields:

Field Type Description
thumbnailType `0 1
emoteAssetId number
camera object See below

camera fields:

Field Type Description
fieldOfViewDeg number
yRotDeg number
distanceScale number

profileFrame fields:

Field Type Description
frameAsset object See below

frameAsset fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id object
name object

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

Status Description
401 0: Authorization has been denied for this request.

PATCH /v4/avatar

Sets the avatar to the incoming avatar using field masks.

Usage
import { fetchApi } from 'rozod';
import { patchAvatar } from 'rozod/endpoints/avatarv4';
const data = await fetchApi(patchAvatar, {
body: { /* ... */ }
});
Field Type Description
updateTypes `0 1
avatarDefinition object See below

avatarDefinition fields:

Field Type Description
updateAvatarModel object See below
updateAvatarConfig object See below

updateAvatarModel fields:

Field Type Description
scales object See below
playerAvatarType `1 3`
bodyColors object See below
assets object[] See below

scales fields:

Field Type Description
height number
width number
head number
depth number
proportion number
bodyType number

bodyColors fields:

Field Type Description
headColor string
torsoColor string
rightArmColor string
leftArmColor string
rightLegColor string
leftLegColor string

assets[] item fields:

Field Type Description
id number
meta object See below

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

updateAvatarConfig fields:

Field Type Description
emoteRequestModels object[] See below
thumbnailCustomizationModels object[] See below
backgroundRequestModel object See below
profileFrameRequestModel object See below

emoteRequestModels[] item fields:

Field Type Description
assetId number
position number

thumbnailCustomizationModels[] item fields:

Field Type Description
thumbnailType `0 1
emoteAssetId number
camera object See below

camera fields:

Field Type Description
fieldOfViewDeg object
yRotDeg object
distanceScale object

backgroundRequestModel fields:

Field Type Description
id number

profileFrameRequestModel fields:

Field Type Description
id number
Field Type Description
success boolean
invalidAssets object[] See below
validation object See below

invalidAssets[] item fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id number
name string

meta fields:

Field Type Description
order number
puffiness number
position object See below
rotation object See below
scale object See below
headShape `0 1
staticFacialAnimation boolean
version number

position fields:

Field Type Description
X number
Y number
Z number

rotation fields:

Field Type Description
X number
Y number
Z number

scale fields:

Field Type Description
X number
Y number
Z number

validation fields:

Field Type Description
invalidAssets object[] See below
invalidBackground object[] See below
invalidProfileFrame object[] See below
invalidEmotes object[] See below
invalidThumbnailCustomizations object[] See below

invalidAssets[] item fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id number
name string

meta fields:

Field Type Description
order number
puffiness number
position object See below
rotation object See below
scale object See below
headShape `0 1
staticFacialAnimation boolean
version number

position fields:

Field Type Description
X object
Y object
Z object

rotation fields:

Field Type Description
X object
Y object
Z object

scale fields:

Field Type Description
X object
Y object
Z object

invalidBackground[] item fields:

Field Type Description
BackgroundAssetId number
Error string

invalidProfileFrame[] item fields:

Field Type Description
FrameAssetId number
Error string

invalidEmotes[] item fields:

Field Type Description
assetId number
position number
error string

invalidThumbnailCustomizations[] item fields:

Field Type Description
ThumbnailCustomizationModel object See below
Error string

ThumbnailCustomizationModel fields:

Field Type Description
thumbnailType `0 1
emoteAssetId number
camera object See below

camera fields:

Field Type Description
fieldOfViewDeg object
yRotDeg object
distanceScale object
Status Description
400 3: Invalid assetId
5: Meta does not apply to specified asset type
7: Required meta is not provided for the specific asset type
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed
500 2: Failed to wear asset.

GET /v4/avatar/users/:userId

Gets the currently wearing avatar definition for the specified user.

Usage
import { fetchApi } from 'rozod';
import { getAvatarUsersUserid } from 'rozod/endpoints/avatarv4';
const data = await fetchApi(getAvatarUsersUserid, {
userId: /* integer */,
selectionTypes: /* array */
});
Name Type Required Description
userId integer Yes The target user id.
selectionTypes array Yes Selection types for the avatar data to return.
Field Type Description
avatarModel object See below
avatarConfigurations object See below

avatarModel fields:

Field Type Description
scales object See below
playerAvatarType `“R6” “R15”`
bodyColors object See below
assets object[] See below

scales fields:

Field Type Description
height number
width number
head number
depth number
proportion number
bodyType number

bodyColors fields:

Field Type Description
headColor string
torsoColor string
rightArmColor string
leftArmColor string
rightLegColor string
leftLegColor string

assets[] item fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id number
name string

meta fields:

Field Type Description
order number
puffiness number
position object See below
rotation object See below
scale object See below
headShape `0 1
staticFacialAnimation boolean
version number

position fields:

Field Type Description
X object
Y object
Z object

rotation fields:

Field Type Description
X object
Y object
Z object

scale fields:

Field Type Description
X object
Y object
Z object

avatarConfigurations fields:

Field Type Description
emotes object[] See below
background object See below
thumbnailCustomizations object[] See below
profileFrame object See below

emotes[] item fields:

Field Type Description
assetId number
assetName string
position number

background fields:

Field Type Description
backgroundAsset object See below

backgroundAsset fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id object
name object

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

thumbnailCustomizations[] item fields:

Field Type Description
thumbnailType `0 1
emoteAssetId number
camera object See below

camera fields:

Field Type Description
fieldOfViewDeg number
yRotDeg number
distanceScale number

profileFrame fields:

Field Type Description
frameAsset object See below

frameAsset fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id object
name object

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

Status Description
400 1: The specified user does not exist.
2: An account for the given userId does not exist!

PATCH /v4/outfits/:outfitId

Updates the contents of an outfit.

Usage
import { fetchApi } from 'rozod';
import { patchOutfitsOutfitid } from 'rozod/endpoints/avatarv4';
const data = await fetchApi(patchOutfitsOutfitid, {
outfitId: /* string */,
body: { /* ... */ }
});
Name Type Required Description
outfitId string Yes The user outfit id.
Field Type Description
updateTypes `0 1
outfitDefinition object See below

outfitDefinition fields:

Field Type Description
updateOutfitModel object See below
updateOutfitConfig object See below

updateOutfitModel fields:

Field Type Description
name string
bodyColors object See below
assets object[] See below
scale object See below
playerAvatarType `1 3`
outfitType `0 1

bodyColors fields:

Field Type Description
headColor string
torsoColor string
rightArmColor string
leftArmColor string
rightLegColor string
leftLegColor string

assets[] item fields:

Field Type Description
id number
meta object See below

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

scale fields:

Field Type Description
height number
width number
head number
depth number
proportion number
bodyType number

updateOutfitConfig fields:

Field Type Description
backgroundRequestModel object See below

backgroundRequestModel fields:

Field Type Description
id number
Field Type Description
success boolean
validation object See below

validation fields:

Field Type Description
unwornAssets object[] See below
invalidBackground object[] See below

unwornAssets[] item fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id number
name string

meta fields:

Field Type Description
order number
puffiness number
position object See below
rotation object See below
scale object See below
headShape `0 1
staticFacialAnimation boolean
version number

position fields:

Field Type Description
X object
Y object
Z object

rotation fields:

Field Type Description
X object
Y object
Z object

scale fields:

Field Type Description
X object
Y object
Z object

invalidBackground[] item fields:

Field Type Description
BackgroundAssetId number
Error string
Status Description
400 3: Body colors must be valid BrickColor IDs
4: Invalid outfit name
5: Asset is not wearable by you
8: Invalid Player Avatar Type. Valid types are R6 and R15
11: Meta does not apply to specified asset type
12: Meta is required for this specific asset type
13: Invalid Outfit Type
14: Invalid scale
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed
2: You don't have permission to update this outfit.
404 1: The specified userOutfit does not exist!
500 6: An error occurred while trying to update the outfit

GET /v4/outfits/:outfitId/details

Gets the definition for an outfit.

Usage
import { fetchApi } from 'rozod';
import { getOutfitsOutfitidDetails } from 'rozod/endpoints/avatarv4';
const data = await fetchApi(getOutfitsOutfitidDetails, {
outfitId: /* string */,
selectionTypes: /* array */,
checkAssetAvailability: /* boolean? */
});
Name Type Required Description
outfitId string Yes The outfit id.
selectionTypes array Yes Selection types for the outfit data to return.
checkAssetAvailability boolean? No Whether to return assets with availability status.
Field Type Description
moderationStatus string
bundleId number
outfitModel object See below
outfitConfigurations object See below

outfitModel fields:

Field Type Description
universeId number
inventoryType string
id string
name string
isEditable boolean
outfitType string
assets object[] See below
bodyColors object See below
scale object See below
playerAvatarType `“R6” “R15”`

assets[] item fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id number
name string

meta fields:

Field Type Description
order number
puffiness number
position object See below
rotation object See below
scale object See below
headShape `0 1
staticFacialAnimation boolean
version number

position fields:

Field Type Description
X object
Y object
Z object

rotation fields:

Field Type Description
X object
Y object
Z object

scale fields:

Field Type Description
X object
Y object
Z object

bodyColors fields:

Field Type Description
headColor string
torsoColor string
rightArmColor string
leftArmColor string
rightLegColor string
leftLegColor string

scale fields:

Field Type Description
height number
width number
head number
depth number
proportion number
bodyType number

outfitConfigurations fields:

Field Type Description
background object See below

background fields:

Field Type Description
backgroundAsset object See below

backgroundAsset fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id object
name object

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

Status Description
400 2: The outfit for the specified userOutfit is invalid.
403 3: The requester does not have access to the details for the given user outfit.
404 1: The specified userOutfitId is invalid.

POST /v4/outfits/create

Creates a new outfit.

Usage
import { fetchApi } from 'rozod';
import { postOutfitsCreate } from 'rozod/endpoints/avatarv4';
const data = await fetchApi(postOutfitsCreate, {
body: { /* ... */ }
});
Field Type Description
outfitDefinition object See below

outfitDefinition fields:

Field Type Description
updateOutfitModel object See below
updateOutfitConfig object See below

updateOutfitModel fields:

Field Type Description
name string
bodyColors object See below
assets object[] See below
scale object See below
playerAvatarType `1 3`
outfitType `0 1

bodyColors fields:

Field Type Description
headColor string
torsoColor string
rightArmColor string
leftArmColor string
rightLegColor string
leftLegColor string

assets[] item fields:

Field Type Description
id number
meta object See below

meta fields:

Field Type Description
order object
puffiness object
position object
rotation object
scale object
headShape object
staticFacialAnimation object
version object

position fields:

object

rotation fields:

object

scale fields:

object

scale fields:

Field Type Description
height number
width number
head number
depth number
proportion number
bodyType number

updateOutfitConfig fields:

Field Type Description
backgroundRequestModel object See below

backgroundRequestModel fields:

Field Type Description
id number
Field Type Description
success boolean
validation object See below

validation fields:

Field Type Description
unwornAssets object[] See below
invalidBackground object[] See below

unwornAssets[] item fields:

Field Type Description
id number
name string
assetType object See below
currentVersionId number
meta object See below
availabilityStatus string
expirationTime string
supportsHeadShapes boolean

assetType fields:

Field Type Description
id number
name string

meta fields:

Field Type Description
order number
puffiness number
position object See below
rotation object See below
scale object See below
headShape `0 1
staticFacialAnimation boolean
version number

position fields:

Field Type Description
X object
Y object
Z object

rotation fields:

Field Type Description
X object
Y object
Z object

scale fields:

Field Type Description
X object
Y object
Z object

invalidBackground[] item fields:

Field Type Description
BackgroundAssetId number
Error string
Status Description
400 3: Body colors must be valid BrickColor IDs
4: Invalid outfit name
5: Asset is not wearable by you and was not added to the outfit
7: Invalid Player Avatar Type. Valid types are R6 and R15
8: Invalid assetIds
9: Meta does not apply to specified asset type
10: Required meta is not provided for the specific asset type
12: Outfit type invalid or not permitted
13: Invalid Scale
401 0: Authorization has been denied for this request.
403 0: Token Validation Failed
1: You already have the maximum number of outfits
500 6: An error occurred while creating the outfit