{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-schema/conversations-api-channel-schema.json",
  "title": "Channel",
  "description": "Represents a communication channel for conversations.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the channel",
      "example": "channel_789"
    },
    "name": {
      "type": "string",
      "description": "Display name of the channel",
      "example": "Website Chat"
    },
    "type": {
      "type": "string",
      "description": "Type of channel (e.g., EMAIL, CHAT, FACEBOOK)",
      "example": "CHAT"
    },
    "accountId": {
      "type": "string",
      "description": "Associated account ID",
      "example": "account_123"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the channel was created",
      "example": "2024-01-01T00:00:00Z"
    }
  },
  "required": [
    "id",
    "name",
    "type"
  ]
}