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

# Create Notification

> Remind or notify someone about a message

With at, remind you or a person in the conversation about the message at that time. With template, send them an in-app notice now; the text comes from the template, there is no free text. Undoable.

Requires the `automations:write` scope.


## OpenAPI

````yaml /api-reference/openapi.json post /v1/notifications.create
openapi: 3.1.0
info:
  title: Avazal API
  version: '1'
  description: >-
    Every operation is `POST /v1/<concept>.<verb>` with a JSON body, so agents
    and scripts call Avazal the same way. Slack, email, Linear, GitHub and
    calendars are sources behind Avazal's concepts: a task is a task whether it
    lives in a Slack List or Linear.


    Authenticate with an API key from Settings → API keys, sent as `x-api-key:
    avz_…` or `Authorization: Bearer avz_…`. A key acts as the member who
    created it, in one organization, and only with the scopes it was given.


    The MCP server at `/mcp` exposes the same operations as tools.


    Tagged JSON errors that include a `message` also include a machine-readable
    `code` matching `_tag`. Branch on `code`, not the human-readable message.


    Guides, scopes and MCP setup are at https://docs.avazal.com.
servers:
  - url: https://api.avazal.com
    description: Avazal
security:
  - apiKey: []
  - bearer: []
tags:
  - name: me
    x-group: Profile
  - name: accounts
    x-group: Accounts
  - name: settings
    x-group: Settings
  - name: search
    x-group: Search
  - name: inbox
    x-group: Inbox
  - name: conversations
    x-group: Conversations
  - name: messages
    x-group: Messages
  - name: reactions
    x-group: Reactions
  - name: emoji
    x-group: Emoji
  - name: files
    x-group: Files
  - name: people
    x-group: People
  - name: lists
    x-group: Lists
  - name: tasks
    x-group: Tasks
  - name: comments
    x-group: Comments
  - name: links
    x-group: Links
  - name: shares
    x-group: Shares
  - name: documents
    x-group: Documents
  - name: events
    x-group: Events
  - name: notifications
    x-group: Notifications
  - name: triggers
    x-group: Triggers
  - name: runs
    x-group: Runs
  - name: asks
    x-group: Asks
paths:
  /v1/notifications.create:
    post:
      tags:
        - notifications
      summary: Remind or notify someone about a message
      description: >-
        With at, remind you or a person in the conversation about the message at
        that time. With template, send them an in-app notice now; the text comes
        from the template, there is no free text. Undoable.


        Requires the `automations:write` scope.
      operationId: notifications.create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationCreate'
        required: true
      responses:
        '200':
          description: AppliedEffect
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppliedEffect'
        '400':
          description: The request did not match the expected schema
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/HttpApiDecodeError'
                  - $ref: '#/components/schemas/InvalidId'
        '401':
          description: KeyRequired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyRequired'
        '403':
          description: AccessPending
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/AccessPending'
                  - $ref: '#/components/schemas/ScopeRequired'
                  - $ref: '#/components/schemas/OutsideRun'
                  - $ref: '#/components/schemas/ToolNotGranted'
        '409':
          description: AskFirst
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskFirst'
        '422':
          description: Unsupported
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Unsupported'
                  - $ref: '#/components/schemas/EffectRejected'
        '429':
          description: BudgetExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BudgetExceeded'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ServerError'
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: string
                    additionalProperties: false
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    NotificationCreate:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: The message to remind or notify about, a chat message id.
        at:
          allOf:
            - $ref: '#/components/schemas/Date'
          description: Remind at this time. Use this or template, not both.
        template:
          allOf:
            - $ref: '#/components/schemas/AgentNoticeTemplate'
          description: Notify now with this fixed text. Use this or at, not both.
        who:
          allOf:
            - $ref: '#/components/schemas/Trimmed'
              title: nonEmptyString
              minLength: 1
          description: >-
            The person in the conversation. Defaults to you for a reminder;
            required with template.
        triggerId:
          $ref: '#/components/schemas/TriggerId'
      additionalProperties: false
    AppliedEffect:
      type: object
      required:
        - target
        - undo
      properties:
        target:
          anyOf:
            - type: object
              required:
                - _tag
                - rfc822Id
              properties:
                _tag:
                  type: string
                  enum:
                    - MailMessage
                rfc822Id:
                  type: string
                  description: The email's Message-ID header.
              additionalProperties: false
            - type: object
              required:
                - _tag
                - threadId
              properties:
                _tag:
                  type: string
                  enum:
                    - MailThread
                threadId:
                  type: string
                  description: An email thread. From threads_list or inbox_next.
              additionalProperties: false
            - type: object
              required:
                - _tag
                - eventId
                - calendarId
              properties:
                _tag:
                  type: string
                  enum:
                    - CalendarEvent
                eventId:
                  type: string
                  description: >-
                    A calendar event, the id events_get and events_update take.
                    From events_list.
                calendarId:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: A calendar, the id from calendars_list.
              additionalProperties: false
            - type: object
              required:
                - _tag
                - conversation
                - message
                - thread
              properties:
                _tag:
                  type: string
                  enum:
                    - ChatRef
                conversation:
                  type: string
                message:
                  anyOf:
                    - type: string
                    - type: 'null'
                thread:
                  anyOf:
                    - type: string
                    - type: 'null'
              additionalProperties: false
            - type: object
              required:
                - _tag
                - fileId
                - item
              properties:
                _tag:
                  type: string
                  enum:
                    - ChatList
                fileId:
                  type: string
                  description: The Slack List's file id.
                item:
                  anyOf:
                    - type: string
                    - type: 'null'
              additionalProperties: false
            - type: object
              required:
                - _tag
                - member
              properties:
                _tag:
                  type: string
                  enum:
                    - ChatMember
                member:
                  type: string
              additionalProperties: false
            - type: object
              required:
                - _tag
                - provider
                - fileId
              properties:
                _tag:
                  type: string
                  enum:
                    - RemoteFile
                provider:
                  type: string
                  enum:
                    - slack
                    - google-drive
                fileId:
                  type: string
                  description: The file's id at its provider.
              additionalProperties: false
            - type: object
              required:
                - _tag
                - workspace
                - identifier
              properties:
                _tag:
                  type: string
                  enum:
                    - LinearIssue
                workspace:
                  type: string
                identifier:
                  type: string
              additionalProperties: false
            - type: object
              required:
                - _tag
                - id
                - message
                - thread
              properties:
                _tag:
                  type: string
                  enum:
                    - Avazal
                id:
                  type: string
                  title: >-
                    `${"mthr" | "cevt" | "doc" | "chcv" | "arun" | "aart" |
                    "lin" | "lst" | "tsk"}_${string}`
                  description: >-
                    An Avazal object: mthr_ mail thread, cevt_ calendar event,
                    doc_ document, chcv_ conversation, arun_ agent run, aart_
                    artifact, lin_ Linear issue, lst_ Slack List or tsk_ List
                    item. From search_query or search_resolve.
                  pattern: ^(mthr|cevt|doc|chcv|arun|aart|lin|lst|tsk)_[\s\S]*?$
                message:
                  anyOf:
                    - type: string
                    - type: 'null'
                thread:
                  anyOf:
                    - type: string
                    - type: 'null'
              additionalProperties: false
          description: >-
            What the effect created or changed: the task, the message or the
            link target.
        undo:
          type: object
          required:
            - tool
            - ref
          properties:
            tool:
              $ref: '#/components/schemas/OperationName'
            ref:
              type: string
          additionalProperties: false
      additionalProperties: false
    HttpApiDecodeError:
      type: object
      required:
        - issues
        - message
        - _tag
        - code
      properties:
        issues:
          type: array
          items:
            $ref: '#/components/schemas/Issue'
        message:
          type: string
        _tag:
          type: string
          enum:
            - HttpApiDecodeError
        code:
          type: string
          enum:
            - HttpApiDecodeError
      additionalProperties: false
      description: The request did not match the expected schema
    InvalidId:
      type: object
      required:
        - id
        - message
        - _tag
        - code
      properties:
        id:
          type: string
          description: The id that was passed and could not be read.
        message:
          type: string
        _tag:
          type: string
          enum:
            - InvalidId
        code:
          type: string
          enum:
            - InvalidId
      additionalProperties: false
    KeyRequired:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - KeyRequired
        code:
          type: string
          enum:
            - KeyRequired
      additionalProperties: false
    AccessPending:
      type: object
      required:
        - _tag
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - AccessPending
        code:
          type: string
          enum:
            - AccessPending
      additionalProperties: false
    ScopeRequired:
      type: object
      required:
        - scope
        - message
        - _tag
        - code
      properties:
        scope:
          $ref: '#/components/schemas/AgentScope'
        message:
          type: string
        _tag:
          type: string
          enum:
            - ScopeRequired
        code:
          type: string
          enum:
            - ScopeRequired
      additionalProperties: false
    OutsideRun:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - OutsideRun
        code:
          type: string
          enum:
            - OutsideRun
      additionalProperties: false
    ToolNotGranted:
      type: object
      required:
        - tool
        - message
        - _tag
        - code
      properties:
        tool:
          type: string
        message:
          type: string
        _tag:
          type: string
          enum:
            - ToolNotGranted
        code:
          type: string
          enum:
            - ToolNotGranted
      additionalProperties: false
    AskFirst:
      type: object
      required:
        - action
        - message
        - _tag
        - code
      properties:
        action:
          type: object
          required:
            - tool
            - input
          properties:
            tool:
              $ref: '#/components/schemas/OperationName'
            input:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
                title: unknown
          additionalProperties: false
        message:
          type: string
        _tag:
          type: string
          enum:
            - AskFirst
        code:
          type: string
          enum:
            - AskFirst
      additionalProperties: false
    Unsupported:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - Unsupported
        code:
          type: string
          enum:
            - Unsupported
      additionalProperties: false
    EffectRejected:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - EffectRejected
        code:
          type: string
          enum:
            - EffectRejected
      additionalProperties: false
    BudgetExceeded:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - BudgetExceeded
        code:
          type: string
          enum:
            - BudgetExceeded
      additionalProperties: false
    ServerError:
      type: object
      required:
        - traceId
        - _tag
      properties:
        message:
          type: string
        traceId:
          type: string
          description: The request trace ID, also sent in the x-trace-id header.
        _tag:
          type: string
          enum:
            - ServerError
        code:
          type: string
          enum:
            - ServerError
      additionalProperties: false
    Date:
      type: string
    AgentNoticeTemplate:
      type: string
      enum:
        - needs_you
        - fyi
        - done
      description: >-
        needs_you: the message needs the person. fyi: worth a look, nothing to
        do. done: the work on the message is finished.
    Trimmed:
      type: string
      title: trimmed
      pattern: ^\S[\s\S]*\S$|^\S$|^$
    TriggerId:
      type: string
      title: '`trg_${string}`'
      description: Trigger
      pattern: ^trg_[\s\S]*?$
    OperationName:
      type: string
      description: An Avazal tool name, e.g. messages_send.
      pattern: ^[a-z]+_[a-z_]+$
    Issue:
      type: object
      required:
        - _tag
        - path
        - message
      properties:
        _tag:
          type: string
          enum:
            - Pointer
            - Unexpected
            - Missing
            - Composite
            - Refinement
            - Transformation
            - Type
            - Forbidden
          description: The tag identifying the type of parse issue
        path:
          type: array
          items:
            $ref: '#/components/schemas/PropertyKey'
          description: The path to the property where the issue occurred
        message:
          type: string
          description: A descriptive message explaining the issue
      additionalProperties: false
      description: >-
        Represents an error encountered while parsing a value to match the
        schema
    AgentScope:
      type: string
      enum:
        - messages:read
        - messages:write
        - messages:send
        - tasks:read
        - tasks:write
        - documents:read
        - documents:write
        - events:read
        - events:write
        - people:read
        - people:write
        - automations:read
        - automations:write
        - settings:read
        - settings:write
        - search:read
      description: A concept and the action an agent may take on it.
    PropertyKey:
      anyOf:
        - type: string
        - type: number
        - type: object
          required:
            - _tag
            - key
          properties:
            _tag:
              type: string
              enum:
                - symbol
            key:
              type: string
          additionalProperties: false
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: An Avazal API key (avz_…) created in Settings → API keys.
    bearer:
      type: http
      scheme: bearer
      description: 'The same API key sent as `Authorization: Bearer avz_…`.'

````

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