Get your free beta license ↗
API operation · users group
GET

/users/{name}

First published 3 Oct 20260.1.0Unchanged since publication

Get a user account

Who may call it
AdministratorResellerCustomer
Token scope, any of
usersreadall
Answers200 OK

Administrators can retrieve any account. Resellers can retrieve their own account and their customers' accounts. Customers can retrieve their own account.

The response contains the account in user. When present, system_password indicates whether a system password is set. The account details omit password hashes. The package_shell and package_backups fields report what the package allows and are null without a package.

For customers and resellers, home gives the path configured through home_base and uid gives the Linux user ID. uid is null when the Linux account is missing. Both fields are null for administrators.

Parameters

namepath ·UsernameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/users/alice" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "user": {
    "backups": true,
    "bandwidth_bytes": 1,
    "bandwidth_cut": true,
    "bandwidth_cut_at": "text",
    "bandwidth_limit_bytes": 1,
    "created_at": "2026-09-09T10:15:00Z",
    "customers": 1,
    "disk_limit_bytes": 1,
    "email": "alice@example.com",
    "home": "text",
    "id": 1,
    "move_state": "leaving",
    "name": "alice",
    "owner": "text",
    "owner_id": 1,
    "package": "basic",
    "package_backups": true,
    "package_id": 1,
    "package_shell": true,
    "role": "user",
    "second_factor": true,
    "shell": true,
    "status": "active",
    "system_password": true,
    "uid": 1
  }
}

Errors

3 errors, each a status and a sentence
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-users-name/