Get Asset
GET /asset
Retrieves asset files including models, scripts, and other Roblox content. Assets are served from three sources with fallback: privileged server assets, user-uploaded assets, and cached Open Cloud assets.
The numeric ID of the asset to retrieve
Response
Returns the asset file as binary data with appropriate headers:Always set to
binary/octet-streamAttachment header with MD5 hash as filename
Asset Resolution
The endpoint attempts to load assets in this order:- Privileged assets - Server-side assets from
../data/server/assets/{id} - User assets - User-uploaded assets from
../data/assets/{id}(visibility checked, moderated assets blocked) - Open Cloud assets - Fetched from Roblox Open Cloud API and cached locally
XML files have their URLs automatically substituted to point to the Mercury domain instead of roblox.com
Example Request
Implementation
Source:(rbxclient)/asset/+server.ts:104
Get Body Colors
GET /asset/bodycolours/{username}
Retrieves a user’s body colors configuration as XML format compatible with Roblox clients.
The username of the player
Response
Returns XML data with body color values:Set to
text/plainSet to
no-cacheBody Color Parts
The response includes colors for six body parts:- Head - Head color value
- Torso - Torso color value
- LeftArm - Left arm color value
- RightArm - Right arm color value
- LeftLeg - Left leg color value
- RightLeg - Right leg color value
Example Request
Implementation
Source:(rbxclient)/asset/bodycolours/[username]/+server.ts:16
Get Character Fetch
GET /asset/characterfetch/{username}
Returns a semicolon-delimited string of URLs for a user’s character appearance, including body colors and worn assets.
The username of the player
Response
Returns a plain text string with character appearance URLs:Set to
text/plainSet to
no-cacheURL Format
The response format is:- First URL: Body colors endpoint for the user
- Following URLs: Asset endpoints for each worn item (separated by semicolons)
Example Request
Implementation
Source:(rbxclient)/asset/characterfetch/[username]/+server.ts:18
Get Script State
GET /asset/getscriptstate
Returns the script state configuration. Always returns a fixed value.
Response
Returns a plain text string:Example Request
Implementation
Source:(rbxclient)/asset/getscriptstate/+server.ts:1