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

Lookup Name Or Plate

Search records by name or plate values.

POST https://api.sonorancad.com/v2/general/lookups

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

Search records by name and plate values.

Request Body

Optional notification routing supports notifyCommunityUserId by default, or notifyRoblox, notifyDiscord, or notifyAccountUuid.

Send either a name search using first, last, and optional mi, or send a plate search. Unused fields may be omitted or left blank, but at least one name or plate value must be provided.

{
  "first": "John",
  "last": "Doe",
  "mi": "",
  "plate": "",
  "notifyCommunityUserId": "player-1234",
  "types": [7, 12],
  "partial": true
}

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:lookupV2({
    first = 'John',
    last = 'Doe',
    mi = 'A',
    plate = 'ABC123',
    types = {1},
    partial = true,
  })

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

Response

Successful requests return application/json.

Last updated

Was this helpful?