Send a change-phone-number invitation
Emails the user an invitation link to change their registered phone number. The user’s email must be confirmed. Requires ApiKey, an admin bearer token and the Change Phone Number Invitation permission.
Authentication
ApiKeystring
Static API key issued to your tenant. Required on every request.
OR
AuthorizationBearer
Admin JWT from /api/credentials/Login. Required for admin operations.
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
Invitation sent.
data
error_code
error_message
error_descriptions

