View a single user's meta data.
curl -X POST https://{SERVER_IP}/users/useraccountname \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'X-HTTP-Method-Override: GET' \
-H 'Accept: application/json'
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data": {
"id": "useraccountname",
"parent": "root",
"type": "user",
"suspended": false,
"locale": "en",
"email": "address@website.com",
"websites": [
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com",
"label": "website.com",
"server": "website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "localhost",
"user": "useraccountname_mytestdb1",
"name": "useraccountname_mytestdb1",
"pass": "exampledbpassword1"
}
],
"vhosts": {
"http://website.com": "public_html"
}
},
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com/subdomain",
"server": "website.com",
"label": "subdomain.website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "123.123.123.123:3307",
"user": "useraccountname_mytestdb2",
"name": "useraccountname_mytestdb2",
"pass": "exampledbpassword2"
}
],
"vhosts": {
"http://subdomain.website.com": "public_html/subdomain",
"https://subdomain.website.com": "public_html/subdomain"
}
}
]
}
}