↕️Prize API

Get and award prizes securely

⬇️ Get pending prizes

Get unawarded prizes for a player

Get pending prizes

GET https://api.galaxysdk.com/api/v1/server/:player_id/prizes

Path Parameters

NameTypeDescription

player_id*

String

The player ID

Headers

NameTypeDescription

Secret-Key*

String

Your server API Key

{
    "prizes: [
    {
        "id": "prize id",
        "title": "prize title",
        "description": "prize description",
        "amount": 10,
        "currency": {
            "id": "currency id",
            "name": "currency name",
            "icon_url": "https://example.com/icon.png"
        }
    }
    ...
    ]
}

⬆️ Award a prize

Award a pending prize

Award a prize

POST https://api.galaxysdk.com/api/v1/server/:player_id/prizes

Path Parameters

NameTypeDescription

player_id*

String

The player ID

Headers

NameTypeDescription

Secret-Key*

String

Your server API Key

Request Body

NameTypeDescription

prize_ids*

[String]

Array of Prize IDs to award

Last updated