Docs
/
/

Channel groups Management API reference

Complete reference documentation for the Channel groups resource.

Channel groups

#

Channel groups are a way to group channels together to use as a single destination, or to conditionally apply rules to determine which channel(s) should be used.

List channel groups

#

Returns a paginated list of channel groups. Note: the list of channel groups is across the entire account, not scoped to an environment.

Endpoint

GET/v1/channel_groups

Query parameters

after
string

The cursor to fetch entries after.

before
string

The cursor to fetch entries before.

limit
integer

The number of entries to fetch per-page.

Returns

PaginatedChannelGroupResponse

A paginated list of ChannelGroup. Contains a list of entries and page information.

A list of entries.

channel_rulesRequired

Rules for determining which channels should be used.

argument
string

For conditional rules, the value to compare against.

channelRequired

A configured channel, which is a way to route messages to a provider.

archived_at
string(date-time)

The timestamp of when the channel was deleted.

created_at
string(date-time)
Required

The timestamp of when the channel was created.

custom_icon_url
string

Optional URL to a custom icon for the channel. Only used for display purposes in the dashboard.

description
string

Optional description of the channel's purpose or usage.

id
string
Required

The unique identifier for the channel.

key
string
Required

Unique identifier for the channel within a project (immutable once created).

name
string
Required

The human-readable name of the channel.

provider
string
Required

The ID of the provider that this channel uses to deliver messages. Learn more about the providers available in our documentation.

type
enum(string)
Required

The type of channel, determining what kind of messages it can send.

emailin_appin_app_feedin_app_guidesmspushchathttp
updated_at
string(date-time)
Required

The timestamp of when the channel was last updated.

created_at
string(date-time)
Required

The timestamp of when the rule was created.

index
integer
Required

The order index of this rule within the channel group.

operator
enum(string)

For conditional rules, the operator to apply.

equal_tonot_equal_togreater_thanless_thangreater_than_or_equal_toless_than_or_equal_tocontainsnot_containscontains_allnot_contains_allis_timestamp_beforeis_timestamp_afteris_timestamp_before_dateis_timestamp_after_dateis_timestamp_betweenemptynot_emptyis_timestampis_audience_memberis_not_audience_member
rule_type
enum(string)
Required

The type of rule (if = conditional, unless = negative conditional, always = always apply).

ifunlessalways
updated_at
string(date-time)
Required

The timestamp of when the rule was last updated.

variable
string

For conditional rules, the variable to evaluate.

channel_type
enum(string)
Required

The type of channels contained in this group.

emailin_appin_app_feedin_app_guidesmspushchathttp
created_at
string(date-time)
Required

The timestamp of when the channel group was created.

key
string
Required

Unique identifier for the channel group within a project.

name
string
Required

The human-readable name of the channel group.

operator
enum(string)
Required

Determines how the channel rules are applied ('any' means any rule can match, 'all' means all rules must match).

anyall
source
enum(string)
Required

Whether this channel group was created by the system or a user. Only user created channel groups can be modified.

systemuser
updated_at
string(date-time)
Required

The timestamp of when the channel group was last updated.

page_info

The information about a paginated result.

after
string

The cursor to fetch entries after. Will only be present if there are more entries to fetch.

before
string

The cursor to fetch entries before. Will only be present if there are more entries to fetch before the current page.

page_size
integer

The number of entries to fetch per-page.

ChannelGroup

#

A group of channels with rules for when they are applicable.

Attributes

channel_rules

Rules for determining which channels should be used.

argument
string

For conditional rules, the value to compare against.

channelRequired

A configured channel, which is a way to route messages to a provider.

archived_at
string(date-time)

The timestamp of when the channel was deleted.

created_at
string(date-time)
Required

The timestamp of when the channel was created.

custom_icon_url
string

Optional URL to a custom icon for the channel. Only used for display purposes in the dashboard.

description
string

Optional description of the channel's purpose or usage.

id
string
Required

The unique identifier for the channel.

key
string
Required

Unique identifier for the channel within a project (immutable once created).

name
string
Required

The human-readable name of the channel.

provider
string
Required

The ID of the provider that this channel uses to deliver messages. Learn more about the providers available in our documentation.

type
enum(string)
Required

The type of channel, determining what kind of messages it can send.

emailin_appin_app_feedin_app_guidesmspushchathttp
updated_at
string(date-time)
Required

The timestamp of when the channel was last updated.

created_at
string(date-time)
Required

The timestamp of when the rule was created.

index
integer
Required

The order index of this rule within the channel group.

operator
enum(string)

For conditional rules, the operator to apply.

equal_tonot_equal_togreater_thanless_thangreater_than_or_equal_toless_than_or_equal_tocontainsnot_containscontains_allnot_contains_allis_timestamp_beforeis_timestamp_afteris_timestamp_before_dateis_timestamp_after_dateis_timestamp_betweenemptynot_emptyis_timestampis_audience_memberis_not_audience_member
rule_type
enum(string)
Required

The type of rule (if = conditional, unless = negative conditional, always = always apply).

ifunlessalways
updated_at
string(date-time)
Required

The timestamp of when the rule was last updated.

variable
string

For conditional rules, the variable to evaluate.

channel_type
enum(string)

The type of channels contained in this group.

emailin_appin_app_feedin_app_guidesmspushchathttp
created_at
string(date-time)

The timestamp of when the channel group was created.

key
string

Unique identifier for the channel group within a project.

name
string

The human-readable name of the channel group.

operator
enum(string)

Determines how the channel rules are applied ('any' means any rule can match, 'all' means all rules must match).

anyall
source
enum(string)

Whether this channel group was created by the system or a user. Only user created channel groups can be modified.

systemuser
updated_at
string(date-time)

The timestamp of when the channel group was last updated.

ChannelGroupRule

#

A rule that determines if a channel should be executed as part of a channel group.

Attributes

argument
string

For conditional rules, the value to compare against.

channel

A configured channel, which is a way to route messages to a provider.

archived_at
string(date-time)

The timestamp of when the channel was deleted.

created_at
string(date-time)

The timestamp of when the channel was created.

custom_icon_url
string

Optional URL to a custom icon for the channel. Only used for display purposes in the dashboard.

description
string

Optional description of the channel's purpose or usage.

id
string

The unique identifier for the channel.

key
string

Unique identifier for the channel within a project (immutable once created).

name
string

The human-readable name of the channel.

provider
string

The ID of the provider that this channel uses to deliver messages. Learn more about the providers available in our documentation.

type
enum(string)

The type of channel, determining what kind of messages it can send.

emailin_appin_app_feedin_app_guidesmspushchathttp
updated_at
string(date-time)

The timestamp of when the channel was last updated.

created_at
string(date-time)

The timestamp of when the rule was created.

index
integer

The order index of this rule within the channel group.

operator
enum(string)

For conditional rules, the operator to apply.

equal_tonot_equal_togreater_thanless_thangreater_than_or_equal_toless_than_or_equal_tocontainsnot_containscontains_allnot_contains_allis_timestamp_beforeis_timestamp_afteris_timestamp_before_dateis_timestamp_after_dateis_timestamp_betweenemptynot_emptyis_timestampis_audience_memberis_not_audience_member
rule_type
enum(string)

The type of rule (if = conditional, unless = negative conditional, always = always apply).

ifunlessalways
updated_at
string(date-time)

The timestamp of when the rule was last updated.

variable
string

For conditional rules, the variable to evaluate.

New chat