{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/conversations-api-channel-structure.json",
  "name": "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": "datetime",
      "description": "ISO 8601 timestamp when the channel was created",
      "example": "2024-01-01T00:00:00Z"
    }
  },
  "required": [
    "id",
    "name",
    "type"
  ]
}