---
title: "Disconnect integration"
method: POST
path: "/integrations/{id}/disconnect"
tags: ["Integrations"]
---

# Disconnect integration

`POST /integrations/{id}/disconnect`

Disconnects Lemon Squeezy locally before removing its managed webhook. Manual webhooks remain under your control. Requires integrations:manage; personal keys require owner or admin access. A cleanupWarning means ingestion is stopped but provider cleanup failed; repeat this request to retry cleanup, including when the integration is already inactive. Other providers require the dashboard. Existing subscribers and history are retained. No request body is required.

## Path parameters

- `id` string, required

## Response `200`

Disconnected locally; inspect cleanupWarning for provider cleanup recovery.

- object
  - `success` true, required
  - `integrationId` string, required
  - `provider` 'lemon_squeezy', required
  - `cleanupWarning` string, nullable, required — Null when cleanup succeeded or no managed webhook exists. Otherwise repeat disconnect to retry provider cleanup.
  - `message` string, required

## Other responses

- `400` — Provider is not Lemon Squeezy; use the dashboard.
- `401` — Missing or invalid API key.
- `403` — Missing integrations:manage scope or insufficient company role.
- `404` — Integration does not exist in the selected company.
- `409` — Integration changed stores while disconnecting; retry.
- `500` — Local disconnection could not be committed; retry the request.

## Changes

- **2026-09-13** `37bcc0f4c9d5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/integrations/:id/disconnect/post.md)

---

[API](https://skmtc.dev/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.dev/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sequenzy/apis/sequenzy-api/revisions/e93563b0d37e?raw)
