# API to Send email verification code on email update

**URL:** <https://devforum.okta.com/t/api-to-send-email-verification-code-on-email-update/31931>\
**Category:** API\
**Created:** [February 8, 2025, 2:17pm UTC](https://devforum.okta.com/t/api-to-send-email-verification-code-on-email-update/31931 "2025-02-08T14:17:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anishaantony](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@anishaantony](https://devforum.okta.com/u/anishaantony)\
**Post date:** [February 8, 2025, 2:17pm UTC](https://devforum.okta.com/t/api-to-send-email-verification-code-on-email-update/31931/1 "2025-02-08T14:17:36Z")

</div>

Our requirement - we have a .NET Web Api through which we need to send verification emails with verification code whenever user updates their email address (primary email address). Then the user needs to put in the verification code and email address should be verified. We did some analysis but, couldn’t find the correct OKTA API to achieve this functionality.

Is there APIs for this? If not, how can we achieve this?

---

<div class="post-metadata">

**Author:** ![jmussman](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/jmussman/32/2175_2.png) [@jmussman](https://devforum.okta.com/u/jmussman)\
**Post date:** [February 14, 2025, 7:04pm UTC](https://devforum.okta.com/t/api-to-send-email-verification-code-on-email-update/31931/2 "2025-02-14T19:04:55Z")

</div>

Hi @anishaantony. I am not quite sure I understand the question correctly. If your application is triggering the email change, you can do that in the Okta API with an access token for the authenticated user at [Email](https://developer.okta.com/docs/api/openapi/okta-myaccount/myaccount/tag/Email/#tag/Email/operation/createEmail). Then you can send a verification email with this API endpoint: [Email](https://developer.okta.com/docs/api/openapi/okta-myaccount/myaccount/tag/Email/#tag/Email/operation/sendEmailChallenge).

Tell me if we are heading in the right direction 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [March 16, 2025, 7:05pm UTC](https://devforum.okta.com/t/api-to-send-email-verification-code-on-email-update/31931/3 "2025-03-16T19:05:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
