Room API - WorkAdventure Documentation
Room API - WorkAdventure Documentation
Api Reference
Protobuf file
Event
The Room API is a gRPC-based API that allows an external server to connect to a room and to perform actions such as
Map Editor API reading/modifying/listening to a room variable.
Metadata
The Room API is a server to server API. If you are looking for a "client to server" API (for instance to add a dynamic behavior to a map),
Navigation look at the scripting API.
Player
The Room API is not designed to create rooms or to manage members or authorizations on who can enter a room. If you are looking
Players
for an API to do this, look for the AdminAPI (in self-hosted mode) or the inbound or hooks if you are using the WorkAdventure SAAS
Room version.
Sound
In WorkAdventure, the state of a room is stored in variables. You can bind those variables to some objects state (for instance to the
Start fact that a door is closed or opened). Or you can use the scripting API to react to variables change.
State
The Room API lets you monitor those room variables, but also allows you to edit them. Through variables, you can therefore establish a
UI 2-ways data channel between your server and what happens in a WorkAdventure room.
Deprecated Functions
Tiled Layers
Tiled Properties
Svelte
Protocol
Variables
You connect to the Room API using gRPC over HTTP2.
Scripting Internals
Using Typescript
The gRPC protocol provides an API that is self-documented (using .proto files), strictly typed, real-time and extremely performant.
Authentication
In order to connect to the Room API, you will need an authentication token.
You can issue a new authentication token in the administration dashboard of WorkAdventure.
Authentication to the API is done by passing a **X-API-Key** header in the gRPC metadata on each call to the API.
Endpoint
The Room API is available on the following endpoint:
Hostname Port
room-api.workadventu.re 443
Client libraries
SELF HOSTED FREE PLAN PREMIUM PLAN
You want to contribute or create a new client ? Please check the existing clients before.
Protobuf file
SELF HOSTED FREE PLAN PREMIUM PLAN
INFO
Need help 🆘
Previous Next
« Map Storage API Webhooks »