---
title: "Get Account Data"
method: GET
path: "/api/v1.0/public/accounts/"
tags: ["/accounts"]
---

# Get Account Data

`GET /api/v1.0/public/accounts/`

Retrieve account names with their total values for a given portfolio.

## Query parameters

- `portfolio_id` integer, required

## Response `200`

Account data retrieved successfully

- object
  - `portfolio_id` integer — Portfolio ID
  - `portfolio_name` string — Portfolio display name
  - `accounts` object[]
    - `account_name` string — Name of the account
    - `total_value` number, float — Total value of all holdings in this account
  - `total_accounts` integer — Total number of accounts

## Other responses

- `400` — Bad request - missing or invalid portfolio_id
- `403` — Portfolio not found or access denied
- `500` — Internal server error

---

[API](https://skmtc.dev/powderfi/apis/powder.md) · [All operations](https://skmtc.dev/powderfi/apis/powder/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/powderfi/powder/revisions/e0fbc27bde61/schema)
