HFS 3
  1. accounts
HFS 3
  • Introduction
  • Front-end
    • List files
      GET
    • Upload
      PUT
    • Upload
      POST
    • Delete
      DELETE
    • Create folder
      POST
  • Admin
    • misc
      • get config
      • set config
    • accounts
      • add account
        POST
      • update account
        POST
      • list accounts
        GET
      • delete account
        POST
      • list usernames
        GET
      • get account
        GET
      • list admins
        GET
      • safer update of the password
        POST
    • VFS
    • plugins
      • get plugin config
      • set plugin config
    • monitoring
    • log
  1. accounts

get account

GET
/~/api/get_account
you can also call this with POST

Request

Query Params
username
string 
optional

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost/~/api/get_account?username'

Responses

🟢200Success
application/json
Body
username
string 
required
password
string 
optional
belongs
array[string]
optional
ignore_limits
boolean 
optional
disable_password_change
boolean 
optional
admin
boolean 
optional
redirect
string 
optional
disabled
boolean 
optional
expire
string <date-time>
optional
days_to_live
number 
optional
Example
{
    "username": "string",
    "password": "string",
    "belongs": [
        "string"
    ],
    "ignore_limits": true,
    "disable_password_change": true,
    "admin": true,
    "redirect": "string",
    "disabled": true,
    "expire": "2019-08-24T14:15:22Z",
    "days_to_live": 0
}
Modified at 2025-05-30 14:11:36
Previous
list usernames
Next
list admins
Built with