Performing HLR (mobile Validation) via REST API

Follow

We allow you to perform mobile validation request via the REST API, which is ideal if you want to validate a phone number before submitting a lead into your campaign. A common use case is real‑time number validation on a form to ensure the user has entered a valid number. This guide will show you how.


To begin with, you'll need an Administrator REST API key with "Mobile Validation" permission checked under validation.

More information on creating a key HERE

Next you will make the request - The endpoint to use can be found on the REST API key page on your LeadByte account, after select the relevant permission and scrolling down the page - Validation -> Mobile validation


Example responses!

HLR pass (Look for the valid) - 

{
    "input": "07123456789",
    "status": "Valid",
    "response": "NO_ERROR",
    "internal_status": "DELIVERED",
    "message": "Valid mobile number"
}

 

HLR fail - 

{
    "input": "07123456789",
    "status": "Invalid",
    "response": "EC_UNKNOWN_SUBS"
}

 

If you need more info on the HLR responses, please check here.

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments