Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | JWT Bearer token for authentication. Format: Bearer <your_token> |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Description |
|---|---|---|
| data | Array | List of state objects containing state names and their codes |
| data[].state | String | Full name of the Indian state |
| data[].state_code | String | Two-letter code representing the state |
| status_code | Integer | HTTP status code of the response (200 for success) |
| message_code | String | Status of the request ("success" for successful requests) |
| message | String | Human-readable message describing the result |
| success | Boolean | Indicates whether the request was successful |
{
"data": [
{
"state": "Delhi",
"state_code": "DL"
},
{
"state": "Haryana",
"state_code": "HR"
},
{
"state": "Jammu And Kashmir",
"state_code": "JK"
},
{
"state": "Karnataka",
"state_code": "KR"
},
{
"state": "Rajasthan",
"state_code": "RJ"
},
{
"state": "Telangana",
"state_code": "TL"
},
{
"state": "Uttarakhand",
"state_code": "UK"
},
{
"state": "Uttar Pradesh",
"state_code": "UP"
},
{
"state": "West Bengal",
"state_code": "WB"
}
],
"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/se/state-code-list' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"state": "Delhi",
"state_code": "DL"
},
{
"state": "Haryana",
"state_code": "HR"
},
{
"state": "Jammu And Kashmir",
"state_code": "JK"
},
{
"state": "Karnataka",
"state_code": "KR"
},
{
"state": "Rajasthan",
"state_code": "RJ"
},
{
"state": "Telangana",
"state_code": "TL"
},
{
"state": "Uttarakhand",
"state_code": "UK"
},
{
"state": "Uttar Pradesh",
"state_code": "UP"
},
{
"state": "West Bengal",
"state_code": "WB"
}
],
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}