For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Login Page

Retrieve public login-page community details by custom URL or community ID.

GET https://api.sonorancad.com/v2/general/login-page

Rate limit: 10 requests per minute Authenticated v2 endpoints are rate limited per API key rather than per IP address.

Return public login-page details for a community. This endpoint does not require bearer authentication.

Query Parameters

Name
Type
Default
Description

communityId

string

Optional

Use the community ID instead of url. Provide exactly one.

url

string

Optional

Use the community website or login URL instead of communityId.

Example Request

-- luarocks install sonoran.lua
-- For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client.
local Sonoran = require("sonoran")

local sonoran = Sonoran.createClient({
  product = Sonoran.productEnums.CAD,
  communityId = "YOUR_COMMUNITY_ID",
  apiKey = "YOUR_API_KEY",
  defaultServerId = 1
})

local response = sonoran.cad:getLoginPageV2({
    communityId = 'YOUR_COMMUNITY_ID',
  })

-- Inspect response.success, response.data, or response.reason as needed.
print(response.success)

Response

Successful requests return application/json.

Last updated

Was this helpful?