Retrieve world analytics by day, week, month, quarter, or year
Retrieves the data object for a world. Must have valid interactive credentials from a visitor in the world.
Optional
appPublicKey: stringOptional
appJWT: stringOptional
sharedAppPublicKey: stringOptional
sharedAppJWT: stringIncrements a specific value in the data object for a world by the amount specified. Must have valid interactive credentials from a visitor in the world.
Sets the data object for a user. Must have valid interactive credentials from a visitor in the world.
Updates the data object for a world. Must have valid interactive credentials from a visitor in the world.
Retrieve all assets dropped in a world.
Retrieve all assets dropped in a world matching sceneDropId.
Returns an array of DroppedAsset instances.
Retrieve all assets dropped in a world matching uniqueName.
Returns an array of DroppedAsset instances.
Retrieve all landmark zone assets dropped in a world.
Optional
landmarkZoneName: stringOptional
sceneDropId: stringReturns an array of DroppedAsset instances.
Update multiple custom text dropped assets with a single style while preserving text for specified dropped assets only.
Updates each DroppedAsset instance and world.droppedAssets map.
Optional
dataOptional
jwtOptional
sceneOptional
scenesOptional
webhooksRetrieves details of a world.
{ sceneDropIds: [] }
Use fetchScenes instead.
Fetch a list of all scene drop ids in a world that include at least one asset with an interactivePublicKey
Display a message via a toast to all visitors currently in a world.
Returns { success: true }
or an error.
Add an activity to a world excludeFromNotification is an array of visitorIds to exclude from the notification
Returns the activityId
or an error response.
Set close world settings
Returns { success: true }
or an error.
await world.updateCloseWorldSettings({
controls: {
allowMuteAll: true,
disableHideVideo: true,
isMobileDisabled: false,
isShowingCurrentGuests: false,
},
description: 'Welcome to my world.',
forceAuthOnLogin: false,
height: 2000,
name: 'Example',
spawnPosition: { x: 100, y: 100 },
width: 2000
});
Update details of a world.
await world.updateDetails({
controls: {
allowMuteAll: true,
disableHideVideo: true,
isMobileDisabled: false,
isShowingCurrentGuests: false,
},
description: 'Welcome to my world.',
forceAuthOnLogin: false,
height: 2000,
name: 'Example',
spawnPosition: { x: 100, y: 100 },
width: 2000
});
const { name, description } = world;
Get all particles available
Trigger a particle effect at a position in the world
Returns { success: true }
or a message if no particleId is found.
Drops a scene in a world and returns sceneDropId.
{ sceneDropId: sceneId-timestamp, success: true }
Fetch a list of all scene drop ids and dropped assets in a world
{ "scenes": {
"sceneDropId_1": {
"droppedAssets": {
"droppedAssetId_1": {
"metaName": "hello"
"metaNameReversed": "olleh"
},
"droppedAssetId_2": {
"metaName": "world"
"metaNameReversed": "dlorw"
}
}
},
}
}
Replace the current scene of a world.
Returns { success: true }
or an error.
Retrieve all webhooks in a world.
Create an instance of World class with a given url slug and optional attributes and session credentials.
Example