---
title: "Beta: Get datasource status"
method: POST
path: "/api/index/v1/debug/{datasource}/status"
tags: ["Troubleshooting"]
---

# Beta: Get datasource status

`POST /api/index/v1/debug/{datasource}/status`

Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice.

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.

## Path parameters

- `datasource` string, required

## Response `200`

OK

- DebugDatasourceStatusResponse — Describes the response body of the /debug/{datasource}/status API call
  - `documents` object
    - `bulkUploadHistory` BulkUploadHistoryEvent[] — Information about active and recent successful uploads for the datasource
      - `uploadId` string — The unique ID of the upload
      - `startTime` string — The start time of the upload in ISO 8601 format
      - `endTime` string — The end time of the upload in ISO 8601 format, 'NA' if the upload is still active
      - `status` 'ACTIVE' | 'SUCCESSFUL' — The status of the upload, an enum of ACTIVE, SUCCESSFUL
      - `processingState` 'UNAVAILABLE' | 'UPLOAD STARTED' | 'UPLOAD IN PROGRESS' | 'UPLOAD COMPLETED' | 'DELETION PAUSED' | 'INDEXING COMPLETED' — The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED
    - `counts` object
      - `uploaded` DatasourceObjectTypeDocumentCountEntry[] — A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale.
        - `objectType` string — The object type of the document
        - `count` integer — The number of documents of the corresponding objectType
      - `indexed` DatasourceObjectTypeDocumentCountEntry[] — The number of documents indexed, grouped by objectType
        - `objectType` string — The object type of the document
        - `count` integer — The number of documents of the corresponding objectType
    - `processingHistory` ProcessingHistoryEvent[] — Information about processing history for the datasource
      - `startTime` string — The start time of the processing in ISO 8601 format
      - `endTime` string — The end time of the processing in ISO 8601 format, 'NA' if still in progress
  - `identity` object
    - `processingHistory` ProcessingHistoryEvent[] — Information about processing history for the datasource
      - `startTime` string — The start time of the processing in ISO 8601 format
      - `endTime` string — The end time of the processing in ISO 8601 format, 'NA' if still in progress
    - `users` DebugDatasourceStatusIdentityResponseComponent
      - `bulkUploadHistory` BulkUploadHistoryEvent[] — Information about active and recent successful uploads for the datasource
        - `uploadId` string — The unique ID of the upload
        - `startTime` string — The start time of the upload in ISO 8601 format
        - `endTime` string — The end time of the upload in ISO 8601 format, 'NA' if the upload is still active
        - `status` 'ACTIVE' | 'SUCCESSFUL' — The status of the upload, an enum of ACTIVE, SUCCESSFUL
        - `processingState` 'UNAVAILABLE' | 'UPLOAD STARTED' | 'UPLOAD IN PROGRESS' | 'UPLOAD COMPLETED' | 'DELETION PAUSED' | 'INDEXING COMPLETED' — The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED
      - `counts` object
        - `uploaded` integer — The number of users/groups/memberships uploaded
    - `groups` DebugDatasourceStatusIdentityResponseComponent
      - `bulkUploadHistory` BulkUploadHistoryEvent[] — Information about active and recent successful uploads for the datasource
        - `uploadId` string — The unique ID of the upload
        - `startTime` string — The start time of the upload in ISO 8601 format
        - `endTime` string — The end time of the upload in ISO 8601 format, 'NA' if the upload is still active
        - `status` 'ACTIVE' | 'SUCCESSFUL' — The status of the upload, an enum of ACTIVE, SUCCESSFUL
        - `processingState` 'UNAVAILABLE' | 'UPLOAD STARTED' | 'UPLOAD IN PROGRESS' | 'UPLOAD COMPLETED' | 'DELETION PAUSED' | 'INDEXING COMPLETED' — The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED
      - `counts` object
        - `uploaded` integer — The number of users/groups/memberships uploaded
    - `memberships` DebugDatasourceStatusIdentityResponseComponent
      - `bulkUploadHistory` BulkUploadHistoryEvent[] — Information about active and recent successful uploads for the datasource
        - `uploadId` string — The unique ID of the upload
        - `startTime` string — The start time of the upload in ISO 8601 format
        - `endTime` string — The end time of the upload in ISO 8601 format, 'NA' if the upload is still active
        - `status` 'ACTIVE' | 'SUCCESSFUL' — The status of the upload, an enum of ACTIVE, SUCCESSFUL
        - `processingState` 'UNAVAILABLE' | 'UPLOAD STARTED' | 'UPLOAD IN PROGRESS' | 'UPLOAD COMPLETED' | 'DELETION PAUSED' | 'INDEXING COMPLETED' — The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED
      - `counts` object
        - `uploaded` integer — The number of users/groups/memberships uploaded
  - `datasourceVisibility` 'ENABLED_FOR_ALL' | 'ENABLED_FOR_TEST_GROUP' | 'NOT_ENABLED' — The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE

## Other responses

- `400` — Bad Request
- `401` — Not Authorized

---

[API](https://skmtc.net/gleanwork/apis/glean-indexing-api.md) · [All operations](https://skmtc.net/gleanwork/apis/glean-indexing-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleanwork/glean-indexing-api/versions/1c92beda1a4f/schema)
