๐ Notification Management
Push notifications, SMS, and messaging endpoints. 20 endpoints available.
๐ฏ Quick Stats
- Total Endpoints: 20
- Base URL:
https://api.market.decenctype.com - Authentication: Bearer Token / API Key
๐ Methods
- ๐ POST: 8 endpoints
- ๐ GET: 8 endpoints
- โ๏ธ PUT: 2 endpoints
- ๐๏ธ DELETE: 2 endpoints
๐ Authentication
All endpoints in this section use the same authentication methods. Choose one:
๐ Bearer Token (Recommended)
For user session authentication
Add to request headers:
Authorization: Bearer YOUR_TOKEN๐ง API Key
For server-side authentication
Add to request headers:
X-API-KEY: YOUR_API_KEYโ ๏ธ Important: Do not use both authentication methods simultaneously in the same request.
๐ Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
๐ POST | /notification/sms/verification/send | Send SMS to the provided mobile number |
๐ POST | /notification/sms/merchant/verification/send | Send SMS to the provided mobile number for a specific merchant |
๐ POST | /notification | Create notification |
๐ GET | /notification | Get user notifications |
๐ GET | /notification/{notificationId} | Get notification details |
โ๏ธ PUT | /notification/{notificationId} | Update notification |
๐๏ธ DELETE | /notification/{notificationId} | Delete notification |
๐ POST | /notification/mark-read | Mark notifications as read |
๐ POST | /notification/mark-all-read | Mark all notifications as read |
๐ GET | /notification/stats/overview | Get notification statistics |
๐ GET | /notification/unread/count | Get unread notification count |
๐ POST | /notification/cleanup/expired | Clean expired notifications |
๐ POST | /notification/categories | Create notification category |
๐ GET | /notification/categories | Get notification categories |
๐ GET | /notification/categories/active | Get active categories |
๐ GET | /notification/categories/{categoryId} | Get category details |
โ๏ธ PUT | /notification/categories/{categoryId} | Update notification category |
๐๏ธ DELETE | /notification/categories/{categoryId} | Delete notification category |
๐ GET | /notification/categories/code/{code} | Get category by code |
๐ POST | /notification/categories/initialize | Initialize default categories |
๐ Detailed Documentation
Send SMS to the provided mobile number
/notification/sms/verification/sendhttps://api.market.decenctype.com/notification/sms/verification/send๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
mobile | string | โ | Mobile number to send the SMS to |
merchant | string | โ | Merchant name, required if for specific merchant |
Description: Send SMS to the provided mobile number
Operation ID: sendSms
Response Status:
- โ 201: SMS sent
๐ Response Examples
1{2 "result": "example-result",3 "desc": "example-desc",4 "msgid": "example-id",5 "custid": "example-id"6}๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification/sms/verification/send" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"mobile": "example-mobile"
}'Send SMS to the provided mobile number for a specific merchant
/notification/sms/merchant/verification/sendhttps://api.market.decenctype.com/notification/sms/merchant/verification/send๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
mobile | string | โ | Mobile number to send the SMS to |
merchant | string | โ | Merchant name, required if for specific merchant |
Description: Send SMS to the provided mobile number for a specific merchant
Operation ID: sendMerchantSms
Response Status:
- โ 201: SMS sent
๐ Response Examples
1{2 "result": "example-result",3 "desc": "example-desc",4 "msgid": "example-id",5 "custid": "example-id"6}๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification/sms/merchant/verification/send" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"mobile": "example-mobile"
}'Create notification
/notificationhttps://api.market.decenctype.com/notification๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | โ | ็จๆทID |
categoryId | number | โ | ้็ฅๅ็ฑปID |
title | string | โ | ้็ฅๆ ้ข |
content | string | โ | ้็ฅๅ ๅฎน |
type | string (system, transaction, order, security, marketing, kyc, payment) | โ | ้็ฅ็ฑปๅ |
priority | string (low, medium, high, urgent) | โ | ้็ฅไผๅ ็บง (้ป่ฎค: medium) |
metadata | object | โ | ้็ฅๅ ๆฐๆฎ |
channels | array | โ | ้็ฅๆธ ้ |
expiresAt | string | โ | ่ฟๆๆถ้ด |
Description: Create notification
Operation ID: createNotification
Response Status:
- โ 201: ้็ฅๅๅปบๆๅ
Create a new notification message
๐ Response Examples
1{2 "id": 1,3 "userId": 1,4 "categoryId": 1,5 "category": "example-category",6 "title": "ไบคๆๆๅ้็ฅ",7 "content": "ๆจ็ไบคๆๅทฒๆๅๅฎๆ๏ผไบคๆ้้ขไธบ $100",8 "type": "transaction",9 "priority": "medium",10 "metadata": {11 "transaction_id": 123,12 "amount": 10013 },14 "channels": [15 "push",16 "email",17 "sms"18 ],19 "isRead": false,20 "readAt": "2024-01-15T10:30:00Z",21 "isDeleted": false,22 "deletedAt": "2024-01-15T10:30:00Z",23 "expiresAt": "2024-12-31T23:59:59Z",24 "createdAt": "2024-01-15T10:00:00Z",25 "updatedAt": "2024-01-15T10:30:00Z"26}๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"title": "ไบคๆๆๅ้็ฅ",
"content": "ๆจ็ไบคๆๅทฒๆๅๅฎๆ๏ผไบคๆ้้ขไธบ $100",
"type": "transaction"
}'Get user notifications
/notificationhttps://api.market.decenctype.com/notification๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sortField | string | โ | ๆๅบๅญๆฎต |
sort | string | โ | ๆๅบๆนๅผ |
page | number | โ | ้กต็ ๏ผไป1ๅผๅง๏ผ |
pageSize | number | โ | ๆฏ้กตๆกๆฐ |
type | string | โ | ้็ฅ็ฑปๅ (็คบไพ: transaction) |
priority | string | โ | ้็ฅไผๅ
็บง (็คบไพ: high) |
isRead | boolean | โ | ๆฏๅฆๅทฒ่ฏป |
isDeleted | boolean | โ | ๆฏๅฆๅทฒๅ ้ค |
startDate | string | โ | ๅผๅงๆถ้ด (็คบไพ: 2024-01-01T00:00:00Z) |
endDate | string | โ | ็ปๆๆถ้ด (็คบไพ: 2024-12-31T23:59:59Z) |
search | string | โ | ๆ็ดขๅ
ณ้ฎ่ฏ (็คบไพ: ไบคๆ) |
categoryId | number | โ | ๅ็ฑปID (็คบไพ: 1) |
categoryCode | string | โ | ๅ็ฑปไปฃ็ (็คบไพ: system) |
Description: Get user notifications
Operation ID: getUserNotifications
Response Status:
- โ 200: ่ทๅ้็ฅๅ่กจๆๅ
Get notification list for current user with pagination and filtering support
๐ Response Examples
1{2 "data": [3 {4 "id": 1,5 "userId": 1,6 "title": "ไบคๆๆๅ้็ฅ",7 "content": "ๆจ็ไบคๆๅทฒๆๅๅฎๆ๏ผไบคๆ้้ขไธบ $100",8 "type": "transaction",9 "priority": "medium",10 "isRead": false,11 "isDeleted": false,12 "createdAt": "2024-01-15T10:00:00Z",13 "updatedAt": "2024-01-15T10:30:00Z"14 }15 ],16 "total": 100,17 "page": 1,18 "limit": 20,19 "totalPages": 5,20 "unreadCount": 1521}๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get notification details
/notification/{notificationId}https://api.market.decenctype.com/notification/{notificationId}๐ฏ Path Parameters
notificationId(number) - โ Required: ้็ฅID
Description: Get notification details
Operation ID: getNotificationById
Response Status:
- โ 200: ่ทๅ้็ฅ่ฏฆๆ ๆๅ
Get detailed information by notification ID
๐ Response Examples
1{2 "id": 1,3 "userId": 1,4 "categoryId": 1,5 "category": "example-category",6 "title": "ไบคๆๆๅ้็ฅ",7 "content": "ๆจ็ไบคๆๅทฒๆๅๅฎๆ๏ผไบคๆ้้ขไธบ $100",8 "type": "transaction",9 "priority": "medium",10 "metadata": {11 "transaction_id": 123,12 "amount": 10013 },14 "channels": [15 "push",16 "email",17 "sms"18 ],19 "isRead": false,20 "readAt": "2024-01-15T10:30:00Z",21 "isDeleted": false,22 "deletedAt": "2024-01-15T10:30:00Z",23 "expiresAt": "2024-12-31T23:59:59Z",24 "createdAt": "2024-01-15T10:00:00Z",25 "updatedAt": "2024-01-15T10:30:00Z"26}๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Update notification
/notification/{notificationId}https://api.market.decenctype.com/notification/{notificationId}๐ฏ Path Parameters
notificationId(number) - โ Required: ้็ฅID
๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | โ | ็จๆทID |
categoryId | number | โ | ้็ฅๅ็ฑปID |
title | string | โ | ้็ฅๆ ้ข |
content | string | โ | ้็ฅๅ ๅฎน |
type | string (system, transaction, order, security, marketing, kyc, payment) | โ | ้็ฅ็ฑปๅ |
priority | string (low, medium, high, urgent) | โ | ้็ฅไผๅ ็บง (้ป่ฎค: medium) |
metadata | object | โ | ้็ฅๅ ๆฐๆฎ |
channels | array | โ | ้็ฅๆธ ้ |
expiresAt | string | โ | ่ฟๆๆถ้ด |
isRead | boolean | โ | ๆฏๅฆๅทฒ่ฏป |
readAt | string | โ | ๅทฒ่ฏปๆถ้ด |
isDeleted | boolean | โ | ๆฏๅฆๅทฒๅ ้ค |
deletedAt | string | โ | ๅ ้คๆถ้ด |
Description: Update notification
Operation ID: updateNotification
Response Status:
- โ 200: ๆดๆฐ้็ฅๆๅ
Update notification status or content
๐ Response Examples
1{2 "id": 1,3 "userId": 1,4 "categoryId": 1,5 "category": "example-category",6 "title": "ไบคๆๆๅ้็ฅ",7 "content": "ๆจ็ไบคๆๅทฒๆๅๅฎๆ๏ผไบคๆ้้ขไธบ $100",8 "type": "transaction",9 "priority": "medium",10 "metadata": {11 "transaction_id": 123,12 "amount": 10013 },14 "channels": [15 "push",16 "email",17 "sms"18 ],19 "isRead": false,20 "readAt": "2024-01-15T10:30:00Z",21 "isDeleted": false,22 "deletedAt": "2024-01-15T10:30:00Z",23 "expiresAt": "2024-12-31T23:59:59Z",24 "createdAt": "2024-01-15T10:00:00Z",25 "updatedAt": "2024-01-15T10:30:00Z"26}๐ Example Request
curl -X PUT "https://api.market.decenctype.com/notification/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{}'Delete notification
/notification/{notificationId}https://api.market.decenctype.com/notification/{notificationId}๐ฏ Path Parameters
notificationId(number) - โ Required: ้็ฅID
Description: Delete notification
Operation ID: deleteNotification
Response Status:
- โ 200: ๅ ้ค้็ฅๆๅ
Soft delete the specified notification
๐ Example Request
curl -X DELETE "https://api.market.decenctype.com/notification/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Mark notifications as read
/notification/mark-readhttps://api.market.decenctype.com/notification/mark-read๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
notificationIds | array | โ | ้็ฅIDๅ่กจ |
Description: Mark notifications as read
Operation ID: markAsRead
Response Status:
- โ 200: ๆ ่ฎฐๆๅ
- โ 201: Success
Batch mark specified notifications as read
๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification/mark-read" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"notificationIds": [
1,
2,
3
]
}'Mark all notifications as read
/notification/mark-all-readhttps://api.market.decenctype.com/notification/mark-all-read๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | โ | ้็ฅ็ฑปๅ |
onlyType | boolean | โ | ๆฏๅฆๅชๆ ่ฎฐ็นๅฎ็ฑปๅ็้็ฅ (้ป่ฎค: false) |
Description: Mark all notifications as read
Operation ID: markAllAsRead
Response Status:
- โ 200: ๆ ่ฎฐๆๅ
- โ 201: Success
Mark all user notifications as read
๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification/mark-all-read" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{}'Get notification statistics
/notification/stats/overviewhttps://api.market.decenctype.com/notification/stats/overview๐ Authentication: Required (see authentication section above)
Description: Get notification statistics
Operation ID: getNotificationStats
Response Status:
- โ 200: ่ทๅ็ป่ฎกๆๅ
Get notification statistics for user
๐ Response Examples
1{2 "total": 100,3 "unread": 15,4 "read": 85,5 "byType": {6 "system": 20,7 "transaction": 30,8 "order": 25,9 "security": 15,10 "marketing": 1011 },12 "byPriority": {13 "low": 10,14 "medium": 60,15 "high": 25,16 "urgent": 517 }18}๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification/stats/overview" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get unread notification count
/notification/unread/counthttps://api.market.decenctype.com/notification/unread/count๐ Authentication: Required (see authentication section above)
Description: Get unread notification count
Operation ID: getUnreadCount
Response Status:
- โ 200: ่ทๅๆช่ฏปๆฐ้ๆๅ
Get total count of unread notifications for user
๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification/unread/count" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Clean expired notifications
/notification/cleanup/expiredhttps://api.market.decenctype.com/notification/cleanup/expired๐ Authentication: Required (see authentication section above)
Description: Clean expired notifications
Operation ID: cleanExpiredNotifications
Response Status:
- โ 200: ๆธ ็ๆๅ
- โ 201: Success
Clean all expired notifications (admin function)
๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification/cleanup/expired" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Create notification category
/notification/categorieshttps://api.market.decenctype.com/notification/categories๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
code | string | โ | ๅ็ฑปไปฃ็ |
name | string | โ | ๅ็ฑปๅ็งฐ |
description | string | โ | ๅ็ฑปๆ่ฟฐ |
icon | string | โ | ๅ็ฑปๅพๆ |
color | string | โ | ๅ็ฑป้ข่ฒ |
status | string (active, inactive, deprecated) | โ | ๅ็ฑป็ถๆ (้ป่ฎค: active) |
sortOrder | number | โ | ๆๅบๆ้ (้ป่ฎค: 0) (ๆๅฐ: 0) |
config | object | โ | ๅ็ฑป้ ็ฝฎ |
allowSubscription | boolean | โ | ๆฏๅฆๅ ่ฎธ็จๆท่ฎข้ (้ป่ฎค: true) |
allowUnsubscribe | boolean | โ | ๆฏๅฆๅ ่ฎธ็จๆทๅๆถ่ฎข้ (้ป่ฎค: true) |
isSystem | boolean | โ | ๆฏๅฆ็ณป็ป้ป่ฎคๅ็ฑป (้ป่ฎค: false) |
Description: Create notification category
Operation ID: createCategory
Response Status:
- โ 201: ๅ็ฑปๅๅปบๆๅ
Create a new notification category
๐ Response Examples
1{2 "id": 1,3 "code": "system",4 "name": "็ณป็ป้็ฅ",5 "description": "็ณป็ป็ธๅ
ณ็้็ฅๆถๆฏ",6 "icon": "bell",7 "color": "#1890ff",8 "status": "active",9 "sortOrder": 0,10 "config": {11 "channels": [12 "push",13 "email"14 ],15 "defaultPriority": "medium",16 "ttlDays": 3017 },18 "allowSubscription": true,19 "allowUnsubscribe": true,20 "isSystem": false,21 "createdAt": "2024-01-15T10:00:00Z",22 "updatedAt": "2024-01-15T10:30:00Z"23}๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification/categories" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"code": "system",
"name": "็ณป็ป้็ฅ"
}'Get notification categories
/notification/categorieshttps://api.market.decenctype.com/notification/categories๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | number | โ | ้กต็ (็คบไพ: 1) |
limit | number | โ | ๆฏ้กตๆฐ้ (็คบไพ: 20) |
status | string | โ | ๅ็ฑป็ถๆ (็คบไพ: active) |
isSystem | boolean | โ | ๆฏๅฆ็ณป็ปๅ็ฑป |
search | string | โ | ๆ็ดขๅ
ณ้ฎ่ฏ (็คบไพ: ็ณป็ป) |
Description: Get notification categories
Operation ID: getCategories
Response Status:
- โ 200: ่ทๅๅ็ฑปๅ่กจๆๅ
Get all notification categories with pagination and filtering support
๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification/categories" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get active categories
/notification/categories/activehttps://api.market.decenctype.com/notification/categories/active๐ Authentication: Required (see authentication section above)
Description: Get active categories
Operation ID: getActiveCategories
Response Status:
- โ 200: ่ทๅๆดป่ทๅ็ฑปๆๅ
Get all active notification categories
๐ Response Examples
1[2 {3 "id": 1,4 "code": "system",5 "name": "็ณป็ป้็ฅ",6 "description": "็ณป็ป็ธๅ
ณ็้็ฅๆถๆฏ",7 "icon": "bell",8 "color": "#1890ff",9 "status": "active",10 "sortOrder": 0,11 "config": {12 "channels": [13 "push",14 "email"15 ],16 "defaultPriority": "medium",17 "ttlDays": 3018 },19 "allowSubscription": true,20 "allowUnsubscribe": true,21 "isSystem": false,22 "createdAt": "2024-01-15T10:00:00Z",23 "updatedAt": "2024-01-15T10:30:00Z"24 }25]๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification/categories/active" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get category details
/notification/categories/{categoryId}https://api.market.decenctype.com/notification/categories/{categoryId}๐ฏ Path Parameters
categoryId(number) - โ Required: ๅ็ฑปID
Description: Get category details
Operation ID: getCategoryById
Response Status:
- โ 200: ่ทๅๅ็ฑป่ฏฆๆ ๆๅ
Get detailed information by category ID
๐ Response Examples
1{2 "id": 1,3 "code": "system",4 "name": "็ณป็ป้็ฅ",5 "description": "็ณป็ป็ธๅ
ณ็้็ฅๆถๆฏ",6 "icon": "bell",7 "color": "#1890ff",8 "status": "active",9 "sortOrder": 0,10 "config": {11 "channels": [12 "push",13 "email"14 ],15 "defaultPriority": "medium",16 "ttlDays": 3017 },18 "allowSubscription": true,19 "allowUnsubscribe": true,20 "isSystem": false,21 "createdAt": "2024-01-15T10:00:00Z",22 "updatedAt": "2024-01-15T10:30:00Z"23}๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification/categories/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Update notification category
/notification/categories/{categoryId}https://api.market.decenctype.com/notification/categories/{categoryId}๐ฏ Path Parameters
categoryId(number) - โ Required: ๅ็ฑปID
๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | โ | ๅ็ฑปๅ็งฐ |
description | string | โ | ๅ็ฑปๆ่ฟฐ |
icon | string | โ | ๅ็ฑปๅพๆ |
color | string | โ | ๅ็ฑป้ข่ฒ |
status | string (active, inactive, deprecated) | โ | ๅ็ฑป็ถๆ |
sortOrder | number | โ | ๆๅบๆ้ (ๆๅฐ: 0) |
config | object | โ | ๅ็ฑป้ ็ฝฎ |
allowSubscription | boolean | โ | ๆฏๅฆๅ ่ฎธ็จๆท่ฎข้ |
allowUnsubscribe | boolean | โ | ๆฏๅฆๅ ่ฎธ็จๆทๅๆถ่ฎข้ |
Description: Update notification category
Operation ID: updateCategory
Response Status:
- โ 200: ๆดๆฐๅ็ฑปๆๅ
Update information for specified category
๐ Response Examples
1{2 "id": 1,3 "code": "system",4 "name": "็ณป็ป้็ฅ",5 "description": "็ณป็ป็ธๅ
ณ็้็ฅๆถๆฏ",6 "icon": "bell",7 "color": "#1890ff",8 "status": "active",9 "sortOrder": 0,10 "config": {11 "channels": [12 "push",13 "email"14 ],15 "defaultPriority": "medium",16 "ttlDays": 3017 },18 "allowSubscription": true,19 "allowUnsubscribe": true,20 "isSystem": false,21 "createdAt": "2024-01-15T10:00:00Z",22 "updatedAt": "2024-01-15T10:30:00Z"23}๐ Example Request
curl -X PUT "https://api.market.decenctype.com/notification/categories/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{}'Delete notification category
/notification/categories/{categoryId}https://api.market.decenctype.com/notification/categories/{categoryId}๐ฏ Path Parameters
categoryId(number) - โ Required: ๅ็ฑปID
Description: Delete notification category
Operation ID: deleteCategory
Response Status:
- โ 200: ๅ ้คๅ็ฑปๆๅ
Delete the specified notification category
๐ Example Request
curl -X DELETE "https://api.market.decenctype.com/notification/categories/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get category by code
/notification/categories/code/{code}https://api.market.decenctype.com/notification/categories/code/{code}๐ฏ Path Parameters
code(string) - โ Required: ๅ็ฑปไปฃ็
Description: Get category by code
Operation ID: getCategoryByCode
Response Status:
- โ 200: ่ทๅๅ็ฑปๆๅ
Get category information by category code
๐ Response Examples
1{2 "id": 1,3 "code": "system",4 "name": "็ณป็ป้็ฅ",5 "description": "็ณป็ป็ธๅ
ณ็้็ฅๆถๆฏ",6 "icon": "bell",7 "color": "#1890ff",8 "status": "active",9 "sortOrder": 0,10 "config": {11 "channels": [12 "push",13 "email"14 ],15 "defaultPriority": "medium",16 "ttlDays": 3017 },18 "allowSubscription": true,19 "allowUnsubscribe": true,20 "isSystem": false,21 "createdAt": "2024-01-15T10:00:00Z",22 "updatedAt": "2024-01-15T10:30:00Z"23}๐ Example Request
curl -X GET "https://api.market.decenctype.com/notification/categories/code/example-code" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Initialize default categories
/notification/categories/initializehttps://api.market.decenctype.com/notification/categories/initialize๐ Authentication: Required (see authentication section above)
Description: Initialize default categories
Operation ID: initializeDefaultCategories
Response Status:
- โ 200: ๅๅงๅๆๅ
- โ 201: Success
Initialize system default notification categories
๐ Example Request
curl -X POST "https://api.market.decenctype.com/notification/categories/initialize" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"