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

# Submit a public form

> Stores the answers and completes the form; the link cannot be used again afterwards. Validation errors are
keyed `answers.{question_id}`.



## OpenAPI

````yaml post /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}:
    post:
      tags:
        - PublicCustomerForm
      summary: Submit a public form
      description: >-
        Stores the answers and completes the form; the link cannot be used again
        afterwards. Validation errors are

        keyed `answers.{question_id}`.
      operationId: publicCustomerForm.submit
      parameters:
        - name: token
          in: path
          required: true
          description: The form token from the link
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicCustomerFormSubmitRequest'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: string
                  data:
                    type: object
                    properties:
                      message:
                        type: string
                    required:
                      - message
                required:
                  - success
                  - data
        '422':
          $ref: '#/components/responses/ValidationException'
      security: []
components:
  schemas:
    PublicCustomerFormSubmitRequest:
      type: object
      description: >-
        The rules follow the form's own questions: a visible required question
        must be answered, a

        question hidden by its visibility rules is not validated, and choice
        answers must be one of

        the question's option ids.
      properties:
        answers:
          type: object
          description: >-
            Answers keyed by question id, e.g. `{"12": "Ayşe", "13": ["41",
            "42"], "14": true}`. Select and radio

            take one option id, checkbox a list of option ids, date a `Y-m-d`
            string and boolean `true`/`false`.

            Answers to questions hidden by their visibility rules are ignored.
          additionalProperties: {}
      required:
        - answers
      title: PublicCustomerFormSubmitRequest
  responses:
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  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.