Commands › Money
give_money
Pay L$ to an avatar
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "give_money",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"avatar": "a2e76fcd-9360-4f6d-a924-000000000000",
"amount": "10",
"comment": "Thanks!",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
avatarUUID | yes | Avatar to pay. Also accepted as: target |
amountinteger | yes | Amount in L$. |
commentstring | no | Payment comment. Also accepted as: description |
Example response
{
"result": "OK"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Nothing is checked before paying: a missing avatar or bad amount still answers OK. Validate on your side.
- OK means the payment was sent. Watch the balance_changed webhook to confirm it.