User API

Interact with the user API to get information about your user.

get
Get current user

https://api.ginplatform.io/user
This endpoint returns the current user model
Request
Response
Headers
Authorization
required
string
Bearer API_KEY
200: OK
Cake successfully retrieved.
{
"id": "0000b620-9498-11e8-9f79-015527f0000",
"email": "user@ginplatform.io",
"fullname": "Test User",
"country": "United Kingdom",
"balance": 42.4923,
"currency_balance": 103.26,
"balance_address": "GbVxhjhTgvT9mquF3gt1MzF1GTJpZ0000",
"created_at": "2018-11-10T15:59:29.594Z",
"hash": "xxx",
"currency": "USD",
"civic": true,
"can_vote_tiers": true,
"notification_masternode_status": true,
"api": true,
"api_key": "xxx",
"terms": true,
"privacy": true
}

get
Get transactions

https://api.ginplatform.io/user/transactions
This endpoint returns GINcoin transactions on the user account, limited to 100 per page.
Request
Response
Headers
Authorization
required
string
Bearer API_KEY
Query Parameters
page
optional
integer
The page to retrieve. Defaults to 1.
200: OK
{
"total": 2,
"list": [
{
"description": "Daily hosting fee for 1d9f1930-de86-11e8-93ee-31e36a5e0000 (dedicated)",
"amount": -0.20444,
"created_at": "2018-11-14T14:35:34.022Z",
"balance": 1.59112
},
{
"description": "Daily hosting fee for 2ecf2310-d92e-11e8-b043-059d3c830000 (dedicated)",
"amount": -0.20444,
"created_at": "2018-11-14T13:40:30.317Z",
"balance": 1.79556
},
{
"description": "Deposit",
"amount": 2,
"created_at": "2018-11-14T13:35:30.972Z",
"balance": 2
}
]
}