Request Email Update
curl --request POST \
--url http://127.0.0.1:3333/v3/users/me/request-email-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"newEmail": "[email protected]"
}
'import requests
url = "http://127.0.0.1:3333/v3/users/me/request-email-update"
payload = { "newEmail": "[email protected]" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({newEmail: '[email protected]'})
};
fetch('http://127.0.0.1:3333/v3/users/me/request-email-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success"
}{
"message": "<string>"
}{
"error": "too-many-requests",
"retryAfterSeconds": 1
}Users
Request Email Update
Request Email Update (Generates verification token and sends email).
POST
/
v3
/
users
/
me
/
request-email-update
Request Email Update
curl --request POST \
--url http://127.0.0.1:3333/v3/users/me/request-email-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"newEmail": "[email protected]"
}
'import requests
url = "http://127.0.0.1:3333/v3/users/me/request-email-update"
payload = { "newEmail": "[email protected]" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({newEmail: '[email protected]'})
};
fetch('http://127.0.0.1:3333/v3/users/me/request-email-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success"
}{
"message": "<string>"
}{
"error": "too-many-requests",
"retryAfterSeconds": 1
}