Requests a validation token be sent to the given email address for the purpose of resetting a user's password
The homeserver must check that the given email address is associated with an account on this homeserver. This API should be used to request validation tokens when authenticating for the /account/password endpoint.
This API's parameters and response are identical to that of the /register/email/requestToken endpoint, except that M_THREEPID_NOT_FOUND may be returned if no account matching the given email address could be found. The server may instead send an email to the given address prompting the user to create an account. M_THREEPID_IN_USE may not be returned.
The homeserver should validate the email itself, either by sending a validation email itself or by using a service it has control over.
Request
- Base URLhttps://matrix.org
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"client_secret": "monkeys_are_GREAT",
"email": "alice@example.org",
"next_link": "https://example.org/congratulations.html",
"send_attempt": 1,
"id_server": "id.example.com"
}Response
An email was sent to the given address.
Example response
{
"sid": "123abc",
"submit_url": "https://example.org/path/to/submitToken"
}Changes
No recorded changes to this operation across all 1 revision of this API.