Configure Email notifications for your organization.
Get email notification channel
Bearer authentication
Email notification channel
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
GET /api/v1/email HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}Create email notification channel
Bearer authentication
Email notification channel created
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
unexpected error
POST /api/v1/email HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}{
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}Update email notification channel
Bearer authentication
Email notification channel updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
PUT /api/v1/email HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}{
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}Delete email notification channel
Bearer authentication
Email notification channel deleted
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
DELETE /api/v1/email HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Patch email notification channel
Bearer authentication
Email notification channel patched
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
PATCH /api/v1/email HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}{
"config": {
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}
}Get email notification state
Bearer authentication
Email Notification state
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
GET /api/v1/email/state HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"enabled": true
}Update tenant email notification state
Bearer authentication
Email Notification state
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
PATCH /api/v1/email/state HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"enabled": true
}{
"enabled": true
}Validate configuration of Email Channel
Bearer authentication
587auth_loginPossible values: []Run:aiRun:ai notification - {{ .category }} {{ .reason }}Email Channel validity
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
unexpected error
POST /api/v1/email/validate HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"username": "email@gmail.com",
"password": 123456,
"smtpHost": "smtp.gmail.com",
"from": "email@gmail.com",
"subject": "My subject"
}{
"status": false,
"message": "smtp server validation failed"
}Last updated