Get an enterprise token inventory item
Changed on[!WARNING] Closing down notice: This operation is closing down and will be removed on October 2, 2026. Please migrate to the asynchronous export: use "Create an enterprise token inventory export" to start a CSV export, optionally scoped with filters such as owner or application, then "Get an enterprise token inventory export" to download it. For more information, see the changelog.
Returns a single credential from the enterprise token inventory. Use the opaque inventory_id returned by the list endpoint for the same enterprise.
You must be an enterprise owner (or hold a role with the "View enterprise credentials" permission) to use this endpoint.
OAuth app tokens and personal access tokens (classic) require the read:enterprise scope to access this endpoint.
Request
- Base URLhttps://api.github.com
- URLhttps://api.github.com/enterprises/{enterprise}/credentials/{inventory_id}
- Authnone declared
Path parameters
The slug version of the enterprise name.
The opaque inventory_id returned by the list endpoint for this enterprise. Pass it unchanged. Its value can differ for the same credential between responses.
Response
Response
Changes
- info
endpoint deprecated
- info
- info
endpoint added
- info