Skip to content

Tap into mobile identity datasets with a few lines of code

Our easy-to-use Phone ID API and in-depth documentation make it quick and easy to layer mobile identity into your communication, verification, and fraud prevention workflows.

With our Phone ID API, you can:
  • Reduce failed call and message attempts
  • Maximize delivery speed and completion rates
  • Verify new user identities instantly


import com.telesign.PhoneIdClient;
  import com.telesign.RestClient;
  public class HelloTelesign {
      public static void main(String[] args) {
          String customerId = "B24E71FA-0879-4342-BA88-E7D909088A81";
          String apiKey = "*********************************";
          String phoneNumber = "14085298304";
          String phoneTypeVoip = "5";
          try {
              PhoneIdClient phoneIdClient = new PhoneIdClient(customerId, apiKey);
              RestClient.TelesignResponse telesignResponse = phoneIdClient.phoneid(phoneNumber, null);
              if (telesignResponse.ok) {
                  if (telesignResponse.json.getAsJsonObject("phone_type").get("code").getAsString().equals(phoneTypeVoip)) {
                      System.out.println(String.format("Phone number %s is a VOIP phone.", phoneNumber));
                  } else {
                      System.out.println(String.format("Phone number %s is not a VOIP phone.", phoneNumber));
                  }
              }
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  }
Clients who use this product
affirm logo
This site is registered on wpml.org as a development site.