Subscribe Addresses to Snapshots
curl --request POST \
--url https://api.octav.fi/v1/snapshot-subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"addresses": [
{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"description": "New Fund"
},
{
"address": "0xe760ad8df0a54aafd95e3bc271b65d224abeaa57",
"description": "Operations"
},
{
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
}
]
}
'import requests
url = "https://api.octav.fi/v1/snapshot-subscriptions"
payload = { "addresses": [{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"description": "New Fund"
}, {
"address": "0xe760ad8df0a54aafd95e3bc271b65d224abeaa57",
"description": "Operations"
}, { "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" }] }
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({
addresses: [
{address: '0x28c6c06298d514db089934071355e5743bf21d60', description: 'New Fund'},
{
address: '0xe760ad8df0a54aafd95e3bc271b65d224abeaa57',
description: 'Operations'
},
{address: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'}
]
})
};
fetch('https://api.octav.fi/v1/snapshot-subscriptions', 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/snapshot-subscriptions",
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([
'addresses' => [
[
'address' => '0x28c6c06298d514db089934071355e5743bf21d60',
'description' => 'New Fund'
],
[
'address' => '0xe760ad8df0a54aafd95e3bc271b65d224abeaa57',
'description' => 'Operations'
],
[
'address' => '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
]
]
]),
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/snapshot-subscriptions"
payload := strings.NewReader("{\n \"addresses\": [\n {\n \"address\": \"0x28c6c06298d514db089934071355e5743bf21d60\",\n \"description\": \"New Fund\"\n },\n {\n \"address\": \"0xe760ad8df0a54aafd95e3bc271b65d224abeaa57\",\n \"description\": \"Operations\"\n },\n {\n \"address\": \"0xd8da6bf26964af9d7eed9e03e53415d37aa96045\"\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/snapshot-subscriptions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n {\n \"address\": \"0x28c6c06298d514db089934071355e5743bf21d60\",\n \"description\": \"New Fund\"\n },\n {\n \"address\": \"0xe760ad8df0a54aafd95e3bc271b65d224abeaa57\",\n \"description\": \"Operations\"\n },\n {\n \"address\": \"0xd8da6bf26964af9d7eed9e03e53415d37aa96045\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octav.fi/v1/snapshot-subscriptions")
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 \"addresses\": [\n {\n \"address\": \"0x28c6c06298d514db089934071355e5743bf21d60\",\n \"description\": \"New Fund\"\n },\n {\n \"address\": \"0xe760ad8df0a54aafd95e3bc271b65d224abeaa57\",\n \"description\": \"Operations\"\n },\n {\n \"address\": \"0xd8da6bf26964af9d7eed9e03e53415d37aa96045\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"description": "New Fund",
"subscriptionStartDate": "2026-11-11T10:00:00.000Z",
"subscriptionEndDate": "2027-11-11T10:00:00.000Z",
"autoRenew": true,
"status": "created"
},
{
"address": "0xe760ad8df0a54aafd95e3bc271b65d224abeaa57",
"description": "Operations",
"subscriptionStartDate": "2026-03-02T14:05:11.000Z",
"subscriptionEndDate": "2027-03-02T14:05:11.000Z",
"autoRenew": true,
"status": "already_subscribed"
},
{
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"description": "Cold Wallet",
"subscriptionStartDate": "2025-10-20T11:00:00.000Z",
"subscriptionEndDate": "2026-10-20T11:00:00.000Z",
"autoRenew": false,
"status": "expired"
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "One or more addresses are invalid"
}
}{
"message": "Unauthorized"
}{
"error": {
"code": "NOT_ENOUGH_CREDITS",
"message": "Not enough credits to renew / create snapshots"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Error while subscribing addresses to snapshots"
}
}Snapshot Subscriptions
Subscribe Addresses to Snapshots
Subscribe addresses to daily snapshots for one year. Every address sent comes back with a status: created for a new subscription, already_subscribed for a subscription that is still running, expired for one that has ended. Only new addresses are charged; existing subscriptions are left unchanged, and expired ones are renewed with POST /v1/snapshot-subscriptions/renew. Results are grouped by status, not in request order. New subscriptions start with autoRenew: true.
Cost: 1,200 credits per new address, per year. If the balance does not cover every new address, the request fails with 402 and nothing is created.
Rate limit: 360 req/min
Get your API key: Dev Portal
POST
/
snapshot-subscriptions
Subscribe Addresses to Snapshots
curl --request POST \
--url https://api.octav.fi/v1/snapshot-subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"addresses": [
{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"description": "New Fund"
},
{
"address": "0xe760ad8df0a54aafd95e3bc271b65d224abeaa57",
"description": "Operations"
},
{
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
}
]
}
'import requests
url = "https://api.octav.fi/v1/snapshot-subscriptions"
payload = { "addresses": [{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"description": "New Fund"
}, {
"address": "0xe760ad8df0a54aafd95e3bc271b65d224abeaa57",
"description": "Operations"
}, { "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" }] }
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({
addresses: [
{address: '0x28c6c06298d514db089934071355e5743bf21d60', description: 'New Fund'},
{
address: '0xe760ad8df0a54aafd95e3bc271b65d224abeaa57',
description: 'Operations'
},
{address: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'}
]
})
};
fetch('https://api.octav.fi/v1/snapshot-subscriptions', 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/snapshot-subscriptions",
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([
'addresses' => [
[
'address' => '0x28c6c06298d514db089934071355e5743bf21d60',
'description' => 'New Fund'
],
[
'address' => '0xe760ad8df0a54aafd95e3bc271b65d224abeaa57',
'description' => 'Operations'
],
[
'address' => '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
]
]
]),
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/snapshot-subscriptions"
payload := strings.NewReader("{\n \"addresses\": [\n {\n \"address\": \"0x28c6c06298d514db089934071355e5743bf21d60\",\n \"description\": \"New Fund\"\n },\n {\n \"address\": \"0xe760ad8df0a54aafd95e3bc271b65d224abeaa57\",\n \"description\": \"Operations\"\n },\n {\n \"address\": \"0xd8da6bf26964af9d7eed9e03e53415d37aa96045\"\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/snapshot-subscriptions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n {\n \"address\": \"0x28c6c06298d514db089934071355e5743bf21d60\",\n \"description\": \"New Fund\"\n },\n {\n \"address\": \"0xe760ad8df0a54aafd95e3bc271b65d224abeaa57\",\n \"description\": \"Operations\"\n },\n {\n \"address\": \"0xd8da6bf26964af9d7eed9e03e53415d37aa96045\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octav.fi/v1/snapshot-subscriptions")
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 \"addresses\": [\n {\n \"address\": \"0x28c6c06298d514db089934071355e5743bf21d60\",\n \"description\": \"New Fund\"\n },\n {\n \"address\": \"0xe760ad8df0a54aafd95e3bc271b65d224abeaa57\",\n \"description\": \"Operations\"\n },\n {\n \"address\": \"0xd8da6bf26964af9d7eed9e03e53415d37aa96045\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"description": "New Fund",
"subscriptionStartDate": "2026-11-11T10:00:00.000Z",
"subscriptionEndDate": "2027-11-11T10:00:00.000Z",
"autoRenew": true,
"status": "created"
},
{
"address": "0xe760ad8df0a54aafd95e3bc271b65d224abeaa57",
"description": "Operations",
"subscriptionStartDate": "2026-03-02T14:05:11.000Z",
"subscriptionEndDate": "2027-03-02T14:05:11.000Z",
"autoRenew": true,
"status": "already_subscribed"
},
{
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"description": "Cold Wallet",
"subscriptionStartDate": "2025-10-20T11:00:00.000Z",
"subscriptionEndDate": "2026-10-20T11:00:00.000Z",
"autoRenew": false,
"status": "expired"
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "One or more addresses are invalid"
}
}{
"message": "Unauthorized"
}{
"error": {
"code": "NOT_ENOUGH_CREDITS",
"message": "Not enough credits to renew / create snapshots"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Error while subscribing addresses to snapshots"
}
}Authorizations
Body
application/json
Was this page helpful?