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

Get Character Links

Retrieve linked sync-character IDs for a community user, linked Roblox user, linked Discord user, or account.

GET https://api.sonorancad.com/v2/civilian/character-links

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

Retrieve linked sync-character IDs for a community user, linked Roblox user, linked Discord user, or account.

Query Parameters

Name
Type
Default
Description

communityUserId

string

Optional

Default target option for the in-game community user ID. Provide exactly one identifier.

roblox

integer

Optional

Target the account linked to a Roblox user ID. Provide exactly one identifier.

discord

string

Optional

Target the account linked to a Discord user ID. Provide exactly one identifier.

accountUuid

string (uuid)

Optional

Target account UUID. Provide exactly one identifier.

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:getCharacterLinksV2({
    accountUuid = '00000000-0000-0000-0000-000000000000',
  })

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

Response

Successful requests return application/json.

Last updated

Was this helpful?