# Send password reset email

`POST /session/forgot_password.json`

Authentication: no security requirement declared for this operation.

Request body: application/json

Type: any

- `login` (required)
  Type: string

Additional properties: false

Responses:

- 200: success response

Content type: application/json

Type: any

- `success` (required)
  Type: string

- `user_found` (required)
  Type: boolean

Additional properties: false

## Examples

### cURL

```bash
curl -X POST 'https://discourse.example.com/session/forgot_password.json' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "login": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "login": "string"
}`;

const response = await fetch('https://discourse.example.com/session/forgot_password.json', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "login": "string"
}'''

response = requests.post(
    'https://discourse.example.com/session/forgot_password.json',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
