Toggle Channel Agent Link
POST/api/agents/:agent_id/channel-toggle
Toggle channel-agent linking for SMS agent feature.
Links or unlinks a channel to/from an agent for automated responses. Handles both voice channels (from phone_numbers table) and messaging channels (from channels table).
Args: agent_id: The agent configuration ID request: ChannelToggleRequest with channel_id, enabled flag, and channel_type web_context: Current authenticated user db_config: Database configuration
Returns: ChannelToggleResponse with result
Request
Responses
- 200
- 404
- 422
Successful Response
Not found
Validation Error