Host a new multiplayer party.
POST /api/v1/party/host HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer ...
{
"name": "John's Party",
"maxPlayers": 8
}
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"partyId": "d8357102-4518-45c5-b7b3-127bad36a723",
"socketUrl": "wss://ws1.ws.prod.theendlessmission.com/party/d8357102-4518-45c5-b7b3-127bad36a723",
"accessToken": "eyJhb...Qjg"
}Authentication is required.
NONE
NONE
| Name | Description | Value |
|---|---|---|
| name | the display name for this party in listings | string |
| maxPlayers | the number of players that can join | number |
Successful responses are code 200 with data in the response body. Other error responses are standard.
| Name | Description | Value |
|---|---|---|
| partyId | the ID of the party that was created | 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 |