Resend Activation
curl --request POST \
--url https://api.example.com/v1/accounts/{accountId}/resend-activationimport requests
url = "https://api.example.com/v1/accounts/{accountId}/resend-activation"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/accounts/{accountId}/resend-activation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/accounts/{accountId}/resend-activation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/accounts/{accountId}/resend-activation"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/accounts/{accountId}/resend-activation")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/accounts/{accountId}/resend-activation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyClient Accounts
Resend Activation
POST /v1/accounts/:accountId/resend-activation — Email the contact a new activation link
POST
/
v1
/
accounts
/
{accountId}
/
resend-activation
Resend Activation
curl --request POST \
--url https://api.example.com/v1/accounts/{accountId}/resend-activationimport requests
url = "https://api.example.com/v1/accounts/{accountId}/resend-activation"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/accounts/{accountId}/resend-activation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/accounts/{accountId}/resend-activation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/accounts/{accountId}/resend-activation"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/accounts/{accountId}/resend-activation")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/accounts/{accountId}/resend-activation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyEndpoint:
POST https://api.rebelfi.io/v1/accounts/:accountId/resend-activationPENDING_ACTIVATION and the contact has not yet used the link. Once the contact has set a
password with the link, they finish activation by signing in to the RebelFi Earn portal, and this call returns
409 ACTIVATION_LINK_USED.
Requires a profile-scoped key; an admin key is read-only.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accountId | number | Yes | Client account ID |
Example Request
curl -X POST "https://api.rebelfi.io/v1/accounts/17/resend-activation" \
-H "x-api-key: your_api_key"
const account = await client.accounts.resendActivation(17);
Response
200 OK with the account, as Get Account returns it.
Errors
| Code | HTTP | Description |
|---|---|---|
ACCOUNT_NOT_FOUND | 404 | No client account with this ID in your organization |
ACCOUNT_ALREADY_ACTIVE | 409 | The account is no longer pending activation, so there is no link to resend. details: { accountId, status } |
ACTIVATION_LINK_USED | 409 | The contact already used the link to set a password. They sign in to the portal to finish. details: { accountId } |
FORBIDDEN | 403 | An admin (read-only) key |