Get user

Fetch a user by username (staff or self).

Endpoint

GET /api/v1/users/{username}
StaffSelf

Usage

curl --header "Authorization: Bearer $GHIT_API_TOKEN" "$GHIT_API_URL/v1/users/alice"

Success

200 OK with user record.

{ "uuid": "...", "username": "alice", "email": "alice@example.com" }

Errors

  • 404 Not Found when username does not exist.

Common auth errors are documented on the API overview page.