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

# List notifications

> List the notifications this app has pushed. Requires the `notifications:read` scope.



## OpenAPI

````yaml /api-reference/openapi.json get /api/notifications
openapi: 3.1.0
info:
  title: ego API
  version: 0.0.0
  description: >-
    Preview specification for the ego API. ego sits between your data and the
    agents that read it, granting access one scope at a time. Each endpoint
    requires the native scope named in its description, granted on the consent
    screen and carried on the bearer token.
servers:
  - url: https://api.myego.dev
    description: Preview — not yet live
security:
  - bearerAuth: []
paths:
  /api/notifications:
    get:
      tags:
        - Notifications
      summary: List notifications
      description: >-
        List the notifications this app has pushed. Requires the
        `notifications:read` scope.
      operationId: listNotifications
      responses:
        '200':
          description: The app's pushed notifications.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    NotificationList:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Notification'
    Notification:
      type: object
      required:
        - _id
        - _creationTime
        - title
        - body
        - type
        - createdAt
      properties:
        _id:
          type: string
          description: Identifier of the notification.
          examples:
            - k1799wxyz
        _creationTime:
          type: number
          description: Creation timestamp, in epoch milliseconds.
        title:
          type: string
          examples:
            - Backup complete
        body:
          type: string
          examples:
            - The nightly backup finished in 4m12s.
        type:
          type: string
          examples:
            - backup
        data:
          type: object
          additionalProperties: true
        createdAt:
          type: number
          description: Creation timestamp, in epoch milliseconds.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A human-readable error message.
          examples:
            - Unauthorized
  responses:
    Unauthorized:
      description: The token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
    Forbidden:
      description: The token lacks the scope this endpoint requires.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Forbidden
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your ego access token as a bearer token: `Authorization: Bearer
        <token>`. The token carries the scopes granted on the consent screen.

````