Add a notification channel
Adds a channel that receives the notification types you choose.
-
SMS or email: first send a code with
POST /v1/channels/send-phone-tokenorPOST /v1/channels/send-email-token, then send it here asmetaData.token(SMS codes are valid for 2 minutes, email codes for 3). -
Telegram: send your numeric Telegram chat ID as
metaData.chatID.
Your subscription plan limits how many channels of each type you can have. Your account must be verified. With teamID, this needs the team.manage permission.
Authorizations
Send your API token as Authorization: Bearer <api-token>.
Query Parameters
Run the request in the context of a team you belong to, instead of your personal account. 24-character hexadecimal ID.
^[0-9a-fA-F]{24}$Body
sms, email, telegram Notification types to send to this channel. For sms, use values from SMSNotificationType; for email and telegram, values from EmailNotificationType.
1- SMS
- Email
- Telegram
Response
The channel was added. The response body is empty.
