Documentation

Build with avshim

avshim exposes Second Life avatar functionality as a REST API. The API is transport-agnostic: you work with resources and events, while avshim handles the underlying UDP messages and HTTP capabilities.

Closed beta. The API is still evolving. We're onboarding a small number of builders and may adjust endpoints or event payloads before general availability.

Getting started

  1. Connect a Second Life account that will act as your bridge avatar.
  2. Configure a webhook URL and select the event types you want to receive.
  3. Create an API key and make your first request.

Authentication

Authenticate with a bearer key:

Authorization: Bearer avshim_live_<prefix>.<secret>

Data-plane requests are made against the bot's subdomain. Locally, you can select the bot with X-Avshim-Bot.

Your first request

Send an instant message:

curl -X POST https://<bot-slug>.avshim.com/v1/im \
  -H "Authorization: Bearer $AVSHIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"<avatar-uuid>","message":"Hello from avshim"}'

The response is an action record with a status of succeeded or failed.

Inventory navigation

Start with GET /inventory/root to get the root folder and its immediate children. Each folder response includes items and categories; use the id of a category to fetch that subfolder with GET /inventory/folders/{folderId}.

Events and webhooks

avshim sends events to your webhook immediately after receiving them. Deliveries are best-effort: they are not persisted or retried.

Webhook requests are signed with Ed25519. Verify the signature over:

timestamp + "\n" + event_id + "\n" + raw_body

The signature is in X-Avshim-Signature, and the public key is available at /.well-known/avshim-webhook-key.

API reference

The full API surface, request schemas, response schemas, and event payloads are described in the OpenAPI document.

Browse API reference Open the OpenAPI spec