> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Archive a Slack channel in Statisfy

> Hides the channel from the channel list (unless archived channels are asked for) and keeps it archived when Slack is read again. Statisfy's bot then leaves the channel in Slack, so its messages stop coming; a failed leave still archives; when the channel's Slack workspace is no longer installed here, the bot is not asked to leave. The channel itself is not archived in Slack, and what was read stays. A channel Statisfy does not have is a 404. Calls Slack.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/slack/channels/{channel_id}/archive
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/slack/channels/{channel_id}/archive:
    post:
      tags:
        - integrations
      summary: Archive a Slack channel in Statisfy
      description: >-
        Hides the channel from the channel list (unless archived channels are
        asked for) and keeps it archived when Slack is read again. Statisfy's
        bot then leaves the channel in Slack, so its messages stop coming; a
        failed leave still archives; when the channel's Slack workspace is no
        longer installed here, the bot is not asked to leave. The channel itself
        is not archived in Slack, and what was read stays. A channel Statisfy
        does not have is a 404. Calls Slack.
      operationId: integrations_slack_archive_channel
      parameters:
        - description: >-
            The Slack channel's id (C…, G… or D…), as GET
            /v1/integrations/stella_slack/channels returns it
          in: path
          name: channel_id
          required: true
          schema:
            maxLength: 32
            pattern: ^[CDG][A-Z0-9]{6,}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackChannelArchived'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SlackChannelArchived:
      properties:
        archived:
          title: Archived
          type: boolean
        channel_id:
          description: >-
            The Slack channel's id (C…, G… or D…), as GET
            /v1/integrations/stella_slack/channels returns it
          title: Channel Id
          type: string
      required:
        - channel_id
        - archived
      title: SlackChannelArchived
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.