GitHub Enterprise · Schema

Enterprise Token Inventory Item

A credential or GitHub App installation in an enterprise's token inventory.

Version ControlDevOpsCI/CDCode HostingEnterpriseSelf-HostedSAML SSOSCIMAdvanced SecurityDeveloper Tools

Properties

Name Type Description
inventory_id string Opaque identifier for retrieving this item within the enterprise. Its value can differ between responses for the same credential.
credential_id integernull The credential's ID for audit-log correlation, unique only within its `credential_type`. Null for SSH keys, GitHub App installations, and federated credentials.
hashed_token stringnull Base64-encoded SHA-256 hash of the token, matching `hashed_token` in audit events. Null when not reported.
fingerprint stringnull The SSH key's SHA-256 fingerprint, matching audit events. Null for other credential types.
item_type string
credential_type string
display_name stringnull
owner objectnull
owner_type stringnull The type of credential owner.
application objectnull
credential_state string
authorization_state string
effective_access_state string
state_reason stringnull
created_at stringnull
last_used_at stringnull
expires_at stringnull
next_expires_at stringnull
credential_instance_count integernull
enterprise_authorized boolean Whether the item is authorized directly at the enterprise level.
authorization_count integer Number of authorizing organizations, plus one when `enterprise_authorized` is true.
authorized_organizations array
age_days integernull Age of the credential in whole days at assembly time.
never_expires boolean Whether this is an active credential with no expiration. False for GitHub App installations and credentials with unknown expiration.
past_expiration_policy booleannull Whether the credential exceeds a configured lifetime limit or an advisory age baseline. Null when not evaluated.
past_expiration_policy_basis stringnull The basis for `past_expiration_policy`: an enforced PAT lifetime limit or an advisory age baseline.
expiry_unknown boolean Whether the credential's expiration could not be determined.
scopes arraynull OAuth scopes recorded for the token. Null when not reported for the credential type.
permissions objectnull Permissions by resource for fine-grained PATs and GitHub App installations. Null when not reported; an empty object means no recorded permissions.
repository_selection stringnull Repository selection for the credential. Null when not reported; `none` means no repositories are selected.
View JSON Schema on GitHub

JSON Schema

github-enterprise-enterprise-token-inventory-item-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-enterprise-token-inventory-item-schema.json",
  "title": "Enterprise Token Inventory Item",
  "description": "A credential or GitHub App installation in an enterprise's token inventory.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-enterprise-enterprise-admin-api-openapi.yml#/components/schemas/enterprise-token-inventory-item",
  "type": "object",
  "required": [
    "inventory_id",
    "item_type",
    "credential_type",
    "credential_state",
    "authorization_state",
    "effective_access_state",
    "enterprise_authorized",
    "authorization_count",
    "authorized_organizations"
  ],
  "properties": {
    "inventory_id": {
      "type": "string",
      "description": "Opaque identifier for retrieving this item within the enterprise. Its value can differ between responses for the same credential."
    },
    "credential_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The credential's ID for audit-log correlation, unique only within its `credential_type`. Null for SSH keys, GitHub App installations, and federated credentials."
    },
    "hashed_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "Base64-encoded SHA-256 hash of the token, matching `hashed_token` in audit events. Null when not reported."
    },
    "fingerprint": {
      "type": [
        "string",
        "null"
      ],
      "description": "The SSH key's SHA-256 fingerprint, matching audit events. Null for other credential types."
    },
    "item_type": {
      "type": "string",
      "enum": [
        "credential",
        "token_issuer_principal"
      ]
    },
    "credential_type": {
      "type": "string",
      "enum": [
        "classic_pat",
        "oauth_app_user_token",
        "github_app_user_token",
        "fine_grained_pat",
        "ssh_key",
        "github_app_installation",
        "federated_jti"
      ]
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "login": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "owner_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "user",
        "oauth_application",
        "github_app",
        null
      ],
      "description": "The type of credential owner."
    },
    "application": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "credential_state": {
      "type": "string",
      "enum": [
        "active",
        "expired",
        "revoked",
        "deleted"
      ]
    },
    "authorization_state": {
      "type": "string",
      "enum": [
        "currently_authorized",
        "member_owned_only"
      ]
    },
    "effective_access_state": {
      "type": "string",
      "enum": [
        "effective",
        "not_effective",
        "unknown"
      ]
    },
    "state_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_used_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "next_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "credential_instance_count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "enterprise_authorized": {
      "type": "boolean",
      "description": "Whether the item is authorized directly at the enterprise level."
    },
    "authorization_count": {
      "type": "integer",
      "description": "Number of authorizing organizations, plus one when `enterprise_authorized` is true."
    },
    "authorized_organizations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "login": {
            "type": "string"
          }
        }
      }
    },
    "age_days": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Age of the credential in whole days at assembly time."
    },
    "never_expires": {
      "type": "boolean",
      "description": "Whether this is an active credential with no expiration. False for GitHub App installations and credentials with unknown expiration."
    },
    "past_expiration_policy": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the credential exceeds a configured lifetime limit or an advisory age baseline. Null when not evaluated."
    },
    "past_expiration_policy_basis": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "enforced_limit",
        "proposed_baseline",
        null
      ],
      "description": "The basis for `past_expiration_policy`: an enforced PAT lifetime limit or an advisory age baseline."
    },
    "expiry_unknown": {
      "type": "boolean",
      "description": "Whether the credential's expiration could not be determined."
    },
    "scopes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "OAuth scopes recorded for the token. Null when not reported for the credential type."
    },
    "permissions": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      },
      "description": "Permissions by resource for fine-grained PATs and GitHub App installations. Null when not reported; an empty object means no recorded permissions."
    },
    "repository_selection": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "all",
        "subset",
        "none",
        null
      ],
      "description": "Repository selection for the credential. Null when not reported; `none` means no repositories are selected."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/github-enterprise-enterprise-token-inventory-item"
All schemas
curl "https://apis.io/api/v1/json-schemas?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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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