Portabase DashboardAPINotification channels
Create a global notification channel (instance administrators)
Credentials in config are stored and never returned by the API. Assign it to organizations with PUT /notification-channels/{channelId}/organizations.
POST
Credentials in config are stored and never returned by the API. Assign it to organizations with PUT /notification-channels/{channelId}/organizations.
apiKeyAuthheader
x-api-key<token>API key generated from the Portabase dashboard. Pass as the x-api-key header.
application/json- body
name*stringLength
5 <= length <= 40enabled?booleanDefault
trueprovider*"slack"Value in
"slack"config*Created notification channel
application/json- response
data*Example Request
curl -X POST 'https://portabase.example.com/api/v1/notification-channels' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "provider": "slack", "config": { "slackWebhook": "http://example.com" }}'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" ] }}