Skip to content
TEBHOS API

Experiments

An experiment is an instance-wide rollout that decides whether an account gets a feature. One request returns every experiment for the caller, along with how often to poll for changes. Ignore experiments you don’t know and treat a missing one as off.

FieldTypeDescription
poll_interval_secondsintegerSeconds to wait before the next poll (60-86400)
poll_jitter_percentintegerThe largest random offset to the wait, as a percentage of it (0-50)
assignmentsassignment map objectOne entry per experiment
FieldTypeDescription
pro_page?Pro page assignment objectThe caller’s Pro page assignment
channel_threads?channel threads assignment objectThe caller’s channel threads assignment
voice_p2p?peer-to-peer voice assignment objectThe caller’s peer-to-peer voice assignment
guild_visits?guild visits assignment objectThe caller’s guild visits assignment
voice_room?voice room assignment objectWhich 3D voice room features are on for the caller
FieldTypeDescription
enabledbooleanAlways true

Threads, forum channels and media channels also need the channel_threads client capability.

FieldTypeDescription
activebooleanAlways true
config_versionintegerThe instance’s threads configuration version, the same for every account
FieldTypeDescription
enabledbooleanWhether the caller can start a peer-to-peer voice call
max_participantsintegerThe most participants a peer-to-peer call allows (2-4)

The instance admin sets the rollout in the peer-to-peer voice configuration. If it lists rollout countries, the sampled share of accounts only includes requests from those countries, based on the request’s IP address, so the same account can get a different answer on another network. A join to a peer-to-peer call that already has max_participants people is refused as full.

FieldTypeDescription
enabledbooleanWhether the caller can visit a guild before joining it

The instance admin sets the rollout in the guild visits configuration.

The instance voice room switches as they reach the caller. The rollout reaches a caller on the always-on list or in the sampled share of accounts, and never one on the never-on list. A caller the rollout doesn’t reach gets every switch off. Every switch is off until the instance admin turns it on.

FieldTypeDescription
roomsbooleanWhether a voice channel with a room theme opens as a 3D room
gamesbooleanWhether table games can be played, never true while rooms is false
cameras?1booleanWhether the 3D room shows cameras on avatars, never true while rooms is false
avatars?1booleanWhether people show as 3D characters in the room, never true while rooms is false
walk?1booleanWhether characters can walk around the room, never true while avatars is false
watch?1booleanWhether people can play a shared YouTube video on the room TV, never true while rooms is false
stage?1booleanWhether the room shows the stage bots run, never true while rooms is false
fights?1booleanWhether room tournaments and arm wrestling run, never true while rooms is false. Arm wrestling also needs games
watch_since?integerServer time in milliseconds when room TV videos last came on. A video written before it is stale, and when it is absent none is
default_room_theme?1?stringThe room theme of voice channels that have none of their own, null for no default

1 Read a missing field as false, or null for default_room_theme, as from an older server.

GET/v1/experimentsBot

Returns an experiment assignments object for the caller.

FieldTypeDescription
If-None-Match?stringThe ETag from your last response

Experiment assignments object.

StatusBodyCondition
200response bodyThe assignments were returned
304emptyIf-None-Match matched the current ETag

The rate limit is 60 requests per 10 seconds, on the default bucket.

FieldTypeDescription
ETagstringA tag for the response body, sent on 200 and 304

Call this route when a session starts and again every poll_interval_seconds, with a random offset of up to poll_jitter_percent either way. Send the last ETag in If-None-Match, and keep your current assignments when you get a 304. Until you get a 200, use 300 seconds with 15 percent jitter.