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

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 minute Authenticated 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)

Response

Successful requests return application/json.

Last updated

Was this helpful?