Lookup By Value
Search records by numeric, account-backed, or secret-backed values.
POST https://api.sonorancad.com/v2/general/lookups/by-value
Rate limit:
30 requests per minuteAuthenticated v2 endpoints are rate limited per API key rather than per IP address.
Search records by a typed lookup value.
Request Body
Optional notification routing supports notifyCommunityUserId by default, or notifyRoblox, notifyDiscord, or notifyAccountUuid.
{
"searchType": "NUMBER",
"value": "451",
"notifyCommunityUserId": "player-1234",
"types": [12]
}Example Request
-- luarocks install sonoran.lua
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:lookupByValueV2({
searchType = 'plate',
value = 'ABC123',
types = {1},
})
-- Inspect response.success, response.data, or response.reason as needed.
print(response.success)Call from a server-side FiveM resource using the exported CAD client:
local cad = exports["sonorancad"]:getCadClient()
local response = cad:lookupByValueV2({
searchType = "plate",
value = "ABC123",
types = { 1 }
})
print(response.success)JavaScript resources can use exports.sonorancad.getCadClient(). For .NET, construct a client from the protected CAD convars. Python is for external integrations, not FiveM resources.
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.
Last updated
Was this helpful?

