---
title: "Put an agent in a Slack channel"
method: POST
path: "/v1/personal-agents/{id}/slack-channels"
tags: ["Agents"]
---

# Put an agent in a Slack channel

`POST /v1/personal-agents/{id}/slack-channels`

## Request

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

Sends mentions of OpenWork in one Slack channel to this agent. Pass the channel by #name or by id, and an optional displayName to post under any name. A channel has one agent at most. Invite OpenWork to the channel in Slack first.

## Path parameters

- `id` string, required

## Request body

- object
  - `channelId` string
  - `channel` string
  - `displayName` string, nullable

## Response `200`

The channel now belongs to this agent.

- object
  - `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.
- `409`: Slack is not connected, needs channel lookup scope, or the channel already has an agent.

## Changes

- **2026-12-01** `0ca2c283bb0f`: 2 warning, 5 info
  - added the new `slack_channel_lookup_failed` enum value to the `error` response property for the response status `409`
  - added the new `slack_channel_lookup_scope_missing` enum value to the `error` response property for the response status `409`
  - added the new optional request property `channel`
  - added the new optional request property `displayName`
  - …3 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/post.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)
