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

# Get Occurrence

> Requires `notification-occurrence:find-one`. The occurrence with its
event, gateway, decisions per channel and recipient (fallback chain
included), its notifications with their resends, and one timeline
per notification mixing Horizon transitions and provider events.
Recipients are shown by user id; addresses only as their digest.
Without `notification:view-content` the payload values are
`[redacted]`, notification `data` is null and provider payloads are
left out.




## OpenAPI

````yaml api-reference/notification/platform/openapi.yaml GET /notification/occurrence/{document_id}
openapi: 3.0.1
info:
  title: Notification Platform API (admin)
  description: |
    Admin side of the notification platform
    (notification/notification-platform): the event catalog and its channel
    rules, channel rates, the suppression list, the traceability search of
    occurrences, and the resend and retry of a notification.

    **Lists.** Every list takes `page` (default 1) and `page_size` (at most
    100; the default is given on each list), plus the flat filters
    documented on it. The shared list query of the Enterprise client is also
    accepted: `search` (folded into `q`) and `filters`
    (`field|operator|value`, comma separated), where `eq` and `in` become
    the flat key of the same name and `created_at` with `gte` / `lte`
    becomes `created_from` / `created_to`; other operators are ignored and
    an explicit flat key wins over the same key inside `filters`. A
    malformed `filters` answers `400`. Results come in `data`, with
    `paging`.

    **Reasons.** Every write carries a mandatory reason (`change_reason` or
    `reason`). It lands in the audit log with the actor, so the history of a
    record shows who changed what and why. A body that misses it, or has any
    other invalid or unknown field, answers `422` with one `{ code, field,
    message }` per problem (`change-reason-required` for a missing
    `change_reason`, `invalid-field` otherwise).
  version: '2026-11-03'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Notification Event Catalog
    description: Catalog events, their channels, rules and change history.
  - name: Notification Rate
    description: Append-only price of a send by channel, provider and country.
  - name: Notification Suppression
    description: Addresses that no channel sends to until lifted.
  - name: Notification Occurrence
    description: Traceability of every event occurrence and its decisions.
  - name: Notification
    description: Resend and retry of a notification.
paths:
  /notification/occurrence/{document_id}:
    get:
      tags:
        - Notification Occurrence
      summary: Get an occurrence
      description: |
        Requires `notification-occurrence:find-one`. The occurrence with its
        event, gateway, decisions per channel and recipient (fallback chain
        included), its notifications with their resends, and one timeline
        per notification mixing Horizon transitions and provider events.
        Recipients are shown by user id; addresses only as their digest.
        Without `notification:view-content` the payload values are
        `[redacted]`, notification `data` is null and provider payloads are
        left out.
      operationId: notificationOccurrenceFindOne
      parameters:
        - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: The occurrence
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/OccurrenceDetail'
                  message:
                    type: string
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    DocumentId:
      name: document_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    OccurrenceDetail:
      allOf:
        - $ref: '#/components/schemas/Occurrence'
        - type: object
          properties:
            event:
              type: object
              nullable: true
              additionalProperties: true
            gateway:
              type: object
              nullable: true
              additionalProperties: true
            decisions_count:
              type: integer
            notifications_count:
              type: integer
            decisions:
              type: array
              items:
                type: object
                properties:
                  document_id:
                    type: string
                    format: uuid
                  channel:
                    $ref: '#/components/schemas/Channel'
                  outcome:
                    type: string
                    enum:
                      - deferred
                      - fallback
                      - queued
                      - skipped
                      - suppressed
                  reason:
                    type: string
                    nullable: true
                    example: quiet-hours
                  fallback_of:
                    type: string
                    format: uuid
                    nullable: true
                  recipient:
                    type: string
                    format: uuid
                    nullable: true
                    description: Recipient user id (addresses are never shown).
                  recipient_user:
                    type: string
                    format: uuid
                    nullable: true
                  recipient_account:
                    type: string
                    format: uuid
                    nullable: true
                  recipient_key:
                    type: string
                    nullable: true
                    description: Digest of the recipient address.
                  locale:
                    type: string
                    nullable: true
                  locale_fallback:
                    type: boolean
                    nullable: true
                  notification:
                    type: string
                    format: uuid
                    nullable: true
                  notification_template_version:
                    type: string
                    format: uuid
                    nullable: true
                  template_version:
                    type: integer
                    nullable: true
                    description: Number of the template version rendered.
                  deferred_until:
                    type: string
                    format: date-time
                    nullable: true
                  evaluated_at:
                    type: string
                    format: date-time
                    nullable: true
            notifications:
              type: array
              items:
                allOf:
                  - $ref: '#/components/schemas/OccurrenceNotification'
                  - type: object
                    properties:
                      resends:
                        type: array
                        description: Ids of the notifications resent from this one.
                        items:
                          type: string
                          format: uuid
                      events:
                        type: array
                        description: Provider and Horizon events, oldest first.
                        items:
                          type: object
                          properties:
                            document_id:
                              type: string
                              format: uuid
                            notification:
                              type: string
                              format: uuid
                            channel:
                              type: string
                            event_type:
                              type: string
                              example: email.delivered
                            provider:
                              type: string
                            provider_event_id:
                              type: string
                              nullable: true
                            occurred_at:
                              type: string
                              format: date-time
                            created_at:
                              type: string
                              format: date-time
                            payload:
                              description: Provider payload; only with view-content.
                              nullable: true
                      timeline:
                        type: array
                        description: Same entries in the timeline shape of the module.
                        items:
                          type: object
                          additionalProperties: true
    Meta:
      type: object
      properties:
        correlation:
          type: string
          description: Request correlation id; quote it when reporting an issue.
        status:
          type: integer
        timestamp:
          type: string
          format: date-time
        version:
          type: string
          nullable: true
    Occurrence:
      type: object
      properties:
        document_id:
          type: string
          format: uuid
        event_key:
          type: string
          example: maihue.onboarding.invited
        notification_event:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - completed
            - evaluated
            - failed
            - no-op
            - partially-failed
            - received
            - rejected
        reason:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        origin:
          type: string
          enum:
            - api_key
            - cron
            - system
            - user
        subject_type:
          type: string
          nullable: true
        subject_id:
          type: string
          nullable: true
        account:
          type: string
          format: uuid
          nullable: true
        actor_user:
          type: string
          format: uuid
          nullable: true
        api_key:
          type: string
          format: uuid
          nullable: true
        notification_gateway:
          type: string
          format: uuid
          nullable: true
        notification_request:
          type: string
          format: uuid
          nullable: true
        correlation:
          type: string
          nullable: true
        idempotency_key:
          type: string
          nullable: true
        locale:
          type: string
          nullable: true
        payload:
          description: Event payload; values are `[redacted]` without view-content.
          nullable: true
        payload_schema_version:
          type: integer
          nullable: true
        evaluated_at:
          type: string
          format: date-time
          nullable: true
        completed_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
    Channel:
      type: string
      enum:
        - email
        - in_app
        - live_activity
        - push
        - sms
        - whatsapp
    OccurrenceNotification:
      type: object
      properties:
        document_id:
          type: string
          format: uuid
        channel:
          $ref: '#/components/schemas/Channel'
        category:
          type: string
        status:
          type: string
        status_reason:
          type: string
          nullable: true
        origin:
          type: string
        external_id:
          type: string
        notification_occurrence:
          type: string
          format: uuid
          nullable: true
        notification_event:
          type: string
          format: uuid
          nullable: true
        notification_gateway:
          type: string
          format: uuid
        notification_request:
          type: string
          format: uuid
          nullable: true
        notification_template_version:
          type: string
          format: uuid
          nullable: true
        user:
          type: string
          format: uuid
          nullable: true
        account:
          type: string
          format: uuid
          nullable: true
        locale:
          type: string
          nullable: true
        locale_fallback:
          type: boolean
          nullable: true
        provider:
          type: string
          nullable: true
        provider_message_id:
          type: string
          nullable: true
        queue_event:
          type: string
          format: uuid
          nullable: true
        resent_from:
          type: string
          format: uuid
          nullable: true
        resent_by:
          type: string
          format: uuid
          nullable: true
        resent_reason:
          type: string
          nullable: true
        cost_amount:
          type: number
          nullable: true
        cost_currency:
          type: string
          nullable: true
        data:
          description: Template data; only with view-content.
          nullable: true
        error:
          type: string
          nullable: true
        last_event:
          type: string
          nullable: true
        last_event_at:
          type: string
          format: date-time
          nullable: true
        send_at:
          type: string
          format: date-time
          nullable: true
        deferred_until:
          type: string
          format: date-time
          nullable: true
        sent_at:
          type: string
          format: date-time
          nullable: true
        delivered_at:
          type: string
          format: date-time
          nullable: true
        opened_at:
          type: string
          format: date-time
          nullable: true
        clicked_at:
          type: string
          format: date-time
          nullable: true
        failed_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    BadRequest:
      description: Malformed path, query, `filters` or JSON body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked or expired credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The caller lacks the required permission
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Record not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A `secret` API key, `hzk_<env>_<prefix>_<secret>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.