> ## Documentation Index
> Fetch the complete documentation index at: https://outlit-codex-platform-actions-create-update-cli.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Disconnect integration

> Disconnect a currently connected provider for the authenticated organization.



## OpenAPI

````yaml /openapi.json post /api/integrations/disconnect
openapi: 3.1.0
info:
  title: Outlit API
  summary: Public Outlit Platform and Ingest APIs.
  description: >-
    Canonical OpenAPI specification for the public Outlit API surfaces
    documented at docs.outlit.ai.
  version: 1.0.0
servers:
  - url: https://app.outlit.ai
security:
  - bearerAuth: []
tags:
  - name: Platform API
    description: >-
      Authenticated API key routes for customer intelligence tools and
      integration management.
  - name: Ingest API
    description: Public-key event ingestion routes used by Outlit SDKs.
paths:
  /api/integrations/disconnect:
    post:
      tags:
        - Platform API
      summary: Disconnect integration
      description: >-
        Disconnect a currently connected provider for the authenticated
        organization.
      operationId: disconnectIntegration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntegrationDisconnectRequest'
            example:
              provider: stripe
      responses:
        '200':
          description: Integration disconnected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationDisconnectResponse'
              example:
                success: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: The provider is valid but no active connection exists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationDisconnectNotConnectedResponse'
              example:
                success: false
                message: Integration is not connected
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    IntegrationDisconnectRequest:
      type: object
      required:
        - provider
      properties:
        provider:
          $ref: '#/components/schemas/ProviderId'
      additionalProperties: false
    IntegrationDisconnectResponse:
      type: object
      required:
        - success
      properties:
        success:
          type: boolean
          const: true
      additionalProperties: false
    IntegrationDisconnectNotConnectedResponse:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          const: false
        message:
          type: string
      additionalProperties: false
    ProviderId:
      type: string
      description: Public integration provider ID.
      enum:
        - hubspot
        - attio
        - slack
        - fireflies
        - granola
        - google-calendar
        - google-mail
        - posthog
        - stripe
        - supabase
        - clerk
        - pylon
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
      additionalProperties: true
    ValidationIssue:
      type: object
      required:
        - path
        - message
      properties:
        path:
          type: array
          items:
            type:
              - string
              - number
        message:
          type: string
      additionalProperties: false
  responses:
    BadRequest:
      description: Invalid request body or parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Invalid request
    Unauthorized:
      description: Invalid or missing API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Invalid credentials
    InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Outlit API key using the Bearer ok_... format.

````