/ftp/accounts
0.1.0Unchanged since publicationList FTP accounts and report FTP status
filesreadallAdministrators can see every customer's FTP accounts. Resellers can see their own accounts and those of their customers. Customers can see their own accounts. The response lists accounts by owner, then by login. It also reports whether FTP is installed, enabled, and running, whether TLS is required, the FTP port and passive port range, the ProFTPD version, and the service unit.
With no q, status, owner, page, or per_page, the response contains accounts and status. Use user in this view to select one customer's accounts. The detailed view uses q, status, owner, page, and per_page and includes the owner's package, the on-disk directory in path, and the last recorded sign-in in last_login_at. UrbeStack updates last_login_at hourly from ProFTPD sign-ins in the system journal. An invalid status returns 400.
Use page or per_page to request a page. Omit both to receive every matching account. In the detailed response, counts applies the other filters with status omitted. The all object gives the account and owner totals visible to the caller before filtering.
As a command
Run as root on the serverParameters
userquery ·Usernameqquery ·string, up to 200 charactersstatusquery ·string, one of old, never, expiringownerquery ·Usernamepagequery ·integer, 1 or moreper_pagequery ·integer, 1 to 1000Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/ftp/accounts?user=alice&q=text&status=old&owner=alice&page=1&per_page=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"accounts": [
{
"created_at": "2026-09-09T10:15:00Z",
"directory": "text",
"expires_at": "2026-09-16T10:15:00Z",
"id": 1,
"last_login_at": "text",
"name": "alice",
"package": "basic",
"path": "public_html/index.php",
"user": "alice",
"user_id": 2
}
],
"all": {
"owners": 1,
"total": 1
},
"counts": {
"all": 1,
"expiring": 1,
"never": 1,
"old": 1
},
"more": true,
"page": 1,
"pages": 1,
"per_page": 1,
"status": {
"active": true,
"enabled": true,
"installed": true,
"passive_ports": "text",
"port": 8443,
"require_tls": true,
"running": true,
"state": "up",
"unit": "text",
"version": "0.0.1"
},
"total": 1
}Errors
9 errors, each a status and a sentence400Invalid <what>: expected a non-negative integer400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved400per_page is a number from 1 to 1000400status is one of old, never, expiring401Authentication required404User '<f.owner>' not found404User '<family>' not found404User '<user>' not foundurbestack.com/docs/api/get-ftp-accounts/