# Support-ticket events

Sent on ticket lifecycle changes. Only **PUBLIC** comments are delivered; internal agent notes never leave the platform.

**`ticket.created` / `ticket.updated`**
```json
{
  "event": "ticket.created",
  "data": {
    "ticket": {
      "ticketNumber": "TKT-00042",
      "title": "Cannot connect my payout account",
      "status": "OPEN",
      "priority": "NORMAL",
      "category": "Billing",
      "customerEmail": "ada@example.com",
      "customerName": "Ada Customer",
      "createdVia": "customer_portal"
    }
  },
  "timestamp": 1765449600000
}
```

**`ticket.comment_added`** adds a `comment` object beside `ticket`:
```json
{
  "comment": {
    "content": "Thanks - re-running the verification now.",
    "authorName": "Sam Agent",
    "authorType": "agent"
  }
}
```

Statuses are `OPEN`, `IN_PROGRESS`, `RESOLVED` or `CLOSED`; priorities are `LOW`, `NORMAL`, `HIGH` or `URGENT`; `authorType` is `agent` or `customer`. The `timestamp` inside the body is what you replay-check, and it is also the value signed.
