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 notification channel
Bearer authentication
emailPossible values: Notification channel 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: 150
{
"type": "email",
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}No content
Get notification channel
Bearer authentication
Notification Channel name
Notification channel
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 notification channel
Bearer authentication
Notification Channel name
emailPossible values: Notification channel 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: 150
{
"type": "email",
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}No content
Delete notification channel
Bearer authentication
Notification Channel name
Notification channel 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 notification channel
Bearer authentication
Notification Channel name
emailPossible values: Notification channel 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