MyAccount Management
//
Send a Phone Challenge
OAuth 2.0 scope:
- okta.myAccount.phone.manage
Sends a phone challenge using one of two methods: SMS or CALL. This request can also handle a resend challenge (retry).
Upon a successful challenge, the user receives a verification code by SMS or CALL. Send a POST request to the /idp/myaccount/phones/{id}/verify endpoint to use the verification code to verify the phone number. The verification code expires in five minutes.
Notes:
- Sending requests to the
/idp/myaccount/phones/{id}/challengeendpoint more often than once every 30 seconds, or at a rate that exceeds the rate limit rule configured by the admin, returns a 429 (Too Many Requests) error.
POST
- Send-SMS-Challenge
- Send-Voice-Challenge
curl -i -X POST \
https://okta-subdomain.pixtulate.com/idp/myaccount/phones/sms18vtfKgzqDhNqP0g4/challenge \
-H 'Accept: application/json; okta-version=1.0.0' \
-H 'Content-Type: application/json' \
-d '{
"method": "SMS"
}'