---
title: "Unlink my Slack account"
description: "Forgets the link between your Slack account and your Markdrop account in the Slack workspace connected here."
canonical_url: https://docs.markdrop.in/api/slack/unlink-my-slack-account
last_updated: 2026-11-05
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Unlink my Slack account

`DELETE https://api.markdrop.in/api/v1/slack/link`

Forgets the link between your Slack account and your Markdrop account in the Slack workspace connected here. /markdrop then asks you to link again, and Markdrop stops sending you direct messages there.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 20 per minute per IP address.
- **Guide:** [Slack](https://docs.markdrop.in/integrations/slack)

## Query parameters

- `workspace_id` (string, required): The workspace's id. Matches `^[0-9a-f]{24}$`.

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X DELETE 'https://api.markdrop.in/api/v1/slack/link?workspace_id=WORKSPACE_ID' \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/slack/link?workspace_id=WORKSPACE_ID", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.delete(
    "https://api.markdrop.in/api/v1/slack/link?workspace_id=WORKSPACE_ID",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
)
r.raise_for_status()
print(r.json())
```
