> 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 # VerifySenderEmail # Package: emails # Namespace: SenderEmailService # Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/sender-emails/verify-sender-email.md ## Permission Scopes: Access Verticals by Automations: SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS ## Introduction Verifies a sender email by passing the verification code that was received in the sender email's inbox. --- ## REST API ### Schema ``` Method: verifySenderEmail Description: Verifies a sender email by passing the verification code that was received in the sender email's inbox. URL: https://www.wixapis.com/sender-emails/v1/sender-emails/{senderEmailId}/verify Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: verificationCode Method parameters: param name: verificationCode | type: verificationCode | description: Verification code that was received in the sender email's inbox. | required: true Return type: VerifySenderEmailResponse EMPTY-OBJECT {} Possible Errors: HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INCORRECT_CODE | Description: Verification code is incorrect. ``` ### Examples ### VerifySenderEmail ```curl ~~~cURL curl -X POST 'https://www.wixapis.com/sender-emails/v1/sender-emails/30057014-8ecc-4a1b-9c53-bcc7dd033bb5/verify' \ -H 'Authorization: ' \ -H 'Content-Type: application/json' \ -d '{ "verificationCode": "UVSMu" }' ~~~ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.emails.SenderEmailService.verifySenderEmail(senderEmailId, verificationCode) Description: Verifies a sender email by passing the verification code that was received in the sender email's inbox. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: senderEmailId, verificationCode Method parameters: param name: senderEmailId | type: string | description: GUID of the sender email to verify. | required: true param name: verificationCode | type: string | description: Verification code that was received in the sender email's inbox. | required: true Return type: PROMISE EMPTY-OBJECT {} Possible Errors: HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INCORRECT_CODE | Description: Verification code is incorrect. ``` ### Examples ### verifySenderEmail ```javascript import { senderEmails } from '@wix/sender-emails'; async function verifySenderEmail(senderEmailId,verificationCode) { const response = await senderEmails.verifySenderEmail(senderEmailId,verificationCode); }; ``` ### verifySenderEmail (with elevated permissions) ```javascript import { senderEmails } from '@wix/sender-emails'; import { auth } from '@wix/essentials'; async function myVerifySenderEmailMethod(senderEmailId,verificationCode) { const elevatedVerifySenderEmail = auth.elevate(senderEmails.verifySenderEmail); const response = await elevatedVerifySenderEmail(senderEmailId,verificationCode); } ``` ### verifySenderEmail (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 verifySenderEmail(senderEmailId,verificationCode) { const response = await myWixClient.senderEmails.verifySenderEmail(senderEmailId,verificationCode); }; ``` ---