Lifebots symbol
Lifebots.cloud
OAuth 2.0 API
API Reference › Bots — Notecards & Scripts

Create Script

POST/bots/{bot_id}/scripts

Create an LSL script in the bot's inventory.

Scopebots:inventory · older apps: write:bots

Usage

curl -X POST "https://api.lifebots.cloud/api/v1/bots/$BOT_ID/scripts" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Hello",
    "text": "default { state_entry() { llSay(0, \"Hi\"); } }"
  }'

Path parameters

NameTypeDescription
bot_idUUIDThe bot's avatar UUID (agentId from GET /bots).

Body (JSON)

NameTypeRequiredDescription
namestringyesScript name.
textstringyesLSL source.
descriptionstringnoItem description.
folderIdUUIDnoFolder to create it in. Omit for the Scripts folder.
copybooleannoNext owner can copy. Default true.
modifybooleannoNext owner can modify. Default true.
transferbooleannoNext owner can transfer. Default true.

Example response

{
  "success": true,
  "data": {
    "result": "OK"
  },
  "meta": {
    "timestamp": "2026-10-02T12:00:00.000Z",
    "version": "1.0"
  }
}

Always check success; for commands the bot carries out, also check data.result. See Responses & errors.

Lifebots symbol
Lifebots.cloud

Empowering Second Life experiences with intelligent bot automation and seamless group management solutions.

Product
Support
Company
Visit Us

© 2025 - 2026 LifeBots. Made with ❤️. All rights reserved.

LifeBots is not affiliated with Linden Research, Inc., or any of its affiliated entities or products, including, without limitation, Second Life (collectively, “Linden Lab”).

Initializing A New World of Second Life Bots...