Skip to content

API Routes

API Routes

You can find the API Routes for managing credits below the Store settings. If you want to read about the API route for retrieving queued command read below.

POST https://example.com/r/f/store/queue/get

Expected POST data:

uuid= THE STEAMID OR MINECRAFTUUID OF THE PLAYER
server= THE SERVERS API TOKEN

Returns:

{
  "status": "success",
  "message": "Found 2 Commands for user with ID: ID!",
  "count": 2,
  "commands":[
    "give ID tons of c4",
    "say hello"
  ]
}
status will either be success or error, the message will hold information about it.

POST https://example.com/r/f/store/queue/set

After retrieving the command via the previous route, use this route to set each queued command as redeemed! This is required to make sure a command was executed. How you validate it on your plugin depends entirely on you.

Expected POST data:

queue= THE ID OF THE QUEUED COMMAND
status will either be info or error, the message will hold information about it. info is always a confirmation that the command status has changed to redeemed.

Tip

Use POSTMAN to test API requests. You can find it here: POSTMAN.