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

# Receive Notification

> Unified webhook notification receiver.

**This endpoint is publicly accessible** -- providers (Microsoft Graph,
Google Pub/Sub, etc.) call it directly.

The ``{service}`` path segment selects the handler:
    - ``outlook``  -- Microsoft Graph push notifications
    - ``gmail``    -- Google Cloud Pub/Sub push notifications
    - (extensible: add new handlers in ``webhook_handlers/``)

Unknown services receive a ``200 OK`` (to prevent provider retries).



## OpenAPI

````yaml /api-reference/openapi.json post /api/webhooks/{service}/notifications
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/webhooks/{service}/notifications:
    post:
      tags:
        - webhooks
      summary: Receive Notification
      description: |-
        Unified webhook notification receiver.

        **This endpoint is publicly accessible** -- providers (Microsoft Graph,
        Google Pub/Sub, etc.) call it directly.

        The ``{service}`` path segment selects the handler:
            - ``outlook``  -- Microsoft Graph push notifications
            - ``gmail``    -- Google Cloud Pub/Sub push notifications
            - (extensible: add new handlers in ``webhook_handlers/``)

        Unknown services receive a ``200 OK`` (to prevent provider retries).
      operationId: receive_notification_api_webhooks__service__notifications_post
      parameters:
        - name: service
          in: path
          required: true
          schema:
            type: string
            title: Service
        - name: validationToken
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Validationtoken
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

## Related topics

- [List Notifications](/api-reference/notifications/list-notifications.md)
- [Notification Stream](/api-reference/notifications/notification-stream.md)
- [Rag Webhook](/api-reference/rag/rag-webhook.md)
- [Mark As Read](/api-reference/notifications/mark-as-read.md)
- [Mark All As Read](/api-reference/notifications/mark-all-as-read.md)
