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

# Create notification

> Create a notification for the current user. Most notifications are raised by the server from task and workspace events; this exists for integrations. Returns null when the user has turned off this notification category in their preferences.



## OpenAPI

````yaml /openapi.json post /notification
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /notification:
    post:
      tags:
        - Notifications
      summary: Create notification
      description: >-
        Create a notification for the current user. Most notifications are
        raised by the server from task and workspace events; this exists for
        integrations. Returns null when the user has turned off this
        notification category in their preferences.
      operationId: createNotification
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type:
                    - string
                    - 'null'
                message:
                  type:
                    - string
                    - 'null'
                  description: Stored as the notification's content.
                type:
                  type: string
                eventData:
                  type:
                    - object
                    - 'null'
                  additionalProperties: {}
                relatedEntityId:
                  type: string
                  description: >-
                    Stored as resourceId: the task or workspace being pointed
                    at.
                relatedEntityType:
                  type: string
                  description: 'Stored as resourceType: `task` or `workspace`.'
              required:
                - type
      responses:
        '200':
          description: >-
            The created notification, or null when the user has muted this
            notification type
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Notification'
                  - type:
                      - object
                      - 'null'
        '400':
          description: Invalid request
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
components:
  schemas:
    Notification:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        title:
          type:
            - string
            - 'null'
        content:
          type:
            - string
            - 'null'
          description: >-
            Free-text body. Null for generated notifications, whose text the
            client renders from type and eventData.
        type:
          type: string
          description: >-
            One of: info, task_created, workspace_created, task_status_changed,
            task_assignee_changed, time_entry_created, due_date_reminder,
            task_overdue, task_mention, task_comment.
        eventData:
          description: >-
            Type-specific payload, e.g. { taskTitle, oldStatus, newStatus,
            projectId, workspaceId }.
        isRead:
          type:
            - boolean
            - 'null'
        resourceId:
          type:
            - string
            - 'null'
          description: The id of the task or workspace the notification points at.
        resourceType:
          type:
            - string
            - 'null'
          description: '`task` or `workspace`.'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - userId
        - title
        - content
        - type
        - isRead
        - resourceId
        - resourceType
        - createdAt
        - updatedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````