ServicesTablesHTTP APIUnknown

Storage_binding

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

Obtain renewable typed storage access. A write scope limits a read-write binding to that part of a write.

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
access*|
expiresAt*|
mode*tables.StorageMode
Value in"read_only""read_write"
rootUri*string
curl -X POST 'https://api.spiraldb.dev/api/tables/497f6eca-6276-4993-bfeb-53cbbbba6f08/storage-binding' \  -H 'Content-Type: application/json' \  -d '{  "mode": "read_only"}'
{  "access": {    "signed": {      "directRead": {        "credential": {          "awsSession": {            "accessKeyId": "string",            "endpoint": "string",            "expiresAtMicros": "string",            "region": "string",            "secretAccessKey": "string",            "sessionToken": "string"          },          "type": "awsSession"        },        "uri": "string"      },      "endpoint": "string",      "token": "string"    },    "type": "signed"  },  "expiresAt": "string",  "mode": "read_only",  "rootUri": "string"}