Vehicle Owner Mobile Lookup API

API FOR FETCHING OWNER CONTACT FOR A GIVEN INDIAN VEHICLE REGISTRATION CERTIFICATE (RC) NUMBER

Description

Vehicle Owner Contact Information Lookup Service allows you to retrieve the owner’s contact details using just the vehicle number. By entering the vehicle number, you can access accurate and up-to-date contact information, enabling efficient verification and communication. This service is ideal for legal, administrative, insurance and customer service purposes, offering a secure and streamlined way to obtain complete ownership details while ensuring privacy and compliance with data protection regulations.

API Details

Contact lookup is available in the form of a batch upload which accepts a set of vehicle numbers as an input (excel or json array) and returns the verified details along with the registered contact number of the owner in the response.

Batch runs are asynchronous. Submitted vehicle numbers are queued and processed based on server availability. Processing may take from a few seconds to several hours, to enforce a fair usage policy. See the Webhook section below for subscribing to events and automating data capture.

STEP 1. Submit Vehicle Data API

Request

TypeURLCurrent Version
POSThttps://api.attestr.com/api/{version}/public/batchx/v2

Request Body Parameters

KeyTypeDescriptionOptional (default)Min VersionMax Version
typeStringPass value as RC_MOBILERequiredv2
itemsArray<VehicleInputObject>List of vehicle number object for which the contact information should be fetched. See definition of Vehicle Input Object below.Requiredv2
webhookBooleanWhether the webhook should be called for each vehicle input. Refer to Webhooks for more detailsOptionalv2

Input Vehicle Input Object

KeyTypeDescriptionOptional (default)Min VersionMax Version
regStringVehicle number to be verifiedRequiredv2

Sample Request Body

JSON
Copy

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv2
StringAuthorizationBasic {authToken}Requiredv2

If you do not have the authentication token, please refer to Register App to generate one.

Response

HTTP Status 200

KeyDescriptionTypeMin VersionMax Version
_idBatch Request ID generated by the system for the set of vehicle numbers submitted.Stringv2
numberHuman readable unique batch number assigned to each batchStringv2

Sample Response

JSON
Copy

STEP 2. Fetch Results API

Request

TypeURLCurrent Version
POSThttps://api.attestr.com/api/{version}/public/batchx/{batchId}/itemsv2

Request URL Parameters

KeyTypeDescriptionRequired/Optional
batchIdStringBatch ID generated in the previous stepRequired

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv2
StringAuthorizationBasic {authToken}Requiredv2

Request Body Parameters

KeyTypeDescriptionOptional / RequiredMin VersionMax Version
$skipNumberNumber of records to skip while querying the data. This key is used for pagination when a large number of vehicle registration numbers are submitted in a single batch.Optionalv2
$limitNumberNumber of records to include in a single response. This key is used in conjunction with the "skip" key for pagination.Optionalv2

Sample Request

Sample Request URL and Body
Copy

Response

Response Body

KeyDescriptionTypeMin VersionMax Version
recordsFilteredNo of records returned in the responseNumberv2
dataList of records. See Record Output Object definition below.Array<Record Output Object>v2

Record Output Object

KeyDescriptionTypeMin VersionMax Version
_idUnique ID assigned to each record in the batchStringv2
requestIdTracking ID used for Attestr internal purposesStringv2
batchIdBatch ID same as generated in step one.Stringv2
numberUnique number assigned to each record in the batchStringv2
statusStatus of the request. Request can be in one of the following statuses. INITIATED, COMPLETED, ERROREDStringv2
inputInput vehicle number submittedObjectv2
outputVehicle Output Data corresponding to the submitted vehicle number. See Vehicle Output Data definition below.Objectv2

Vehicle Output Data

KeyDescriptionTypeMin VersionMax Version
validFlag indicating if the provided RC number is valid and vehicle details are fetchedBooleanv2
statusStatus of the outcome. Status can have 4 possible values. VALID_FOUND - If the details are found including mobile number NOT_FOUND - Vehicle details not available for the provided vehicle numberStringv2
contactMobile number of the owner if availableStringv2-

Sample Response

Sample response for valid RC

JSON
Copy

Sample response for invalid / non existing mobile number

JSON
Copy

Sample response if the request is in INITIATED state

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your account
4034039Client's IP address is not whitelisted
4034035Requested service is not provisioned for your account
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed

Sample Error Response

JSON
Copy

Webhooks

Vehicle Owner Contact Lookup API supports the following two webhook events.

See Webhooks for more details on how to register webhooks.

  1. async.completed
  2. async.errored

To enable webhooks, the API input parameter webhook must be set as true while initiating the request.

Webhook Event Payload

KeyTypeDescriptionMin VersionMax Version
_idStringID of the async request. This is same as received in the output of Person / Business search API as described above.v1
requestIdStringUnique request ID for internal tracing purposes.v1
statusStringOne of COMPLETED OR ERROREDv1
outputObjectRecord Output Object same as described abovev1
errorObjectError object if the request ran into errors. The structure of this is same as the Error Response object described above.v1
signatureStringgenerated using hmacHexDigest of output object and client secret. Null if status is errored.v1

Validating the signature

Generate signature on your server side code base and check if it matches the signature returned in the payload. To generate the signature, use the SHA256 algorithm, the client secret and the output value to generate a HMAC Hex Digest as shown in the sample code below.

Node.js
Java
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
vehicle owner contact lookupvehicle to mobile numberrc to mobile numbervehicle owner mobile