Enclave API Documentation
  • Welcome
  • Getting Started
    • Integrations
  • SDK
  • Integrating with Privy
  • Models
    • Passkey Models
    • Transaction Models
    • User Model
    • Smart Balance
  • API Reference
    • Health Check
    • User Details
    • Smart Balance
    • Smart Account Creation
    • Smart Account Transactions
    • Passkey Account Creation
    • Passkey Account Authentication
    • Passkey Account Transactions
    • Session Key
  • COMING SOON
    • SDKs
    • Network Support
    • Protocol Integration
    • Mobile Integration
    • Custom Integration
Powered by GitBook
On this page
  1. API Reference

User Details

PreviousHealth CheckNextSmart Balance

Last updated 9 months ago

Get user details

get

Get user details by username

Query parameters
usernamestringRequired

The username of the user

Example: john_doe
Responses
200
User details retrieved successfully
application/json
400
Username not provided
application/json
404
User not found
application/json
get
GET /user?username=text HTTP/1.1
Host: 
Accept: */*
{
  "username": "john_doe",
  "wallet": {
    "scw_address": "0x1234567890abcdef1234567890abcdef12345678"
  },
  "transactions": [
    {
      "hash": "0xabc...",
      "timestamp": "2024-03-20T10:00:00Z",
      "value": "0.1"
    }
  ]
}

Search for a user

get

Search for a user by username or wallet address

Query parameters
querystringRequired

The username or wallet address to search for

Example: john_doe
Responses
200
Search results retrieved successfully
application/json
get
GET /api/user/search?query=text HTTP/1.1
Host: 
Accept: */*
200

Search results retrieved successfully

{
  "result": [
    {
      "wallet_address": "0x1234567890abcdef1234567890abcdef12345678",
      "username": "john_doe"
    }
  ],
  "message": "Fetch successful"
}

Check username

get

Check if a username exists

Query parameters
usernamestringRequired

The username to check

Responses
200
Username check completed successfully
application/json
500
Internal server error
get
GET /api/user/check-username?username=text HTTP/1.1
Host: 
Accept: */*
{
  "value": true,
  "message": "text"
}
  • GETGet user details
  • GETSearch for a user
  • GETCheck username