This API enables notifications and related configuration
Notifications API (1)
https://idp.cdq.com/_mock/apis/notifications-api/api-v1/
https://notifications-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/soap/v1/
https://notifications-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/
Notifications
-> Includes functionalities for creating, updating, deleting, and listing notification configurations, as well as sending notifications. The operations under this tag are designed to support various types of notifications, including email notifications and webhook notifications, thereby enabling a flexible and comprehensive notification system.
Email Notification Configurations
-> Defines a set of operations focused on the management of email notification configurations within the system. These operations encompass the creation, deletion, updating, and listing of email notification configurations, facilitating a comprehensive approach to handling how notifications are configured and managed.
Notifications Sending
-> Encompasses operations dedicated to the sending of notifications, specifically focusing on test notifications. This tag includes endpoints for sending test emails and test briefing notifications, allowing developers and system administrators to validate the content and delivery mechanisms of notifications before they're deployed in a live environment.
- Mock server
https://idp.cdq.com/_mock/apis/notifications-api/api-v1/sendTestEmail
- Production SOAP
https://notifications-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/soap/v1/sendTestEmail
- Production
https://notifications-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/sendTestEmail
curl -i -X POST \
https://idp.cdq.com/_mock/apis/notifications-api/api-v1/sendTestEmail \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"notificationType": {
"technicalKey": "BRIEFING"
},
"template": "Template name",
"content": [
{
"key": "CLIENT_NAME",
"value": "CDQ"
}
],
"images": [
{
"key": "OVERLAP_RATIO",
"chartId": "overlap_ratio",
"format": "png",
"width": "800",
"height": "600",
"scale": "1.0",
"timeRangeStart": "YESTERDAY",
"timeRangeEnd": "YESTERDAY"
}
],
"attachments": [
{
"url": "customer-upload/user/file.xlsx",
"name": "Attachment name",
"mimeType": "application/pdf",
"ticket": "Report.zip",
"jobId": "74c218a6403d11efb237cea02f68292d",
"downloadService": "FILES_API"
}
],
"recipientFilter": {
"notificationConfigurationIds": [
"5c5356588c72a028c448adbd"
],
"recipients": [
{
"userId": "johndoe",
"email": "developer@cdq.pl",
"firstName": "John",
"lastName": "Doe"
}
]
}
}'Uniquely identifying ID of the workspace.
IDs of notification configurations for which the briefing notification should be sent. If left empty then all briefing notification configurations assigned to the specified workspace will be used.
List of features to be activated.
| Items Enum Value | Description |
|---|---|
| SEND_TO_NOTIFICATION_CONFIGURATIONS_RECIPIENTS | Allows to send briefing notification to all recipients specified in the notification configurations assigned to provided workspace. |
| ENABLE_SENDING_OUTSIDE_CDQ | Allows to send briefing notification to recipients whose email addresses do not end with cdq.com or cdq.ch. |
- Mock server
https://idp.cdq.com/_mock/apis/notifications-api/api-v1/sendTestBriefingNotification
- Production SOAP
https://notifications-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/soap/v1/sendTestBriefingNotification
- Production
https://notifications-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/sendTestBriefingNotification
curl -i -X POST \
https://idp.cdq.com/_mock/apis/notifications-api/api-v1/sendTestBriefingNotification \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspaceId": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4",
"notificationConfigurationIds": [
"5c5356588c72a028c448adbd"
],
"recipients": [
{
"userId": "johndoe",
"email": "developer@cdq.pl",
"firstName": "John",
"lastName": "Doe"
}
],
"featuresOn": [
"SEND_TO_NOTIFICATION_CONFIGURATIONS_RECIPIENTS"
]
}'