⚙️
API Docs
  • 👋WELCOME
    • About Daolity
    • Quick Start
  • Start Your Journey
    • Daolity registration & Account Setup
    • Obtaining API Keys & SDK Integration credentials
    • Prerequisites to use Daolity API & SDKs
    • Daolity SDK Installation
      • Basic Example 1
      • Basic Example 2
      • Basic Example 3
  • Daolity Setup
    • Daolity Setup
      • Overview
      • Mainnet Setup
        • Page 3
      • Testnet Setup
      • Using Windows
      • Using Mac
    • Daolity Dashboard
      • Overview
      • Creating & Managing Keys
      • Viewing, Editing & Revoking Keys
      • Team Access Management
      • Transaction Tracking
      • API Monitoring
  • Daolity SDKs
    • Overview
    • JavaScript SDK
    • TypeScript SDK
    • React SDK
    • Go SDK
  • NFT Collection Endpoints
    • NFT Total Supply
    • isWhitelisted
    • addUserAddressToWhitelist
    • SetPaused
    • RemoveNftFromCollection
    • WalletOfOwner
    • TokenURI
    • setCost
    • mint
    • mintForAddress
    • mintForFree
    • Withdraw
  • 💼Wallets
    • Overview
    • Getting Started
    • Wallet 1
      • Usage
      • Configuration
      • Methods
    • Wallet 2
    • Wallet 3
    • Setting Up Staking For Daolity Tools( For All Wallets)
  • Reference
    • Overview
    • API Reference
      • Supported HTTP Methods
      • Responses & Error Codes
      • DEMO
      • Data Formatting & Encoding Standards
  • Use Cases, Tutorials & Templates
    • Examples Use Cases
    • Step-by-Step Tutorials for Common Integration Scenarios
      • Simple DeFi Lending Dapp
      • NFT Marketplace
      • Minting NFT Collection
      • Token-gated Access Dapp
    • Templates
  • Pricing
    • Overview
    • Daolity Billing Model
    • Billing Case Study
  • Glossary
    • Key Terminologies
    • Definitions & Explanation Of Terms
  • Troubleshooting and FAQs
    • Common Integration Issues and Solutions
    • FAQs
    • Troubleshooting Guide
Powered by GitBook
On this page
  1. Reference
  2. API Reference

DEMO

PreviousResponses & Error CodesNextData Formatting & Encoding Standards

Last updated 1 year ago

Good to know: All the methods shown below are synced to an example Swagger file URL and are kept up to date automatically with changes to the API.

User actions

Creating users

Logs user into the system

get
Query parameters
usernamestringRequired

The user name for login

passwordstringRequired

The password for login in clear text

Responses
200
successful operation
Responsestring
400
Invalid username/password supplied
get
GET /v2/user/login HTTP/1.1
Host: petstore.swagger.io
Accept: */*
text

Logs out current logged in user session

get
Responses
default
successful operation
get
GET /v2/user/logout HTTP/1.1
Host: petstore.swagger.io
Accept: */*
default

successful operation

No content

  • User actions
  • GETLogs user into the system
  • GETLogs out current logged in user session
  • Creating users
  • POSTCreates list of users with given input array
  • POSTCreates list of users with given input array

Creates list of users with given input array

post
Body
idinteger · int64Optional
usernamestringOptional
firstNamestringOptional
lastNamestringOptional
emailstringOptional
passwordstringOptional
phonestringOptional
userStatusinteger · int32Optional

User Status

Responses
default
successful operation
post
POST /v2/user/createWithList HTTP/1.1
Host: petstore.swagger.io
Content-Type: application/json
Accept: */*
Content-Length: 128

[
  {
    "id": 1,
    "username": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "password": "text",
    "phone": "text",
    "userStatus": 1
  }
]
default

successful operation

No content

Creates list of users with given input array

post
Body
idinteger · int64Optional
usernamestringOptional
firstNamestringOptional
lastNamestringOptional
emailstringOptional
passwordstringOptional
phonestringOptional
userStatusinteger · int32Optional

User Status

Responses
default
successful operation
post
POST /v2/user/createWithArray HTTP/1.1
Host: petstore.swagger.io
Content-Type: application/json
Accept: */*
Content-Length: 128

[
  {
    "id": 1,
    "username": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "password": "text",
    "phone": "text",
    "userStatus": 1
  }
]
default

successful operation

No content