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

# List TPA Accounts

> Get all TPA accounts for a plan



## OpenAPI

````yaml api-reference/openapi.json get /tpa/account/list
openapi: 3.0.0
info:
  title: Stax API
  version: 1.0.0
  description: API for Stax automated document classifier and trust accounting system
  contact:
    name: Stax.ai
    url: https://stax.ai
servers:
  - url: https://api.stax.ai
    description: Production server
security: []
paths:
  /tpa/account/list:
    get:
      tags:
        - TPA
      summary: List TPA Accounts
      description: Get all TPA accounts for a plan
      operationId: tpaAccountList
      parameters:
        - name: planId
          in: query
          schema:
            $ref: '#/components/schemas/ObjectId'
      responses:
        '200':
          description: List of accounts
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  accounts:
                    type: array
                    items:
                      $ref: '#/components/schemas/TpaAccount'
      security:
        - cookieAuth: []
        - bearerAuth: []
components:
  schemas:
    ObjectId:
      type: string
      pattern: ^[0-9a-fA-F]{24}$
      description: MongoDB ObjectId
    TpaAccount:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        team:
          $ref: '#/components/schemas/ObjectId'
        planId:
          $ref: '#/components/schemas/ObjectId'
        accountType:
          type: string
        pensionProId:
          type: number
        internalPlanId:
          type: string
        provider:
          type: string
        number:
          type: string
        payee:
          type: string
        active:
          type: boolean
        ppLock:
          type: boolean
        notes:
          type: array
          items:
            $ref: '#/components/schemas/Note'
        lastModified:
          type: string
          format: date-time
        type:
          type: string
        status:
          type: object
        viewed:
          type: object
    Note:
      type: object
      properties:
        author:
          $ref: '#/components/schemas/ObjectId'
        timestamp:
          type: string
          format: date-time
        content:
          type: string
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: authToken
      description: Cookie-based authentication using userId and authToken cookies
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Bearer token authentication requires two headers: 1) Authorization
        header with 'Bearer {apiKey}' format, and 2) email header with the
        user's email address for identification.

````