Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "package-lock.json|^.secrets.baseline$",
"lines": null
},
"generated_at": "2025-07-31T11:23:27Z",
"generated_at": "2025-09-04T10:57:40Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -126,15 +126,15 @@
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
"is_secret": false,
"is_verified": false,
"line_number": 1560,
"line_number": 1601,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "3235b7f8d626cde63611d2e9ec43473f4e844c67",
"is_secret": false,
"is_verified": false,
"line_number": 2775,
"line_number": 2816,
"type": "Base64 High Entropy String",
"verified_result": null
}
Expand All @@ -144,15 +144,15 @@
"hashed_secret": "0cc20f91828bed53ddb6294968b7f9abd631a3ba",
"is_secret": false,
"is_verified": false,
"line_number": 1509,
"line_number": 1535,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "3235b7f8d626cde63611d2e9ec43473f4e844c67",
"is_secret": false,
"is_verified": false,
"line_number": 3149,
"line_number": 3175,
"type": "Base64 High Entropy String",
"verified_result": null
}
Expand Down
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ SDK Methods to consume
- [Get Metrics](#get-metrics)
- [Send Notifications](#send-notifications)


## Source

### Create Source
Expand Down Expand Up @@ -511,6 +510,7 @@ Currently, this functionality supports following destinations:
4. Microsoft® Teams
5. IBM Cloud Code Engine
6. IBM Cloud Object Storage
7. Webhook

```js
const testDestinationParams = {
Expand All @@ -530,6 +530,27 @@ Once the test is completed, you will be presented with the results. These result
- **Response Code**: If test fails, then the response code sent from the end destination client is returned
- **Response Message**: If test fails, then the response message sent from the end destination client is returned

In case of `webhook` destination test response also returns notification_id, the status of notification_id will represent the webhook test result. Follow below additional steps to get status result of webhook destination test


```js
const getNotificationsStatusParams = {
instanceId,
id: <notification-id>,
};

try {
const getNotificationsStatusResult = await eventNotificationsService.getNotificationsStatus(
getNotificationsStatusParams
);
console.log(JSON.stringify(getNotificationsStatusResult.result, null, 2));
} catch (err) {
console.warn(err);
}
```

The response of `GetNotificationsStatus` will have success, failed or inprogress status. The Notification ID will be valid only for 1 minute to fetch the status of test. The status response as **success** will conclude successful test of webhook destination

### Custom Domain Name Verification

After creation of the custom email destination with your domain name, make sure its validated for the right ownership.
Expand Down
Loading