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 state list data |
| data.state_list | array[string] | Array of state identifiers in snake_case format representing supported states for BHMS verification |
| status_code | integer | HTTP status code of the response (200 for success) |
| message_code | string | Internal message code indicating the result status |
| message | string | Human-readable message describing the response status |
| success | boolean | Indicates whether the API call was successful (true/false) |
{
"data": {
"state_list": [
"west_bengal",
"uttar_pradesh",
"tamil_nadu",
"chhattisgarh",
"gujarat"
]
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}{
"status_code": 401,
"message_code": "unauthorized",
"message": "Invalid or expired token",
"success": false
}curl --location --request GET 'https://kyc-api.surepass.app/api/v1/doctor/bhms/state-list' \
--header 'Authorization: Bearer <token>'{
"data": {
"state_list": [
"west_bengal",
"uttar_pradesh",
"tamil_nadu",
"chhattisgarh",
"gujarat"
]
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}