Dice
The /dice endpoint rolls dice using RPG notation (NdX or NdX+M).
gethttps://api.moxon.dev /v5/dice
Try itget/v5/dice
curl -X GET \ "https://api.moxon.dev/v5/dice"Send the request to see the response here.
rollstringrequiredDice notation (e.g.
2d6+3,1d20,4d8). 1–100 dice, 2–1000 sides. The+can be encoded as a space.
rollstringThe parsed dice notation
countnumberNumber of dice rolled
sidesnumberNumber of sides per die
modifiernumberAdded modifier (0 if none)
resultsnumber[]Individual die results
totalnumberSum of all dice results + modifier
If parameters are missing or invalid, the API will return an error:
- 400
Please provide a valid dice roll (?roll={NdX|NdX+M})Therollparameter is missing or invalid
Last updated on May 25, 2026