You can now create number masking sessions with a single party number. Single-party number masking sessions are ideal for customers who only know one party’s number. They allow everyone to connect securely while maintaining privacy for every member of the call.
In logistics, when a package arrives at a warehouse, the only available information is often the customer’s phone number. Delivery agents are typically assigned only after the parcel is ready to be handed over. In such scenarios, companies may opt to initiate a session using the customer’s phone number initially and update the session details once a delivery agent is assigned. This approach ensures seamless communication without exposing personal phone numbers.
Restaurants frequently receive online orders that include specific cooking instructions. Since various chefs may handle these instructions, it may not be practical to create sessions using a central number, like that of a restaurant admin. Instead, creating sessions with the customer’s phone number allows any chef to contact the customer directly, regardless of the originating phone number, while keeping both parties’ numbers anonymous. This setup ensures that instructions are clearly communicated and privacy is maintained.
Customers can create single-party number masking sessions using Plivo’s API and setting create_session_with_single_party to true during session creation. A value for either first_party or second_party is required.
Please note the following:
Updating the active session with either first_party or second_party numbers is only applicable if the session was created with create_session_with_single_party set to true.
curl -X \
POST "https://api.plivo.com/v1/Account/{Auth ID}/Masking/Session" \
-H \
"Content-Type: application/json" \
-d '{
"first_party": "+919003459XXX",
"create_session_with_single_party": true,
"is_pin_authentication_required": true,
"first_party_pin": 1234,
"second_party_pin": 4321,
"pin_prompt_play": "https://play.s3.eu-north-1.amazonaws.com/pin_prompt.wav",
"geomatch": true,
"subaccount": "SAOWRKMGU3YZCTZJXXX",
"incorrect_pin_play": "https://play.s3.eu-north-1.amazonaws.com/incorrect_pin.wav"
}
'