Skip to main content
GET
/
actions
/
{actionId}
/
distribution
Get a distribution details for an action
curl --request GET \
  --url https://{subdomain}.nudj.cx/api/v2/admin/actions/{actionId}/distribution \
  --header 'x-api-token: <api-key>'
{
  "pointsToDistribute": 1,
  "bonusXpToDistribute": 1,
  "rewardsConfig": {
    "mechanism": "all",
    "amountToDistribute": 1,
    "allocations": [
      {
        "id": "<string>",
        "allocationType": "assets",
        "supply": 1,
        "amountToDistribute": 2,
        "distributed": 1,
        "isLive": true,
        "rewardId": "<string>"
      }
    ]
  },
  "actionId": "<string>"
}

Authorizations

x-api-token
string
header
required

Path Parameters

actionId
string
required

Response

Successful response

pointsToDistribute
number
required

The amount of points to distribute.

Required range: x >= 0
bonusXpToDistribute
number
required

The amount of bonus xp to distribute

Required range: x >= 0
rewardsConfig
object
required
actionId
string
required

The id of the action with assigned distribution details

I