Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}
{ "portfolio": { "id": "e8bbed13-fa33-41de-86d5-4335d8f08166", "name": "CryptoBalances", "entity_id": "2c521d6c-1cfb-4371-bf9c-5a42938d3e75", "organization_id": "4c1d4464-e53b-429f-a81d-71ae7e2e687c", "entity_name": "Sample Prime Entity" } }
Retrieve a given portfolio by its portfolio ID.
PortfoliosService portfoliosService = PrimeServiceFactory.createPortfoliosService(client); GetPortfolioByIdRequest request = new GetPortfolioByIdRequest.Builder().portfolioId("PORTFOLIO_ID_HERE").build(); GetPortfolioByIdResponse response = portfoliosService.getPortfolioById(request);
The portfolio ID
A successful response.
The response is of type object.
object
Was this page helpful?