Upland User Information
Endpoints to retrieve Upland Users information.
API Definitions
You must provide a Code to your users generated across the endpoint /auth/opt/init. When Upland User grants access for the developer App, a webhook will be sent with a valid access token.
GET /user/profile HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "2da598ba-0abb-44f9-bb30-86416af16a20",
"eosId": "1df22sd3",
"username": "any_username",
"networth": 104927.65,
"level": "Pro",
"avatarUrl": "https://any-url.upland.me",
"initialCity": "San Francisco",
"currentCity": "San Francisco",
"isInJail": false
}You must provide a Code to your users generated across the endpoint /auth/opt/init. When Upland User grants access for the developer App, a webhook will be sent with a valid access token.
GET /user/assets/nfts?currentPage=1&pageSize=1 HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"currentPage": 1,
"pageSize": 10,
"totalResults": 2,
"results": [
{
"id": 1234,
"category": "blkexplorer",
"name": "townhouse",
"rarityLevel": "townhouse",
"thumbnail": "https://any-url.upland.me",
"mintNumber": 0
}
]
}You must provide a Code to your users generated across the endpoint /auth/opt/init. When Upland User grants access for the developer App, a webhook will be sent with a valid access token.
GET /user/balances HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"availableUpx": 130646,
"availableSpark": 2.5,
"stakedSpark": 1.2,
"availableSends": 0
}You must provide a Code to your users generated across the endpoint /auth/opt/init. When Upland User grants access for the developer App, a webhook will be sent with a valid access token.
GET /user/assets/properties?currentPage=1&pageSize=1 HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"currentPage": 1,
"pageSize": 10,
"totalResults": 2,
"results": [
{
"id": 55334346,
"address": "1467 28TH AVE",
"city": "San Francisco",
"neighborhood": {
"id": 798785521654878,
"name": "ALAMO SQUARE"
}
}
]
}Last updated