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

Get Accounts

Retrieve paginated community accounts.

GET https://api.sonorancad.com/v2/general/accounts

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

Return paginated community accounts.

Query Parameters

Name
Type
Default
Description

limit

integer

100

Maximum number of accounts returned. The backend enforces 1-100.

offset

integer

0

Number of accounts to skip.

status

integer

1

Filter by account status. See ACCOUNT_STATUS below.

username

string

Optional

Case-insensitive username filter.

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:getAccountsV2({
    limit = 25,
    offset = 0,
    username = 'john',
  })

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

Response

Successful requests return application/json.

Last updated

Was this helpful?