ServicesVector IndexesHTTP APIUnknown

Storage_access

POST
/api/vector-indexes/{vector_index_id}/storage-access

Obtain short-lived access to one version directory.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

vector_index_id*string
Formatuuid

Request Body

application/json
  1. body
mode*vector_indexes.StorageMode
Value in"read_only""read_write"
versionId*string
Formatuuid

Response Body

Success

application/json
  1. response
spfsToken*vector_indexes.SecretToken

A secret credential value.

versionPath*string
curl -X POST 'https://api.spiraldb.dev/api/vector-indexes/497f6eca-6276-4993-bfeb-53cbbbba6f08/storage-access' \  -H 'Content-Type: application/json' \  -d '{  "mode": "read_only",  "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7"}'
{  "spfsToken": "string",  "versionPath": "string"}