Account

Information about the current user’s account. (available space, name)

Get the account data

GET /account

Response

Status: 200 OK
{
  "account": {
    "id": 23,
    "name": "Unknown Inc.",
    "plan": "Free Trial",
    "files_count": 42,
    "disk_usage": 10240,
    "disk_usage_limit": 11240,
    "members_count": 4,
    "members_limit": 10,
    "members": [
      {
        "name": "Jane Doe",
        "links": [
          {
            "rel": "self",
            "href": "https://portal.cryptorage.com/api/colleagues/23"
          }
        ]
      }
    ],
    "links": [
      {
        "rel": "self",
        "href": "https://portal.cryptorage.com/api/account"
      }
    ]
  }
}

Error

Status: 404 Not Found
{
  "error": "ERR_ACCOUNT_NOT_FOUND"
}

General error

Status: 500 Server Error
error message