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) |
Content-Type | Yes | application/json |
Parameter | Type | Required | Description |
---|---|---|---|
pdf_pre_uploaded | Boolean | No | Indicates if PDF is being uploaded by merchant |
callback_url | String | No | URL to redirect after eSign completion |
sign_type | String | Yes | Type of signature (e.g., "hsm") |
config | Object | Yes | Configuration for eSign process |
config.auth_mode | String | Yes | Authentication mode: "1" for Aadhaar OTP, "2" for fingerprint |
config.reason | String | Yes | Reason for signing the document |
config.positions | Object | Yes | Defines signature positions on document pages |
prefill_options | Object | No | Pre-filled user information |
prefill_options.full_name | String | No | User's full name |
prefill_options.mobile_number | String | No | User's mobile number |
prefill_options.user_email | String | No | User's email address |
{
"pdf_pre_uploaded": false,
"sign_type": "hsm",
"config": {
"auth_mode": "1",
"reason": "Contract",
"positions": {
"1": [
{
"x": 10,
"y": 20
}
],
"2": [
{
"x": 0,
"y": 0
}
]
}
},
"prefill_options": {
"full_name": "Munna Bhaiya",
"mobile_number": "9876543210",
"user_email": "abc@gmail.com"
}
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the eSign session details |
data.token | String | Token generated for use by SDK |
data.client_id | String | Unique identifier for this eSign request |
data.url | String | URL generated for use by SDK or direct customer access |
message_code | String | Status code in text format |
success | Boolean | Indicates if the request was successful |
message | String | Human-readable status message |
status_code | Integer | HTTP status code |
{
"data": {
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ababtjtjnbaesergrtjnnfeW32rfWAFF1tgWs.UtugjhGuy567hjJHFGyi-m3JJn4-o",
"client_id": "esign_HLiwHZZxuUjZLqylzzvU",
"url": "https://esign-client.aadhaarkyc.io/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ababtjtjnbaesergrtjnnfeW32rfWAFF1tgWs.UtugjhGuy567hjJHFGyi-m3JJn4-o"
},
"message_code": "success",
"success": true,
"message": "User initialized successfully",
"status_code": 200
}
{
"message_code": "unauthorized",
"success": false,
"message": "Invalid or expired token",
"status_code": 401
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/esign/initialize' \
--header 'Content-Type: application/json' \
--data-raw '{
"pdf_pre_uploaded": false,
"sign_type": "hsm",
"config": {
"auth_mode": "1",
"reason": "Contract",
"positions": {
"1": [
{
"x": 10,
"y": 20
}
],
"2": [
{
"x": 0,
"y": 0
}
]
}
},
"prefill_options": {
"full_name": "Munna Bhaiya",
"mobile_number": "9876543210",
"user_email": "abc@gmail.com"
}
}'
{
"data": {
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ababtjtjnbaesergrtjnnfeW32rfWAFF1tgWs.UtugjhGuy567hjJHFGyi-m3JJn4-o",
"client_id": "esign_HLiwHZZxuUjZLqylzzvU",
"url": "https://esign-client.aadhaarkyc.io/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ababtjtjnbaesergrtjnnfeW32rfWAFF1tgWs.UtugjhGuy567hjJHFGyi-m3JJn4-o"
},
"message_code": "success",
"success": true,
"message": "User initialized successfully",
"status_code": 200
}