knowledge-documents

Get Document

Get a single document by ID.

Returns the full document content and metadata. The document must belong to the authenticated user's account.

Path Parameters:

  • document_id: OpenSearch document ID

Security: Documents are retrieved from the user's account-specific index. Users can only access documents from their own account.

get/api/v1/knowledge/documents/{document_id}

Request

  • Base URL: https://api.gnosari.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gnosari.com/api/v1/knowledge/documents/{document_id}
  • Auth: one of:
    • HTTP bearer
    • API key in header X-AUTH-TOKEN

Path parameters

document_idstring required

Response

Successful Response

idstring required

OpenSearch document ID

titlestring required

Document title

contentstring

Full document content

source_idstring required

ID of the knowledge source

metadataobject

Additional document metadata

indexed_atstring date-time nullable

When the document was indexed

Changes

No recorded changes to this operation across all 1 revision of this API.