Savings Get a customer's savings
Get a customer's savings
Returns what is saved, what is still on the account, what is moving and what has been earned. Read it after a `transfer.status.completed` for a save or a withdrawal, or after `savings.interest.credited`.
Api-Key
Path parameters
NameDescription
idThe savings account id from
POST /v2/accounts. The id of the savings wallet behind it also works, but its available_balance is the wallet's own, so use the account id.Response
Returns 200 OK. The savings
NameDescription
dataOne customer's savings. Amounts are USDC strings with 6 decimal places.
Show 13 child attributesobject
idThe id you asked for
kindaccount when the id is a savings account, wallet when it is a savings wallet
Possible values: account, wallet
account_idThe savings account. Left out for a savings wallet with no account.
wallet_idThe savings wallet behind the account
currencyPossible values:
USDCavailable_balanceMoney on the account that is not saved yet. Save it with
POST /v1/transfer.saved_balanceMoney in savings, interest included. This is what earns interest and what you can withdraw.
pending_balanceMoney still moving into or out of savings. It is negative while a withdrawal is on its way, and
0.000000 when nothing is moving.earned_totalAll the interest this savings has earned
apyToday's yearly rate in percent, the same as
GET /v1/savings/rate. Empty when the rate cannot be read right now.wallet_addressThe savings wallet's on-chain address
blockchain_networkPossible values:
avalancheas_oferrorErrors
| Status | Meaning |
|---|---|
| 200 | The savings |
| 400 | The id is an account or wallet, but not a savings one |
| 404 | The id is not a savings account or savings wallet of yours |
| 501 | Savings is not open to live keys yet. It works in sandbox today. |
| 503 | Gravv cannot read savings right now. Retry. |
Was this page helpful? Yes No
Previous
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79' \
--header 'Api-Key: <api-key>'
const response = await fetch('https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79', {
method: 'GET',
headers: {
'Api-Key': '<api-key>',
},
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79"
headers = {
"Api-Key": "<api-key>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79", nil)
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status)
fmt.Println(string(body))
}
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Api-Key"] = "<api-key>"
response = http.request(request)
puts response.code
puts response.body
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79"))
.header("Api-Key", "<api-key>")
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.gravv.xyz/v1/savings/d9eae506-77b4-4e8b-8ab3-caaf96054d79");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400404501503OK
{
"data": {
"id": "d9eae506-77b4-4e8b-8ab3-caaf96054d79",
"kind": "account",
"account_id": "d9eae506-77b4-4e8b-8ab3-caaf96054d79",
"wallet_id": "d4ed232e-ebd1-43b3-b6d7-b6739cadd13f",
"currency": "USDC",
"available_balance": "70.000000",
"saved_balance": "110.250000",
"pending_balance": "0.000000",
"earned_total": "0.250000",
"apy": "3.50",
"wallet_address": "0x8f3b2a91c4d05e6f7a8b9c0d1e2f3a4b5c6d7e8f",
"blockchain_network": "avalanche",
"as_of": "2026-10-27T09:20:00Z"
},
"error": null
}
{
"data": null,
"error": "the account is not a savings account"
}
{
"data": null,
"error": "savings account not found"
}
{
"data": {},
"error": "string"
}
{
"data": {},
"error": "string"
}