Create Account
curl --request POST \
--url https://api.example.com/v1/accountsimport requests
url = "https://api.example.com/v1/accounts"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/accounts', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/accounts")
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
Create Account
POST /v1/accounts — Open a client account; RebelFi emails the contact an activation link
POST
/
v1
/
accounts
Create Account
curl --request POST \
--url https://api.example.com/v1/accountsimport requests
url = "https://api.example.com/v1/accounts"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/accounts', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/accounts")
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/accountsPENDING_ACTIVATION. Supply to its wallets is refused until the contact activates it in the
RebelFi Earn portal.
Creation is idempotent on reference: the same reference with the same contact email returns the existing account
and sends no second email.
Client accounts are enabled per organization by RebelFi. Without them, this call returns
403 CLIENT_ACCOUNTS_NOT_ENABLED.
Requires a profile-scoped key; an admin key is read-only.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
reference | string | Yes | Your own reference for this client, unique within your organization (max 255). It becomes the userId of the account’s wallets |
organizationName | string | Yes | The client organization’s name (max 255) |
contact.firstName | string | Yes | The contact’s first name |
contact.lastName | string | Yes | The contact’s last name |
contact.email | string | Yes | Where the activation email goes. Must not already belong to a RebelFi user or another client account |
Example Request
curl -X POST "https://api.rebelfi.io/v1/accounts" \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"reference": "CLIENT-0042",
"organizationName": "Example Capital LP",
"contact": { "firstName": "Jane", "lastName": "Doe", "email": "jane@example.com" }
}'
const account = await client.accounts.create({
reference: 'CLIENT-0042',
organizationName: 'Example Capital LP',
contact: { firstName: 'Jane', lastName: 'Doe', email: 'jane@example.com' }
});
Example Response
{
"accountId": 17,
"reference": "CLIENT-0042",
"organizationName": "Example Capital LP",
"status": "PENDING_ACTIVATION",
"createdAt": "2026-11-24T15:00:00.000Z",
"wallets": []
}
Response Fields
| Field | Type | Description |
|---|---|---|
accountId | number | Client account ID. Pass it as accountId to Register Wallet |
reference | string | Your reference for this client |
organizationName | string | The client organization’s name |
status | string | PENDING_ACTIVATION, ACTIVE or SUSPENDED. See Account states |
createdAt | string | Creation timestamp (ISO 8601) |
activatedAt | string? | When the client accepted the terms (ISO 8601). Absent while pending |
wallets | Wallet[] | The account’s linked wallets, in the shape Get Wallet returns. A profile-scoped key sees its own profile’s wallets |
Errors
| Code | HTTP | Description |
|---|---|---|
CLIENT_ACCOUNTS_NOT_ENABLED | 403 | Your organization doesn’t open client accounts. Contact RebelFi |
FORBIDDEN | 403 | An admin (read-only) key |
ACCOUNT_REFERENCE_CONFLICT | 409 | This reference already names an account with another contact email. details: { reference, accountId } |
CONTACT_EMAIL_UNAVAILABLE | 409 | The contact email already belongs to a RebelFi user or another client account. Use another address |
VALIDATION_FAILED | 400 | Invalid request body |