> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # SendVerificationCode # Package: emails # Namespace: SenderEmailService # Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/sender-emails/send-verification-code.md ## Permission Scopes: Access Verticals by Automations: SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS ## Introduction Sends the verification code to the created sender email's inbox. > **Note:** If the code wasn't received, check the spam folder. If it's not there, try to send the verification email again. --- ## REST API ### Schema ``` Method: sendVerificationCode Description: Sends the verification code to the created sender email's inbox. > **Note:** If the code wasn't received, check the spam folder. If it's not there, try to send the verification email again. URL: https://www.wixapis.com/sender-emails/v1/sender-emails/{senderEmailId}/send-verification-code Method: POST Return type: SendVerificationCodeResponse EMPTY-OBJECT {} ``` ### Examples ### SendVerificationCode ```curl ~~~cURL curl -X POST 'https://www.wixapis.com/sender-emails/v1/sender-emails/30057014-8ecc-4a1b-9c53-bcc7dd033bb5/send-verification-code' \ -H 'Authorization: ' \ -H 'Content-Type: application/json' \ ~~~ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.emails.SenderEmailService.sendVerificationCode(senderEmailId) Description: Sends the verification code to the created sender email's inbox. > **Note:** If the code wasn't received, check the spam folder. If it's not there, try to send the verification email again. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: senderEmailId Method parameters: param name: senderEmailId | type: string | description: GUID of the sender email to send the code for. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### sendVerificationCode ```javascript import { senderEmails } from '@wix/sender-emails'; async function sendVerificationCode(senderEmailId) { const response = await senderEmails.sendVerificationCode(senderEmailId); }; ``` ### sendVerificationCode (with elevated permissions) ```javascript import { senderEmails } from '@wix/sender-emails'; import { auth } from '@wix/essentials'; async function mySendVerificationCodeMethod(senderEmailId) { const elevatedSendVerificationCode = auth.elevate(senderEmails.sendVerificationCode); const response = await elevatedSendVerificationCode(senderEmailId); } ``` ### sendVerificationCode (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { senderEmails } from '@wix/sender-emails'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { senderEmails }, // Include the auth strategy and host as relevant }); async function sendVerificationCode(senderEmailId) { const response = await myWixClient.senderEmails.sendVerificationCode(senderEmailId); }; ``` ---