Download OpenAPI specification:Download
Notification Adapter documentation.
Notification Adapter documentation.
Retrieve the information of the message with the matching message ID.
This operation requires the super user permission (i.e. user typeId =100, or internal service) Or the user subscripted to the topic, and have a read permission. Or the user subscripted to the topic, and have a write permission and the message belongs to a public topic
MessageId required | string Id of Message |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "id": "string",
- "category": "string",
- "title": "string",
- "content": "string",
- "priority": "string",
- "topicId": "string",
- "senderType": "string",
- "senderId": "string",
- "publications": {
- "since": 0,
- "util": 0
}, - "customFields": {
- "notes": "Refer to message 123"
}, - "readStatus": "read",
- "shouldSendMail": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
Update the information of an existing message.
This operation requires the super user permission (i.e. user typeId =100, or internal service) Or the user subscripted to the topic, and have a write permission and the message created by the user.
MessageId required | string Id of Message |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Patch Message body
topicId | string (objectId) Id for an object |
title | string |
content | string |
typeId | string |
category | string |
priority | string |
senderType | string |
senderId | string (objectId) Id for an object |
customFields | object (customFields) CustomFields of the message. What's inside depends on what was configured when initializing the service. |
{- "topicId": "string",
- "title": "string",
- "content": "string",
- "typeId": "string",
- "category": "string",
- "priority": "string",
- "senderType": "string",
- "senderId": "string",
- "customFields": {
- "notes": "Refer to message 123"
}
}
{- "id": "string",
- "category": "string",
- "title": "string",
- "content": "string",
- "priority": "string",
- "topicId": "string",
- "senderType": "string",
- "senderId": "string",
- "publications": {
- "since": 0,
- "util": 0
}, - "customFields": {
- "notes": "Refer to message 123"
}, - "readStatus": "read",
- "shouldSendMail": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
Soft delete an existing message.
This operation requires the super user permission (i.e. user typeId =100, or internal service) Or the user subscripted to the topic, and have a write permission and the message created by the user.
MessageId required | string Id of Message |
{- "code": "string",
- "message": "string",
- "target": "string",
- "details": [
- { }
], - "innererror": {
- "code": "string",
- "innererror": { }
}
}
Create a new Message.
This operation requires the super user permission (i.e. user typeId =100, or internal service) Or the user subscripted to the topic, and have a write permission.
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Create Message body
topicId required | string (objectId) Id for an object |
title required | string |
content required | string |
typeId required | string |
category required | string |
priority | string |
senderType required | string |
senderId | string (objectId) Id for an object |
shouldSendMail | boolean |
object | |
customFields | object (customFields) CustomFields of the message. What's inside depends on what was configured when initializing the service. |
{- "topicId": "string",
- "title": "string",
- "content": "string",
- "typeId": "string",
- "category": "string",
- "priority": "string",
- "senderType": "string",
- "senderId": "string",
- "shouldSendMail": true,
- "publications": {
- "since": 0,
- "until": 0
}, - "customFields": {
- "notes": "Refer to message 123"
}
}
{- "id": "string",
- "category": "string",
- "title": "string",
- "content": "string",
- "priority": "string",
- "topicId": "string",
- "senderType": "string",
- "senderId": "string",
- "publications": {
- "since": 0,
- "util": 0
}, - "customFields": {
- "notes": "Refer to message 123"
}, - "readStatus": "read",
- "shouldSendMail": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
Get message list.
This operation requires the super user permission (i.e. user typeId =100, or internal service)
$filter | string Conditions to filter the result |
$orderBy | string Specify fields to sort |
$top | string Limit of the records to retrieve |
$skip | string Skip of the records |
$nextToken | string Token to get next batch of data |
$previousToken | string Token to get previous batch of data |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "id": "string",
- "category": "string",
- "title": "string",
- "content": "string",
- "priority": "string",
- "topicId": "string",
- "senderType": "string",
- "senderId": "string",
- "publications": {
- "since": 0,
- "util": 0
}, - "customFields": {
- "notes": "Refer to message 123"
}, - "readStatus": "read",
- "shouldSendMail": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
]
}
Mark Message as read
This operation requires the login user and the user subscribed to the topic, and have a read permission
Mark message read body
messageId required | string (objectId) Id for an object |
userId required | string (objectId) Id for an object |
{- "messageId": "string",
- "userId": "string"
}
{- "code": "string",
- "message": "string",
- "target": "string",
- "details": [
- { }
], - "innererror": {
- "code": "string",
- "innererror": { }
}
}
Get messages that one user can be received. User can receive one message only for the topic he subscripted. This endpoint also give user's read status for each message.
This operation requires the login user.
userId required | string User ID |
$filter | string Conditions to filter the result |
$orderBy | string Specify fields to sort |
$top | string Limit of the records to retrieve |
$skip | string Skip of the records |
$nextToken | string Token to get next batch of data |
$previousToken | string Token to get previous batch of data |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "id": "string",
- "category": "string",
- "title": "string",
- "content": "string",
- "priority": "string",
- "topicId": "string",
- "senderType": "string",
- "senderId": "string",
- "publications": {
- "since": 0,
- "util": 0
}, - "customFields": {
- "notes": "Refer to message 123"
}, - "readStatus": "read",
- "shouldSendMail": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
]
}
Get messages which are open to public
This operation can be accessed by anyone
$filter | string Conditions to filter the result |
$orderBy | string Specify fields to sort |
$top | string Limit of the records to retrieve |
$skip | string Skip of the records |
$nextToken | string Token to get next batch of data |
$previousToken | string Token to get previous batch of data |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "id": "string",
- "category": "string",
- "title": "string",
- "content": "string",
- "priority": "string",
- "topicId": "string",
- "senderType": "string",
- "senderId": "string",
- "publications": {
- "since": 0,
- "util": 0
}, - "customFields": {
- "notes": "Refer to message 123"
}, - "readStatus": "read",
- "shouldSendMail": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
]
}
Create a subscription. This operation requires superuser permission (i.e. user typeId =100, or internal service)
This operation requires the super user permission (i.e. user typeId =100, or internal service)
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Create Subscription body
topicId required | string |
userId required | string |
approved | boolean |
permissions | Array of any |
{- "topicId": "string",
- "userId": "string",
- "approved": true,
- "permissions": [
- null
]
}
{- "id": "string",
- "topicId": "string",
- "userId": "string",
- "approved": true,
- "permissions": [
- "string"
], - "subscriptedAt": "string"
}
Get Subscription list for one Topic. This operation requires superuser permission (i.e. user typeId =100, or internal service)
This operation requires the super user permission (i.e. user typeId =100, or internal service)
$filter | string Conditions to filter the result |
$orderBy | string Specify fields to sort |
$top | string Limit of the records to retrieve |
$skip | string Skip of the records |
$nextToken | string Token to get next batch of data |
$previousToken | string Token to get previous batch of data |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "id": "string",
- "topicId": "string",
- "userId": "string",
- "approved": true,
- "permissions": [
- "string"
], - "subscriptedAt": "string"
}
]
}
Get subscription by ID.
This operation requires the super user permission (i.e. user typeId =100, or internal service)
topicId required | string |
subscriptionId required | string |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "id": "string",
- "topicId": "string",
- "userId": "string",
- "approved": true,
- "permissions": [
- "string"
], - "subscriptedAt": "string"
}
Delete subscription by ID.
This operation requires the super user permission (i.e. user typeId =100, or internal service)
topicId required | string |
subscriptionId required | string |
{- "code": "string",
- "message": "string",
- "target": "string",
- "details": [
- { }
], - "innererror": {
- "code": "string",
- "innererror": { }
}
}
Get topic list. This operation requires superuser permisssion (i.e. user typeId =100, or internal service)
This operation requires the super user permission (i.e. user typeId =100, or internal service)
$filter | string Conditions to filter the result |
$orderBy | string Specify fields to sort |
$top | string Limit of the records to retrieve |
$skip | string Skip of the records |
$nextToken | string Token to get next batch of data |
$previousToken | string Token to get previous batch of data |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "id": "string",
- "name": "string",
- "typeId": "string",
- "app": "string",
- "isPublic": true,
- "ownerType": "string",
- "ownerId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
Create a new topic. This operation requires superuser permisssion (i.e. user typeId =100, or internal service)
This operation requires the super user permission (i.e. user typeId =100, or internal service)
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Create Topic
name required | string |
typeId required | string |
ownerType required | string |
ownerId | string |
app | string |
isPublic | boolean |
{- "name": "string",
- "typeId": "string",
- "ownerType": "string",
- "ownerId": "string",
- "app": "string",
- "isPublic": true
}
{- "id": "string",
- "name": "string",
- "typeId": "string",
- "app": "string",
- "isPublic": true,
- "ownerType": "string",
- "ownerId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Get topic by ID. This operation requires superuser permisssion (i.e. user typeId =100, or internal service)
This operation requires the super user permission (i.e. user typeId =100, or internal service)
topicId required | string Topic ID |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "id": "string",
- "name": "string",
- "typeId": "string",
- "app": "string",
- "isPublic": true,
- "ownerType": "string",
- "ownerId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Update topic information. This operation requires superuser permisssion (i.e. user typeId =100, or internal service)
This operation requires the super user permission (i.e. user typeId =100, or internal service)
topicId required | string Topic ID |
$expand | string Value: "user" Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Patch Topic
name | string |
typeId | string |
app | string |
isPublic | boolean |
{- "name": "string",
- "typeId": "string",
- "app": "string",
- "isPublic": true
}
{- "id": "string",
- "name": "string",
- "typeId": "string",
- "app": "string",
- "isPublic": true,
- "ownerType": "string",
- "ownerId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Delete a topic by ID This operation requires superuser permisssion (i.e. user typeId =100, or internal service)
This operation requires the super user permission
topicId required | string Topic ID |
{- "code": "string",
- "message": "string",
- "target": "string",
- "details": [
- { }
], - "innererror": {
- "code": "string",
- "innererror": { }
}
}
Create a new Message Template.
This operation requires the login user.
Create Message Template body
title required | string |
content required | string |
{- "title": "string",
- "content": "string"
}
{- "id": "string",
- "title": "string",
- "content": "string"
}
Retrieve the information of the message templates.
This operation requires the super user permission (i.e. user typeId =100, or internal service)
$filter | string Conditions to filter the result |
$orderBy | string Specify fields to sort |
$top | string Limit of the records to retrieve |
$skip | string Skip of the records |
$nextToken | string Token to get next batch of data |
$previousToken | string Token to get previous batch of data |
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "id": "string",
- "title": "string",
- "content": "string"
}
]
}
Update Message Template.
This operation requires the login user. Super user can use this operation to update any message template.
messageTemplateId required | string |
Patch Message Template body
title | string |
content | string |
{- "title": "string",
- "content": "string"
}
{- "id": "string",
- "title": "string",
- "content": "string"
}
Retrieve the information of the message template by Id.
This operation requires the login user. Super user can use this operation to get any message template.
messageTemplateId required | string |
{- "id": "string",
- "title": "string",
- "content": "string"
}
Update Message Template.
This operation requires the login user. Super user can use this operation to delete any message template.
messageTemplateId required | string |
{- "code": "string",
- "message": "string",
- "target": "string",
- "details": [
- { }
], - "innererror": {
- "code": "string",
- "innererror": { }
}
}