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

# List Accounts

> Returns a paginated list of Accounts on your Platform.



## OpenAPI

````yaml GET /accounts
openapi: 3.1.0
info:
  title: Otim Platform API
  version: v0
  description: >-
    API for managing accounts, entities, transfers, counterparties, and IBANs on
    the Otim platform.
servers:
  - url: https://api.otim.com/v0
security:
  - bearerAuth: []
paths:
  /accounts:
    get:
      tags: []
      summary: List Accounts
      description: Returns a paginated list of Accounts on your Platform.
      operationId: listAccounts
      parameters:
        - name: entityId
          in: query
          schema:
            type: string
          description: Filter Accounts by Entity ID.
        - name: cursor
          in: query
          schema:
            type: string
          description: Pagination cursor from a previous response.
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 100
          description: Number of items to return.
      responses:
        '200':
          description: A paginated list of Accounts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedAccounts'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PaginatedAccounts:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Account'
        hasMore:
          type: boolean
        nextCursor:
          type: string
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: A machine-readable error code.
        details:
          type: object
          nullable: true
          description: Additional context about the error.
    Account:
      type: object
      properties:
        id:
          type: string
          example: acc_01JA1B2C3D4E5F6G7H8J9K0L
        entityId:
          type: string
          example: ent_01JA1B2C3D4E5F6G7H8J9K0L
        name:
          type: string
          example: Treasury
        type:
          type: string
          enum:
            - wallet
            - bank
          example: wallet
        chain:
          type: string
          nullable: true
          example: base
        availableBalance:
          type: string
          example: '1000000'
        pendingBalance:
          type: string
          example: '0'
        lockedBalance:
          type: string
          example: '0'
        holdingBalance:
          type: string
          example: '0'
        currency:
          type: string
          example: USDC
        status:
          type: string
          enum:
            - active
            - inactive
          example: active
        autoEarn:
          type: boolean
          description: Whether this Account is earning yield on idle balances.
          example: true
        metadata:
          type: object
          nullable: true
        createdAt:
          type: string
          format: date-time
          example: '2025-01-15T12:00:00Z'
        updatedAt:
          type: string
          format: date-time
          example: '2025-01-15T12:00:00Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key prefixed with `sk_`.

````