NFT Chats
NFT related API endpoints:
CreateCommunityChatitem creates GroupChatitem just with community tag (likely could be consolidated)
Community Chat Data
OK
POST /v1/community HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 159
{
"context_type": "text",
"fromaddr": "text",
"id": 1,
"message": "text",
"nftaddr": "text",
"sender_name": "text",
"timestamp": "text",
"timestamp_dtm": "text",
"type": "text"
}OK
[
{
"context_type": "text",
"fromaddr": "text",
"id": 1,
"message": "text",
"nftaddr": "text",
"sender_name": "text",
"timestamp": "text",
"timestamp_dtm": "text",
"type": "text"
}
]TODO: need a creation API for communities, which includes specificied welcome message text, Twitter handle, page title
Wallet Address
OK
GET /v1/community/{community}/{address} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"has_messaged": true,
"is_verified": true,
"joined": true,
"logo": "text",
"members": 1,
"messages": [
{
"context_type": "text",
"fromaddr": "text",
"id": 1,
"message": "text",
"nftaddr": "text",
"sender_name": "text",
"timestamp": "text",
"timestamp_dtm": "text",
"type": "text"
}
],
"name": "text",
"social": [
{
"type": "text",
"username": "text"
}
],
"tweets": [
{
"attachments": {
"media_keys": [
"text"
]
},
"author_id": "text",
"created_at": "text",
"id": "text",
"media": {
"media_keys": [
"text"
]
},
"text": "text",
"user": {
"id": "text",
"name": "text",
"profile_image_url": "text",
"username": "text"
}
}
]
}
]NFTs have a public comment section
Wallet Address
OK
GET /v1/get_comments/{nftaddr}/{nftid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"fromaddr": "text",
"id": 1,
"message": "text",
"name": "text",
"nftaddr": "text",
"nftid": 1,
"timestamp": "text"
}
]NFTs have a public comment section
NFT Contract Address
NFT ID
OK
GET /v1/get_comments_cnt/{nftaddr}/{nftid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
1Get Unread count for specifc NFT context given a wallet address and specific NFT
Wallet Address
NFT Contract Address
NFT ID
OK
GET /v1/get_unread_cnt/{address}/{nftaddr}/{nftid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
1Get ALL NFT context items for a given wallet address
Wallet Address
OK
GET /v1/getnft_chatitems/{address} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"encrypted_sym_lit_key": "text",
"fromaddr": "text",
"id": 1,
"lit_access_conditions": "text",
"message": "text",
"nftaddr": "text",
"nftid": "text",
"read": true,
"sender_name": "text",
"timestamp": "text",
"timestamp_dtm": "text",
"toaddr": "text"
}
]Get all specified NFT contract and ID items for a given wallet address
Wallet Address
NFT Contract Address
NFT ID
OK
GET /v1/getnft_chatitems/{address}/{nftaddr}/{nftid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"encrypted_sym_lit_key": "text",
"fromaddr": "text",
"id": 1,
"lit_access_conditions": "text",
"message": "text",
"nftaddr": "text",
"nftid": "text",
"read": true,
"sender_name": "text",
"timestamp": "text",
"timestamp_dtm": "text",
"toaddr": "text"
}
]Get NFT Related Chat Items For Given NFT Contract and ID, between two wallet addresses (TO and FROM are interchangable)
Get ALL NFT context items for a specifc NFT context convo between two wallets
NFT Contract Address
NFT ID
TO: Wallet Address
FROM: Wallet Address
OK
GET /v1/getnft_chatitems/{fromaddr}/{toaddr}/{nftaddr}/{nftid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"encrypted_sym_lit_key": "text",
"fromaddr": "text",
"id": 1,
"lit_access_conditions": "text",
"message": "text",
"nftaddr": "text",
"nftid": "text",
"read": true,
"sender_name": "text",
"timestamp": "text",
"timestamp_dtm": "text",
"toaddr": "text"
}
]Get ALL NFT context items for a given wallet address
NFT Contract Address
NFT ID
OK
GET /v1/getnft_chatitems/{nftaddr}/{nftid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"encrypted_sym_lit_key": "text",
"fromaddr": "text",
"id": 1,
"lit_access_conditions": "text",
"message": "text",
"nftaddr": "text",
"nftid": "text",
"read": true,
"sender_name": "text",
"timestamp": "text",
"timestamp_dtm": "text",
"toaddr": "text"
}
]Last updated