Get Accounts
curl --request GET \
--url https://api.bron.org/workspaces/{workspaceId}/accountsimport requests
url = "https://api.bron.org/workspaces/{workspaceId}/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/workspaces/{workspaceId}/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.bron.org/workspaces/{workspaceId}/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.bron.org/workspaces/{workspaceId}/accounts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bron.org/workspaces/{workspaceId}/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"accounts": [
{
"accountId": "bin11066zbf15owuxn9ohrvg",
"accountName": "Default vault",
"accountType": "vault",
"createdAt": "1742572023000",
"externalId": "aqm4857o9fvc1iyjm3vi72es",
"status": "active",
"workspaceId": "liya1seswlrlydfpy5xzulsz",
"createdBy": "htp1jwoa1qk8m8cw2dc8th4z",
"extra": {
"onlyAddressBookWithdrawals": true
},
"icon": "emoji:🚀",
"isTestnet": true,
"parentAccountId": "<string>",
"updatedAt": "1742572023000"
}
]
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Get Accounts
Retrieve your accounts
API Key permissions: View only, Transaction Operator, Full Access, MPC Hot SignerGET
/
workspaces
/
{workspaceId}
/
accounts
Get Accounts
curl --request GET \
--url https://api.bron.org/workspaces/{workspaceId}/accountsimport requests
url = "https://api.bron.org/workspaces/{workspaceId}/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/workspaces/{workspaceId}/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.bron.org/workspaces/{workspaceId}/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.bron.org/workspaces/{workspaceId}/accounts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bron.org/workspaces/{workspaceId}/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"accounts": [
{
"accountId": "bin11066zbf15owuxn9ohrvg",
"accountName": "Default vault",
"accountType": "vault",
"createdAt": "1742572023000",
"externalId": "aqm4857o9fvc1iyjm3vi72es",
"status": "active",
"workspaceId": "liya1seswlrlydfpy5xzulsz",
"createdBy": "htp1jwoa1qk8m8cw2dc8th4z",
"extra": {
"onlyAddressBookWithdrawals": true
},
"icon": "emoji:🚀",
"isTestnet": true,
"parentAccountId": "<string>",
"updatedAt": "1742572023000"
}
]
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Path Parameters
Query Parameters
Filter by account types. See details
Available options:
vault Filter by excluded account types. See details
Available options:
vault Filter by account statuses. See details
Available options:
active, archived, shard-generating, error-on-generating Filter by account id
Offset for pagination
Limit for pagination
Filter by testnet flag (true - testnet, false - mainnet, null - all)
Response
OK
List of accounts
Show child attributes
Show child attributes
Was this page helpful?
