Create a new lobby
curl --request POST \
--url https://api.engagefabric.com/lobbies \
--header 'Content-Type: application/json' \
--data '
{
"name": "Epic Battle Room",
"description": "<string>",
"maxSize": 10,
"privacy": "PUBLIC",
"gameMode": "deathmatch",
"difficulty": "hard",
"password": "secret123",
"config": {
"mapSeed": 12345,
"challengeId": "challenge-1"
},
"metadata": {}
}
'import requests
url = "https://api.engagefabric.com/lobbies"
payload = {
"name": "Epic Battle Room",
"description": "<string>",
"maxSize": 10,
"privacy": "PUBLIC",
"gameMode": "deathmatch",
"difficulty": "hard",
"password": "secret123",
"config": {
"mapSeed": 12345,
"challengeId": "challenge-1"
},
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Epic Battle Room',
description: '<string>',
maxSize: 10,
privacy: 'PUBLIC',
gameMode: 'deathmatch',
difficulty: 'hard',
password: 'secret123',
config: {mapSeed: 12345, challengeId: 'challenge-1'},
metadata: {}
})
};
fetch('https://api.engagefabric.com/lobbies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engagefabric.com/lobbies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Epic Battle Room',
'description' => '<string>',
'maxSize' => 10,
'privacy' => 'PUBLIC',
'gameMode' => 'deathmatch',
'difficulty' => 'hard',
'password' => 'secret123',
'config' => [
'mapSeed' => 12345,
'challengeId' => 'challenge-1'
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.engagefabric.com/lobbies"
payload := strings.NewReader("{\n \"name\": \"Epic Battle Room\",\n \"description\": \"<string>\",\n \"maxSize\": 10,\n \"privacy\": \"PUBLIC\",\n \"gameMode\": \"deathmatch\",\n \"difficulty\": \"hard\",\n \"password\": \"secret123\",\n \"config\": {\n \"mapSeed\": 12345,\n \"challengeId\": \"challenge-1\"\n },\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engagefabric.com/lobbies")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Epic Battle Room\",\n \"description\": \"<string>\",\n \"maxSize\": 10,\n \"privacy\": \"PUBLIC\",\n \"gameMode\": \"deathmatch\",\n \"difficulty\": \"hard\",\n \"password\": \"secret123\",\n \"config\": {\n \"mapSeed\": 12345,\n \"challengeId\": \"challenge-1\"\n },\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/lobbies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Epic Battle Room\",\n \"description\": \"<string>\",\n \"maxSize\": 10,\n \"privacy\": \"PUBLIC\",\n \"gameMode\": \"deathmatch\",\n \"difficulty\": \"hard\",\n \"password\": \"secret123\",\n \"config\": {\n \"mapSeed\": 12345,\n \"challengeId\": \"challenge-1\"\n },\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyLobbies
Create a new lobby
POST
/
lobbies
Create a new lobby
curl --request POST \
--url https://api.engagefabric.com/lobbies \
--header 'Content-Type: application/json' \
--data '
{
"name": "Epic Battle Room",
"description": "<string>",
"maxSize": 10,
"privacy": "PUBLIC",
"gameMode": "deathmatch",
"difficulty": "hard",
"password": "secret123",
"config": {
"mapSeed": 12345,
"challengeId": "challenge-1"
},
"metadata": {}
}
'import requests
url = "https://api.engagefabric.com/lobbies"
payload = {
"name": "Epic Battle Room",
"description": "<string>",
"maxSize": 10,
"privacy": "PUBLIC",
"gameMode": "deathmatch",
"difficulty": "hard",
"password": "secret123",
"config": {
"mapSeed": 12345,
"challengeId": "challenge-1"
},
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Epic Battle Room',
description: '<string>',
maxSize: 10,
privacy: 'PUBLIC',
gameMode: 'deathmatch',
difficulty: 'hard',
password: 'secret123',
config: {mapSeed: 12345, challengeId: 'challenge-1'},
metadata: {}
})
};
fetch('https://api.engagefabric.com/lobbies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engagefabric.com/lobbies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Epic Battle Room',
'description' => '<string>',
'maxSize' => 10,
'privacy' => 'PUBLIC',
'gameMode' => 'deathmatch',
'difficulty' => 'hard',
'password' => 'secret123',
'config' => [
'mapSeed' => 12345,
'challengeId' => 'challenge-1'
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.engagefabric.com/lobbies"
payload := strings.NewReader("{\n \"name\": \"Epic Battle Room\",\n \"description\": \"<string>\",\n \"maxSize\": 10,\n \"privacy\": \"PUBLIC\",\n \"gameMode\": \"deathmatch\",\n \"difficulty\": \"hard\",\n \"password\": \"secret123\",\n \"config\": {\n \"mapSeed\": 12345,\n \"challengeId\": \"challenge-1\"\n },\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engagefabric.com/lobbies")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Epic Battle Room\",\n \"description\": \"<string>\",\n \"maxSize\": 10,\n \"privacy\": \"PUBLIC\",\n \"gameMode\": \"deathmatch\",\n \"difficulty\": \"hard\",\n \"password\": \"secret123\",\n \"config\": {\n \"mapSeed\": 12345,\n \"challengeId\": \"challenge-1\"\n },\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/lobbies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Epic Battle Room\",\n \"description\": \"<string>\",\n \"maxSize\": 10,\n \"privacy\": \"PUBLIC\",\n \"gameMode\": \"deathmatch\",\n \"difficulty\": \"hard\",\n \"password\": \"secret123\",\n \"config\": {\n \"mapSeed\": 12345,\n \"challengeId\": \"challenge-1\"\n },\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Lobby name
Example:
"Epic Battle Room"
Lobby description
Maximum number of players
Required range:
2 <= x <= 100Lobby privacy setting
Available options:
PUBLIC, PRIVATE, INVITE_ONLY, FRIENDS Game mode
Example:
"deathmatch"
Difficulty level
Example:
"hard"
Password for private lobbies
Example:
"secret123"
Custom configuration
Example:
{
"mapSeed": 12345,
"challengeId": "challenge-1"
}
Additional metadata
Response
Lobby created successfully
⌘I
