Phone number validation / HLR Lookup

Updated 2 years ago

Is there a way to validate phone numbers before sending?

Yes, when sending a SMS, we automatically check that a number prefix and format is valid. We do this automatically for no extra cost. If the number fails validation, we won't charge you for sending the SMS. We do this no matter how you send (API, Dashboard, Integration etc). It's still possible that the number passes validation, but fails later on (e.g. phone is switched off or out of reach). In this case, you'll be charged as normal.

If using the API, we'll return a 200 OK response for the whole request, and in the response body we'll show status=INVALID_RECIPIENT for recipients that fail number validation.

If using the dashboard, we'll exclude the recipient from the send. You won't see a failure in SMS history.

How Did We Do?

Powered by HelpDocs (opens in a new tab)