Aquila
Matchmaking

CreateTicket

POST
/matchmaking.v1.MatchmakingService/CreateTicket

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.

Authorization

apiKey
headerAuthorizationBearer <token>

An organization API key, created in the console.

Request Body

application/json
  1. body
organizationId?organization_id
Formatuuid
queue?queue

Queue name.

Length1 <= length <= 40
playerIds?array<>

One player, or a party that stays on one team. At most the queue's team size.

Items1 <= items <= 100
stringAttributes?

Keys are lowercase letters, digits, dashes and underscores. A ticket missing one of the queue's equal attributes matches only tickets also missing it. Every range attribute of the queue is required.

Propertiesproperties <= 16
numberAttributes?

Values for the queue's range attributes, such as skill.

Propertiesproperties <= 16
latenciesMs?

Round trip in ms per zone, as the player's client measured it. A ticket with latencies is only matched in the zones it lists, preferring the one whose worst latency in the match is lowest. Without any it takes every zone.

Propertiesproperties <= 16

Response Body

Success

application/json
  1. response
ticket?
Example Request
curl -X POST 'https://api.aquilahosting.com/matchmaking.v1.MatchmakingService/CreateTicket' \  -H 'Content-Type: application/json' \  -d '{}'
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"  }}