REST API Reference
cURL
curl --request POST \ --url https://api.example.com/v1/vectors/get
X-API-Key
X-API-Key: cyborg_your_api_key_here
{ "index_name": "my_index", "index_key": "64_character_hex_string_representing_32_bytes", "ids": ["item_1", "item_2", "item_3"], "include": ["vector", "contents", "metadata"] }
Show parameters
Show include options
{ "results": [ { "id": "item_1", "vector": [0.1, 0.2, 0.3, 0.4], "contents": "Hello world!", "metadata": {"category": "greeting", "language": "en"} }, { "id": "item_2", "vector": [0.5, 0.6, 0.7, 0.8], "contents": "Bonjour monde!", "metadata": {"category": "greeting", "language": "fr"} } ] }
401
404
422
500
curl -X POST "http://localhost:8000/v1/vectors/get" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": ["item_1", "item_2", "item_3"] }'
curl -X POST "http://localhost:8000/v1/vectors/get" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": ["doc_1", "doc_2", "doc_3"], "include": ["contents"] }'
curl -X POST "http://localhost:8000/v1/vectors/get" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": ["user_1", "user_2"], "include": ["metadata"] }'
curl -X POST "http://localhost:8000/v1/vectors/get" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": [ "batch_1", "batch_2", "batch_3", "batch_4", "batch_5", "batch_6", "batch_7", "batch_8", "batch_9", "batch_10" ], "include": ["contents", "metadata"] }'
{ "results": [ { "id": "doc_1", "contents": "First document content here..." }, { "id": "doc_2", "contents": "Second document content here..." }, { "id": "doc_3", "contents": "Third document content here..." } ] }
{ "results": [ { "id": "user_1", "metadata": { "name": "Alice Smith", "role": "admin", "department": "engineering", "created": "2024-01-01" } }, { "id": "user_2", "metadata": { "name": "Bob Johnson", "role": "user", "department": "marketing", "created": "2024-01-02" } } ] }
Was this page helpful?