Profile

Complete User Profile After Firebase Registration

Completes user profile after Firebase registration and migrates temporary session data.

**Flow**:
1. User registers via Firebase Auth (createUserWithEmailAndPassword)
2. Frontend calls this endpoint with Firebase token + additional data
3. System creates enriched profile in Firestore
4. Migrates temporary session data (if exists)
5. Records tracking events

**Required Headers**:
- Authorization: Bearer {firebase_jwt_token}

**Data Collected**:
- How they found the platform (try_now, google_search, referral, etc.)
- Professional information (company, role)
- Marketing consents
- Referral code (if applicable)
post/complete-registration

Request

  • Base URL
    https://api.jubjubapp.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

authorizationstring

Firebase JWT token (Bearer token)

Request body

display_namestring required

User's full name

user_sourcestring required

How user found the platform

referral_codestring nullable

Referral code

discovery_detailsstring nullable

Details about how they discovered us

company_namestring nullable

Company name

rolestring nullable

Professional role

use_casestring nullable

Primary use case

temp_session_idstring nullable

Temporary session ID

claim_tokenstring nullable

Token to claim the session

newsletter_consentboolean

Consent for newsletter

product_updates_consentboolean

Consent for product updates

user_typestring nullable

User type: 'professor' or 'student'

Example request

{
  "user_source": "try_now"
}

Response

Profile completed and session migrated successfully

successboolean required
profile_idstring required
migration_resultobject
messagestring required

Example response

{
  "success": true,
  "profile_id": "prof_abc123",
  "message": "Profile completed successfully!"
}

Changes

No recorded changes to this operation across all 1 revision of this API.