> ## 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 historical 5500 plan years

> Returns the plan years with imported DOL 5500 data for an EIN.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /compliance/historical_5500/{ein}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /compliance/historical_5500/{ein}:
    get:
      tags:
        - compliance
      summary: List historical 5500 plan years
      description: Returns the plan years with imported DOL 5500 data for an EIN.
      parameters:
        - description: Employer identification number
          name: ein
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Available plan years, newest first
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_compliance.Historical5500PlanYearsResponse
        '400':
          description: Invalid EIN
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Government forms service failure
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_compliance.Historical5500PlanYearsResponse:
      type: object
      properties:
        plan_years:
          type: array
          items:
            type: integer
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.