How can I send verification email from controller (custom api)?

I am updating the user email with a custom API and I need to send a verification code to the new email user requested to update.