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

# Notifications feed

> The events the webhooks carry, oldest first, by cursor, for those who pull instead of receiving. The `notifications` feature.



## OpenAPI

````yaml openapi/en/cell.json GET /v1/notifications
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/notifications:
    get:
      tags:
        - notifications
      summary: Notifications feed
      description: >-
        The events the webhooks carry, oldest first, from `cursor` (the start of
        the feed without one); a

        poll with nothing new answers the same cursor. Events stay 7 days.


        **Authentication.** Any source key, whatever its scopes: `Authorization:
        Bearer nia_sk_...`. It answers only in a space with the `notifications`
        feature on (the `features` document); in a space without it, 404.
      operationId: notifications_v1_notifications_get
      parameters:
        - in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - maxLength: 200
                type: string
              - type: 'null'
            title: Cursor
        - in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPage'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
      x-codeSamples:
        - lang: python
          label: Python
          source: |-
            # Pull instead of receiving webhooks: keep the cursor between polls
            page = niadra.api.notifications(cursor=cursor, limit=100)
            for event in page.items:
                handle(event.type, event.data)  # ids and pointers, never content
            cursor = page.next_cursor
        - lang: typescript
          label: TypeScript
          source: >-
            // Pull instead of receiving webhooks: keep the cursor between polls

            const page = await niadra.api.notifications({ cursor, limit: 100 });

            for (const event of page.items) handle(event.type, event.data); //
            ids and pointers, never content

            cursor = page.next_cursor;
components:
  schemas:
    NotificationPage:
      additionalProperties: false
      description: >-
        Oldest first. `next_cursor` is where the next poll starts: the same
        cursor when nothing is new.
      properties:
        items:
          items:
            $ref: '#/components/schemas/Notification'
          title: Items
          type: array
        next_cursor:
          title: Next Cursor
          type: string
      required:
        - items
        - next_cursor
      title: NotificationPage
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    Notification:
      additionalProperties: false
      description: >-
        A webhook's body, for the company that pulls instead of receiving it:
        the same fields, ids and

        pointers only. An event aimed at one endpoint, or about a memory item
        only some sources may read,

        reaches its webhooks only.
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        data:
          additionalProperties: true
          title: Data
          type: object
        id:
          description: The event's id; a webhook delivery of the same event has its own.
          maxLength: 512
          minLength: 1
          title: Id
          type: string
        links:
          additionalProperties:
            type: string
          title: Links
          type: object
        subject:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Subject
        tenant:
          maxLength: 512
          minLength: 1
          title: Tenant
          type: string
        type:
          maxLength: 256
          minLength: 1
          title: Type
          type: string
      required:
        - id
        - type
        - created_at
        - tenant
        - data
      title: Notification
      type: object

````