Notification
APIs for managing notifications
Get the user preferences for notifications
GET /marketplace/api/notification/user-preferences HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"provider": "text",
"enabled": true,
"typePreferences": [
{
"notificationType": "text",
"enabled": true
}
],
"metadata": {
"authVerified": true,
"teamsStoreUrl": "https://example.com"
}
}
]Update the user preferences for notifications
PUT /marketplace/api/notification/user-preferences HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"preferences": [
{
"provider": "text",
"typePreferences": [
{
"notificationType": "text",
"enabled": true
}
]
}
]
}{
"recipientId": "123e4567-e89b-12d3-a456-426614174000",
"preferences": [
{
"provider": "text",
"typePreferences": [
{
"notificationType": "text",
"enabled": true
}
]
}
]
}PUT /marketplace/api/notification/user-provider-configs HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"configs": [
{
"provider": "text",
"enabled": true
}
]
}{
"recipientId": "123e4567-e89b-12d3-a456-426614174000",
"configs": [
{
"provider": "text",
"enabled": true
}
]
}Get a list of inbox messages for the current user, with optional filters for read status.
010GET /marketplace/api/notification/inbox/messages HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"notificationId": "123e4567-e89b-12d3-a456-426614174000",
"notificationType": "text",
"message": "text",
"subject": "text",
"createdAt": "2025-01-09T12:34:56.000Z",
"readAt": "2025-01-09T12:34:56.000Z",
"data": {
"actionLink": "https://example.com"
}
}
],
"meta": {
"offset": 0,
"limit": 10,
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"totalPages": 1
}
}Get the details of a specific inbox message by ID.
2025-01-09T12:34:56.000Z2025-01-09T12:34:56.000ZGET /marketplace/api/notification/inbox/messages/{id} HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"notificationId": "123e4567-e89b-12d3-a456-426614174000",
"notificationType": "text",
"message": "text",
"subject": "text",
"createdAt": "2025-01-09T12:34:56.000Z",
"readAt": "2025-01-09T12:34:56.000Z",
"data": {
"actionLink": "https://example.com"
}
}Update the read status of a specific inbox message by ID.
2025-01-09T12:34:56.000Z2025-01-09T12:34:56.000ZPATCH /marketplace/api/notification/inbox/messages/{id} HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"read": true
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"notificationId": "123e4567-e89b-12d3-a456-426614174000",
"notificationType": "text",
"message": "text",
"subject": "text",
"createdAt": "2025-01-09T12:34:56.000Z",
"readAt": "2025-01-09T12:34:56.000Z",
"data": {
"actionLink": "https://example.com"
}
}Update the read status of multiple inbox messages by their IDs.
2025-01-09T12:34:56.000Z2025-01-09T12:34:56.000ZPATCH /marketplace/api/notification/inbox/messages/update-bulk HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"read": true
}
][
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"notificationId": "123e4567-e89b-12d3-a456-426614174000",
"notificationType": "text",
"message": "text",
"subject": "text",
"createdAt": "2025-01-09T12:34:56.000Z",
"readAt": "2025-01-09T12:34:56.000Z",
"data": {
"actionLink": "https://example.com"
}
}
]Get a list of webhooks.
truefalsefalseGET /marketplace/api/notification/webhook HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com",
"verifyTls": true,
"signingKey": false,
"suppressed": false
}
]Create a new webhook.
truetruefalsefalsePOST /marketplace/api/notification/webhook HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"url": "https://example.com",
"verifyTls": true,
"signingKey": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com",
"verifyTls": true,
"signingKey": false,
"suppressed": false
}Get the details of a specific webhook by ID.
truefalsefalseGET /marketplace/api/notification/webhook/{id} HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com",
"verifyTls": true,
"signingKey": false,
"suppressed": false
}Update the details of a specific webhook by ID.
truetruefalsefalsePUT /marketplace/api/notification/webhook/{id} HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"url": "https://example.com",
"verifyTls": true,
"signingKey": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com",
"verifyTls": true,
"signingKey": false,
"suppressed": false
}Delete a specific webhook by ID.
No content
DELETE /marketplace/api/notification/webhook/{id} HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Get the history of a specific webhook by ID.
010GET /marketplace/api/notification/webhook/{id}/history HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"webhookId": "123e4567-e89b-12d3-a456-426614174000",
"deliveryId": "123e4567-e89b-12d3-a456-426614174000",
"status": "text",
"httpStatusCode": 1,
"createdAt": "2025-01-09T12:34:56.000Z",
"message": "text"
}
],
"meta": {
"offset": 0,
"limit": 10,
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"totalPages": 1
}
}Test a specific webhook by ID.
POST /marketplace/api/notification/webhook/{id}/test HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "UNSPECIFIED",
"httpStatusCode": 1,
"errorMessage": "text"
}Test all webhook configurations.
truePOST /marketplace/api/notification/webhook/test HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"url": "https://example.com",
"verifyTls": true,
"signingKey": "text"
}{
"status": "UNSPECIFIED",
"httpStatusCode": 1,
"errorMessage": "text"
}Get the Slack notifications configuration.
GET /marketplace/api/notification/slack/configuration HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"isConfigured": true,
"configuration": {
"teamName": "text",
"teamId": "text",
"botUserId": "text",
"enterpriseName": "text",
"enterpriseId": "text"
}
}Delete the Slack notifications configuration.
No content
DELETE /marketplace/api/notification/slack/configuration HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Test the Slack notifications configuration.
GET /marketplace/api/notification/slack/test HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"isValid": true,
"errorMessage": "text"
}Last updated
Was this helpful?

