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

# Test the Slack connection

> Asks Slack who Statisfy's bot is (auth.test) in the Slack workspace, or in the default one, and reports whether it worked: success false with Slack's error code when not, or `Connection failed` when Slack does not answer (after one retry). A Slack workspace not installed for this Statisfy workspace is success false. Calls Slack.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/slack/connection/test
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/connection/test:
    post:
      tags:
        - integrations
      summary: Test the Slack connection
      description: >-
        Asks Slack who Statisfy's bot is (auth.test) in the Slack workspace, or
        in the default one, and reports whether it worked: success false with
        Slack's error code when not, or `Connection failed` when Slack does not
        answer (after one retry). A Slack workspace not installed for this
        Statisfy workspace is success false. Calls Slack.
      operationId: integrations_slack_test_connection
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                workspace_id:
                  anyOf:
                    - description: >-
                        The Slack workspace's id (T…, or E… for an Enterprise
                        Grid install), as GET /workspaces returns it
                      maxLength: 32
                      pattern: ^[TE][A-Z0-9]+$
                      type: string
                    - type: 'null'
                  default: null
                  description: 'Test this workspace''s install; default: the default'
                  title: Workspace Id
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackConnectionTest'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SlackConnectionTest:
      properties:
        bot_user_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Statisfy's bot user in it
          title: Bot User Id
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: Why it failed, when it did
          title: Error
        success:
          title: Success
          type: boolean
        url:
          anyOf:
            - type: string
            - type: 'null'
          description: The workspace's Slack address
          title: Url
        workspace_name:
          anyOf:
            - type: string
            - type: 'null'
          description: The workspace Slack answered for
          title: Workspace Name
      required:
        - success
        - error
        - workspace_name
        - bot_user_id
        - url
      title: SlackConnectionTest
      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.