Skip to main content
GET
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive 403 mcp_not_enabled. See the preview overview.
Returns one document. Use it to check whether a document is searchable yet: it is once indexing_status is indexed. The document’s file_id is a normal file. Read or download its content through the files API.

Authentication

Requires an API key, or an OAuth token with repositories:read.

Path parameters

string
required
The repository id.
string
required
The document id. This is the id from List Documents, not the file_id.

Response

Returns 200 with the document.
string
The document id. Not the file_id.
string | null
The uploaded file behind the document. null for a document synced from a connected source, such as SharePoint.
string
string | null
The folder the document is in. null at the top level.
string
pending until it is indexed, then indexed. failed when indexing failed, or it has not finished two days after the document was added.
string | null

Errors