---
title: "Get document upload and indexing status"
method: POST
path: "/api/index/v1/getdocumentstatus"
tags: ["Troubleshooting"]
deprecated: true
---

# Get document upload and indexing status

`POST /api/index/v1/getdocumentstatus`

> **Deprecated.**

Intended for debugging/validation. Fetches the current upload and indexing status of documents.

Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information.

## Request body

- GetDocumentStatusRequest — Describes the request body for /getdocumentstatus API call
  - `datasource` string, required — Datasource to get fetch document status for
  - `objectType` string, required — Object type of the document to get the status for
  - `docId` string, required — Glean Document ID within the datasource to get the status for.

## Response `200`

OK

- GetDocumentStatusResponse — Describes the response body of the /getdocumentstatus API call
  - `uploadStatus` string — Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN
  - `lastUploadedAt` integer — Time of last successful upload, in epoch seconds
  - `indexingStatus` string — Indexing status, enum of NOT_INDEXED, INDEXED, STATUS_UNKNOWN
  - `lastIndexedAt` integer — Time of last successful indexing, in epoch seconds

## Other responses

- `400` — Bad Request
- `401` — Not Authorized
- `429` — Too Many Requests

---

[API](https://skmtc.net/gleanwork/apis/glean-api-2.md) · [All operations](https://skmtc.net/gleanwork/apis/glean-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleanwork/glean-api-2/revisions/94e4feee4d14/schema)
