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

# Create TPA Plan

> Create a new TPA plan



## OpenAPI

````yaml api-reference/openapi.json post /tpa/plan/create
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/create:
    post:
      tags:
        - TPA
      summary: Create TPA Plan
      description: Create a new TPA plan
      operationId: tpaPlanCreate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - planName
              properties:
                planName:
                  type: string
                planType:
                  type: string
                internalPlanId:
                  type: string
                pensionProId:
                  type: number
                endMm:
                  type: number
                endDd:
                  type: number
                active:
                  type: boolean
                directory:
                  type: string
      responses:
        '200':
          description: Plan created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  plan:
                    $ref: '#/components/schemas/TpaPlan'
      security:
        - cookieAuth: []
        - bearerAuth: []
components:
  schemas:
    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
    ObjectId:
      type: string
      pattern: ^[0-9a-fA-F]{24}$
      description: MongoDB ObjectId
    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.

````