Endpoints to retrieve Upland Users information.
Last updated 2 years ago
You must provide a Code to your users generated across the endpoint /auth/opt/init. When Upland User grants access to the developer App, a webhook will be sent with a valid access token. to check the authentication session.
GET /user/profile HTTP/1.1 Host: Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{ "id": "text", "eosId": "text", "username": "text", "networth": 1, "level": "Visitor", "avatarUrl": "text", "initialCity": "text", "currentCity": "text", "isInJail": true }
GET /user/assets/nfts?currentPage=1&pageSize=1 HTTP/1.1 Host: Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{ "currentPage": 1, "pageSize": 1, "totalResults": 1, "results": [ { "id": 1, "category": "blkexplorer", "name": "text", "rarityLevel": "text", "thumbnail": "text", "mintNumber": 1 } ] }
GET /user/balances HTTP/1.1 Host: Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{ "availableUpx": 1, "availableSpark": 1, "stakedSpark": 1, "availableSends": 1 }
GET /user/assets/properties?currentPage=1&pageSize=1 HTTP/1.1 Host: Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{ "currentPage": 1, "pageSize": 1, "totalResults": 1, "results": [ { "id": 1, "address": "text", "city": "text", "neighborhood": { "id": 1, "name": "text" } } ] }