> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# SendSetPasswordEmail

# Package: memberManagement

# Namespace: AuthService

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/member-authentication/send-set-password-email.md

## Permission Scopes:
Manage Members: SCOPE.DC-MEMBERS.MANAGE-MEMBERS

## Introduction

Sends a site member an email with a link to set or reset their password.

The set password link is valid for 3 hours,
and it can be used only once.
If the link expires, the original password remains.

---

## REST API

### Schema

```
 Method: sendSetPasswordEmail
 Description: Sends a site member an email with a link to set or reset their password.  The set password link is valid for 3 hours, and it can be used only once. If the link expires, the original password remains.
 URL: https://www.wixapis.com/wix-sm/api/v1/auth/v1/auth/members/send-set-password-email
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  email
 Method parameters: 
   param name: email | type: email | description: Login email of the member whose password will be set. | required: true 
   param name: hideIgnoreMessage | type: hideIgnoreMessage | description: Whether to hide the ignore this email message .  If `true`, the email tells the member they can safely ignore if they did not request the password change.  Default: `false`.  
   param name: requestedByMember | type: requestedByMember | description: > **Deprecated:** > This field has been replaced with `hideIgnoreMessage`.  Whether the email is being sent by member request.  If `true`, the email tells the member they can safely ignore if they did not request the password change.  Defaults to `false`.  
 Return type: SendSetPasswordEmailResponse
  - name: accepted | type: boolean | description: Indicates if the request was successfully received.  


```

### Examples

### Send set password email to member
```curl
curl -L -X POST 'https://www.wixapis.com/members/v1/auth/members/send-set-password-email' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: <AUTH>' \
  -d '{
      "email": "member@email.com",
      "hideIgnoreMessage": false
    }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.authentication.sendSetPasswordEmail(email, options)
 Description: Sends a site member an email with a link to set or reset their password.  The set password link is valid for 3 hours, and it can be used only once. If the link expires, the original password remains.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  email
 Method parameters: 
   param name: email | type: string | description: Login email of the member whose password will be set. | required: true 
   param name: options | type: SendSetPasswordEmailOptions  none  
        - name: hideIgnoreMessage | type: boolean | description: Whether to hide the ignore this email message .  If `true`, the email tells the member they can safely ignore if they did not request the password change.  Default: `false`.  
 Return type: PROMISE<SendSetPasswordEmailResponse>
  - name: accepted | type: boolean | description: Indicates if the request was successfully received.  


```

### Examples

### sendSetPasswordEmail
```javascript
import { authentication } from '@wix/members';

async function sendSetPasswordEmail(email,options) {
  const response = await authentication.sendSetPasswordEmail(email,options);
};
```

### sendSetPasswordEmail (with elevated permissions)
```javascript
import { authentication } from '@wix/members';
import { auth } from '@wix/essentials';

async function mySendSetPasswordEmailMethod(email,options) {
  const elevatedSendSetPasswordEmail = auth.elevate(authentication.sendSetPasswordEmail);
  const response = await elevatedSendSetPasswordEmail(email,options);
}
```

### sendSetPasswordEmail (self-managed)
Self-managed 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 { authentication } from '@wix/members';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { authentication },
  // Include the auth strategy and host as relevant
});


async function sendSetPasswordEmail(email,options) {
  const response = await myWixClient.authentication.sendSetPasswordEmail(email,options);
};
```

---