---
title: "Take an agent out of a Slack channel"
method: DELETE
path: "/v1/personal-agents/{id}/slack-channels/{channelId}"
tags: ["Agents"]
---

# Take an agent out of a Slack channel

`DELETE /v1/personal-agents/{id}/slack-channels/{channelId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/personal-agents/{id}/slack-channels/{channelId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Stops sending mentions of OpenWork in that Slack channel to this agent. Accepts either the channel id or its stored channel name.

## Path parameters

- `id` string, required
- `channelId` string, required

## Response `200`

The agent's remaining Slack channels.

- object
  - `channels` object[], required
    - `channelId` string, required
    - `channelName` string, nullable
    - `displayName` string, nullable
    - `addedByMemberId` string, required
    - `addedAt` string, date-time, required

## Other responses

- `400`: Invalid request.
- `403`: The caller cannot manage this agent, lacks the Manage connections permission, or needs to sign in again.
- `404`: Not found, or the feature is off.

## Changes

- **2026-12-01** `0ca2c283bb0f`: 1 breaking, 1 warning, 3 info
  - for the `path` request parameter `channelId`, the minLength was increased from `0` to `1`
  - for the `path` request parameter `channelId`, the maxLength was set to `81`
  - removed the pattern `^[CG][A-Z0-9]{1,63}$` from the `path` request parameter `channelId`
  - added the optional property `channels/items/channelName` to the response with the `200` status
  - …1 more
- **2026-12-01** `f39af2aa8523`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/personal-agents/:id/slack-channels/:channelId/delete.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
