curl --request POST \
--url https://api.octav.fi/v1/addressbook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entries": [
{
"address": "0x6426af179aabebe47666f345d69fd9079673f6cd",
"label": "Treasury"
},
{
"address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
}
]
}
'import requests
url = "https://api.octav.fi/v1/addressbook"
payload = { "entries": [{
"address": "0x6426af179aabebe47666f345d69fd9079673f6cd",
"label": "Treasury"
}, { "address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }] }
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({
entries: [
{address: '0x6426af179aabebe47666f345d69fd9079673f6cd', label: 'Treasury'},
{address: '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM'}
]
})
};
fetch('https://api.octav.fi/v1/addressbook', 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.octav.fi/v1/addressbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entries' => [
[
'address' => '0x6426af179aabebe47666f345d69fd9079673f6cd',
'label' => 'Treasury'
],
[
'address' => '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.octav.fi/v1/addressbook"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"address\": \"0x6426af179aabebe47666f345d69fd9079673f6cd\",\n \"label\": \"Treasury\"\n },\n {\n \"address\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.octav.fi/v1/addressbook")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"address\": \"0x6426af179aabebe47666f345d69fd9079673f6cd\",\n \"label\": \"Treasury\"\n },\n {\n \"address\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octav.fi/v1/addressbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": [\n {\n \"address\": \"0x6426af179aabebe47666f345d69fd9079673f6cd\",\n \"label\": \"Treasury\"\n },\n {\n \"address\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"address": "0x6426af179aabebe47666f345d69fd9079673f6cd",
"label": "Treasury",
"plan": "PRO",
"expiresAt": "2026-11-01T00:00:00.000Z",
"isPaid": true
},
{
"address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"label": "",
"plan": "FREE",
"expiresAt": null,
"isPaid": false
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "One or more addresses are invalid"
}
}{
"message": "Unauthorized"
}{
"message": "Not enough credits",
"creditsRequired": 1,
"creditsAvailable": 0
}{
"error": {
"code": "BUNDLE_NOT_FOUND",
"message": "Bundle not found"
}
}{
"error": {
"code": "BUNDLE_ADDRESS_NOT_IN_ADDRESS_BOOK",
"message": "Not in the address book: 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984. Add them before bundling them.",
"addresses": [
"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"
]
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Error while fetching the address book"
}
}Add Address Book Entries
Add one or more addresses to the address book. An address already in the book keeps its existing label — this endpoint never overwrites one. Only addresses not already in the book count against the account’s non-paid address quota. Returns the entire address book after the add, not just the entries sent.
Cost: 1 credit per call. Automatically refunded on 4xx/5xx responses.
Access: Requires portfolio entitlement — the same flag that unlocks /v1/portfolio.
Rate limit: 360 req/min (shared with portfolio bucket)
Get your API key: Dev Portal
curl --request POST \
--url https://api.octav.fi/v1/addressbook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entries": [
{
"address": "0x6426af179aabebe47666f345d69fd9079673f6cd",
"label": "Treasury"
},
{
"address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
}
]
}
'import requests
url = "https://api.octav.fi/v1/addressbook"
payload = { "entries": [{
"address": "0x6426af179aabebe47666f345d69fd9079673f6cd",
"label": "Treasury"
}, { "address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }] }
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({
entries: [
{address: '0x6426af179aabebe47666f345d69fd9079673f6cd', label: 'Treasury'},
{address: '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM'}
]
})
};
fetch('https://api.octav.fi/v1/addressbook', 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.octav.fi/v1/addressbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entries' => [
[
'address' => '0x6426af179aabebe47666f345d69fd9079673f6cd',
'label' => 'Treasury'
],
[
'address' => '9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.octav.fi/v1/addressbook"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"address\": \"0x6426af179aabebe47666f345d69fd9079673f6cd\",\n \"label\": \"Treasury\"\n },\n {\n \"address\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.octav.fi/v1/addressbook")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"address\": \"0x6426af179aabebe47666f345d69fd9079673f6cd\",\n \"label\": \"Treasury\"\n },\n {\n \"address\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octav.fi/v1/addressbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": [\n {\n \"address\": \"0x6426af179aabebe47666f345d69fd9079673f6cd\",\n \"label\": \"Treasury\"\n },\n {\n \"address\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"address": "0x6426af179aabebe47666f345d69fd9079673f6cd",
"label": "Treasury",
"plan": "PRO",
"expiresAt": "2026-11-01T00:00:00.000Z",
"isPaid": true
},
{
"address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"label": "",
"plan": "FREE",
"expiresAt": null,
"isPaid": false
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "One or more addresses are invalid"
}
}{
"message": "Unauthorized"
}{
"message": "Not enough credits",
"creditsRequired": 1,
"creditsAvailable": 0
}{
"error": {
"code": "BUNDLE_NOT_FOUND",
"message": "Bundle not found"
}
}{
"error": {
"code": "BUNDLE_ADDRESS_NOT_IN_ADDRESS_BOOK",
"message": "Not in the address book: 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984. Add them before bundling them.",
"addresses": [
"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"
]
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Error while fetching the address book"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Addresses to add. At least 1, at most 100 per request. Addresses must be unique within the request.
1 - 100 elementsShow child attributes
Show child attributes
Response
The full address book after the add
Show child attributes
Show child attributes
Was this page helpful?