---
title: "Upsert Channel Config"
method: POST
path: "/api/ai-agents/{agent_id}/channel-config"
tags: ["ai-agents", "ai-agents"]
---

# Upsert Channel Config

`POST /api/ai-agents/{agent_id}/channel-config`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/{agent_id}/channel-config`
- Auth: none declared

Create or update per-channel config.

## Path parameters

- `agent_id` integer, required

## Query parameters

- `channel_account_id` integer, required
- `channel_type` string, required
- `send_mode` string, nullable

## Request body

- object, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
