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

> Get form template details with optional minimal data



## OpenAPI

````yaml /api-reference/cx/swagger.json get /library/forms/{form}
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/{form}:
    get:
      tags:
        - library
      summary: Get form
      description: Get form template details with optional minimal data
      parameters:
        - description: Form ID
          name: form
          in: path
          required: true
          schema:
            type: string
        - description: Return minimal data (set to 'true')
          name: minimal
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Form details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg_routes_library_forms.GetFormResponse'
        '400':
          description: Bad request - invalid form ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_library_forms.GetFormResponse:
      type: object
      properties:
        form:
          $ref: '#/components/schemas/types.FormTemplate'
        ok:
          type: boolean
    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.