> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anbyan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List customer accounts

> List customer accounts. This operation is scoped to the customer portal and returns only customer-accessible data.



## OpenAPI

````yaml /openapi/tenant-customer-v1.openapi.yaml get /accounts
openapi: 3.1.0
info:
  title: Anbyan Customer Portal API
  version: 1.0.0
  description: >
    Customer portal API for password and passkey authentication, accounts,
    cards, statements, transactions, and other customer-owned resources.
servers:
  - url: https://{tenantDomain}/api/v1/customer
    description: Customer portal API on a tenant domain
    variables:
      tenantDomain:
        default: tenant.example.com
security:
  - bearerAuth: []
tags:
  - name: Customer Settings
  - name: Customer Auth
  - name: Customer Accounts
  - name: Customer Cards
  - name: Customer Statements
  - name: Customer Transactions
paths:
  /accounts:
    get:
      tags:
        - Customer Accounts
      summary: List customer accounts
      description: >-
        List customer accounts. This operation is scoped to the customer portal
        and returns only customer-accessible data.
      operationId: listCustomerAccounts
      responses:
        '200':
          description: Customer account list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountPaginator'
components:
  schemas:
    AccountPaginator:
      allOf:
        - $ref: '#/components/schemas/PaginationMetadata'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/Account'
    PaginationMetadata:
      type: object
      required:
        - current_page
        - data
        - from
        - path
        - perPage
        - nextPage_url
        - prevPage_url
      properties:
        current_page:
          type: integer
        data:
          type: array
          items: {}
        from:
          type:
            - integer
            - 'null'
        lastPage:
          type: integer
        nextPage_url:
          type:
            - string
            - 'null'
        path:
          type: string
        perPage:
          type: integer
        prevPage_url:
          type:
            - string
            - 'null'
        to:
          type:
            - integer
            - 'null'
        total:
          type: integer
    Account:
      type: object
      properties:
        id:
          type: string
        accountNumber:
          type: string
        type:
          type: string
          enum:
            - checking
            - savings
            - money_market
            - cd
            - loan
        accountHolderType:
          type: string
        currency:
          type: string
        status:
          type: string
          enum:
            - open
            - closed
            - inactive
            - suspended
            - frozen
        availableBalance:
          type: number
        ledgerBalance:
          type: number
        openedAt:
          type: string
          format: date-time
        clientId:
          type: string
        accountNumberFormatted:
          type: string
        accountNumberLast4:
          type: string
        closedAt:
          type:
            - string
            - 'null'
          format: date-time
        metadata:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.