Skip to main content
POST
Get Vectors
Retrieve specific vectors from the index by their IDs.

Authentication

Required - API key via X-API-Key header:
You can get an API key from the CyborgDB Admin Dashboard. For more info, follow this guide.

Request Body

Response

If an item ID doesn’t exist, it will be omitted from the results.

Exceptions

  • 401: Authentication failed (invalid API key)
  • 404: Index not found
  • 422: Invalid request parameters
  • 500: Internal server error

Example Usage

Get All Fields:
Get Only Contents:
Get Metadata Only:
Batch Retrieval:
Example Response (Contents Only):
Example Response (Metadata Only):
For IVF and IVFPQ index types, the vector field cannot be included in the response as these index types use compression techniques that don’t preserve original vectors.

Use Cases

  • Content retrieval: Get original text content by ID
  • Metadata lookup: Retrieve item metadata for display
  • Data validation: Verify stored data integrity
  • Bulk operations: Retrieve multiple items efficiently
  • Content management: Extract specific items for editing or processing