v7

latestOpenAPI 3.0.1raw.githubusercontent.com2026-08-01426118.4 KB
Admin Utils

Get user info

Get detailed info for a single user.

get/api/admin/v1/user/info

Query parameters

user_idstring

User ID. Either user_id or id may be supplied.

idstring

Alias for user_id. If both id and user_id are supplied, id takes precedence.

Response

successful

Example response

{
  "user": {
    "id": 42,
    "username": "orpheus",
    "display_name": "orpheus",
    "slack_uid": "U0266FRGP",
    "slack_username": "orpheus",
    "github_username": "orpheus",
    "timezone": "America/New_York",
    "country_code": "US",
    "admin_level": "default",
    "trust_level": "blue",
    "created_at": "2024-03-20T15:30:00Z",
    "updated_at": "2024-03-20T15:30:00Z",
    "last_heartbeat_at": 1710946200,
    "email_addresses": [
      "orpheus@hackclub.com"
    ],
    "api_keys_count": 2,
    "stats": {
      "total_heartbeats": 15234,
      "total_coding_time": 187200,
      "languages_used": 8,
      "projects_worked_on": 12,
      "days_active": 47
    }
  }
}