Number Masking - Try it

If this service is enabled, you can try a test request in the API Explorer on the POST https://rest-ww.telesign.com/v1/anonymous/session/sms reference page. You can also get a code snippet for the request.

  1. Select the Auth tab.
  2. Enter your Customer ID for Username.
  3. Enter your API key for Password.
  4. Select the Body tab.
  5. For phone_number_1, enter your complete phone number with the country code and no special characters or spaces.
  6. For phone_number_2, enter a second phone number to use for testing.
  7. For validity_period, enter an integer between 1 and 720 (assuming the units are configured to hours for your account). This is the time duration that you want the session to last. The units may vary depending on your configuration at setup, ask our Customer Support Team if you are not sure what units apply for your account. (See full parameter details on the API reference page at POST https://rest-ww.telesign.com/v1/anonymous/session/sms.)
  8. Select Send.
  9. Select the Code Generation tab and use the Language and Library menus to choose the language you want your code snippet in.
  10. After you send your request, look through the response and make a note of the masked_id and session_id values. The masking ID (masked_id) for each number is what your users will use to communicate with their real numbers masked. You will use the session ID to track the users' session and monitor as needed.

🚧

CAUTION:

When using the API Explorer, you will be charged your contracted rate for each transaction.


Did this page help you?