enterprise-admin

Get an enterprise token inventory export

Returns the status of an enterprise token inventory export. Once the export is ready this redirects to a short-lived URL to download the CSV.

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.

get/enterprises/{enterprise}/credentials/exports/{export_id}

Request

  • Base URL
    https://api.github.com
  • URL
    https://api.github.com/enterprises/{enterprise}/credentials/exports/{export_id}
  • Auth
    none declared

Path parameters

enterprisestring required

The slug version of the enterprise name.

export_idstring required

The opaque id of the export, as returned when it was created.

Response

Response

export_idstring required

Opaque id for the export, used to poll its status.

status'pending' | 'queued' | 'started' | 'success' | 'error' required

The state of the export job.

as_ofstring nullable

When the export was requested.

Changes