Skip to main content

eFIR Verification API

This document highlights the eFIR Verification API details.

API Description

Objective

The eFIR Verification API provides information about a filed eFIR (electronic First Information Report), including details such as the father name of the complainant, address, and related case information.

InputOutput
The details of the complainantThe details corresponding to the eFIR. The complete list of output fields is available in the Success Response Details section.

API URL

https://ind-engine.thomas.hyperverge.co/v1/eFIRCheck

API Endpoint

eFIRCheck

Overview

The API is RESTful, utilizing standard HTTP verbs and status codes. Responses are provided in JSON format, and all images and files must be uploaded as form-data via a POST request.

Authentication

To access the API, you must obtain a unique pair of application ID (appId) and application key (appKey) from HyperVerge for identity verification.

Method - POST

Headers

ParameterMandatory or OptionalDescriptionAllowed Values
content-type MandatoryThis parameter defines the media type for the request payloadapplication/json
appId MandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
appKey MandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
transactionIdMandatoryA unique identifier for tracking a complainant journeyThis should be both unique and easily associated with the complainant's journey in your application(s)

Inputs

The following table outlines the parameters required in the API's request body:

ParameterDescriptionMandatory or OptionalAllowed ValuesDefault Value
nameThe name of the complainant as recorded in the filed eFIRMandatoryNot ApplicableNot Applicable
fatherNameThe name of the complainant's fatherOptionalNot ApplicableNot Applicable
addressThe full address of the complainantOptionalNot ApplicableNot Applicable
sourceThe filed eFIRMandatory"fir"Not Applicable

Request

The following code snippet demonstrates a standard curl request for the API:

curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/eFIRCheck' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"name": "<Enter_the_Name>",
"fatherName": "<Enter_the_fatherName>",
"address": "<Enter_the_address>",
"source": "<Enter_the_source>"
}'

Success Response

The following code snippet demonstrates a success response from the API:

{
"status": "success",
"statusCode": "200",
"result": {
"cases": [
{
"address": "<Address_Of_The_Case>",
"addressDistrict": "<District_Of_The_Case>",
"addressMatch": "<Address_Match_Status>",
"addressPincode": "<Pincode_Of_The_Case>",
"addressRerankScore": "<Address_Rerank_Score>",
"addressState": "<State_Of_The_Case>",
"addressStreet": "<Street_Of_The_Case>",
"addressTaluka": "<Taluka_Of_The_Case>",
"addressWc": "<Word_Count_Of_Address>",
"algo": "<Algorithm_Name>",
"algoRisk": "<Algorithm_Risk_Level>",
"allCandidates": [
"<Candidate_1>",
"<Candidate_2>",
"<Candidate_3>",
"<Candidate_4>",
"<Candidate_5>",
"<Candidate_6>"
],
"asrInfo": "<Act_Section_Related_Info>",
"bullzaiOnly": "<Bullzai_Only_Status>",
"caseCategory": "<Category_Of_The_Case>",
"cleanName": "<Cleaned_Name_Of_Person>",
"date": "<Date_Of_Case>",
"decidingFactor": "<Deciding_Factor>",
"distMatch": "<District_Match_Status>",
"distName": "<District_Name>",
"doorMatch": "<Door_Match_Status>",
"fatherMatchType": "<Father_Name_Match_Type>",
"fatherName": "<Father_Name>",
"fatherNameMatch": "<Father_Name_Match_Status>",
"firNo": "<FIR_Number>",
"firYear": "<FIR_Year>",
"jinaAddressRank": "<Jina_Address_Rank>",
"jinaNameRank": "<Jina_Name_Rank>",
"jurisdiction": "<Jurisdiction_Status>",
"jurisdictionType": "<Jurisdiction_Type>",
"link": "<Case_Link>",
"md5": "<MD5_Hash>",
"name": "<Name_Of_Person>",
"nameMatch": "<Name_Match_Status>",
"nameMatchType": "<Name_Match_Type>",
"nameRerankScore": "<Name_Rerank_Score>",
"nameWc": "<Name_Word_Count>",
"oparty": "<Opposite_Party_Name>",
"overallMatch": "<Overall_Match_Status>",
"policeStation": "<Police_Station_Name>",
"rawAddress": "<Raw_Address_Of_Case>",
"ref": "<Reference_ID>",
"source": "<Source_Of_Info>",
"stateMatch": "<State_Match_Status>",
"stateName": "<State_Name>",
"timeStamp": "<Timestamp>",
"type": "<Case_Type>",
"underActs": "<Acts_Involved>",
"underSections": "<Sections_Involved>",
"uniqCaseId": "<Unique_Case_ID>",
"villageMatch": "<Village_Match_Status>",
"year": "<Year_Of_Case>"
}
],
"flexiSearchId": "<Flexi_Search_ID>",
"flexiSourceId": "<Flexi_Source_ID>",
"groupBy": {},
"message": "<Processing_Message>",
"numresults": "<Number_Of_Results>",
"status": "<Status_Of_Processing>"
},
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

The following table outlines the details of the success response from the API:

ParameterTypeDescription
addressstringThe complete address related to the case
addressDistrictstringThe district of the address
addressMatchbooleanIndicates if the address matches
addressPincodestringThe postal code for the address
addressRerankScorenumberA score indicating the relevance of the address match
addressStatestringThe state in which the address is located
addressStreetstringA cleaned-up version of the street address
addressTalukastringThe taluka (sub-district) of the address
addressWcintegerThe word count of the address
algostringThe algorithm used for the match
algoRiskstringThe risk level associated with the case
allCandidatesarrayA list of names of individuals related to the case
asrInfostringThe legal information pertaining to the case
bullzaiOnlybooleanIndicates if the case is based solely on the bullzai algorithm
caseCategorystringThe category of the case
cleanNamestringThe cleaned name of the individual involved
datestringThe date associated with the case
decidingFactorstringThe main factor for case matching
distMatchbooleanIndicates if the district matches
distNamestringThe name of the district
doorMatchbooleanIndicates if the door number matches
fatherMatchTypestringThe matching status of the father's name
fatherNamestringThe name of the victim's father
fatherNameMatchbooleanIndicates if the father's name matches
firNostringThe FIR (First Information Report) number associated with the case
firYearintegerThe year of the FIR
jinaAddressRankintegerThe rank of the address match
jinaNameRankintegerThe rank of the name match
jurisdictionbooleanIndicates if the case falls under any specific jurisdiction
jurisdictionTypeastringThe type of jurisdiction
linkstringA link to additional information related to the case
md5stringThe MD5 hash of the case information for integrity verification
namestringThe name of the individual involved in the case
nameMatchbooleanIndicates if the name matches
nameMatchTypestringThe type of name match
nameRerankScorenumberA score indicating the relevance of the name match
nameWcintegerThe word count of the name
opartystringThe opposing party's name related to the case
overallMatchbooleanThe overall matching status of the case
policeStationstringThe police station associated with the case
rawAddressstringThe unprocessed address string
refstringA reference ID associated with the case
sourcestringThe source from which the case information is derived
stateMatchbooleanIndicates if the state matches
stateNamestringThe name of the state
timeStampstringThe timestamp of when the case information was recorded
typeintegerA numeric representation of the case type
underActsstringThe legal acts under which the case falls
underSectionsstringThe sections of the law relevant to the case
uniqCaseIdstringA unique identifier for the case
villageMatchbooleanIndicates if the village matches
yearintegerThe year associated with the case
flexiSearchIdstringA unique identifier for the flexi search operation
flexiSourceIdstringA unique identifier for the source of the data
groupByobjectAn object for grouping results
messagestringA status message indicating that processing is complete
numresultsintegerThe count of results found
statusintegerA numeric status code indicating the state of processing

Error Responses

The following are the error responses from the API:

{
"message": "Invalid name",
"statusCode": 400,
"status": "failure",
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Error Response Details

A failure or error response from the module contains a failure status, with a relevant status code and error message. The following table lists all error responses:

Status CodeError MessageError Description
400Invalid nameThis error occurs when a name field is empty or invalid
400source should not be emptyThis error occurs when a source field is empty
400Input Validation Error: Headers: requires property "transactionid"This error occurs when the transactionid field is missing in the request headers
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid values
503External DowntimePlease contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: