---
title: "Which agent answers on each channel and room (org_admin; two-step)"
method: PUT
path: "/api/orgs/{orgId}/agent-routing"
tags: ["agents"]
---

# Which agent answers on each channel and room (org_admin; two-step)

`PUT /api/orgs/{orgId}/agent-routing`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/orgs/{orgId}/agent-routing`
- Auth: none declared

## Path parameters

- `orgId` string, required

## Request body

- PutAgentRoutingBody
  - `defaultAgent` string
  - `channels` object
  - `rooms` object
  - `version` integer
  - `confirm` boolean

## Response `200`

Preview or the saved routing.

- union
  - object
    - `preview` object, required
  - object
    - `orgId` string, required
    - `defaultAgent` string
    - `channels` object
      - `web` string
      - `mcp` string
      - `rest` string
      - `whatsapp` string
      - `whatsapp_web` string
      - `telegram` string
      - `sms` string
      - `slack` string
      - `teams` string
      - `email` string
      - `voice` string
      - `scheduled` string
    - `rooms` object
    - `version` integer
    - `updatedAt` string, date-time
    - `updatedBy` string

## Other responses

- `400`: Invalid request.
- `403`: Not allowed, or the feature is off for the organization.
- `404`: Unknown agent or version.
- `409`: Stale version.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
