> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devmob.app.br/llms.txt
> Use this file to discover all available pages before exploring further.

# notification_recipient.created

> Evento emitido após criar o estado de inbox de um destinatário

`notification_recipient.created` é emitido depois que um [NotificationRecipient](/data-modelling/communication/notification-recipient) é criado.

## Detalhes do Evento

| Propriedade    | Valor                                                    |
| -------------- | -------------------------------------------------------- |
| **Tipo**       | `notification_recipient.created`                         |
| **Origem**     | Criação de NotificationRecipient                         |
| **Publicação** | Após commit do recipient                                 |
| **Quando**     | Uma Notification passa a existir no inbox de um usuário. |

## Handlers

| Handler                    | Responsabilidade                                     | Dados usados         | Execução    |
| -------------------------- | ---------------------------------------------------- | -------------------- | ----------- |
| Nenhum handler obrigatório | Disponível para realtime, push ou projeções futuras. | `identifier`, `data` | Assíncrona. |

## Payload

| Campo        | Tipo                    | Descrição                              |
| ------------ | ----------------------- | -------------------------------------- |
| `identifier` | `UUID`                  | Identificador do NotificationRecipient |
| `data`       | `NotificationRecipient` | Entidade criada                        |

## Regras dos handlers

* Handlers não rodam na transação que criou o recipient.
* Falha em handler não desfaz o recipient.
* Cada handler deve ser idempotente.

## Exemplo

```json theme={null}
{
  "type": "notification_recipient.created",
  "identifier": "0197fa01-d2e2-70df-8fd3-9e22a345a196",
  "data": {
    "notificationRecipientId": "0197fa01-d2e2-70df-8fd3-9e22a345a196",
    "notificationId": "0197fa00-3e63-7f58-a878-7ef7ecfa9bc1",
    "recipientUserId": "0197a805-0910-7eb2-bae7-90a13df2a9b2",
    "status": "UNREAD"
  }
}
```
