Portabase Logo
Portabase DashboardAPIStorage channels

Create a global storage channel (instance administrators)

Credentials in config are stored and never returned by the API. Assign it to organizations with PUT /storage-channels/{channelId}/organizations.

POST
/storage-channels

Credentials in config are stored and never returned by the API. Assign it to organizations with PUT /storage-channels/{channelId}/organizations.

Authorization

apiKeyAuth
headerx-api-key<token>

API key generated from the Portabase dashboard. Pass as the x-api-key header.

Request Body

application/json
  1. body
name*string
Length5 <= length <= 40
enabled?boolean
Defaulttrue
provider*"s3"
Value in"s3"
config*

Response Body

Created storage channel

application/json
  1. response
data*
Example Request
curl -X POST 'https://portabase.example.com/api/v1/storage-channels' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "provider": "s3",  "config": {    "endPointUrl": "string",    "accessKey": "string",    "secretKey": "string",    "bucketName": "string"  }}'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "provider": "string",    "enabled": true,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "organizationIds": [      "fd846392-cc8b-40e0-8cea-70228902ca0a"    ]  }}