Skip to content

Create Notification Channel

POST/web/v1/notification-channels/command/createWEB

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

Authentication

Requires a valid JWT token and Turnstile verification. Gateway validation: enableJwtToken=true, enableTurnstile=true.

Request Parameters

Request Body

NotificationChannelCreateRequest:

NameTypeRequiredInDescription
institutionBizIdstringYesbodyInstitution business ID (max 64 characters)
channelNamestringYesbodyChannel name (max 255 characters)
channelRemarkstringNobodyChannel remark (max 255 characters)
channelHoststringYesbodyChannel host/access endpoint (max 512 characters)
channelCategorystringYesbodyChannel category enum: EMAIL
emailConfigobjectNobodyEmail configuration (required when channelCategory is EMAIL)
emailConfig.smtpHoststringYesbodySMTP server hostname
emailConfig.smtpPortintegerYesbodySMTP server port (1-65535)
emailConfig.senderEmailstringYesbodySender email address
emailConfig.senderNamestringYesbodySender display name
emailConfig.usernamestringYesbodySMTP authentication username
emailConfig.passwordstringYesbodySMTP authentication password
emailConfig.useSslbooleanNobodyUse SSL encryption (default: true)
emailConfig.useStartTlsbooleanNobodyUse STARTTLS (default: false)
emailConfig.connectionTimeoutintegerNobodyConnection timeout in milliseconds (default: 10000)
emailConfig.readTimeoutintegerNobodyRead timeout in milliseconds (default: 30000)

Success Response

Success200
{
  "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.

Internal Documentation