Skip to content

Create Notification Channel

POST/web/v1/notification-channels/command/create WEB

Creates a new notification channel. Currently supports EMAIL channel type.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token

Request Parameters

Request Body

NotificationChannelCreateRequest:

NameTypeRequiredInDescription
institutionBizIdstringRequiredbodyInstitution business ID (max 64 characters)
channelNamestringRequiredbodyChannel name (max 255 characters)
channelRemarkstringOptionalbodyChannel remark (max 255 characters)
channelHoststringRequiredbodyChannel host/access endpoint (max 512 characters)
channelCategorystringRequiredbodyChannel category enum: EMAIL
emailConfigobjectOptionalbodyEmail configuration (required when channelCategory is EMAIL)
emailConfig.smtpHoststringRequiredbodySMTP server hostname
emailConfig.smtpPortintegerRequiredbodySMTP server port (1-65535)
emailConfig.senderEmailstringRequiredbodySender email address
emailConfig.senderNamestringRequiredbodySender display name
emailConfig.usernamestringRequiredbodySMTP authentication username
emailConfig.passwordstringRequiredbodySMTP authentication password
emailConfig.useSslbooleanOptionalbodyUse SSL encryption (default: true)
emailConfig.useStartTlsbooleanOptionalbodyUse STARTTLS (default: false)
emailConfig.connectionTimeoutintegerOptionalbodyConnection timeout in milliseconds (default: 10000)
emailConfig.readTimeoutintegerOptionalbodyRead timeout in milliseconds (default: 30000)

Success Response

Success 200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "bizId": "ch_abc123",
    "institutionBizId": "inst_abc123",
    "channelName": "Main Email",
    "channelRemark": null,
    "channelHost": "smtp.example.com",
    "channelCategory": "EMAIL",
    "channelStatus": "PENDING",
    "emailConfig": {
      "smtpHost": "smtp.example.com",
      "smtpPort": 587,
      "senderEmail": "noreply@example.com",
      "senderName": "Acme Corp",
      "username": "noreply@example.com",
      "password": "******",
      "useSsl": true,
      "useStartTls": false,
      "connectionTimeout": 10000,
      "readTimeout": 30000
    },
    "createdAt": "2026-03-21T00:00:00Z",
    "updatedAt": "2026-03-21T00:00:00Z",
    "createdBy": "user_xyz",
    "updatedBy": "user_xyz"
  }
}

Error Responses

CodeDescription
4000Validation error (missing required fields, invalid email config)
4010Unauthorized (invalid or missing JWT token)
4030Turnstile verification failed

Notes

  • The password is masked as ****** in the response for security.
  • When channelCategory is EMAIL, the emailConfig object is required.
  • The channel is created with PENDING status initially.

SlaunchX Internal Documentation