Get Account
curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid}', 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.coinbase.com/api/v3/brokerage/accounts/{account_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.coinbase.com/api/v3/brokerage/accounts/{account_uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.coinbase.com/api/v3/brokerage/accounts/{account_uuid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"account": {
"uuid": "8bfc20d7-f7c6-4422-bf07-8243ca4169fe",
"name": "BTC Wallet",
"currency": "BTC",
"available_balance": {
"value": "1.23",
"currency": "BTC"
},
"default": false,
"active": true,
"created_at": "2021-05-31T09:59:59Z",
"updated_at": "2021-05-31T09:59:59Z",
"deleted_at": "2021-05-31T09:59:59Z",
"type": "FIAT",
"ready": true,
"hold": {
"value": "1.23",
"currency": "BTC"
},
"retail_portfolio_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"platform": "ACCOUNT_PLATFORM_CONSUMER"
}
}{
"error": "<string>",
"code": 123,
"message": "<string>",
"details": [
{}
]
}Accounts
Get Account
Get a list of information about an account, given an account UUID.
GET
/
api
/
v3
/
brokerage
/
accounts
/
{account_uuid}
Get Account
curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid}', 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.coinbase.com/api/v3/brokerage/accounts/{account_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.coinbase.com/api/v3/brokerage/accounts/{account_uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.coinbase.com/api/v3/brokerage/accounts/{account_uuid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinbase.com/api/v3/brokerage/accounts/{account_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"account": {
"uuid": "8bfc20d7-f7c6-4422-bf07-8243ca4169fe",
"name": "BTC Wallet",
"currency": "BTC",
"available_balance": {
"value": "1.23",
"currency": "BTC"
},
"default": false,
"active": true,
"created_at": "2021-05-31T09:59:59Z",
"updated_at": "2021-05-31T09:59:59Z",
"deleted_at": "2021-05-31T09:59:59Z",
"type": "FIAT",
"ready": true,
"hold": {
"value": "1.23",
"currency": "BTC"
},
"retail_portfolio_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"platform": "ACCOUNT_PLATFORM_CONSUMER"
}
}{
"error": "<string>",
"code": 123,
"message": "<string>",
"details": [
{}
]
}Authorizations
ApiKeyOAuth2
A bearer token signed using your API Key Secret, see Creating API Keys section of our docs for more information. See Scope & Permissions for the permission each endpoint requires.
Path Parameters
The account's UUID.
Response
A successful response.
Show child attributes
Show child attributes
Was this page helpful?