---
search:
  tags:
    - Portfolio
    - GET
seo:
  description: >-
    Returns the caller's non-deleted accounts, including accounts whose setup is
    pending… Reference for the GET /portfolio/accounts endpoint in the REST API
    API.
sidebar:
  badge: GET
  label: List Accounts
title: List Accounts
type: openapi-operation
---
Returns the caller's non-deleted accounts, including accounts whose setup is pending or failed. Status includes account readiness and the caller's access. An API key must have the `read` scope; a key restricted to one account returns only that account. Follow a non-null next_page_url unchanged to retrieve the next page.

### Endpoint

- Method and path: `GET /portfolio/accounts`
- Operation ID: `listAccounts`
- API reference: [GET /portfolio/accounts](/api-reference/portfolio/listaccounts)

#### Authorization

- Accepted credentials: `UDX-Access-Key` header and `UDX-Access-Timestamp` header and `UDX-Access-Signature` header; or Bearer token in `Authorization`
- Details: [Authentication](/authentication)

#### Parameters

- `UDX-Version` (`header`) — Dated API version (YYYY-MM-DD). Omit to use the oldest supported version. An unknown version returns `400`.
- `limit` (`query`) — Maximum number of items to return in one page. Defaults to 10 when omitted; must be an integer from 1 to 100. A value outside that range is rejected with 400 rather than silently clamped. A returned next_page_url preserves the effective value.
- `page` (`query`) — Opaque token identifying the requested page. Clients should not construct or extract this value; follow next_page_url from the previous response unchanged instead.
- `sort` (`query`) — Field to sort accounts by. Defaults to created_at (creation time). The account identifier is appended as a tie-breaker.
- `order` (`query`) — Sort direction. Defaults to desc. Applies to the default sort field when sort is omitted. Nulls sort last in both directions.

#### Responses

- `200` — The current user's non-deleted accounts with active grants.
- `400` — The request doesn't conform to this spec.
- `401` — No valid credential was provided.
- `403` — The bearer identity is not admitted to direct UDX access, or the API key lacks the `read` scope.
- `429` — The member rate limit was exceeded. Wait for `Retry-After`.
- `500` — Something went wrong on UDX's side.
- `503` — Request admission is unavailable. Retry later.
