WEB4 OASIS API - Complete Documentation

📋 Table of Contents

🔐 Authentication & Identity

  • Avatar API - Complete user management system (80+ endpoints)

  • Keys API - Cryptographic key management (40+ endpoints)

💎 Reputation & Social

  • Karma API - Digital reputation system (20+ endpoints)

  • Social API - Social networking features (4+ endpoints)

  • Chat API - Real-time communication (3+ endpoints)

  • Messaging API - Advanced messaging (6+ endpoints)

💾 Data Management

  • Data API - Comprehensive data operations (30+ endpoints)

  • Files API - File management system (6+ endpoints)

  • Search API - Universal search (2+ endpoints)

💰 Financial Services

🌐 Network & Discovery

🎮 Gamification

🗺️ Location & Mapping

  • Map API - Advanced mapping (15+ endpoints)

🔗 Blockchain Integration

⚙️ System Management

📋 Overview

The WEB4 OASIS API is the core data aggregation layer that unifies all Web2 and Web3 technologies into a single, intelligent, auto-failover system. It provides universal access to blockchain networks, cloud providers, storage systems, and network protocols through a unified interface.

🏗️ Architecture

Core Components

  • AVATAR API: Centralized user data and identity management

  • KARMA API: Digital reputation and positive action tracking

  • DATA API: Seamless Web2/Web3 data transfer

  • WALLET API: High-security, cross-chain wallet with fiat integration

  • NFT API: Cross-chain NFTs with geo-caching

  • KEYS API: Secure key storage and backup

  • ONET API: Integration with the ONET decentralized network

  • SEARCH API: Universal search across all OASIS data

  • STATS API: Comprehensive statistics and analytics

  • HOLOCHAIN API: Integration for distributed applications

  • IPFS API: Decentralized storage

  • ONODE API: ONODE status, config, providers, stats

  • ONET API: ONET status, topology, nodes, connect, disconnect

  • SETTINGS API: Get/Update system settings

  • MAP API: Load/Save/Search/Update/Delete maps

  • CHAT API: Conversations, send message, messages, create conversation

  • MESSAGING API: Inbox, send message, sent, mark read

  • SOCIAL API: Friends, add/remove friend, followers, follow/unfollow, feed

  • FILES API: Upload/Download/List/Delete/Share files

Key Features

  • Universal Compatibility: Works with 50+ blockchain networks

  • Auto-Failover: Intelligent provider switching

  • Cross-Chain Support: Native multi-blockchain operations

  • Real-Time Analytics: Comprehensive monitoring and statistics

  • Secure Authentication: Multi-layer security with key management

  • Provider Management: Dynamic provider configuration and monitoring

🔗 Base URL

🔐 Authentication

API Key Authentication

Avatar Authentication

📚 API Endpoints

Avatar API

The Avatar API provides comprehensive user management, authentication, and identity services. It handles user registration, authentication, profile management, and session control across all supported providers.

User Registration

Register New User

Request Body:

Response:

Register with Provider

Parameters:

  • providerType (string): Provider type (e.g., "Ethereum", "Solana", "MongoDB")

  • setGlobally (boolean): Set as global default provider

Request Body:

Authentication

Authenticate User

Request Body:

Response:

Authenticate with Advanced Options

Parameters:

  • providerType (string): Provider type

  • setGlobally (boolean): Set as global default

  • autoReplicationMode (boolean): Enable auto-replication

  • autoFailOverMode (boolean): Enable auto-failover

  • autoLoadBalanceMode (boolean): Enable load balancing

  • autoReplicationProviders (string): Comma-separated replication providers

  • autoFailOverProviders (string): Comma-separated failover providers

  • AutoLoadBalanceProviders (string): Comma-separated load balance providers

  • waitForAutoReplicationResult (boolean): Wait for replication result

  • showDetailedSettings (boolean): Show detailed settings

Token Authentication

Parameters:

  • JWTToken (string): JWT token for authentication

Refresh Token

Request Body:

Revoke Token

Request Body:

Password Management

Forgot Password

Request Body:

Response:

Validate Reset Token

Request Body:

Reset Password

Request Body:

Avatar Management

Get Avatar by ID

Parameters:

  • id (string): Avatar UUID

Response:

Get Avatar by Username

Get Avatar by Email

Get All Avatars

Query Parameters:

  • limit (int, optional): Number of results (default: 50)

  • offset (int, optional): Number to skip (default: 0)

  • sortBy (string, optional): Sort field (default: "createdAt")

  • sortOrder (string, optional): Sort order (asc/desc, default: "desc")

Response:

Search Avatars

Request Body:

Avatar Portraits

Get Avatar Portrait

Response:

Upload Avatar Portrait

Form Data:

  • file: Image file (JPEG, PNG, GIF)

  • avatarId: Avatar ID (optional, uses current user if not provided)

Response:

Avatar Updates

Update Avatar by ID

Request Body:

Update Avatar by Email

Update Avatar by Username

Avatar Deletion

Delete Avatar by ID

Delete Avatar by Username

Delete Avatar by Email

Avatar Sessions

Get Avatar Sessions

Response:

Logout Session

Request Body:

Logout All Sessions

Error Responses

Authentication Error

Validation Error

Not Found Error

Karma API

The Karma API provides a comprehensive digital reputation system that tracks positive and negative actions, manages karma weighting, and maintains historical records. It supports voting mechanisms, statistics, and cross-provider karma management.

Karma Retrieval

Get Karma for Avatar

Parameters:

  • avatarId (string): Avatar UUID

Response:

Get Karma with Provider

Parameters:

  • avatarId (string): Avatar UUID

  • providerType (string): Provider type (e.g., "Ethereum", "MongoDB")

  • setGlobally (boolean): Set as global default provider

Get Karma Akashic Records

Response:

Karma Weighting

Get Positive Karma Weighting

Parameters:

  • karmaType (string): Type of karma (e.g., "helpful", "creative", "collaborative")

Response:

Get Negative Karma Weighting

Karma Voting

Vote for Positive Karma Weighting

Parameters:

  • karmaType (string): Type of karma

  • weighting (number): Weighting value (0.1 to 5.0)

Request Body:

Response:

Vote for Negative Karma Weighting

Karma Management

Set Positive Karma Weighting

Request Body:

Set Negative Karma Weighting

Karma Operations

Add Karma to Avatar

Request Body:

Response:

Remove Karma from Avatar

Request Body:

Karma Statistics

Get Karma Stats

Response:

Get Karma History

Query Parameters:

  • limit (int, optional): Number of records (default: 50)

  • offset (int, optional): Number to skip (default: 0)

  • karmaType (string, optional): Filter by karma type

  • startDate (string, optional): Start date (ISO format)

  • endDate (string, optional): End date (ISO format)

Response:

Error Responses

Invalid Karma Type

Insufficient Permissions

Avatar Not Found

Data API

The Data API provides comprehensive data management capabilities including holon operations, file management, and data storage with advanced provider support, auto-replication, and failover mechanisms.

Holon Operations

Load Holon

Request Body:

Response:

Load Holon with Advanced Options

Parameters:

  • id (string): Holon UUID

  • loadChildren (boolean): Load child holons

  • recursive (boolean): Load recursively

  • maxChildDepth (int): Maximum child depth

  • continueOnError (boolean): Continue on errors

  • version (string): Version to load

  • providerType (string): Provider type

  • setGlobally (boolean): Set as global default

  • autoReplicationMode (boolean): Enable auto-replication

  • autoFailOverMode (boolean): Enable auto-failover

  • autoLoadBalanceMode (boolean): Enable load balancing

  • autoReplicationProviders (string): Replication providers

  • autoFailOverProviders (string): Failover providers

  • autoLoadBalanceProviders (string): Load balance providers

  • waitForAutoReplicationResult (boolean): Wait for replication

  • showDetailedSettings (boolean): Show detailed settings

Load All Holons

Request Body:

Response:

Load Holons for Parent

Request Body:

Holon Management

Save Holon

Request Body:

Response:

Save Holon Off-Chain

Request Body:

Delete Holon

Parameters:

  • id (string): Holon UUID

Response:

Delete Holon with Options

File Operations

Save File

Form Data:

  • file: File to upload

  • metadata: JSON metadata (optional)

  • encrypt: Boolean (optional, default: false)

  • compress: Boolean (optional, default: false)

Response:

Load File

Parameters:

  • id (string): File UUID

Response:

Data Operations

Save Data

Request Body:

Response:

Load Data

Request Body:

Response:

Error Responses

Holon Not Found

File Upload Error

Provider Error

Last updated