Skip to main content
GET /{index_id}/ Retrieves vector data from the specified index, with an option to filter by ID.

Query Parameters

ParameterTypeRequiredDescription
vector_idsstringNoA comma-separated list of vector IDs to retrieve.

Example Requests

  • cURL
  • Python SDK
  • JavaScript SDK
curl "https://api.gravixlayer.com/v1/vectors/indexes/3a824164-2351-415d-a2c1-6175f4a877e4/vectors/vector-001" \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

A JSON object where keys are vector IDs and values are the vector data.
{
  "vectors": {
    "text-vector-002": {
      "embedding": [
        0.050915528,
        "... (truncated for brevity)",
        -0.010933225
      ],
      "id": "text-vector-002"
    },
    "vec_hello_001": {
      "embedding": [
        0.016167589,
        "... (truncated for brevity)",
        -0.036693435
      ],
      "id": "vec_hello_001",
      "metadata": {
        "category": "greeting",
        "language": "english"
      }
    }
  }
}
I