Check Community Link

Check whether a community user ID is linked to an account.

POST https://api.sonorancad.com/v2/general/links/check

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

Resolve a communityUserId to the linked Sonoran CAD account UUID inside the authenticated community.

Request Body

{
  "communityUserId": "player_12345"
}

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:checkCommunityLinkV2({
    communityUserId = 'player_12345',
  })

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

Response

Successful requests return application/json.

Linked:

Not linked:

If you want to avoid polling after creating a link code, listen for the Community Link Verified push event instead.

Last updated

Was this helpful?