---
title: "Set AI DM auto-send for one channel account"
method: PATCH
path: "/api/channels/{id}/auto-send"
tags: ["Channels"]
---

# Set AI DM auto-send for one channel account

`PATCH /api/channels/{id}/auto-send`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/channels/{id}/auto-send`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

Controls Luca-drafted DM replies for this account. The account sends only while the workspace master switch (PATCH /api/settings/auto-send) is also on. Turning this switch on also turns the master on, which lets every other channel with its own switch on send too; the response reports the master. The master never changes this value. Campaign sends use a separate policy. A disabled switch puts drafts in review.

**API key scopes:** `channels:write`. You also need an `Idempotency-Key` header.

## Path parameters

- `id` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Request body

- ChannelAiDmAutoSendPatch
  - `enabled` boolean, required

## Response `200`

ok

- ChannelAiDmAutoSendResponse
  - `id` string, uuid, required
  - `enabled` boolean, required
  - `workspaceAutoSendEnabled` boolean, required

## Other responses

- `400`: bad request
- `401`: unauthorized
- `404`: not found
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
