API FOR FETCHING OWNER CONTACT FOR A GIVEN INDIAN VEHICLE REGISTRATION CERTIFICATE (RC) NUMBER
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.
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.
Request Body Parameters
Key | Type | Description | Optional (default) | Min Version | Max Version |
---|
type | String | Pass value as RC_MOBILE | Required | v2 | |
items | Array<VehicleInputObject> | List of vehicle number object for which the contact information should be fetched. See definition of Vehicle Input Object below. | Required | v2 | |
webhook | Boolean | Whether the webhook should be called for each vehicle input. Refer to Webhooks for more details | Optional | v2 | |
Key | Type | Description | Optional (default) | Min Version | Max Version |
---|
reg | String | Vehicle number to be verified | Required | v2 | |
Sample Request Body
Type | Name | Value / Description | Optional | Min Version | Max Version |
---|
String | Content-Type | application/json | Required | v2 | |
String | Authorization | Basic {authToken} | Required | v2 | |
If you do not have the authentication token, please refer to Register App to generate one.
HTTP Status 200
Key | Description | Type | Min Version | Max Version |
---|
_id | Batch Request ID generated by the system for the set of vehicle numbers submitted. | String | v2 | |
number | Human readable unique batch number assigned to each batch | String | v2 | |
Sample Response
Type | URL | Current Version |
---|
POST | https://api.attestr.com/api/{version}/public/batchx/{batchId}/items | v2 |
Request URL Parameters
Key | Type | Description | Required/Optional |
---|
batchId | String | Batch ID generated in the previous step | Required |
Type | Name | Value / Description | Optional | Min Version | Max Version |
---|
String | Content-Type | application/json | Required | v2 | |
String | Authorization | Basic {authToken} | Required | v2 | |
Request Body Parameters
Key | Type | Description | Optional / Required | Min Version | Max Version |
---|
$skip | Number | Number 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. | Optional | v2 | |
$limit | Number | Number of records to include in a single response. This key is used in conjunction with the "skip" key for pagination. | Optional | v2 | |
Sample Request
Response Body
Key | Description | Type | Min Version | Max Version |
---|
recordsFiltered | No of records returned in the response | Number | v2 | |
data | List of records. See Record Output Object definition below. | Array<Record Output Object> | v2 | |
Record Output Object
Key | Description | Type | Min Version | Max Version |
---|
_id | Unique ID assigned to each record in the batch | String | v2 | |
requestId | Tracking ID used for Attestr internal purposes | String | v2 | |
batchId | Batch ID same as generated in step one. | String | v2 | |
number | Unique number assigned to each record in the batch | String | v2 | |
status | Status of the request. Request can be in one of the following statuses.
INITIATED, COMPLETED, ERRORED | String | v2 | |
input | Input vehicle number submitted | Object | v2 | |
output | Vehicle Output Data corresponding to the submitted vehicle number. See Vehicle Output Data definition below. | Object | v2 | |
Vehicle Output Data
Key | Description | Type | Min Version | Max Version |
---|
valid | Flag indicating if the provided RC number is valid and vehicle details are fetched | Boolean | v2 | |
status | Status 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 number | String | v2 | |
contact | Mobile number of the owner if available | String | v2 | - |
Sample response for valid RC
Sample response for invalid / non existing mobile number
Sample response if the request is in INITIATED state
Parameter | Type | Description |
---|
code | Number | Unique error codes for different errors. Always available. |
message | String | Error message describing the error. Always Available. |
details | String | Detail error message. Available only for certain types of errors. |
Error Codes
HTTP Status | Error Code | Error Message |
---|
400 | 4001 | Malformed data or missing required parameter values |
400 | 4005 | Operation could not be performed due to low credits balance |
401 | 4016 | Invalid client authorization |
403 | 4031 | Unauthorized access |
403 | 4035 | Requested service is not provisioned for your account |
403 | 4039 | Client's IP address is not whitelisted |
403 | 4035 | Requested service is not provisioned for your account |
429 | 4291 | Maximum account rate limit exceeded |
429 | 4292 | Maximum API rate limit exceeded |
429 | 4293 | Maximum account daily limit exceeded |
429 | 4294 | Maximum API daily limit exceeded |
500 | 5001 | Request could not be processed |
Sample Error Response
Vehicle Owner Contact Lookup API supports the following two webhook events.
See Webhooks for more details on how to register webhooks.
- async.completed
- async.errored
To enable webhooks, the API input parameter webhook must be set as true while initiating the request.
Webhook Event Payload
Key | Type | Description | Min Version | Max Version |
---|
_id | String | ID of the async request. This is same as received in the output of Person / Business search API as described above. | v1 | |
requestId | String | Unique request ID for internal tracing purposes. | v1 | |
status | String | One of COMPLETED OR ERRORED | v1 | |
output | Object | Record Output Object same as described above | v1 | |
error | Object | Error object if the request ran into errors. The structure of this is same as the Error Response object described above. | v1 | |
signature | String | generated 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.