---
title: "Get User By Username"
method: GET
path: "/users/{username}"
tags: ["users"]
---

# Get User By Username

`GET /users/{username}`

## Request

- Base URL: `https://api.codeofpaper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.codeofpaper.com/users/{username}`
- Auth: none declared

Get public user profile by GitHub username.

## Path parameters

- `username` string, required

## Response `200`

Successful Response

- UserResponse: Response model for user information.
  - `id` string, required
  - `github_id` integer, required
  - `github_username` string, required
  - `display_name` string, nullable
  - `github_avatar_url` string, nullable
  - `email` string, nullable
  - `user_type` string, required
  - `is_verified_author` boolean, required
  - `reputation_points` integer, required
  - `contribution_count` integer, required
  - `created_at` string, date-time, required
  - `last_login_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api.md) · [All operations](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/revisions/94ea47fd4aa1?raw)
