# <a id="bitdrift.public.unary.alerts.v1.NotificationsService"></a>NotificationsService

**Source definition:** [`src/bitdrift/public/unary/alerts/v1/notifications.proto#L96-L103`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/unary/alerts/v1/notifications.proto#L96-L103>)

Manages session capture notification settings for workflow rules.

### <a id="GetCapturedSessionNotification"></a>GetCapturedSessionNotification

Gets the notification configuration for a session capture rule within a workflow.

<section class="proto-service-table" markdown>

| Request | Response |
| - | - |
| <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">alerts</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">GetCapturedSessionNotificationRequest</i>](bitdrift_public_unary_alerts_v1_GetCapturedSessionNotificationRequest.md "bitdrift.public.unary.alerts.v1.GetCapturedSessionNotificationRequest")</span> | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">alerts</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">GetCapturedSessionNotificationResponse</i>](bitdrift_public_unary_alerts_v1_GetCapturedSessionNotificationResponse.md "bitdrift.public.unary.alerts.v1.GetCapturedSessionNotificationResponse")</span> |

</section>

<p class="h4">Example Request</p>
**URL:** `https://api-public.bitdrift.io/bitdrift.public.unary.alerts.v1.NotificationsService/GetCapturedSessionNotification`

See [calling the API](../api-guide/calling-the-api.md) for authentication and request details.

```json
{
  "action_id": "fkQ1PfAZhdYvJexzY6DYuoYCZTEaWO0Y7spxwjr7akc",
  "workflow_id": "checkout-errors"
}
```

<p class="h4">Example Response</p>
```json
{
  "notifications": {
    "session_capture_notification_configs": [
      {
        "min_time_between_notifications": "3600s",
        "notification_config": {
          "disabled": false,
          "notification_group": {
            "name": "engineering-oncall"
          }
        }
      }
    ]
  }
}
```

### <a id="UpsertCapturedSessionNotification"></a>UpsertCapturedSessionNotification

Upserts the notification configuration for a session capture rule within a workflow.

<section class="proto-service-table" markdown>

| Request | Response |
| - | - |
| <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">alerts</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">UpsertCapturedSessionNotificationRequest</i>](bitdrift_public_unary_alerts_v1_UpsertCapturedSessionNotificationRequest.md "bitdrift.public.unary.alerts.v1.UpsertCapturedSessionNotificationRequest")</span> | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">alerts</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">UpsertCapturedSessionNotificationResponse</i>](bitdrift_public_unary_alerts_v1_UpsertCapturedSessionNotificationResponse.md "bitdrift.public.unary.alerts.v1.UpsertCapturedSessionNotificationResponse")</span> |

</section>

<p class="h4">Example Request</p>
**URL:** `https://api-public.bitdrift.io/bitdrift.public.unary.alerts.v1.NotificationsService/UpsertCapturedSessionNotification`

See [calling the API](../api-guide/calling-the-api.md) for authentication and request details.

```json
{
  "action_id": "fkQ1PfAZhdYvJexzY6DYuoYCZTEaWO0Y7spxwjr7akc",
  "notifications": {
    "session_capture_notification_configs": [
      {
        "min_time_between_notifications": "3600s",
        "notification_config": {
          "disabled": false,
          "notification_group": {
            "name": "engineering-oncall"
          }
        }
      }
    ]
  },
  "workflow_id": "checkout-errors"
}
```

<p class="h4">Example Response</p>
```json
{}
```

