POST
/
v1
/
apikey
local HttpService = game:GetService("HttpService")
local payload = HttpService:JSONEncode({ placeid = tostring(game.GameId) })

local success, response = pcall(function()
  return HttpService:RequestAsync({
  	Url = "https://api.panora.cc/v1/apikey",
  	Method = "POST",
  	Headers = {
  		["Authorization"] = "Bearer APIKEY", -- Replace "APIKEY" with your actual Panora API Key
  		["Content-Type"] = "application/json"
  	},
  	Body = payload
  }) 
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
{
  "workspaceId": "abc123workspaceid"
}

Endpoint

POST /v1/apikey

Request Body

{
  "placeid": "123456789",
}
local HttpService = game:GetService("HttpService")
local payload = HttpService:JSONEncode({ placeid = tostring(game.GameId) })

local success, response = pcall(function()
  return HttpService:RequestAsync({
  	Url = "https://api.panora.cc/v1/apikey",
  	Method = "POST",
  	Headers = {
  		["Authorization"] = "Bearer APIKEY", -- Replace "APIKEY" with your actual Panora API Key
  		["Content-Type"] = "application/json"
  	},
  	Body = payload
  }) 
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.

Body

application/json

Response

200
application/json

Successfully validated. The workspace ID is returned in the response body.

The response is of type object.