@xfloor-memory-sdk
  1. Registration
@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
    • Make floor Private
    • Make floor public
    • Rename floor
  • 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. Registration

Validation

POST
/auth-service/validate/activation/code

Validate Activation / Verification Code#

This API validates a one-time verification code submitted by a user and executes the corresponding account operation based on the specified mode.
Depending on the mode, the API may:
Activate a newly registered account
Confirm a login attempt
Verify a password change or reset
Validate email or mobile updates
Confirm account deletion or clearing requests
The API verifies the provided activation_code against the given user_id, mode, and application context.
If validation succeeds, the requested operation is completed and the API returns the relevant POD information and user profile details (where applicable).
If validation fails, the operation is not performed and an appropriate error response is returned.

Authentication#

This endpoint requires Bearer Token authentication.
Header
Authorization: Bearer <access_token>

Request Body#

{
  "user_id": "string",
  "activation_code": "string",
  "app_id": "string",
  "mode": "string"
}

Field Descriptions#

user_id – Unique identifier of the user initiating the operation
activation_code – One-time verification code sent to the user
app_id – Application identifier (optional or context-specific)
mode – Operation context for which the verification is being performed

Usage Scenarios (Mode Definitions)#

ModePurpose
0Email or mobile number change
1Password change
2Delete account
3Clear account
4Signup verification (account activation)
5Login verification
6Forgot password verification

Successful Response#

On successful validation:
The requested operation (based on mode) is completed
The API returns:
POD information associated with the user (if applicable)
User profile details (if applicable)
Examples:
For signup verification, the user account is activated
For login, access is confirmed
For password reset, the user may proceed to set a new password
For account deletion, the request is confirmed

Error Response#

The API returns an error response when:
The activation code is invalid or expired
The activation code does not match the user or operation mode
The requested operation is already completed (e.g., user already activated)
Authorization fails or the bearer token is missing or invalid
⚠️ In all error cases, no account state change occurs.

One-Line Summary#

Validates a one-time verification code and securely completes the requested user account operation (signup, login, password change, or account actions), returning POD and profile details on success.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-dataRequired

Responses

🟢200Success
application/json
Body

🟠412Error
🟠400BadRequest
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://appfloor.in/auth-service/validate/activation/code' \
--header 'Authorization: Bearer <token>' \
--form 'user_id=""' \
--form 'activation_code=""' \
--form 'mode=""' \
--form 'app_id=""'
Response Response Example
200 - Example 1
{
    "profile": {
        "floor_id": "string",
        "floor_count_info": {
            "permitted": "string",
            "remaining": "string"
        },
        "block_count_info": {
            "permitted": "string",
            "remaining": "string"
        },
        "FID": "string",
        "name": "string",
        "email": "string",
        "mobile_number": "string",
        "user_id": "string",
        "avatar": {
            "url": "string",
            "id": "string"
        }
    },
    "pod_info": {
        "floor_id": "string",
        "is_owner": "string",
        "app_id": "string",
        "title": "string",
        "details": "string",
        "floor_uid": "string",
        "blocks": [
            {
                "block_id": "string",
                "type": "string",
                "title": "string"
            }
        ],
        "avatar": {
            "url": "string",
            "type": "string"
        }
    },
    "app_id": "string"
}
Modified at 2026-03-02 14:57:50
Previous
Sign In with Mobile number
Next
Change Password
Built with