Commands › Inventory
get_texture
Download a texture as a PNG image
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "get_texture",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"uuid": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
uuidUUID | yes | Texture inventory item UUID, or a texture asset UUID. Also accepted as: textureId |
Returns
| Field | Type | Description |
|---|---|---|
data | string | Base64 PNG, scaled down to fit 2048×2048. |
Example response
{
"result": "OK",
"data": "iVBORw0KGgoAAAANSUhEUgAA…",
"contentType": "image/png",
"width": 512,
"height": 512,
"hasAlpha": false,
"fullAlpha": false,
"isMask": false,
"assetId": "d1e2f3a4-0000-4000-8000-000000000008"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.