Lookup Community

Look up the community by ID or UUID.

GET https://api.sonorancms.com/v2/community/lookup

Rate limit: 13 requests per minute

Authenticated v2 endpoints are rate limited per credential rather than per IP address.

Look up the community by ID or UUID.

Query Parameters

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| id | string | Yes | See example request for the shape. |

Example Request

local Sonoran = require("sonoran")

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

local query = {
  ["id"] = "YOUR_COMMUNITY_ID"
}

local response = sonoran.cms:lookupCommunityV2(query)

if response.success then
  print(response.data)
else
  print(response.reason)
end

Response

The data object is the community summary returned by V2Service.summary(). It includes the community identifier, UUID, name, sub-version, resolved tier, and server count.

This lookup returns the same community summary shape as GET /v2/community, but it can resolve the community by id or UUID.

Last updated

Was this helpful?