Skip to main content

Add a notification channel

POST 

/notifications/channels

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request POST \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
--header "Content-Type: application/json" \
--data @body.json \
"https://$HOSERVA_HOST:8008/api/v1/notifications/channels"

A credential supplied in secret is encrypted with the machine key before it reaches the database and is never returned by any later read — hasSecret on the response is the only trace of it.

Request​

Responses​

The new channel.