GET
/
v1
/
portfolios
/
{portfolio_id}
/
address_book
curl --request GET \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/address_book
{
  "addresses": [
    {
      "id": "<string>",
      "currency_symbol": "<string>",
      "name": "<string>",
      "address": "<string>",
      "account_identifier": "<string>",
      "account_identifier_name": "<string>",
      "state": "<string>",
      "explorer_link": "<string>",
      "last_used_at": "2023-11-07T05:31:56Z",
      "added_at": "2023-11-07T05:31:56Z",
      "added_by": {
        "id": "<string>",
        "name": "<string>",
        "avatar_url": "<string>"
      },
      "type": "ADDRESS_BOOK_TYPE_UNSPECIFIED",
      "counterparty_id": "<string>"
    }
  ],
  "pagination": {
    "next_cursor": "<string>",
    "sort_direction": "DESC",
    "has_next": true
  }
}

Use the Prime SDK or CLI to test this endpoint by following the quickstart guide and running with the following examples

AddressBookService addressBookService = PrimeServiceFactory.createAddressBookService(client);

GetPortfolioAddressBookRequest request = new GetPortfolioAddressBookRequest.Builder("portfolio_id").build();

GetPortfolioAddressBookResponse response = addressBookService.getAddressBook(request);

For more information, please visit the Prime Java SDK.

Path Parameters

portfolio_id
string
required

Portfolio ID

Query Parameters

currency_symbol
string

Cryptocurrency symbol -- if nothing is passed, all addresses are returned

Query string that matches the address name

cursor
string

ID marking the point after which additional results should be retrieved

limit
integer

Number of addresses to retrieve

sort_direction
enum<string>
default:DESC

Sorting order

Available options:
DESC,
ASC

Response

200
application/json

A successful response.

The response is of type object.