Feel free to reach techsupport@surepass.io for any technical support or guidance.
https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | Must be application/json |
| Authorization | Yes | Bearer token from Surepass |
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
| signup_flow | boolean | Yes | Always set to true for SDK initialization | true |
| auth_type | string | Yes | Authentication type - must be set to "app" for SDK integration | "app" |
| logo_url | string | No | URL for your brand logo | None |
| voice_assistant_lang | string | No | "en" (English) or "hi" (Hindi) | "en" |
| voice_assistant | boolean | No | Enable/disable voice assistant | false |
| retry_count | integer | No | Number of allowed retries | 2 |
| skip_main_screen | boolean | No | Skip intro screen if true | true |
{
"data": {
"signup_flow": true,
"auth_type": "app",
"logo_url": "https://yourbrand.com/logo.png",
"voice_assistant_lang": "en",
"voice_assistant": false,
"retry_count": 2,
"skip_main_screen": false
}
}| Parameter | Type | Description |
|---|---|---|
| data.client_id | string | Unique client identifier |
| data.token | string | JWT token for SDK session |
| data.expiry_seconds | float | Token validity duration in seconds |
| status_code | int | HTTP status code |
| message_code | string | Status message code |
| message | string | Human-readable status message |
| success | boolean | Indicates if the request was successful |
{
"data": {
"client_id": "digilocker_cntWpMxWHbcvgghtyvxw",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiry_seconds": 600.0
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}{
"status_code": 401,
"message_code": "invalid_token",
"message": "Authorization token is invalid or expired",
"success": false
}File → Add Package DependenciesPackage.swift:onFailure callback for error handling:curl --location --request POST 'https://kyc-api.surepass.app/api/v1/digilocker/initialize' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"signup_flow": true,
"auth_type": "app"
}
}'{
"data": {
"client_id": "digilocker_cntWpMxWHbcvgghtyvxw",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiry_seconds": 600.0
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}