FETCH VERIFIED TELECOM USER DATA USING MOBILE NUMBER
Accessing verified user information for non main-stream users and masses have always been a challenge primarily because of their lower technology exposure and is one of the key barriers for their financial inclusion. By simply using the mobile number and the OTP based consent, this API helps to get the user information using verified telecom network data. This data can be used for auto-filling the forms which enhances the end user digital experience by reducing the information that the user needs to fill manually.
Get Free Trial
Create a free account Or “Talk to Us” for price information and other queries.
Type | URL |
---|
Post | https://api.attestr.com/api/{version}/public/checkx/mobile-telecom/otp |
Key | Type | Description | Required | Min Version | Max Version |
---|
number | String | 10 digit mobile number without leading zero | Required | v1 | |
Type | Name | Value / Description | Optional | Min Version | Max Version |
---|
String | Content-Type | application/json | Required | v1 | |
String | Authorization | Basic {authToken} | Required | v1 | |
If you do not have the authentication token, please refer to Register App to generate one.
Key | Type | Description | Min Version | Max Version |
---|
valid | Boolean | Flag indicating if the OTP was generated successfully by the telecom network provider | v1 | |
status | String | Status code describing the outcome of the operation. Possible values are SUCCESS, CARRIER__UNKNOWN,_ CARRIER__UNSUPPORTED,_ INVALID__TYPE,_ INVALID_NUMBER | v1 | |
_id | String | Unique request Id to be used for validating the OTP later | v1 | |
number | String | Unique human readable request number. | v1 | |
data | Object | The generate OTP operation first validates the input mobile number for correctness and fetching the telecom provider information. The information so validated is returned in the data field. For more details on output of this field, refer to Phone Validation API | v1 | |
metadata | Object | The telecom specific metadata which is relevant for the next set of APIs. Refer to the Metadata object definition below for details. | v1 | |
mnp | Object | Mobile number portability information if the number was ported to a new supported carrier. Check MNP object below. | v1 | |
Key | Type | Description | Min Version | Max Version |
---|
otpLength | Number | Different telecom providers use different length of the one time password. This returns the OTP length supported for the input mobile number. | v1 | |
maxVerifyAttempts | Number | Maximum number of wrong OTP attempts before the request is discarded. | v1 | |
maxResendAttempts | Number | Maximum number of resend OTP attempts before the request is discarded. | v1 | |
expiry | Number | Number of milliseconds before the generated OTP expires | v1 | |
resendAfter | Number | Number of milliseconds to wait for initiating a resend request | v1 | |
Key | Type | Description | Min Value | Max Value |
---|
ported | Boolean | Flag indicating if the mobile number was ported | v1 | |
portedProvider | String | Provider code as supported by Attestr platform. Possible values are AIRTEL, JIO and VI | v1 | |
Sample Output
Sample response for the different cases. Toggle the tabs in the code block below for all possible scenarios.
Parameter | Type | Description |
---|
code | Number | Unique error codes for different errors. Always available. |
message | String | Error message describing the error. Always Available. |
details | String | Detail error message. Available only for certain types of errors. |
HTTP Status | Error Code | Error Message |
---|
400 | 4001 | Malformed data or missing required parameter values |
400 | 4005 | Operation could not be performed due to low credits balance |
401 | 4016 | Invalid client authorization |
403 | 4031 | Unauthorized access |
403 | 4035 | Requested service is not provisioned for your account |
403 | 4039 | Client's IP address is not whitelisted |
403 | 4035 | Requested service is not provisioned for your account |
429 | 4291 | Maximum account rate limit exceeded |
429 | 4292 | Maximum API rate limit exceeded |
429 | 4293 | Maximum account daily limit exceeded |
429 | 4294 | Maximum API daily limit exceeded |
500 | 5001 | Request could not be processed |
504 | 5041 | Telecom portal gateway timeout |
Type | URL |
---|
Post | https://api.attestr.com/api/{version}/public/checkx/mobile-telecom/verify |
Key | Type | Description | Required | Min Version | Max Version |
---|
req | String | Unique request Id generated in the previous step | Required | v1 | |
otp | String | OTP as generated by the telecom provider | Required | v1 | |
Type | Name | Value / Description | Optional | Min Version | Max Version |
---|
String | Content-Type | application/json | Required | v1 | |
String | Authorization | Basic {authToken} | Required | v1 | |
Key | Type | Description | Min Version | Max Version |
---|
valid | Boolean | Flag indicating if the OTP was verified successfully | v1 | |
status | String | Status code indicating the outcome of the operation. | v1 | |
Parameter | Type | Description |
---|
code | Number | Unique error codes for different errors. Always available. |
message | String | Error message describing the error. Always Available. |
details | String | Detail error message. Available only for certain types of errors. |
HTTP Status | Error Code | Error Message |
---|
400 | 4001 | Malformed data or missing required parameter values |
400 | 4005 | Operation could not be performed due to low credits balance |
400 | 40015 | Session expired |
401 | 4016 | Invalid client authorization |
403 | 4031 | Unauthorized access |
403 | 4035 | Requested service is not provisioned for your account |
403 | 4039 | Client's IP address is not whitelisted |
403 | 4035 | Requested service is not provisioned for your account |
429 | 4291 | Maximum account rate limit exceeded |
429 | 4292 | Maximum API rate limit exceeded |
429 | 4293 | Maximum account daily limit exceeded |
429 | 4294 | Maximum API daily limit exceeded |
500 | 5001 | Request could not be processed |
504 | 5041 | Telecom portal gateway timeout |
Type | URL |
---|
Post | https://api.attestr.com/api/{version}/public/checkx/mobile-telecom/fetch |
Key | Type | Description | Min Version | Max Version |
---|
req | String | Unique request Id as generated in step 1. | v1 | |
Type | Name | Value / Description | Optional | Min Version | Max Version |
---|
String | Content-Type | application/json | Required | v1 | |
String | Authorization | Basic {authToken} | Required | v1 | |
Key | Type | Description | Min Version | Max Version |
---|
valid | Boolean | Boolean flag indicating if the data fetch was successful | v1 | |
status | String | Status code for the operation | v1 | |
name | String | Full name of the user as registered with the telecom company. Available for all operators. | v1 | |
customerId | String | Customer Id as registered with the telecom company. Not available for a few cases. | v1 | |
dob | String | Date of birth if available. Available for few operators only. | v1 | |
type | String | Service type indicating prepaid, postpaid etc. | v1 | |
activated | String | Date of activation if available. Date can be in different formats as supported by the telecom operator | v1 | |
active | Boolean | Boolean flag indicating if the provided number is active / has any active plans. | v1 | |
address | Array[String] | List of addresses as registered | v1 | |
alternateContact | Array[String] | List of alternate contact numbers if any. | v1 | |
email | String | Email address if available | v1 | |
Parameter | Type | Description |
---|
code | Number | Unique error codes for different errors. Always available. |
message | String | Error message describing the error. Always Available. |
details | String | Detail error message. Available only for certain types of errors. |
HTTP Status | Error Code | Error Message |
---|
400 | 4001 | Malformed data or missing required parameter values |
400 | 4005 | Operation could not be performed due to low credits balance |
401 | 4016 | Invalid client authorization |
403 | 4031 | Unauthorized access |
403 | 4035 | Requested service is not provisioned for your account |
403 | 4039 | Client's IP address is not whitelisted |
403 | 4035 | Requested service is not provisioned for your account |
429 | 4291 | Maximum account rate limit exceeded |
429 | 4292 | Maximum API rate limit exceeded |
429 | 4293 | Maximum account daily limit exceeded |
429 | 4294 | Maximum API daily limit exceeded |
500 | 5001 | Request could not be processed |
504 | 5041 | Telecom portal gateway timeout |
Type | URL |
---|
Post | https://api.attestr.com/api/{version}/public/checkx/mobile-telecom/resend |
Key | Type | Description | Min Version | Max Version |
---|
req | String | Unique request Id as generated in step 1. | v1 | |
Type | Name | Value / Description | Optional | Min Version | Max Version |
---|
String | Content-Type | application/json | Required | v1 | |
String | Authorization | Basic {authToken} | Required | v1 | |
Key | Type | Description | Min Version | Max Version |
---|
valid | Boolean | Boolean flag indicating if the data fetch was successful | v1 | |
status | String | Status code for the operation | v1 | |
Parameter | Type | Description |
---|
code | Number | Unique error codes for different errors. Always available. |
message | String | Error message describing the error. Always Available. |
details | String | Detail error message. Available only for certain types of errors. |
HTTP Status | Error Code | Error Message |
---|
400 | 4001 | Malformed data or missing required parameter values |
400 | 4005 | Operation could not be performed due to low credits balance |
400 | 40014 | Maximum attempts exceeded. Please try after sometime. |
401 | 4016 | Invalid client authorization |
403 | 4031 | Unauthorized access |
403 | 4035 | Requested service is not provisioned for your account |
403 | 4039 | Client's IP address is not whitelisted |
403 | 4035 | Requested service is not provisioned for your account |
429 | 4291 | Maximum account rate limit exceeded |
429 | 4292 | Maximum API rate limit exceeded |
429 | 4293 | Maximum account daily limit exceeded |
429 | 4294 | Maximum API daily limit exceeded |
500 | 5001 | Request could not be processed |
504 | 5041 | Telecom portal gateway timeout |
Telecom Network Coverage
This products currently supports Airtel, Vodafone Idea and Jio subscribers only. These three together, roughly account for about 91% of the Indian mobile users population (Data source wikipedia).
BSNL and MTNL are currently not supported and may be added in future.
Get Free Trial
Create a free account Or “Talk to Us” for price information and other queries.