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

# Verify saved domain records and complete a setup step



## OpenAPI

````yaml /api-referansi/openapi.json post /v1/setup-wizard/steps/{step}/complete
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/setup-wizard/steps/{step}/complete:
    post:
      tags:
        - SetupWizard
      summary: Verify saved domain records and complete a setup step
      operationId: setup-wizard.steps.complete
      parameters:
        - name: step
          in: path
          required: true
          description: The setup step identifier
          schema:
            $ref: '#/components/schemas/SetupWizardStep'
        - name: X-Tenant
          in: header
          required: true
          description: >-
            Tenant identifier. Send the Tenant ID in the `X-Tenant` header to
            scope API requests to a specific tenant.
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: string
                  data:
                    $ref: '#/components/schemas/SetupWizardResource'
                required:
                  - success
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    SetupWizardStep:
      type: string
      enum:
        - clinic_info
        - communication_channels
        - work_mode
        - doctor_setup
        - product_setup
        - treatment_setup
        - treatment_doctor_assign
        - treatment_groups
        - room_assistant
        - invoice_integration
        - bank_accounts
        - summary
      title: SetupWizardStep
    SetupWizardResource:
      type: object
      properties:
        tenant_id:
          type: integer
          description: The company ID.
        work_mode:
          type: string
          description: The saved work mode, or null before selection.
        setup_required:
          type: string
          description: Whether the shared setup service requires setup.
        is_completed:
          type: string
          description: Whether the shared wizard has been completed.
        next_step:
          type:
            - string
            - 'null'
          description: The next step in the existing wizard.
        completed_steps:
          type: string
          description: The saved completed step identifiers.
        clinic_info:
          type: string
          description: The stored clinic information and working hours.
        steps:
          type: string
          description: >-
            Applicable steps with their completion state and missing saved
            records. Optional skipped steps follow the shared wizard's completed
            state.
        blockers:
          type: string
          description: Required steps or saved records that prevent finishing setup.
        work_mode_settings:
          type: string
          description: Persisted intake settings and default form template identifier.
        channels:
          type: string
          description: >-
            Saved messaging channels, separating activation from provider
            connection.
      required:
        - tenant_id
        - work_mode
        - setup_required
        - is_completed
        - next_step
        - completed_steps
        - clinic_info
        - steps
        - blockers
        - work_mode_settings
        - channels
      title: SetupWizardResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    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.