Get Document by File
Returns the document ID and the revision built from one version of a document file. Use it to turn a citation into its document: query records and research task results cite a document file by documentAssetId and documentVersion.
When several revisions were built from the same file version, the newest is returned, whatever its state. For the revision in use, read the document’s active revision with Get Document.
1 min read
get/knowledge-fs/spaces/{knowledge_base_id}/document-references/resolve
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/document-references/resolve
Authorization
Path parameters
Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.Query parameters
Length: 1–255
The document file's
version, or documentVersion in a citation. A document file's version is always 1.Range: >= 1
Responses
application/json
The document and revision.
The document ID. Pass it to Get Document or List Chunks.
The revision built from this file version. Pass it with
document_id to List Chunks.