Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Get in Documents

Reads a document.

Reads a document.

  • Path GET https://api.data.sylphx.com/v1/documents/index-id/document-id
  • Scope data:read
  • Effect read — nothing is written.
  • Collection documents
  • Host https://api.data.sylphx.com

#Request

FieldTypeWhat it is
index_idstringThe search index's id. Required.
document_idstringThe document's id. Required.

#Response

FieldTypeWhat it is
documentDocumentRecordThe document.

#DocumentRecord

FieldTypeWhat it is
index_idstringThe search index's id in the environment, for example articles.
document_idstringThe document's id.
document_jsonbytesThe document as JSON, base64.
vectordouble[]The document's embedding; its length is the index's vector dimensions.
sha256stringsha256:<hex> of the document.
versionuint64The version, increasing per document.
updated_at_unix_msint64When this version was written, in Unix milliseconds.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.data.sylphx.com/v1/documents/index-id/document-id" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"