Skip to content

Query Notification Channels

POST/web/v1/notification-channels/queryWEB

Queries notification channels with optional filters. Returns a paginated result.

Authentication

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

Request Parameters

Request Body

NotificationChannelQueryRequest:

NameTypeRequiredInDescription
bizIdstringNobodyFilter by channel business ID (max 64 characters)
institutionBizIdstringNobodyFilter by institution business ID (max 64 characters)
channelNamestringNobodyFilter by channel name (max 255 characters)
channelCategorystringNobodyFilter by category: EMAIL
channelStatusstringNobodyFilter by status: ACTIVE, INACTIVE, PENDING, ERROR
activeOnlybooleanNobodyIf true, return only active channels

Query Parameters (Pagination)

NameTypeRequiredInDescription
pageintegerNoqueryPage number (0-based)
sizeintegerNoqueryPage size
sortstringNoquerySort field and direction (e.g., createdAt,desc)

Success Response

Success200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "content": [
      {
        "bizId": "ch_abc123",
        "institutionBizId": "inst_abc123",
        "channelName": "Main Email",
        "channelRemark": null,
        "channelHost": "smtp.example.com",
        "channelCategory": "EMAIL",
        "channelStatus": "ACTIVE",
        "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"
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20
  }
}

Error Responses

CodeDescription
4010Unauthorized (invalid or missing JWT token)
4030Turnstile verification failed

Notes

  • All filter fields are optional; omit them to retrieve all channels.
  • The response uses Spring Data Page format with content, totalElements, totalPages, number, and size fields.
  • Passwords in email config are masked in responses.

Internal Documentation