---
updatedAt: 2026-06-03T15:32:12.000Z
agentTools:
  projectIndex: https://docs.glassix.com/llms.txt
---

# Add Note

This endpoint adds a note to the ticket.
The note will be sent on behalf of the token's user and not visible to customers, only to agents.

**At least one of the following params is required to add a note:**
1. text
2. HTML

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.2",
    "title": "Glassix",
    "description": "Glassix REST API",
    "contact": {}
  },
  "servers": [
    {
      "description": "Production server",
      "url": "https://{workspace}.glassix.com/api/v1.2"
    }
  ],
  "security": [
    {
      "Bearer": []
    }
  ],
  "paths": {
    "/tickets/addnote/{ticketId}": {
      "post": {
        "operationId": "POST_tickets-addnote-ticketId",
        "summary": "Add Note",
        "tags": [
          "Tickets"
        ],
        "security": [
          {
            "Bearer": []
          }
        ],
        "description": "This endpoint adds a note to the ticket.\nThe note will be sent on behalf of the token's user and not visible to customers, only to agents.\n\n**At least one of the following params is required to add a note:**\n1. text\n2. HTML",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "number",
              "description": "Unique identifier for a ticket.",
              "example": 16018
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "",
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "example": "Hello!"
                  },
                  "html": {
                    "type": "string",
                    "description": "The html of the note. Add either text or html.",
                    "example": "<p>Hello!</p>",
                    "minLength": 1
                  }
                }
              },
              "examples": {
                "example": {
                  "value": {
                    "text": "User asked to add item 47265 to order.",
                    "html": "<p>User asked to add item 47265 to order.</p>"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success – note added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "missing property": {
                    "value": {
                      "message": "text or html property is missing."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "oauth2",
        "description": "",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "",
            "tokenUrl": "",
            "refreshUrl": "",
            "scopes": {}
          }
        }
      }
    }
  }
}
```