Skip to main content
GET
/
v1
/
users
/
me
Get Current User Info
curl --request GET \
  --url https://api.codegen.com/v1/users/me
{
  "id": 123,
  "email": "<string>",
  "github_user_id": "<string>",
  "github_username": "<string>",
  "avatar_url": "<string>",
  "full_name": "<string>",
  "role": "<string>",
  "is_admin": true
}

Headers

authorization
any

Response

Successful Response

Represents a user in API responses

id
integer
required

Unique user ID

github_user_id
string
required

GitHub user ID

github_username
string
required

GitHub username

email
string | null

User's email address

avatar_url
string | null

URL to user's avatar image

full_name
string | null

User's full name

role
string | null

User's role in the organization (ADMIN, MANAGER, MEMBER)

is_admin
boolean | null

Whether the user is an admin (deprecated, use role instead)