ServicesVector IndexesHTTP APIUnknown

Create_vector_index

POST
/api/vector-indexes

Create a Vector Index and its initial definition-only version.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
definition*
projectId*string

Response Body

Success

application/json
  1. response
rootUri*string
vectorIndexId*string
Formatuuid
versionId*string
Formatuuid
curl -X POST 'https://api.spiraldb.dev/api/vector-indexes' \  -H 'Content-Type: application/json' \  -d '{  "definition": {    "dimensions": 0,    "engineId": "string",    "engineOptions": {      "property1": "string",      "property2": "string"    },    "metric": "cosine",    "sourceFieldId": "a9906e98-5dea-42b3-9be1-dd6538f17102",    "sourceResourceId": "string",    "sourceTableId": "723cf4fb-8dc0-42ce-a8e4-0a5e5fe04bea"  },  "projectId": "string"}'
{  "rootUri": "string",  "vectorIndexId": "efd98a5b-8276-4ea9-9647-bb38eecf169b",  "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7"}