> ## 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 company census status counts

> Returns exclusive company census workflow counts for matching plans and clients. Uses the same filters as _list. Joinder plans are excluded unless filters.include_joinders is set.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /packages/retirement/census/statuses/{planYear}/_stats
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:
  /packages/retirement/census/statuses/{planYear}/_stats:
    post:
      tags:
        - packages
      summary: Get company census status counts
      description: >-
        Returns exclusive company census workflow counts for matching plans and
        clients. Uses the same filters as _list. Joinder plans are excluded
        unless filters.include_joinders is set.
      parameters:
        - description: Plan year
          name: planYear
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusStatsRequest
        description: Filters
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusStatsResponse
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '504':
          description: Gateway Timeout
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_census_statuses.CensusStatusStatsRequest:
      type: object
      properties:
        filters:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_census_statuses.ListStatusesFilters
    pkg_routes_packages_retirement_census_statuses.CensusStatusStatsResponse:
      type: object
      properties:
        counts:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusStatsCounts
        total:
          type: integer
    pkg_routes_packages_retirement_census_statuses.ListStatusesFilters:
      type: object
      properties:
        assignee:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        census_status:
          description: Optional exclusive workflow status from the _stats response
          type: string
        client:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        client_tags:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        data:
          type: array
          items:
            $ref: '#/components/schemas/types.ListFilterData'
        include_joinders:
          description: >-
            IncludeJoinders keeps MEP/PEP joinder plans in the result. It
            defaults to

            false on the wire, so callers wanting them must say so.
          type: boolean
        plan_data:
          type: array
          items:
            $ref: '#/components/schemas/types.ListFilterData'
        plan_status:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_structure:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_tags:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_type:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        provisions:
          type: object
          additionalProperties:
            type: string
        pye: {}
        search:
          type: string
        status:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        tags:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
    pkg_routes_packages_retirement_census_statuses.CensusStatusStatsCounts:
      type: object
      properties:
        census_and_questionnaire:
          type: integer
        census_data_received:
          type: integer
        census_request_sent:
          type: integer
        census_review_complete:
          type: integer
        census_review_requested:
          type: integer
        other:
          type: integer
        questionnaire_complete:
          type: integer
    stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter:
      type: object
      properties:
        exclude:
          type: array
          items:
            type: string
        include:
          type: array
          items:
            type: string
    types.ListFilterData:
      type: object
      properties:
        key:
          type: string
        op:
          type: string
        value: {}
  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.