Docs
/
/

Channels mAPI reference

Complete reference documentation for the Channels resource.

Channels

#

Channels are the delivery mechanisms for your notifications.

List channels

#

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

Endpoint

GET/v1/channels

Query parameters

id
string(uuid)

A channel id to filter the results by.

include
enum(string)[]

Associated resources to include in the response. Accepts environment_settings to include per-environment channel configuration.

environment_settings
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

PaginatedChannelResponse

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

entries

A list of entries.

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.

environment_settings
object(any)

Per-environment settings for this channel, keyed by environment slug (e.g., 'development', 'production'). Only included when requested via the include parameter or when retrieving a single channel.

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.

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.

Get a channel

#

Returns a channel with all environment-specific settings. Secret values in provider settings are obfuscated unless they are Liquid templates (e.g., {{ vars.api_key }}).

Endpoint

GET/v1/channels/{channel_key}

Path parameters

channel_key
string

The key of the channel to retrieve.

Returns

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.

environment_settings
object(any)

Per-environment settings for this channel, keyed by environment slug (e.g., 'development', 'production'). Only included when requested via the include parameter or when retrieving a single channel.

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.

Channel

#

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

Attributes

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.

environment_settings
object(any)

Per-environment settings for this channel, keyed by environment slug (e.g., 'development', 'production'). Only included when requested via the include parameter or when retrieving a single channel.

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.

ChannelEnvironmentSettings

#

Environment-specific settings for a channel.

Attributes

channel_settings
object(any)

Channel-type-specific settings (e.g., from_address for email). Structure varies by channel type.

id
string(uuid)

The unique identifier for these environment settings.

is_sandbox
boolean

Whether the channel is in sandbox mode for this environment. Sandbox mode may prevent actual message delivery.

is_valid
boolean

Whether the channel configuration is valid and ready to send messages in this environment.

provider_settings
object(any)

Provider-specific settings (e.g., API keys, credentials). Structure varies by provider. Secret values are obfuscated unless they are Liquid templates.

ChatChannelSettings

#

Chat channel settings. Only used as configuration as part of a workflow channel step.

Attributes

email_based_user_id_resolution
boolean

Whether to resolve chat provider user IDs using a Knock user's email address. Only relevant for Slack channels for the time being.

link_tracking
boolean

Whether to track link clicks on chat notifications.

EmailChannelSettings

#

Email channel settings. Only used as configuration as part of a workflow channel step.

Attributes

bcc_address
string

The BCC address on email notifications. Supports liquid.

cc_address
string

The CC address on email notifications. Supports liquid.

from_address
string

The email address from which this channel will send. Supports liquid.

from_name
string

The name from which this channel will send. Supports liquid.

json_overrides
string

A JSON template for any custom overrides to merge into the API payload that is sent to the email provider. Supports liquid.

link_tracking
boolean

Whether to track link clicks on email notifications.

open_tracking
boolean

Whether to track opens on email notifications.

reply_to_address
string

The Reply-to address on email notifications. Supports liquid.

to_address
string

The email address to which this channel will send. Defaults to recipient.email. Supports liquid.

PushChannelSettings

#

Push channel settings. Only used as configuration as part of a workflow channel step.

Attributes

token_deregistration
boolean

Whether to deregister a push-token when a push send hard bounces. This is to prevent the same token from being used for future pushes.

SmsChannelSettings

#

SMS channel settings. Only used as configuration as part of a workflow channel step.

Attributes

link_tracking
boolean

Whether to track link clicks on SMS notifications.

InAppFeedChannelSettings

#

In-app feed channel settings. Only used as configuration as part of a workflow channel step.

Attributes

link_tracking
boolean

Whether to track link clicks on in-app feed notifications.

New chat