Commands › Appearance & animation
get_outfit
What the bot is wearing now
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "get_outfit",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
None besides authentication.
Returns
| Field | Type | Description |
|---|---|---|
outfit.items[] | array | Clothing, body parts and attachments (type Object). removable is false for body parts. |
Example response
{
"result": "OK",
"outfit": {
"items": [
{
"assetuuid": "d1e2f3a4-0000-4000-8000-000000000009",
"name": "Red Jacket",
"type": "Jacket",
"inventoryUUID": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"removable": true
}
]
}
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.