Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token for authentication (JWT format) |
Content-Type | Yes | Application/json |
Parameter | Required | Description |
---|---|---|
client_id | Yes | Unique identifier for the client whose eSign report is being requested |
Parameter | Type | Required | Description |
---|---|---|---|
categories | Array | Yes | List of report categories to retrieve (e.g., "name_match") |
{
"categories": ["name_match"]
}
Parameter | Type | Description |
---|---|---|
data | Object | Container for the response data |
data.client_id | String | Unique identifier for the client |
data.reports | Object | Container for requested report categories |
data.reports.name_match | Object | Name matching report data |
data.reports.name_match.name | String | Name provided for verification |
data.reports.name_match.name_matched | Boolean | Whether the name matches the certificate |
data.reports.name_match.name_match_score | String | Confidence score of the name match (0-100) |
data.reports.name_match.certificate_details | Object | Details from the signer's certificate |
data.reports.name_match.certificate_details.name | String | Full name on the certificate |
data.reports.name_match.certificate_details.country | String | Country code from the certificate |
data.reports.name_match.certificate_details.state | String | State from the certificate |
data.reports.name_match.certificate_details.pin_code | String | Postal code from the certificate |
data.reports.name_match.certificate_details.aaadhar_last_four_digits | String | Last four digits of Aadhaar number |
status_code | Integer | HTTP status code of the response |
success | Boolean | Whether the request was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "esign_HwEwRYRYjexlRMwvolkS",
"reports": {
"name_match": {
"name": "Harish",
"name_matched": true,
"name_match_score": "64",
"certificate_details": {
"name": "Harish Singh",
"country": "IN",
"state": "Delhi",
"pin_code": "110088",
"aaadhar_last_four_digits": "1857"
}
}
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 401,
"success": false,
"message": "Invalid or expired token",
"message_code": "unauthorized"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/esign/report/' \
--header 'Content-Type: application/json' \
--data-raw '{
"categories": ["name_match"]
}'
{
"data": {
"client_id": "esign_HwEwRYRYjexlRMwvolkS",
"reports": {
"name_match": {
"name": "Harish",
"name_matched": true,
"name_match_score": "64",
"certificate_details": {
"name": "Harish Singh",
"country": "IN",
"state": "Delhi",
"pin_code": "110088",
"aaadhar_last_four_digits": "1857"
}
}
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}