Skip to content

Get Vector

GET/v5/vector-stores/{vector_store_name}/vectors/{vector_id}

Retrieve a single document by its unique ID.

Returns the document’s full content, metadata, and optionally its embedding vector. Use this endpoint for direct lookups when the exact document ID is known. For content similarity search, use the query endpoint.

Path ParametersExpand Collapse
vector_store_name: string

The name of the vector store

vector_id: string

The ID of the vector to retrieve

Query ParametersExpand Collapse
include_vectors: optional boolean

Include embedding vectors

ReturnsExpand Collapse
VectorDocument object { id, content, metadata, vector }

A document returned from direct lookups (get/list operations).

id: string

Document ID

content: optional TextContent { text, type }

Text content for documents.

text: string

Text content to be embedded

type: optional "text"

Content type identifier

metadata: optional map[unknown]

Key-value metadata

vector: optional array of number

Embedding vector (if requested)

Get Vector

curl https://api.egp.scale.com/v5/vector-stores/$VECTOR_STORE_NAME/vectors/$VECTOR_ID \
    -H "x-api-key: $SGP_API_KEY"
{
  "id": "id",
  "content": {
    "text": "text",
    "type": "text"
  },
  "metadata": {
    "foo": "bar"
  },
  "vector": [
    0
  ]
}
Returns Examples
{
  "id": "id",
  "content": {
    "text": "text",
    "type": "text"
  },
  "metadata": {
    "foo": "bar"
  },
  "vector": [
    0
  ]
}