Skip to main content
A channel connects an existing Telnyx resource—such as a messaging profile, Call Control application, or email domain—to your agent. It tells the SDK which incoming webhooks should reach the deployed agent. You configure the resource first, then attach it to your agent.

What you configure

add channel adds a reference to an existing resource (sometimes called an artifact) in agent.json. It does not create the resource, modify a phone number, or reassign a number. Other supported channel types include call_control_application and email_domain. See the messaging and voice guides for channel-specific setup. For the generated project files and internal SDK layout, see the Agent SDK internals. You do not need to edit generated .telnyx/ files.

What the SDK handles at deploy

At deploy, the SDK wires each configured resource’s webhook to the deployed function and tracks the previous webhook value. Internally, wireChannels in channels/wire.ts does that setup, and .telnyx/index.ts registers its route with channelRoutes. You do not call those functions yourself. The generated handler in channels/index.ts serves every route at /webhooks/<type>/<id> and verifies each webhook against the account’s public key before reading it. A messaging_profile route runs messagingWebhook, a call_control_application route runs the call handler, and an email_domain route runs emailWebhook.
A texml_application channel is declared and validated, but its handler is not implemented yet. A webhook to it answers 501.