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

# Complete profile for OAuth users

> OAuth users must complete their profile by providing company name, application note, and accepting terms of service



## OpenAPI

````yaml /api-reference/openapi.json post /auth/complete-profile
openapi: 3.0.0
info:
  title: EngageFabric API
  description: >-
    EngageFabric is a multi-tenant SaaS gamification framework. This API
    provides endpoints for managing players, tracking events, quests,
    adventures, leaderboards, lobbies, and real-time features.
  version: 1.0.0
  contact:
    name: EngageFabric Support
    url: https://engagefabric.com
    email: support@engagefabric.com
  license:
    name: Proprietary
    url: https://engagefabric.com/terms
servers:
  - url: https://api.engagefabric.com
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: tenants
    description: Tenant management
  - name: projects
    description: Project management
  - name: players
    description: Player management and game state
  - name: events
    description: Event ingestion and tracking
  - name: quests
    description: Quest management and progress
  - name: adventures
    description: Adventure/season management
  - name: leaderboards
    description: Leaderboard rankings
  - name: lobbies
    description: Multiplayer lobby management
  - name: chat
    description: Real-time chat
  - name: rules
    description: Rules engine configuration
paths:
  /auth/complete-profile:
    post:
      tags:
        - auth
      summary: Complete profile for OAuth users
      description: >-
        OAuth users must complete their profile by providing company name,
        application note, and accepting terms of service
      operationId: AuthController_completeProfile
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompleteProfileDto'
      responses:
        '200':
          description: Profile completed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompleteProfileResponseDto'
        '400':
          description: Profile already completed or terms not accepted
        '401':
          description: Not authenticated
        '404':
          description: User not found
      security:
        - JWT: []
components:
  schemas:
    CompleteProfileDto:
      type: object
      properties:
        companyName:
          type: string
          description: Company/Organization name
          example: Acme Corporation
          minLength: 2
          maxLength: 255
        applicationNote:
          type: string
          description: Optional note about why they want to join the alpha program
          example: >-
            We run an EdTech platform with 10k MAUs and want to reduce churn by
            adding gamification.
          maxLength: 500
        captchaToken:
          type: string
          description: Cloudflare Turnstile CAPTCHA token
          example: 0.AbCdEfGhIjKlMnOpQrStUvWxYz...
        acceptedTerms:
          type: boolean
          description: User has accepted terms of service
          example: true
      required:
        - companyName
        - captchaToken
        - acceptedTerms
    CompleteProfileResponseDto:
      type: object
      properties:
        message:
          type: string
          description: Success message
        tenant:
          type: object
          description: Updated tenant information
          example:
            id: 123e4567-e89b-12d3-a456-426614174000
            name: Acme Corporation
            slug: acme-corp
            plan: FREE
            alphaApprovalStatus: PENDING
        user:
          type: object
          description: Updated user information
          example:
            id: 123e4567-e89b-12d3-a456-426614174000
            email: admin@acme.com
            name: John Doe
            role: OWNER
            profileCompleted: true
      required:
        - message
        - tenant
        - user
  securitySchemes:
    JWT:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT token for admin console authentication

````