POST
/
v1
/
ranker
local HttpService = game:GetService("HttpService")

local rankData = {
  rankerName = player.Name,
  rankerId = player.UserId,
  rankeeName = player.Name,
  rankeeId = player.UserId,
  newRankId = rankId,
  oldRankName = player:GetRoleInGroup(GroupIdentification),
  command = "PANORA Application Center",
}

local success, response = pcall(function()
  return HttpService:RequestAsync({
      Url = `https://api.panora.cc/v1/ranker?placeid={game.GameId}`,
      Method = "POST",
      Headers = {
          ["Authorization"] = "Bearer APIKEY", -- Replace "APIKEY" with your actual Panora API Key
          ["Content-Type"] = "application/json"
      },
      Body = HttpService:JSONEncode(rankData)
  })
end)

if success and response then
  if response.Success then
      print("Success:", response.Body)
  else
      warn("HTTP error:", response.StatusCode, response.StatusMessage, response.Body)
  end
else
  warn("Request failed:", response)
end
{
  "newRankName": "High Rank"
}

Endpoint

POST /v1/ranker?placeid={game.GameId}

Request Body

{
  "rankerName": "AdminUser",
  "rankerId": "111",
  "rankeeName": "Player123",
  "rankeeId": "222",
  "newRankId": "10",
  "oldRankName": "Member",
  "command": "promote",
  "prefix": "!",
  "webhookUrl": "https://discord.com/api/webhooks/..."
}
local HttpService = game:GetService("HttpService")

local rankData = {
  rankerName = player.Name,
  rankerId = player.UserId,
  rankeeName = player.Name,
  rankeeId = player.UserId,
  newRankId = rankId,
  oldRankName = player:GetRoleInGroup(GroupIdentification),
  command = "PANORA Application Center",
}

local success, response = pcall(function()
  return HttpService:RequestAsync({
      Url = `https://api.panora.cc/v1/ranker?placeid={game.GameId}`,
      Method = "POST",
      Headers = {
          ["Authorization"] = "Bearer APIKEY", -- Replace "APIKEY" with your actual Panora API Key
          ["Content-Type"] = "application/json"
      },
      Body = HttpService:JSONEncode(rankData)
  })
end)

if success and response then
  if response.Success then
      print("Success:", response.Body)
  else
      warn("HTTP error:", response.StatusCode, response.StatusMessage, response.Body)
  end
else
  warn("Request failed:", response)
end

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

placeid
string
required

The place (universal) ID associated with the group. Must be whitelisted.

Example:

"123456789"

Body

application/json

Response

200
application/json

User ranked successfully. Returns the new role name.

The response is of type object.