MyAccount Management
//
Create a Phone
OAuth 2.0 scope:
- okta.myAccount.phone.manage
Creates an UNVERIFIED status phone for either the SMS or CALL method to the user's MyAccount setting
POST
curl -i -X POST \
https://okta-subdomain.pixtulate.com/idp/myaccount/phones \
-H 'Accept: application/json; okta-version=1.0.0' \
-H 'Content-Type: application/json' \
-d '{
"profile": {
"phoneNumber": "+1(444)444-4444"
},
"sendCode": true,
"method": "SMS"
}'Example response
Response
{ "id": "sms18vtfKgzqDhNqP0g4", "status": "UNVERIFIED", "profile": { "phoneNumber": "+1(444)444-4444" }, "_links": { "self": { … }, "challenge": { … }, "verify": { … } } }