NotificationChannels
Notification Channels are the medium through which notifications are sent.
Get supported Notification Channels
Bearer authentication
Notification Channel types
emailPossible values: Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
GET /api/v1/notification-channels HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "my-email",
"type": "email"
}
]Create configuration of notification channel
Bearer authentication
emailPossible values: Notification Channel config created
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
unexpected error
POST /api/v1/notification-channels HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 164
{
"type": "email",
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
},
"name": "text"
}No content
Create Slack app
Bearer authentication
The access token required for creating slack app
Created Slack app response
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
POST /api/v1/notification-channels/slack/create-app HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 194
{
"accessToken": "xoxe.xoxp-1-Mi0yLTMzOTYzNjA4MjgxOS04MDI4MzM3NjUzNzQ2LTgyMDIzNzM1NTM5OTEtODMxNjcyNDM2MjY1OS03MjA4NmUzZGIyMTNlNjU5MjVjMDgzZTJmMTk1NWMzOWUwMGEyOGYzN2U1ZWYxYjA1ZjgxY2IzNDA5YThhMTAq"
}{
"slackAppUrl": "https://api.slack.com/apps/A089PHD5S0Q"
}Get configuration of notification channel
Bearer authentication
Notification Channel name
Notification channel config
emailPossible values: Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
GET /api/v1/notification-channels/{name} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"type": "email",
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
},
"name": "text"
}Update configuration of Notification Channel
Bearer authentication
Notification Channel name
emailPossible values: Notification Channel config updated
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
PUT /api/v1/notification-channels/{name} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 164
{
"type": "email",
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
},
"name": "text"
}No content
Delete configuration of Notification Channel
Bearer authentication
Notification Channel name
Notification Channel config deleted
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
DELETE /api/v1/notification-channels/{name} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Patch configuration of Notification Channel
Bearer authentication
Notification Channel name
emailPossible values: Notification Channel config patched
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
PATCH /api/v1/notification-channels/{name} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 150
{
"type": "email",
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}No content
Validate configuration of Notification Channel
Bearer authentication
emailPossible values: Notification Channel validity
trueBad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
unexpected error
POST /api/v1/validate-notification-channel HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 150
{
"type": "email",
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}trueLast updated