Get Notification Channel Types
GET
/web/constants/notification-channel-types NoneReturns a list of available notification channel types (e.g., EMAIL, SMS, PUSH). The response is localized based on the Accept-Language request header.
Authentication
No authentication required. This is a public endpoint.
Request Parameters
None.
Success Response
Success 200
{
"code": "2000",
"message": "SUCCESS",
"data": [
{
"code": "EMAIL",
"value": 37010101,
"label": "Email"
},
{
"code": "SMS",
"value": 37010102,
"label": "SMS"
}
]
}Response Fields
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Required | Enum name identifier (e.g., "EMAIL") |
value | integer | Required | 8-digit numeric code for API usage |
label | string | Required | Localized display name based on Accept-Language header |
Error Responses
| HTTP Status | Code | Message | Description |
|---|---|---|---|
| 500 | "5000" | "INTERNAL_SERVER_ERROR" | Unexpected server error |
Notes
- The
labelfield is localized; sendAccept-Language: zh-CNfor Chinese labels.