> ## 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 payroll connections

> List client payroll connections with filtering, sorting, and pagination. Filters by search, tags, payroll status, and provider.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /packages/retirement/payroll/connections/_list
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/payroll/connections/_list:
    post:
      tags:
        - packages
      summary: List payroll connections
      description: >-
        List client payroll connections with filtering, sorting, and pagination.
        Filters by search, tags, payroll status, and provider.
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_packages_retirement_payroll.ListRequest
        description: List payroll connections request
        required: true
      responses:
        '200':
          description: List of payroll connections
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_packages_retirement_payroll.ListPayrollConnectionsResponse
        '400':
          description: Bad request - invalid request body
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_payroll.ListRequest:
      type: object
      properties:
        filters:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_payroll.PayrollListFilters
        page:
          $ref: '#/components/schemas/types.ListPagination'
        sort:
          $ref: '#/components/schemas/types.ListSort'
    pkg_routes_packages_retirement_payroll.ListPayrollConnectionsResponse:
      type: object
      properties:
        connections:
          type: array
          items: {}
        total:
          type: integer
    pkg_routes_packages_retirement_payroll.PayrollListFilters:
      type: object
      properties:
        payroll_provider:
          type: array
          items:
            type: string
        payroll_status:
          type: array
          items:
            type: string
        search:
          description: Search term for client (string or empty array)
          type: string
        tags:
          description: Client Tags
          type: array
          items:
            type: string
    types.ListPagination:
      type: object
      properties:
        limit:
          type: integer
        skip:
          type: integer
    types.ListSort:
      type: object
      properties:
        field:
          type: string
        last: {}
        order:
          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.