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

# Disconnect Slack integration

> Disconnect the Slack workspace from your organization. Revokes the token (best-effort) and clears the stored integration data.



## OpenAPI

````yaml /api-reference/v1/slack-v1.yaml delete /integrations/slack
openapi: 3.0.3
info:
  title: Coval Slack Integration API
  version: 1.0.0
  description: >

    Connect, disconnect, and read the status of your organization's Slack
    integration.

    Connecting exchanges a Slack OAuth authorization code for a workspace
    connection.
  contact:
    name: Coval API Support
    email: support@coval.dev
    url: https://docs.coval.ai
  license:
    name: Proprietary
    url: https://coval.dev/terms
servers:
  - url: https://api.coval.dev/v1
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: Integrations
    description: Third-party integration status
paths:
  /integrations/slack:
    delete:
      tags:
        - Integrations
      summary: Disconnect Slack integration
      description: >-
        Disconnect the Slack workspace from your organization. Revokes the token
        (best-effort) and clears the stored integration data.
      operationId: disconnectSlack
      responses:
        '200':
          description: Slack integration disconnected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisconnectSlackResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PermissionDenied'
        '422':
          description: No Slack integration to disconnect
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DisconnectSlackResponse:
      type: object
      required:
        - disconnected
      properties:
        disconnected:
          type: boolean
          description: True when the Slack integration was disconnected.
          example: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - details
          properties:
            code:
              type: string
              enum:
                - INVALID_ARGUMENT
                - UNAUTHENTICATED
                - PERMISSION_DENIED
                - NOT_FOUND
                - ALREADY_EXISTS
                - INTERNAL
              example: UNAUTHENTICATED
            message:
              type: string
              example: Authentication failed
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                    nullable: true
                  description:
                    type: string
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNAUTHENTICATED
              message: Authentication failed
              details:
                - field: X-API-Key
                  description: Invalid or missing API key
    PermissionDenied:
      description: API key lacks required permission scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: PERMISSION_DENIED
              message: Insufficient permissions
              details:
                - field: permissions
                  description: 'API key does not have required permission: integrations:read'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: INTERNAL
              message: Internal server error
              details:
                - description: An unexpected error occurred
    ServiceUnavailable:
      description: >-
        Service temporarily unavailable (transient organization DB routing
        outage; retryable)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: INTERNAL
              message: Service temporarily unavailable
              details:
                - description: Database routing is temporarily unavailable. Please retry.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````