---
title: "List accounts."
method: GET
path: "/v2/accounts"
tags: ["Accounts"]
---

# List accounts.

`GET /v2/accounts`

## Query parameters

- `limit` integer
- `starting_after` string — Return records following this resource id in the selected sort order.
- `sort` 'created_at' | 'customer_name'

## Response `200`

Page of resources.

- AccountList
  - `data` Account[], required
    - `id` string, required — LedgerUp account identifier.
    - `external_id` string, nullable, required — Optional caller-supplied external identifier. Maximum 256 Unicode scalar values.
    - `ledgerup_customer_id` string, uuid, nullable, required — Optional LedgerUp billing customer UUID.
    - `name` string, required — Human-readable name. Maximum 256 Unicode scalar values.
    - `description` string, nullable, required — Optional description. Maximum 2048 Unicode scalar values.
    - `created_at` integer, required — Unix timestamp in seconds.
    - `updated_at` integer, required — Unix timestamp in seconds.
    - `archived_at` integer, required — Unix timestamp in seconds.
  - `has_more` boolean, required — True when additional records are available after the returned page.

## Other responses

- `400` — Bad request, invalid header, invalid amount/quantity/currency, or text validation failure.
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission, or reset was attempted outside the test namespace.
- `408` — Request exceeded the 30 second timeout.
- `429` — Rate limit exceeded.
- `500` — Internal server error or queue failure.

---

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