GET /user

This endpoint allows you to get API usage & limits information.

get
Get user info

https://api.de-facto.pro/v1/user
Request
Response
Headers
X-Api-Key
required
string
Authentication token to access the API. Keep it in secret.
200: OK
User information returned on success
{
"result": {
"name": "YOUR-NAME-HERE",
"access_token": "YOUR-X-API-KEY-HERE",
"usage": 125, // how many writes you made
"limit": 500 // your writes limit, 0 — no limit
}
}
401: Unauthorized
Invalid access token has given in X-Api-Key header or account suspended
{
"status": false,
"code": 401,
"error": "Your request was made with invalid credentials."
}

API usage & limits are calculated in writes (not Entry Credits). That means creating 1 entry (no matter its size 1 KB or 10 KB) increases usage by 1. So, creating 1 chain increases usage by 2 (because off the chain and the first entry of chain are created simultaneously while creating chain).