> ## 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.

# Preview a Slack auto-join rule

> What the next run would join and link for this draft rule, from the channels Statisfy has stored; it saves, joins and links nothing. complete false: a workspace's channel list was not read in full yet (refresh it with POST /auto-join/refresh). The rule's checks are the save's (a 422 for each bad part). A 409 when Slack is not connected.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/slack/auto-join/preview
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/auto-join/preview:
    post:
      tags:
        - integrations
      summary: Preview a Slack auto-join rule
      description: >-
        What the next run would join and link for this draft rule, from the
        channels Statisfy has stored; it saves, joins and links nothing.
        complete false: a workspace's channel list was not read in full yet
        (refresh it with POST /auto-join/refresh). The rule's checks are the
        save's (a 422 for each bad part). A 409 when Slack is not connected.
      operationId: integrations_slack_preview_auto_join
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                id_field:
                  anyOf:
                    - maxLength: 200
                      type: string
                    - type: 'null'
                  description: >-
                    The account CRM field that holds a channel id to join; null:
                    none
                  title: Id Field
                name_field:
                  anyOf:
                    - maxLength: 200
                      type: string
                    - type: 'null'
                  description: >-
                    The account CRM field that holds a channel name to join;
                    null: none
                  title: Name Field
                prefixes:
                  description: Join the channels whose name starts with one
                  items:
                    maxLength: 200
                    type: string
                  maxItems: 20
                  title: Prefixes
                  type: array
                suffixes:
                  description: Join the channels whose name ends with one
                  items:
                    maxLength: 200
                    type: string
                  maxItems: 20
                  title: Suffixes
                  type: array
              required:
                - id_field
                - name_field
                - prefixes
                - suffixes
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackAutoJoinPreview'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SlackAutoJoinPreview:
      description: >-
        What the next scan would join and link for the draft rule; nothing is
        written. The nested parts are plain

        objects: the service's own models share names (PreviewRow) with another
        domain's public schema.
      properties:
        complete:
          description: >-
            false: a workspace's channel list was not read in full, so the
            counts may be short
          title: Complete
          type: boolean
        rules:
          description: >-
            Each part of the rule, with the channels and accounts it matches: at
            most 1000 rows each, and `truncated` true when a part matches more
          items:
            additionalProperties: true
            type: object
          title: Rules
          type: array
        totals:
          additionalProperties: true
          description: >-
            Channels to join, already joined, links to add, conflicts, and the
            rest
          title: Totals
          type: object
        workspaces:
          description: 'Each workspace: its channels, whether it was read, and when'
          items:
            additionalProperties: true
            type: object
          title: Workspaces
          type: array
      required:
        - complete
        - totals
        - workspaces
        - rules
      title: SlackAutoJoinPreview
      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.