Join a multiplayer game.
POST /api/v1/game/a2c4f9bd-b698-4b21-839d-81e75e514d0c/join HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer ...
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"gameId": "a2c4f9bd-b698-4b21-839d-81e75e514d0c",
"instanceId": "a2c4f9bd-b698-4b21-839d-81e75e514d0c",
"playId": "TerminalScene01",
"socketUrl": "wss://ws1.ws.prod.theendlessmission.com/game/a2c4f9bd-b698-4b21-839d-81e75e514d0c",
"accessToken": "eyJhb...Qjg",
"settings": {
"decoration": "halloween-19",
"lighting": "spooky-rave-party"
}
}Authentication is required.
| Name | Description | Value |
|---|---|---|
| instanceId | the ID of the game instance to join, as a GUID with dashes | string |
NONE
NONE
Successful responses are code 200 with data in the response body. Other error responses are standard.
| Name | Description | Value |
|---|---|---|
| instanceId | the ID of the game instance to join | string |
| gameId | the ID of the game that was createdNOTE: this field is deprecated and will be removed. Use instanceId instead. | string |
| playId | the ID of the game being played on this instance; it may be a UUID of an entity (by reivision), or it may be another identifier known by the game client. | string |
| socketUrl | the URL to use to establish a WebSocket connection | string |
| accessToken | a token granting access to the socket host, as a JWT | string |
| settings | a game-type-specific bag of settings, to be given to a player joining the game; no schema is enforced on these settings | object |