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

# POST /api/integrations/[provider]/disconnect

> * POST /api/integrations/[provider]/disconnect * Disconnects an integration by clearing credentials and setting status to disconnected.

* POST /api/integrations/\[provider]/disconnect \* Disconnects an integration by clearing credentials and setting status to disconnected.

## Response

Returns `unknown` on success.

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://your-domain.com/api/integrations/[provider]/disconnect \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch('/api/integrations/[provider]/disconnect', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'Authorization': `Bearer ${token}`
    }
  });
  const data = await response.json();
  ```
</CodeGroup>
