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

> Create a new TPA account



## OpenAPI

````yaml api-reference/openapi.json post /tpa/account/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/account/create:
    post:
      tags:
        - TPA
      summary: Create TPA Account
      description: Create a new TPA account
      operationId: tpaAccountCreate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - planId
              properties:
                planId:
                  $ref: '#/components/schemas/ObjectId'
                accountType:
                  type: string
                  default: brokerage
                provider:
                  type: string
                number:
                  type: string
                payee:
                  type: string
                active:
                  type: boolean
                internalPlanId:
                  type: string
                pensionProId:
                  type: number
      responses:
        '200':
          description: Account created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  account:
                    $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.

````