Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for API authentication. Format: Bearer {JWT_TOKEN} |
| Content-Type | Yes | Must be set to application/json |
{}| Parameter | Type | Description |
|---|---|---|
| data | Object | Container object holding the response data |
| data.state_list | Array[String] | Array of state names in lowercase with underscores (e.g., "andhra_pradesh", "maharashtra") |
| status_code | Integer | HTTP status code of the response (200 for success) |
| message_code | String | Machine-readable code indicating the result status ("success" for successful requests) |
| message | String | Human-readable message describing the response status |
| success | Boolean | Indicates whether the API request was successful (true/false) |
{
"data": {
"state_list": [
"maharashtra",
"andhra_pradesh",
"gujarat",
"rajasthan"
]
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}{
"data": null,
"status_code": 401,
"message_code": "unauthorized",
"message": "Invalid or missing authentication token",
"success": false
}curl --location --request GET 'https://kyc-api.surepass.app/api/v1/doctor/bds-mds/state-list' \
--header 'Authorization: Bearer <token>'{
"data": {
"state_list": [
"maharashtra",
"andhra_pradesh",
"gujarat",
"rajasthan"
]
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}