@xfloor-memory-sdk
  1. Get Started
@xfloor-memory-sdk
  • Get Started
    • Overview
    • Quick Start
    • Authentication and Identification
    • Core Concepts (5-Minute Read)
    • What to Use First (API Map)
  • SDK
    • Overview
    • SDK Installation & Setup
    • Python SDK
    • JavaScript SDK
    • Typescript SDK
    • Java SDK
    • FAQ & Troubleshooting
    • Copy-Paste Debug Checklists
  • Core FloorMemory
    • Query (Primary API)
      POST
    • Create Event (Post Content)
      POST
    • Recent Events
      GET
    • Basic information of a floor
      GET
  • Floor Management
    • Edit floor
      POST
    • Make floor Private
      POST
    • Make floor public
      POST
    • Rename floor
      POST
  • Registration
    • Sign Up
      POST
    • Sign In with email ID
      POST
    • Sign In with Mobile number
      POST
    • Validation
      POST
    • Change Password
      POST
    • Reset Password
      POST
    • Change email ID
      POST
    • Change Mobile number
      POST
    • Send Validation code
      POST
    • External User Registration
      POST
  • SDKs
  • Schemas
    • PostAdd
    • QueryResponse
    • Media
    • UserDetails
    • SignUpResponse
    • BlockDetails
    • FloorInfo
    • Threads
    • EventResponse
    • 400ErrorCode
    • Remaining
  1. Get Started

Authentication and Identification

Authentication & Identity#

FloorMemory APIs are identity-aware, but identity-agnostic.
This means:
Every request must identify a user
FloorMemory does not force how you authenticate that user

Authentication (Required)#

All API calls require Bearer Token authentication.
Tokens:
Are generated per App
Authorize access to FloorMemory APIs
Must be kept server-side
Tokens are not user tokens.
They represent your application.

User Identity (Required)#

Every conversational API requires a user_id.
user_id:
Identifies the end user
Must be stable and unique
Can come from your system or xFloor

Two Supported Identity Models#

Option A — You Manage Users (Most Common)#

Use this if:
You already have login (SSO, OAuth, email/password)
You want full control over users
How it works:
Authenticate users in your system
Pass your own user_id to FloorMemory APIs
Do NOT use Registration APIs
This is the recommended approach for most products.

Option B — xFloor Manages Users#

Use this if:
You don’t have an auth system
You want OTP-based signup/login
How it works:
Use xFloor Registration APIs
Receive a persistent xfloor_user_id
Use that ID in all APIs

Rule of Thumb#

User identity is mandatory.
Registration APIs are optional.
If you already have users → skip registration entirely.
Modified at 2026-01-21 09:42:20
Previous
Quick Start
Next
Core Concepts (5-Minute Read)
Built with