# `Twilio.Resources.Chat.V2.Service.Channel`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/resources/chat/v2/service/channel.ex#L2)

Channels represent chat rooms

SID prefix: `CH`

Parent: `/Services/{Sid}`

## Sub-resources
- `invites` — `/v2/Services/{service_sid}/Channels/{channel_sid}/Invites`
- `members` — `/v2/Services/{service_sid}/Channels/{channel_sid}/Members`
- `messages` — `/v2/Services/{service_sid}/Channels/{channel_sid}/Messages`
- `webhooks` — `/v2/Services/{service_sid}/Channels/{channel_sid}/Webhooks`

## Properties

| Field | Description |
|-------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `account_sid` | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Channel resource. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `attributes` | The JSON string that stores application-specific data. If attributes have not been set, `{}` is returned.. PII: sensitive |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `created_by` | The `identity` of the User that created the channel. If the Channel was created by using the API, the value is `system`.. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `date_created` | The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.. Format: date-time |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `date_updated` | The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.. Format: date-time |
| `friendly_name` | The string that you assigned to describe the resource.. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `links` | The absolute URLs of the [Members](https://www.twilio.com/docs/chat/rest/member-resource), [Messages](https://www.twilio.com/docs/chat/rest/message-resource), [Invites](https://www.twilio.com/docs/chat/rest/invite-resource), Webhooks and, if it exists, the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) for the Channel.. Format: uri-map |
| `members_count` | The number of Members in the Channel. |
| `messages_count` | The number of Messages that have been passed in the Channel. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `service_sid` | The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Channel resource is associated with. |
| `sid` | The unique string that we created to identify the Channel resource. |
| `type` | The visibility of the channel. Can be: `public` or `private`.. Values: `public`, `private` |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `unique_name` | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.. PII: standard |
| `url` | The absolute URL of the Channel resource.. Format: uri |

# `t`

```elixir
@type t() :: %Twilio.Resources.Chat.V2.Service.Channel{
  account_sid: String.t() | nil,
  attributes: String.t() | nil,
  created_by: String.t() | nil,
  date_created: String.t() | nil,
  date_updated: String.t() | nil,
  friendly_name: String.t() | nil,
  links: map() | nil,
  members_count: integer(),
  messages_count: integer(),
  service_sid: String.t() | nil,
  sid: String.t() | nil,
  type: String.t(),
  unique_name: String.t() | nil,
  url: String.t() | nil
}
```

# `object_name`

# `sid_prefix`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
