> ## 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.

# Get TPA Plan

> Get TPA plan by ID



## OpenAPI

````yaml api-reference/openapi.json get /tpa/plan/get
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/plan/get:
    get:
      tags:
        - TPA
      summary: Get TPA Plan
      description: Get TPA plan by ID
      operationId: tpaPlanGet
      parameters:
        - name: planId
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ObjectId'
      responses:
        '200':
          description: Plan information
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  plan:
                    $ref: '#/components/schemas/TpaPlan'
      security:
        - cookieAuth: []
        - bearerAuth: []
components:
  schemas:
    ObjectId:
      type: string
      pattern: ^[0-9a-fA-F]{24}$
      description: MongoDB ObjectId
    TpaPlan:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        team:
          $ref: '#/components/schemas/ObjectId'
        pensionProId:
          type: number
        internalPlanId:
          type: string
        planName:
          type: string
        planType:
          type: string
        endMm:
          type: number
        endDd:
          type: number
        active:
          type: boolean
        directory:
          type: string
        ppLock:
          type: boolean
        search:
          type: array
          items:
            type: string
        notes:
          type: array
          items:
            $ref: '#/components/schemas/Note'
        lastModified:
          type: string
          format: date-time
        assignees:
          type: array
          items:
            $ref: '#/components/schemas/ObjectId'
        status:
          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.

````