POST
https://api.cryptohopper.com/v1/user/resetpassword
Sends a password reset email with a verification code to the given address. Needs no access token.
Only works from Cryptohopper's own apps: the User-Agent header must hold the email address encrypted with a platform key, and failed checks count toward an IP block.
Example request
curl -X POST "https://api.cryptohopper.com/v1/user/resetpassword" \
-H "access-token: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]"}'
const response = await fetch('https://api.cryptohopper.com/v1/user/resetpassword', {
method: 'POST',
headers: {
"access-token": "YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"email": "[email protected]"
})
});
const data = await response.json();
import requests
response = requests.post(
"https://api.cryptohopper.com/v1/user/resetpassword",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
json={
"email": "[email protected]"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/user/resetpassword');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'email' => '[email protected]',
]),
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Platform |
string | Optional | Platform of the client: web, ios or android. Defaults to web. |
Response
{
"data": "An email has been sent to you, please click on the link in the email or copy the code from the email to reset your password."
}