Repositories and search
Get Document
Read one document in a repository, including its indexing status.
GET
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive
403 mcp_not_enabled. See the preview overview.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 withrepositories: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
Returns200 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