POST
https://api.cryptohopper.com/v1/user/resendactivation
Sends the activation email again for an account that is not activated yet. Needs no access token.
At most 2 requests per email address per 30 seconds; more return HTTP 429. HTTP 417 is returned when no inactive account matches the email and username, including when the account is already activated.
Example request
curl -X POST "https://api.cryptohopper.com/v1/user/resendactivation" \
-H "access-token: YOUR_ACCESS_TOKEN" \
-H "email: EMAIL" \
-H "username: USERNAME"
const response = await fetch('https://api.cryptohopper.com/v1/user/resendactivation', {
method: 'POST',
headers: {
"access-token": "YOUR_ACCESS_TOKEN",
"email": "EMAIL",
"username": "USERNAME"
}
});
const data = await response.json();
import requests
response = requests.post(
"https://api.cryptohopper.com/v1/user/resendactivation",
headers={
"access-token": "YOUR_ACCESS_TOKEN",
"email": "EMAIL",
"username": "USERNAME"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/user/resendactivation');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
'email: EMAIL',
'username: USERNAME',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
email |
string | Required | Email address of the account. |
username |
string | Required | Username of the account. |
Response
{
"data": "Activation email has been resend."
}