Get Available Channels
GET/api/agents/:agent_id/available-channels
Get available channels for agent configuration.
Returns channels grouped by type (Voice, SMS, Instagram, etc.) with their linking status relative to this agent.
Optimized with:
- Parallel queries using asyncio.gather()
- Batched agent name lookups to avoid N+1 queries
Args: agent_id: The agent configuration ID web_context: Current authenticated user db_config: Database configuration
Returns: AvailableChannelsResponse with grouped channels
Request
Responses
- 200
- 404
- 422
Successful Response
Not found
Validation Error