Relation Graph API
Relation ProtocolRelation ONE APIRelation Graph API
English
English
  • Overview
    • Relation Graph
  • QUICK START
    • Quick Start
    • Rate Limits
    • Use Lit Protocol to Decrypt
  • API
    • Relation One Profile
    • NFT List
    • SBT List
    • User Tag
    • Relationship Graph
    • Multi-dimensional Recommendation
    • Secure Cross-Platform Identity Linking
    • Mutual Friend
    • Mutual Contract Interaction
    • Unified Identity Verification
Powered by GitBook
On this page
  1. API

User Tag

PreviousSBT ListNextRelationship Graph

Last updated 1 year ago

GET /api/v1/tag

  • Through this API, you will be able to query the tag data authorized by users. Different types of projects or organizations issue SBTs through the , which are held by various users. This also indicates that users have participated in related projects or activities and have on-chain relationships with different types of projects or organizations. We will tag users based on the type of project or organization, such as: Game-Fi, De-Fi, etc. This data needs to be .

  • Header

Field
Type
Required
Remarks

ApiKey

String

true

  • Request Parameters

Field
Type
Required
Remarks

address

String

fasle

EOA Address

twitterUsername

String

fasle

twitter username

steamId

String

fasle

steamId

sig

String

true

message

String

true

  • Request Example

curl  GET 'https://api.relationlabs.ai/api/v1/tag?address=0x9bd286ef4e3d9ec1af6c6ae9da2f0b3617deab13&sig=0x0011111&message=example.com%20wants%20you%20to%20sign%20in%20with...' \
--header 'ApiKey: <ApiKey>'
  • Response Parameters

Field
Type
Remarks

code

String

Return code

desc

String

Return message

data

EncryptedData

Tag data encrypted using Lit Protocol; decryption requires user authorization

Data structure after decrypting EncryptedData

[
  "DAO",
  "Defi",
  "game"
]
  • Response Body

{
  "code": "0",
  "desc": "success",
  "data": {
    "encryptedString": "xxx",
    "encryptedSymmetricKey": "xxx"
  }
}
  • Return Code

code
desc
Remarks

0

success

the flag for a successful request

obtained from the administrator

User authorization information (when provided with authorization details, developers can the returned results).

Original text of user authorization information signature (Please refer to the original signature splicing.The statement field needs to be:Access to User Tag.))

Relation Protocol
decrypted using the Lit Protocol
ApiKey
use Lit Protocol to decrypt
SIWE