UXLINK
CommunityMediumGithub
UXLINK
UXLINK
  • Introduction
  • UXLINK Social Growth Layer
  • TECHNOLOGY
    • 🦝One Account (Account Abstraction)
    • β›½One Gas (Universal Gas: $UXLINK)
    • Social Growth Protocols
    • πŸ’±Coming Soon: Chain Abstraction
  • API & SDK
    • πŸ›ΊUXLINK Auth
      • Basic authentication
      • UXLINK OAuth 2.0
      • Ingestion API
    • UXLINK Account (Coming Soon)
      • Quick start
      • Ingestion API
    • πŸ₯‚Social Growth Protocols
    • 🩰Smart Contracts & Security
      • UXLINK Official Wallet Addresses
      • Contracts
      • Contracts-Audit-Report
  • UXLINK Ecosystem
    • ✈️AIRDROP 2049
    • πŸ₯‚INVITE mini app
    • πŸ—ΊοΈRoadmap
  • White Paper
    • πŸ“°White Paper
  • Tutorial
    • UXLINK Terms and Conditions of Use
      • List of Prohibited Countries and Regions
    • UXLINK Task Tutorial
      • UXLINK Task Tutorial on Binance Web3 Wallet
      • Binance Web3 Wallet x UXLINK Airdrop Campaign FAQ
      • UXLINK Airdrop CS Channel
      • How to clear Binance App’s cache?
      • How to check UXLINK NFTs in my wallet?
    • Find CEX UID and Deposit address
      • How to Find OKX UID & Deposit Address
      • How to Find GATE UID & Deposit Address
      • How to Find GATE UID & Deposit Address - Ton Network
      • How to Find bitget UID & Deposit Address
  • Changelog
    • πŸ’¬Changelog
  • Troubleshooting
    • ⁉️FAQ
  • Announcement
    • Announcements
    • UXLINK Supply Distribution
Powered by GitBook
On this page
  • POST /interfa/v2/auth/token
  • Query parameters
  • Response fields
  • POST /interfa/v2/user/info
  • Query parameters
  • Response fields
  • POST /interfa/v2/user/relation/list
  • Query parameters
  • Response fields
  • POST /interfa/v2/user/wallet/list
  • Query parameters
  • Response fields

Was this helpful?

  1. API & SDK
  2. UXLINK Auth

Ingestion API

POST /interfa/v2/auth/token

Returns a JSON object containing the AccessToken and RefreshToken.

Query parameters

Param
Type
Required?
Description

Authorization

String

Required(Header)

dappid

String

Required

dappid

code

String

Required when grantType is authorization_code

This allows an application to hit APIs on behalf of users. Known as the auth_code. The auth_code has a time limit of 30 seconds once the App owner receives an approved auth_code from the user. You will have to exchange it with an access token within 30 seconds, or the auth_code will expire.

state

String

Optional

state

refreshToken

String

Required when grantType is refresh_token

Allows an dapp to obtain a new access token without prompting the user via the refresh token flow.

grantType

String

Required

The OAuth framework specifies several grant types for different use cases and a framework for creating new grant types. Examples include authorization_code and refresh_token

redirectUrl

String

Required when grantType is authorization_code

Redirect url given to authorization request

Response fields

Param
Type
Description

accessToken

String

Access tokens are the token that applications use to make API requests on behalf of a user.

refreshToken

String

Allows an application to obtain a new access token without prompting the user via the refresh token flow.

expiresIn

Int64

accessToken validity period, unit: seconds

uuid

String

The unique id of the user

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v2/auth/token' \
-H 'Authorization: <Basic Auth>' \
-H 'Content-Type: application/json' \
-d '{
  "dappid": "DAPPID",
  "code": "CODE",
  "state": "STATE",
  "grantType": "authorization_code",
  "redirectUrl": "https://dapp.uxlink.io/airdrop2049"
}'
// Response Example:
{
  "success": true,
  "msg": "ok",
  "code": 200,
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1...8btpWyFAI_SI",
    "refreshToken": "eyJhbGciOiJIUzI1NiI...8btpWyFAI_SI",
    "expiresIn": 162341315435,
    "uuid": "177123456789"
  }
}

POST /interfa/v2/user/info

Returns a JSON object providing the user's information, AccountInfo.

Query parameters

Param
Type
Required?
Description

Authorization

String

Required(Header)

uuid

String

Required

The unique id of the user

Response fields

Param
Type
Description

uuid

String

The unique id of the user

name

String

The name of the user

avatar

String

The avatar of the user

socialAddress

String

Represents the abstract address ID related to social accounts, focusing on social identity binding.

chainAddress

String

Represents the abstract address ID of the on-chain account, focusing on blockchain-related interactions.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v2/user/info' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
  "uuid": "177123456789"
}'
// Response Example:
{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {
        "uuid": "177123456789",
        "name": "uxlink",
        "avatar": "https://avatar.jpg", 
        "socialAddress": "0xADDRESS", 
        "chainAddress": "0xADDRESS"
    }
}

POST /interfa/v2/user/relation/list

Returns a JSON objects, the user's social relevance.

Query parameters

Param
Type
Required?
Description

Authorization

String

Required(Header)

pageSize

Int

Required

The number of results to be returned per page. This can be a number between 1 and the 500. By default, each page will return 20 results.

nextToken

String

Required

Used to request the next page of results if all results weren't returned with the latest request. It can be null if it is the first page.

uuid

String

Required

The unique id of the user

Response fields

Param
Type
Description

uuid

String

The unique id of the user

name

String

The name of the user

avatar

String

The avatar of the user

socialAddress

String

Represents the abstract address ID related to social accounts, focusing on social identity binding.

chainAddress

String

Represents the abstract address ID of the on-chain account, focusing on blockchain-related interactions.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v2/user/relation/list' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
  "pageSize": 20,
  "nextToken": "1730982011",
  "uuid": "177123456789"
}' 
// Response Example:
{
  "success": true,
  "msg": "ok",
  "code": 200,
  "data": {
    "pageSize": 20,
    "nextPage": true,
    "nextToken": "1730982011",
    "list": [
      {
        "uuid": "12313100000000",
        "name": "ali",
        "avatar": "https://avatar.jpg", 
        "socialAddress": "0xADDRESS", 
        "chainAddress": "0xADDRESS"
      }
    ]
  }
}

POST /interfa/v2/user/wallet/list

Returns a JSON object providing wallet list of user's, include wallet verification.

Query parameters

Param
Type
Required?
Description

Authorization

String

Required(Header)

uuid

String

Required

The unique id of the user

Response fields

Param
Type
Description

uuid

String

The unique id of the user

address

String

Wallet address

walletType

String

Wallet address type: 0 socialAddress 1 metamask, 2 okx 3 coinbase 4 others 5 binance 6 ton wallet

verified

bool

Return true if the wallet address has been signed and verified.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v2/user/wallet/list' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
	"uuid": "177123456789"
}'
// Success Response Example:
{
  "success": true,
  "msg": "ok",
  "code": 200,
  "data": {
    "walletList": [
      {
        "uuid": "177123456789",
        "address": "0xADDRESS",
        "walletType": 1,
        "verified": true
      }
    ]
  }
}
PreviousUXLINK OAuth 2.0NextUXLINK Account (Coming Soon)

Last updated 5 months ago

Was this helpful?

Get AccessToken from

Get AccessToken from

Get AccessToken from

πŸ›Ί
Basic Auth
/interfa/v2/auth/token
/interfa/v2/auth/token
/interfa/v2/auth/token