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

> List form templates with filtering, sorting, and pagination



## OpenAPI

````yaml /api-reference/cx/swagger.json post /library/forms/_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:
  /library/forms/_list:
    post:
      tags:
        - library
      summary: List forms
      description: List form templates with filtering, sorting, and pagination
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pkg_routes_library_forms.ListFormsRequest'
        description: List forms request
        required: true
      responses:
        '200':
          description: Form list
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_library_forms.ListFormsResponse
        '400':
          description: Bad request - invalid request body or PDF ID
          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_library_forms.ListFormsRequest:
      type: object
      properties:
        filters:
          $ref: '#/components/schemas/pkg_routes_library_forms.ListFormsFilters'
        page:
          $ref: '#/components/schemas/types.ListPagination'
        sort:
          $ref: '#/components/schemas/types.ListSort'
    pkg_routes_library_forms.ListFormsResponse:
      type: object
      properties:
        forms:
          type: array
          items:
            $ref: '#/components/schemas/types.FormTemplate'
        total:
          type: integer
    pkg_routes_library_forms.ListFormsFilters:
      type: object
      properties:
        hidden:
          type: boolean
        pdf:
          type: string
        search:
          type: string
        tags:
          description: |-
            Tags accepts a plain array (include-only, legacy) or the
            {include,exclude} shape from the ENG-6934 filter toggle.
          type: array
          items:
            type: string
        type:
          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
    types.FormTemplate:
      type: object
      properties:
        _id:
          type: string
        created_at:
          type: string
        deleted_at:
          type: string
        description:
          type: string
        fields:
          type: string
        hidden:
          type: boolean
        incomplete:
          type: integer
        info:
          type: object
          additionalProperties: true
        most_recent:
          description: For returning
          type: string
        pdf:
          type: string
        public:
          type: boolean
        questions:
          type: array
          items:
            $ref: '#/components/schemas/types.FormQuestion'
        replace_pdf:
          type: boolean
        tags:
          type: array
          items:
            type: string
        team:
          type: string
        title:
          type: string
        total:
          type: integer
        type:
          type: string
    types.FormQuestion:
      type: object
      properties:
        _id:
          type: string
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/types.Condition'
        data:
          type: object
          additionalProperties: true
        default: {}
        hint:
          type: string
        key:
          type: string
        link:
          type: string
        multiple:
          type: boolean
        on_type:
          type: string
        options:
          type: array
          items:
            type: string
        required:
          type: boolean
        title:
          type: string
        type:
          type: string
    types.Condition:
      type: object
      properties:
        expression:
          type: string
        op:
          type: string
        value:
          type: string
  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.