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"
}
Vector Store
Indexes
Create, list, inspect, and delete vector collections
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"
}