---
title: "Disconnect an integration"
method: DELETE
path: "/v1/users/{user_id}/integrations/{integration_id}"
tags: ["Integrations"]
---

# Disconnect an integration

`DELETE /v1/users/{user_id}/integrations/{integration_id}`

## Request

- Base URL: `http://0.0.0.0:3000`
- URL: `http://0.0.0.0:3000/v1/users/{user_id}/integrations/{integration_id}`
- Auth: none declared

Disconnects a user's integration by its opaque ID (e.g., `int_1Z`). This will:
- Revoke OAuth tokens where possible
- Stop syncing data from this integration
- Delete synced messages and threads associated with the integration
- Remove the integration record

**Getting the integration ID**: Call `GET /v1/users/:user_id` to retrieve the list of integrations with their IDs.

## Path parameters

- `user_id` string, uuid, required
- `integration_id` string, required

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `deleted` true, required

## Other responses

- `400`: Default Response
- `403`: Default Response
- `404`: Default Response
- `500`: Default Response

---

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