Requests a validation token be sent to the given phone number for the purpose of resetting a user's password.
The homeserver must check that the given phone number 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/msisdn/requestToken endpoint, except that M_THREEPID_NOT_FOUND may be returned if no account matching the given phone number could be found. The server may instead send the SMS to the given phone number prompting the user to create an account. M_THREEPID_IN_USE may not be returned.
The homeserver should validate the phone number itself, either by sending a validation message 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",
"country": "GB",
"next_link": "https://example.org/congratulations.html",
"phone_number": "07700900001",
"send_attempt": 1,
"id_server": "id.example.com"
}Response
An SMS message was sent to the given phone number.
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.