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

# Form field detection status

> Current field detection status for a PDF form (null if never requested)



## OpenAPI

````yaml /api-reference/cx/swagger.json get /library/forms/{form}/_detect_fields
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}/_detect_fields:
    get:
      tags:
        - library
      summary: Form field detection status
      description: Current field detection status for a PDF form (null if never requested)
      parameters:
        - description: Form ID
          name: form
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Detection status
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_library_forms.DetectFieldsResponse
        '400':
          description: Invalid form ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Form not found
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_library_forms.DetectFieldsResponse:
      type: object
      properties:
        field_detection:
          $ref: '#/components/schemas/pkg_routes_library_forms.FieldDetection'
        ok:
          type: boolean
    pkg_routes_library_forms.FieldDetection:
      type: object
      properties:
        counts:
          type: object
          additionalProperties:
            type: integer
        file:
          type: string
        message:
          type: string
        requested_at:
          type: string
        source_file:
          type: string
        status:
          type: string
        updated_at:
          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.