GitHub Enterprise Users API

The Users API from GitHub Enterprise — 2 operation(s) for users.

GitHub OpenAPI

Operations 55

1 of 55 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /user Get the authenticated user #
PATCH /user Update the authenticated user #
GET /user/blocks List users blocked by the authenticated user #
GET /user/blocks/{username} Check if a user is blocked by the authenticated user #
PUT /user/blocks/{username} Block a user #
DELETE /user/blocks/{username} Unblock a user #
PATCH /user/email/visibility Set primary email visibility for the authenticated user #
GET /user/emails List email addresses for the authenticated user #
POST /user/emails Add an email address for the authenticated user #
DELETE /user/emails Delete an email address for the authenticated user #
GET /user/followers List followers of the authenticated user #
GET /user/following List the people the authenticated user follows #
GET /user/following/{username} Check if a person is followed by the authenticated user #
PUT /user/following/{username} Follow a user #
DELETE /user/following/{username} Unfollow a user #
GET /user/gpg_keys List GPG keys for the authenticated user #
POST /user/gpg_keys Create a GPG key for the authenticated user #
GET /user/gpg_keys/{gpg_key_id} Get a GPG key for the authenticated user #
DELETE /user/gpg_keys/{gpg_key_id} Delete a GPG key for the authenticated user #
GET /user/issue-fields List issue fields #
POST /user/issue-fields Create an issue field #
PATCH /user/issue-fields/{issue_field_id} Update an issue field #
DELETE /user/issue-fields/{issue_field_id} Delete an issue field #
GET /user/issue-types List issue types #
POST /user/issue-types Create an issue type #
PUT /user/issue-types/{issue_type_id} Update an issue type #
DELETE /user/issue-types/{issue_type_id} Delete an issue type #
GET /user/keys List public SSH keys for the authenticated user #
POST /user/keys Create a public SSH key for the authenticated user #
GET /user/keys/{key_id} Get a public SSH key for the authenticated user #
DELETE /user/keys/{key_id} Delete a public SSH key for the authenticated user #
GET /user/public_emails List public email addresses for the authenticated user #
GET /user/social_accounts List social accounts for the authenticated user #
POST /user/social_accounts Add social accounts for the authenticated user #
DELETE /user/social_accounts Delete social accounts for the authenticated user #
GET /user/ssh_signing_keys List SSH signing keys for the authenticated user #
POST /user/ssh_signing_keys Create a SSH signing key for the authenticated user #
GET /user/ssh_signing_keys/{ssh_signing_key_id} Get an SSH signing key for the authenticated user #
DELETE /user/ssh_signing_keys/{ssh_signing_key_id} Delete an SSH signing key for the authenticated user #
GET /user/{account_id} Get a user using their ID #
GET /users List users conformant #
GET /users/{username} Get a user #
POST /users/{username}/attestations/bulk-list List attestations by bulk subject digests #
POST /users/{username}/attestations/delete-request Delete attestations in bulk #
DELETE /users/{username}/attestations/digest/{subject_digest} Delete attestations by subject digest #
DELETE /users/{username}/attestations/{attestation_id} Delete attestations by ID #
GET /users/{username}/attestations/{subject_digest} List attestations #
GET /users/{username}/followers List followers of a user #
GET /users/{username}/following List the people a user follows #
GET /users/{username}/following/{target_user} Check if a user follows another user #
GET /users/{username}/gpg_keys List GPG keys for a user #
GET /users/{username}/hovercard Get contextual information for a user #
GET /users/{username}/keys List public keys for a user #
GET /users/{username}/social_accounts List social accounts for a user #
GET /users/{username}/ssh_signing_keys List SSH signing keys for a user #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github-enterprise:github-enterprise-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-enterprise-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.1.4
  title: GitHub v3 REST Users API
  description: GitHub's v3 REST API.
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  x-github-plan: ghec
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (166 KB total) ---
# Full source: https://artifacts.apis.io/github-enterprise/openapi/github-enterprise-users-api-openapi.yml