ServicesEnrichmentsHTTP APIUnknown

Storage_access

POST
/api/enrichments/{enrichment_id}/storage-access

Obtain short-lived access to the Enrichment storage.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

enrichment_id*string
Formatuuid

Request Body

application/json
  1. body
mode*enrichments.StorageMode
Value in"read_only""read_write"
write?||null

Response Body

Success

application/json
  1. response
spfsAlias*string
Formatuuid
spfsToken*enrichments.SecretToken

A secret credential value.

curl -X POST 'https://api.spiraldb.dev/api/enrichments/497f6eca-6276-4993-bfeb-53cbbbba6f08/storage-access' \  -H 'Content-Type: application/json' \  -d '{  "mode": "read_only"}'
{  "spfsAlias": "745e0b94-f228-43ed-9e13-6f44a70ef1e9",  "spfsToken": "string"}