MyAccount Management
//
Send an Email Challenge
OAuth 2.0 scope:
- okta.myAccount.email.manage
Sends a "Confirm email address change" email to the user with a one-time passcode for verification. Also, the user receives a "Notice of pending email address change" email. After the challenge is verified, the email becomes active.
POST
curl -i -X POST \
https://okta-subdomain.pixtulate.com/idp/myaccount/emails/00T196qTp3LIMZQ0L0g3/challenge \
-H 'Accept: application/json; okta-version=1.0.0' \
-H 'Content-Type: application/json' \
-d '{
"state": "JPcFLTwOq7UvoFtmRd3EnyQwsR0PbDSI"
}'Created
The challenge status of the caller's email
Enum:"VERIFIED""UNVERIFIED"
Example:"UNVERIFIED"
The time when the challenge expires. A challenge has a lifetime of five minutes.
Example:"2022-02-01T00:19:08.220Z"
Defines the email address on the profile
Example:
{ "email": "s.jackson@example.com" }
Discoverable resources related to the caller's email challenge
Example:
{ "verify": { "href": "https://okta-example.pixtulate.com/idp/myaccount/emails/e2a84ed3cc538f75457596faa74a4532/challenge/myaccount.2wdtXPtmS0WpKq4bnjlYIw/verify", "hints": { … } }, "poll": { "href": "https://okta-example.pixtulate.com/idp/myaccount/emails/e2a84ed3cc538f75457596faa74a4532/challenge/myaccount.2wdtXPtmS0WpKq4bnjlYIw", "hints": { … } } }
Response
{ "id": "myaccount.2wdtXPtmS0WpKq4bnjlYIw", "status": "UNVERIFIED", "expiresAt": "2022-02-01T00:19:08.220Z", "profile": { "email": "s.jackson@example.com" }, "_links": { "verify": { … }, "poll": { … } } }