# conversations.archive

> Archive a channel the bot made.

Source: https://slaiky.xyz/docs/reference/methods/conversations.archive

`POST https://app.slaiky.xyz/api/methods/conversations.archive` · needs the conversation's `channels:manage` / `groups:write`

## Arguments

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel id, or "#name" for channels. 1–81 characters. |

## Answer

`{ "ok": true, … }` with: channel: Channel. A refusal is `{ "ok": false, "error": { "code", "message" } }` ([errors](/docs/errors)).

## Example

The required arguments, with placeholders in angle brackets.

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/conversations.archive \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"channel":"#general"}'

```
