Matchmaking
GetTicket
POST
GetTicket returns the ticket's current state.
apiKeyheader
AuthorizationBearer <token>An organization API key, created in the console.
application/json- body
ticket*Success
application/json- response
ticket?curl -X POST 'https://api.aquilahosting.com/matchmaking.v1.MatchmakingService/GetTicket' \ -H 'Content-Type: application/json' \ -d '{ "ticket": {}}'Example Response
{ "ticket": { "ticketId": "string", "queueId": "string", "playerIds": [ "string" ], "stringAttributes": { "property1": "string", "property2": "string" }, "numberAttributes": { "property1": 0.1, "property2": 0.1 }, "latenciesMs": { "property1": 0, "property2": 0 }, "state": "TICKET_STATE_UNSPECIFIED", "assignment": { "matchId": "string", "zone": "string", "gameServer": "string", "address": "string", "ports": [ { "name": "string", "port": 0, "protocol": "string" } ], "team": 0, "matchToken": "string" }, "createdAt": "2023-01-15T01:30:15.01Z", "expiresAt": "2023-01-15T01:30:15.01Z" }}CreateTicket POST
CreateTicket returns RESOURCE_EXHAUSTED over the org's rate or the queue's limit of searching tickets, and FAILED_PRECONDITION when the queue is disabled or the org is not approved.
WatchTicket POST
WatchTicket sends the ticket now and on every change, and ends once it reaches ASSIGNED, EXPIRED or CANCELLED.