Get Database Sync Configuration
Retrieve the enabled state of community database sync and its supported record mappings.
GET https://api.sonorancad.com/v2/general/database-sync
Rate limit:
10 requests per minuteAuthenticated v2 endpoints are rate limited per API key rather than per IP address.
Return whether database sync is enabled for the authenticated community and whether character, license, and vehicle registration mappings are enabled. Connection credentials and mapping details are never returned.
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:getDatabaseSyncConfigurationV2()
if response.success then
print("Database sync enabled:", response.data.enabled)
print("Character mapping enabled:", response.data.character)
print("License mapping enabled:", response.data.licenses)
print("Vehicle registration mapping enabled:", response.data.vehicleRegistrations)
else
print(response.reason)
endUse this tab when calling the v2 API from the server side of an in-game FiveM resource.
Sonoran.lua and Sonoran.js: use the
sonorancadexport to get the configured CAD client.Sonoran.Net: FiveM exports do not return a .NET client, so read the protected Sonoran CAD convars and create a client.
Sonoran.py: FiveM does not run Python resources; use the Sonoran.py tab for external integrations.
The API key is stored in sonoran_apiKey as a protected FiveM convar. Grant an authorized server resource access with add_convar_permission your-resource-name read sonoran_apiKey.
Sonoran.lua
Sonoran.js
Sonoran.Net
Import this YAML into Postman with Import -> Raw text to create a single-endpoint request collection for this route.
Response
Successful requests return application/json with only the overall database sync state and the three supported mapping states.
Last updated
Was this helpful?

