Assets

Browse and manage game assets including dragons and gateway keys

Assets API

Browse dragons, eggs, gateway keys, and other game assets. Most endpoints are public and do not require authentication.


List All Assets {#list-assets}

Retrieve paginated list of assets with comprehensive filtering.

Endpoint

GET /api/v1/assets

Authentication

Not required (public endpoint)

Query Parameters

ParameterTypeDescription
accIdstringFilter by account ID
statestring[]Filter by asset state (SEALED, INCUBATING, HATCHING, HATCHED)
housestring[]Filter by house element (FIRE, WATER, EARTH, AIR)
magicstring[]Filter by magic element
spawnstring[]Filter by spawn season
hatchstring[]Filter by hatch season
goldenbooleanFilter for golden dragons
celestialMagicbooleanFilter for celestial magic
searchTermstringSearch term for asset name
limitintegerItems per page (default: 25)
offsetintegerPagination offset (default: 0)
orderBystringSort field: created, modified, rarity, eggDensity
orderDirstringSort direction: asc or desc (default: desc)

Response

{
  "assets": [
    {
      "id": 12345,
      "accId": "account-id-123",
      "accDisplayName": "PlayerName",
      "created": 1699999999,
      "modified": 1699999999,
      "assetType": "DRAGON",
      "assetState": "SEALED",
      "charmOfMaking": "charm-string",
      "thumbnail": "https://...",
      "listingId": 0,
      "dragon": {
        "egg": { /* egg details */ },
        "dragon": { /* dragon details */ }
      }
    }
  ],
  "total": 1000
}

List Dragons {#list-dragons}

Retrieve only dragon assets (filtered view of all assets).

Endpoint

GET /api/v1/assets/dragons

Authentication

Not required (public endpoint)

Query Parameters

Same as List All Assets

Response

Same structure as List All Assets, filtered to assetType: "DRAGON" only


List Gateway Keys {#list-gateway-keys}

Retrieve only gateway key assets.

Endpoint

GET /api/v1/assets/gateway-keys

Authentication

Not required (public endpoint)

Query Parameters

Same as List All Assets

Response

{
  "assets": [
    {
      "id": 12345,
      "accId": "account-id-123",
      "accDisplayName": "PlayerName",
      "assetType": "GATEWAY_KEY",
      "assetState": "ACTIVE",
      "gatewayKey": {
        "id": 12345,
        "age": 1,
        "season": "PRIMORDIAL",
        "isGolden": false,
        "thumbnail": "https://..."
      }
    }
  ],
  "total": 100
}

Get Asset Statistics {#get-asset-stats}

Retrieve aggregate statistics for assets.

Endpoint

GET /api/v1/assets/stats

Authentication

Not required (public endpoint)

Query Parameters

ParameterTypeDescription
accIdstringGet stats for specific account (omit for global stats)

Response

{
  "accId": "",
  "totalAssets": 10000,
  "totalDragons": 5000,
  "totalSealedEggs": 2000,
  "totalIncubatingEggs": 1500,
  "totalHatchingEggs": 500,
  "totalGoldenEggs": 100,
  "totalGatewayKeys": 1000
}

Get Asset Details {#get-asset}

Retrieve complete details for a specific asset including full genome data.

Endpoint

GET /api/v1/assets/{assetId}

Authentication

Not required (public endpoint)

Path Parameters

ParameterTypeDescription
assetIdintegerNumeric asset ID

Response

{
  "id": 12345,
  "accId": "account-id-123",
  "accDisplayName": "PlayerName",
  "assetType": "DRAGON",
  "assetState": "HATCHED",
  "dragon": {
    "egg": {
      "id": 67890,
      "hatchState": "HATCHED",
      "house": "FIRE",
      "magicElement": "LIGHTNING",
      "spawnSeason": "PRIMORDIAL",
      "golden": false
    },
    "dragon": {
      "version": 1,
      "house": "FIRE",
      "magicElement": "LIGHTNING",
      "genome": { /* complete genome data */ },
      "colorGeneClusters": {},
      "magicInfo": {},
      "nameInfo": {}
    }
  }
}

Get Asset Media {#get-asset-media}

Retrieve paginated list of media files (images, videos) for an asset.

Endpoint

GET /api/v1/assets/{assetId}/medias

Authentication

Not required (public endpoint)

Path Parameters

ParameterTypeDescription
assetIdintegerNumeric asset ID

Query Parameters

ParameterTypeDescription
limitintegerItems per page (default: 100, max: 100)
offsetintegerPagination offset (default: 0)

Response

[
  {
    "id": 1,
    "created": 1699999999,
    "thumbnail": "https://...",
    "mediaLink": "https://...",
    "eggId": 12345,
    "type": "EGG",
    "metadata": {}
  },
  {
    "id": 2,
    "created": 1700000000,
    "thumbnail": "https://...",
    "mediaLink": "https://...",
    "eggId": 12345,
    "type": "DRAGON",
    "metadata": {}
  }
]

Media Types

  • EGG - Egg artwork
  • DRAGON - Dragon artwork
  • GATEWAY_KEY - Gateway key artwork

Get Magic Potential {#get-magic-potential}

Calculate celestial magic potential for a dragon egg.

Endpoint

GET /api/v1/assets/magic/{assetId}

Authentication

Not required (public endpoint)

Path Parameters

ParameterTypeDescription
assetIdintegerNumeric asset ID (must be dragon type)

Response

{
  "magicPotential": "GUARANTEED STABLE CELESTIAL MAGIC"
}

Possible Values

ValueDescription
GUARANTEED STABLE CELESTIAL MAGICLow density egg with sufficient incubation
POSSIBLE STABLE CELESTIAL MAGICLow density egg without sufficient incubation
POSSIBLE UNSTABLE CELESTIAL MAGICHigh density egg with insufficient incubation
CELESTIAL MAGIC NOT POSSIBLEHigh density egg with sufficient incubation

Business Logic

  • Only works for DRAGON asset type
  • Asset must NOT be in HATCHED or HATCHING state
  • Low density eggs (density < 1,000,000):
    • If incubated AND current blocks > density: GUARANTEED STABLE
    • Otherwise: POSSIBLE STABLE
  • High density eggs (density >= 1,000,000):
    • If NOT incubated OR current blocks < density: POSSIBLE UNSTABLE
    • Otherwise: NOT POSSIBLE