> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flextell.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a public form

> Returns the questions of a pending form. A completed form answers 409 `CUSTOMER_FORM_ALREADY_COMPLETED`;
an unknown token, or a form whose template or patient was deleted, answers 404.



## OpenAPI

````yaml /api-referansi/openapi.json get /v1/public/forms/{token}
openapi: 3.1.0
info:
  title: Flextell API
  version: 0.0.1
  description: >-
    Flextell REST API referansı. Kimlik doğrulama, scope ve istek kuralları için
    API sekmesindeki rehberlere bakın.
servers:
  - url: https://app.flextell.ai/api
    description: Üretim
security:
  - oauth2: []
  - bearer: []
paths:
  /v1/public/forms/{token}:
    get:
      tags:
        - PublicCustomerForm
      summary: Get a public form
      description: >-
        Returns the questions of a pending form. A completed form answers 409
        `CUSTOMER_FORM_ALREADY_COMPLETED`;

        an unknown token, or a form whose template or patient was deleted,
        answers 404.
      operationId: publicCustomerForm.show
      parameters:
        - name: token
          in: path
          required: true
          description: The form token from the link
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: string
                  data:
                    $ref: '#/components/schemas/PublicCustomerFormResource'
                required:
                  - success
                  - data
      security: []
components:
  schemas:
    PublicCustomerFormResource:
      type: object
      properties:
        token:
          type: string
        status:
          type: string
          description: >-
            Always `pending`: completed forms answer 409
            `CUSTOMER_FORM_ALREADY_COMPLETED` instead.
        name:
          type: string
        description:
          type:
            - string
            - 'null'
          description: >-
            Rich-text introduction written in the template editor, as HTML.
            Scripts, event handlers and unsafe

            URLs are stripped server-side; render it as HTML.
        questions:
          type: array
          items:
            $ref: '#/components/schemas/FormQuestionResource'
      required:
        - token
        - status
        - name
        - description
        - questions
      title: PublicCustomerFormResource
    FormQuestionResource:
      type: object
      properties:
        id:
          type: integer
        order:
          type: integer
        label:
          type: string
        helper_text:
          type:
            - string
            - 'null'
        question_type:
          type: string
        required:
          type: boolean
        options:
          type: array
          items:
            $ref: '#/components/schemas/FormOptionResource'
        visibility_rules:
          type: array
          items:
            $ref: '#/components/schemas/FormVisibilityRuleResource'
        visibility_match_type:
          type: string
          description: >-
            How `visibility_rules` combine: `all` shows the question when every
            rule matches, `any` when one does.
      required:
        - id
        - order
        - label
        - helper_text
        - question_type
        - required
      title: FormQuestionResource
    FormOptionResource:
      type: object
      properties:
        id:
          type: integer
        label:
          type: string
        order:
          type: integer
      required:
        - id
        - label
        - order
      title: FormOptionResource
    FormVisibilityRuleResource:
      type: object
      properties:
        id:
          type: integer
        depends_on_question_id:
          type: integer
        operator:
          type: string
        value:
          type: string
        match_type:
          type: string
      required:
        - id
        - depends_on_question_id
        - operator
        - value
        - match_type
      title: FormVisibilityRuleResource
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://dev.flextell.ai/oauth/authorize
          tokenUrl: https://dev.flextell.ai/oauth/token
          scopes:
            '*': all
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.