---
title: "Get the collection of all accounts"
method: GET
path: "/accounts"
tags: ["Accounts"]
---

# Get the collection of all accounts

`GET /accounts`

## Request

- Base URL: `//basrvqaap6001.morningstar.com/WPDemo/webportfolio/api/v1` (relative, and the document’s source URL is not known)
- URL: `//basrvqaap6001.morningstar.com/WPDemo/webportfolio/api/v1/accounts`
- Auth: API key in header `Authorization`

## Query parameters

- `credentialId` integer
- `page` integer
- `size` integer

## Response `200`

Ok

- PageAccountDtoDefaultSummaryDto: A page of data records
  - `pageSize` integer: Number of records per page
  - `pageNumber` integer: Page number of this page
  - `totalPages` integer: Total number of pages in result set
  - `totalElements` integer: Total number of elements in result set
  - `isFirst` boolean: True if and only if this is the first page of data in the result set
  - `isLast` boolean: True if and only if this is the last page of data in the result set
  - `summary` DefaultSummaryDto
  - `data` AccountDto[]
    - `id` integer, required: Unique ID of this Account
    - `credentialId` integer: ID of the credential associated with this account
    - `name` string, required: The name of this Account
    - `accountNumber` string: The Account Number for this Account
    - `accountNumber2` string: The second Account Number for this Account
    - `externalServiceLevel` string, required: Indicator whether Account is Positional or Transactional
    - `dataBasis` string, required: Indicator whether Account is Trade or Settlement
    - `endDateLastTx` string, date-time: Description: The date used for determining the starting period for retrieval of transactions on the next aggregation. This field cannot be modified.
    - `accountComplete` boolean, required: True if and only if the Account is 'complete'. To be complete there must be a related credential which is complete, and there must be an account number, and if the related Financial Institution requires an Account Number 2 this must also be present
    - `lastUpdated` string, date-time: Account last updated date
    - `accountType` string: Account type
    - `creationDate` string, date-time, required: Account creation date
    - `maskedAccountNumber` string: Masked account number
    - `marketValue` CurrencyValue
      - `amount` number
      - `currencyCode` string
    - `fiId` integer: ID of the Financial Institution.

## Other responses

- `400`: Bad Request
- `401`: Not Authorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-11-03** `475f167d1874`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024/changes/accounts/get.md)

---

[API](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024.md) - [All operations](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024/llms.txt) - [OpenAPI document](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024/revisions/475f167d1874?raw)
