---
sidebar:
  label: roboto.notifications.record
  order: 2
title: roboto.notifications.record
---
## Module Contents

### NotificationRecord

```python
class roboto.notifications.record.NotificationRecord(/, **data: Any)
```

`from roboto.notifications import NotificationRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/record.py#L19-L66)

Bases: `pydantic.BaseModel`, [`roboto.notifications.validator.LifecycleStatusValidator`](/docs/reference/python-sdk/roboto/notifications/validator#roboto.notifications.validator.LifecycleStatusValidator)

Data record of a notification, as `GET /v1/notifications` returns it.

A notification tells a user about something in an organization that involves them, such as a comment that mentions them. `PUT /v1/notifications/{notification_id}` and `PUT /v1/notifications/batch` also return it. Building a record raises `RobotoConditionException` when a `lifecycle_status` value is not a status of its channel.

**Parameters**

- **data** (`Any`)

**Attributes**

- **NotificationRecord.channels** (`list[roboto.notifications.validator.NotificationChannel]`) = `None`: Channels Roboto sends the notification through.

  Empty when the user has turned off email notifications or comment-mention notifications.

- **NotificationRecord.created** (`datetime.datetime`): Time the notification was created.

- **NotificationRecord.lifecycle_status** (`dict[roboto.notifications.validator.NotificationChannel, str]`) = `None`: Delivery status of the notification on each channel, keyed by channel.

  An email's status is an [`EmailLifecycleStatus`](/docs/reference/python-sdk/roboto/notifications/validator#roboto.notifications.validator.EmailLifecycleStatus) value, and a status in the Roboto web app is a [`WebUiLifecycleStatus`](/docs/reference/python-sdk/roboto/notifications/validator#roboto.notifications.validator.WebUiLifecycleStatus) value.

- **NotificationRecord.modified** (`datetime.datetime`): Time the notification was created. Changing its read or delivery status does not update it.

- **NotificationRecord.notification_id** (`str`): Unique ID of the notification, beginning with `nt_`.

- **NotificationRecord.notification_type** (`roboto.notifications.validator.NotificationType`): Kind of event the notification reports.

- **NotificationRecord.notifier_id** (`str`): ID of the resource that caused the notification.

  For [`CommentMention`](/docs/reference/python-sdk/roboto/notifications/validator#roboto.notifications.validator.NotificationType.CommentMention), the ID of the comment that mentions the user.

- **NotificationRecord.org_id** (`str`): ID of the organization that owns the notification.

- **NotificationRecord.read_status** (`roboto.notifications.validator.ReadStatus`): Whether the user has read the notification. Starts as [`Unread`](/docs/reference/python-sdk/roboto/notifications/validator#roboto.notifications.validator.ReadStatus.Unread).

- **NotificationRecord.user_id** (`str`): ID of the user the notification is for, which for a person is their email address.
