Add one or more social accounts to the authenticated user’s profile. OAuth app tokens and personal access tokens (classic) need the user scope to use this endpoint.
Returns a 204 if the given user is blocked by the authenticated user. Returns a 404 if the given user is not blocked by the authenticated user, or if the given user account has been identified as spam by GitHub.
Adds a GPG key to the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the write:gpg_key scope to use this endpoint.
Adds a public SSH key to the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the write:gpg_key scope to use this endpoint.
Creates an SSH signing key for the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the write:ssh_signing_key scope to use this endpoint.
Removes a GPG key from the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the admin:gpg_key scope to use this endpoint.
Removes a public SSH key from the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the admin:public_key scope to use this endpoint.
Deletes one or more social accounts from the authenticated user’s profile. OAuth app tokens and personal access tokens (classic) need the user scope to use this endpoint.
Deletes an SSH signing key from the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the admin:ssh_signing_key scope to use this endpoint.
Note that you’ll need to set Content-Length to zero when calling out to this endpoint. For more information, see "HTTP verbs." OAuth app tokens and personal access tokens (classic) need the user:follow scope to use this endpoint.
Provides publicly available information about someone with a GitHub account. The email key in the following response is the publicly visible email address from your GitHub profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email, then it will have a value of null. You only see publicly visible email addresses when authenticated with GitHub. For more information, see Authentication. The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "Emails API".
Provides hovercard information. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations. The subject_type and subject_id parameters provide context for the person’s hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about octocat who owns the Spoon-Knife repository, you would use a subject_type value of repository and a subject_id value of 1300192 (the ID of the Spoon-Knife repository). OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
View extended details for a single public SSH key. OAuth app tokens and personal access tokens (classic) need the read:public_key scope to use this endpoint.
Gets extended details for an SSH signing key. OAuth app tokens and personal access tokens (classic) need the read:ssh_signing_key scope to use this endpoint.
Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. Note: Pagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of users.
Lists all of your email addresses, and specifies which one is visible to the public. OAuth app tokens and personal access tokens (classic) need the user:email scope to use this endpoint.
Lists your publicly visible email address, which you can set with the Set primary email visibility for the authenticated user endpoint. OAuth app tokens and personal access tokens (classic) need the user:email scope to use this endpoint.
Lists the public SSH keys for the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the read:public_key scope to use this endpoint.
Lists the SSH signing keys for the authenticated user’s GitHub account. OAuth app tokens and personal access tokens (classic) need the read:ssh_signing_key scope to use this endpoint.
Note: If your email is set to private and you send an email parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.