ServicesTablesHTTP APIUnknown

Storage_access

POST
/api/tables/{table_id}/storage-access

Obtain short-lived access to the Table storage.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

table_id*string

Stable identity of a Table.

Formatuuid

Request Body

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

Response Body

Success

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

A secret credential value.

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