Get Accounts
Retrieve a list of community accounts.
GET https://api.sonorancms.com/v2/community/accounts
Rate limit:
22 requests per minute
Authenticated v2 endpoints are rate limited per credential rather than per IP address.
Retrieve a list of community accounts.
Query Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| skip | number | Yes | See example request for the shape. |
| take | number | Yes | See example request for the shape. |
| sysStatus | boolean | 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 = {
["skip"] = 0,
["take"] = 25,
["sysStatus"] = true
}
local response = sonoran.cms:getAccountsV2(query)
if response.success then
print(response.data)
else
print(response.reason)
endResponse
The data object is a paginated account collection. items contains the selected account fields plus teamspeakId, and total, skip, and take describe the page.
Last updated
Was this helpful?

