Gameserver Match
GET
/server/v1/matches/{matchId}
const url = 'https://example.com/server/v1/matches/1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/server/v1/matches/1A match’s state. relayTo is the server code to send its players to, and stays
null until there is a server to send them to.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”matchId
required
Matchid
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MatchState
GET /matches/{matchId}. relayTo is the server code to send this match’s
players to, and stays null until there is a server to send them to.
object
Examplegenerated
{ "id": 1, "region": "example", "status": "example", "relayTo": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}