Create Index
POST /api/v1/apps/{appId}/vector/{vectorName}/create-index
Embedding dimension. Must be a positive integer.
One of Cosine, Dot, Euclid, Manhattan.
Optional backend-specific configuration, passed through as-is.
curl -X POST https://suite.sundaypyjamas.com/api/v1/apps/app_123/vector/docs/create-index \
-H "Authorization: Bearer spj_ai_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{ "vectorSize": 1536, "distance": "Cosine" }'
{
"created": true,
"collectionName": "docs",
"vectorSize": 1536,
"distance": "Cosine"
}
Returns 409 if a collection with this vectorName already exists for the app.
List Indexes
GET /api/v1/apps/{appId}/vector/{vectorName}/indexes
{ "indexes": ["docs", "products"] }
Get Index
GET /api/v1/apps/{appId}/vector/{vectorName}/indexes/{indexName}
Backend-specific index metadata (point count, config, etc.)
{ "error": "Index \"docs\" not found" }
Delete Index
DELETE /api/v1/apps/{appId}/vector/{vectorName}/indexes/{indexName}
{ "deleted": true, "collectionName": "docs" }