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) or wrong index_key on SDK-supplied indexes — see error model
  • 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):

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