Aquila

API reference

Every call a studio makes to Aquila, generated from the API definitions.

Calling the APIs

Fleets, matchmaking and allocation are Connect services. Each RPC is a POST to /<package>.<Service>/<Method> with a JSON body, and answers with JSON.

curl https://api.aquilahosting.com/fleets.v1.FleetService/ListFleets \
  -H "Authorization: Bearer $AQUILA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"organizationId": "<your organization id>"}'

For a typed client in Go or TypeScript, generate one from the protobuf schema.

Field names are lowerCamelCase in JSON. Enums are sent by name, such as "PORT_PROTOCOL_UDP".

Errors

A failed call answers with a non-200 status and a body holding a code and a message:

{
  "code": "resource_exhausted",
  "message": "no Ready server in this fleet matches, try again or scale the fleet up"
}
CodeMeans
unauthenticatedNo key, or a key this zone does not recognise
permission_deniedThe key lacks the scope the call needs
not_foundNo such fleet, ticket or server in this organization
invalid_argumentThe request broke a field rule. The message names the field
failed_preconditionThe organization is not approved, or the resource is in a state that refuses the call
resource_exhaustedNo Ready server to allocate, or a rate limit was hit

The APIs

APIEndpointScope
Fleetshttps://api.aquilahosting.comfleets:read, fleets:write
Matchmakinghttps://api.aquilahosting.commatchmaking
Allocationhttps://allocate-<zone>.aquilahosting.comallocate
Game server SDKAQUILA_SDK_URL, inside the serverThe server's own token

On this page