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

# Delete an annotation

> Deletes an annotation, automatic ones included — a broadcast annotation cannot come back by accident, since its broadcast has already started. Requires the web_analytics write permission.




## OpenAPI

````yaml /openapi.json post /api/annotations.delete
openapi: 3.0.3
info:
  title: Notifuse API
  description: API for Notifuse - a transactional email and newsletter management platform
  version: 1.0.0
  contact:
    name: Notifuse Support
    url: https://www.notifuse.com/support
    email: hello@notifuse.com
servers:
  - url: https://{notifuseDomain}
    description: Customer-specific Notifuse API server
    variables:
      notifuseDomain:
        description: Your unique Notifuse domain
        default: demo.notifuse.com
security: []
paths:
  /api/annotations.delete:
    post:
      tags:
        - Web Analytics
      summary: Delete an annotation
      description: >
        Deletes an annotation, automatic ones included — a broadcast annotation
        cannot come back by accident, since its broadcast has already started.
        Requires the web_analytics write permission.
      operationId: deleteAnnotation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteAnnotationRequest'
      responses:
        '200':
          description: >-
            Annotation deleted. A body rather than a 204, so a delete is never
            indistinguishable from a proxy swallowing the response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAnnotationResponse'
        '400':
          description: >-
            Bad request - unparseable body, missing id, or the instance runs in
            demo mode.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                missingId:
                  value:
                    error: 'invalid request: id is required'
                demoMode:
                  value:
                    error: This operation is not allowed in demo mode
        '401':
          description: Unauthorized - invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - missing required permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: >-
                  Insufficient permissions: write access to web analytics
                  required
        '404':
          description: No annotation with that ID in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: 'annotation not found with ID: 3f2504e04f8911d39a0c0305e82c3301'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Failed to delete annotation
      security:
        - BearerAuth: []
components:
  schemas:
    DeleteAnnotationRequest:
      type: object
      required:
        - workspace_id
        - id
      properties:
        workspace_id:
          type: string
          example: ws_1234567890
        id:
          type: string
          example: 3f2504e04f8911d39a0c0305e82c3301
    DeleteAnnotationResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API token for authentication

````