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

# Complete Onboarding

> Mark onboarding as completed for the current user and fire analytics.

Persists ``user.onboarding_completed = True`` and emits the
``onboarding completed`` PostHog event (plus an org ``group_identify`` to
stamp ``onboarding_completed_at``). Analytics failures are swallowed so
they never block the user from leaving the onboarding flow.



## OpenAPI

````yaml /openapi/openhands-cloud.json post /api/complete_onboarding
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/complete_onboarding:
    post:
      summary: Complete Onboarding
      description: >-
        Mark onboarding as completed for the current user and fire analytics.


        Persists ``user.onboarding_completed = True`` and emits the

        ``onboarding completed`` PostHog event (plus an org ``group_identify``
        to

        stamp ``onboarding_completed_at``). Analytics failures are swallowed so

        they never block the user from leaving the onboarding flow.
      operationId: complete_onboarding_api_complete_onboarding_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/OnboardingSubmission'
                - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OnboardingSubmission:
      properties:
        selections:
          additionalProperties:
            anyOf:
              - type: string
              - items:
                  type: string
                type: array
          type: object
          title: Selections
          default: {}
      type: object
      title: OnboardingSubmission
      description: >-
        Payload posted from the onboarding form.


        ``selections`` maps onboarding question_id -> selected option(s), e.g.

        ``{"role": "software_engineer", "org_size": "solo",
           "use_case": ["new_features", "fixing_bugs"]}``.

        The field is optional so the endpoint stays backwards-compatible with
        any

        client that previously called it with an empty body, but the current

        frontend always submits a populated mapping.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````