Create a change-phone-number session
Creates a device-bound session in which the user changes their phone number. Load sessionStartingPath in the Vlens iframe or WebView.
Authentication
ApiKeystring
Static API key issued to your tenant. Required on every request.
Request
This endpoint expects an object.
userPublicKey
RSA public key generated on the device. See Iframe Integration.
userId
The user whose phone number is being changed.
userEmail
oldPhoneNumber
The user's current phone number.
newPhoneNumber
The new phone number. Must differ from the current one.
redirectUrl
Where to send the user when the session completes.
language
UI language — AR or EN.
smsProvider
SMS provider for the OTP: 1 Infobip, 2 Vodafone, 3 Cequens, 4 Victory Link, 5 BroadNet, 6 Ezagel, 7 Orange.
Response
Session created.
sessionId
creationTime
sessionEnd
sessionStartingPath
Append to your tenant's onboarding URL to open the session.
redirectUrl

