POST
/
v1
/
notifications
/
channels
curl --request POST \
  --url https://platform.thena.ai/v1/notifications/channels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "channelType": "push",
  "isEnabled": true
}'
{
  "channelType": "push",
  "isEnabled": true,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
channelType
enum<string>
required

The type of the notification channel

Available options:
push,
toast,
email,
slack
isEnabled
boolean
required

Whether the notification channel should be enabled

Response

201
application/json
Operation successful
channelType
enum<string>
required

The type of the notification channel

Available options:
push,
toast,
email,
slack
isEnabled
boolean
required

Whether the notification channel is enabled

createdAt
string
required

The date and time the notification channel was created

updatedAt
string
required

The date and time the notification channel was last updated