Dashboard › publish › Distillation
86cec16c-66c0-47c8-95b3-84f587dbc305["lore_tm_v1_is6sU5FpSbqm71RsFoMwF3fhkhqEV87pqWBl8oXAoM8"]
Authorization: Bearer <YOUR-TOKEN>, Accept: application/vnd.github+json, and X-GitHub-Api-Version: 2026-03-10; the provided curl examples omit these standard headers.GET /user retrieves the authenticated user. OAuth app tokens and personal access tokens (classic) need read:user or broader user scope for the private-user response; otherwise they receive the public-user response. Status codes: 200, 304, 401, and 403.GET /user response additionally requires private_gists, total_private_repos, owned_private_repos, disk_usage, collaborators, and two_factor_authentication; private/public response type is independent of the private-profile setting.PATCH /user updates authenticated-user fields name, email, blog, twitter_username, company, location, hireable, and bio. A private email remains hidden even if supplied in the update. Status codes: 200, 304, 401, 403, 404, and 422.GET /user/{account_id} retrieves public information using a durable integer user ID rather than a changeable login. For an Enterprise Managed User or qualifying GitHub App bot, the caller must have organization access or receives 404; status codes are 200 and 404.GET /users lists personal and organization accounts in signup order. Pagination is exclusively based on since; since returns IDs greater than the supplied user ID, per_page defaults to 30 and has a maximum of 100, and the Link header provides the next page. Status codes: 200 and 304.GET /users/{username} returns publicly available GitHub-account information. For a private profile, followers and following are 0 unless authenticated as that user; self-authentication returns actual values even without OAuth scopes. Status codes: 200 and 404.{/privacy} in a user response’s events_url URI template with /public to retrieve only public events. Omit it to retrieve public events plus private events when authenticated as that user.email is the publicly visible primary email and is null when none is public; publicly visible email addresses are only returned to authenticated callers. The Emails API can list the authenticated user’s email addresses and toggle a primary email’s public visibility.GET /users/{username}/hovercard returns contextual information related to pull requests, issues, repositories, and organizations. Optional paired parameters are subject_type (organization, repository, issue, or pull_request) and subject_id; each is required when the other is used. OAuth app tokens and personal access tokens (classic) require the repo scope. Status codes: 200, 404, and 422; the response contains required contexts objects with required message and octicon strings.