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

# Revoke X account connect link, X (Twitter) API docs

> Stop an X (Twitter) connect link working before it's used. An account it already connected stays connected, and your other links keep working for now. Free.

> For the complete documentation index, see [llms.txt](https://docs.xquik.com/llms.txt).

`DELETE https://xquik.com/api/v1/x/account-connection-links/{id}`

**Free.** This endpoint does not consume credits.

Revoke a link sent to the wrong person, or one nobody needs anymore.
To remove an account a link connected, call [Disconnect X account](https://docs.xquik.com/api-reference/x-accounts/disconnect.md).

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/bash.json","/languages/csharp.json","/languages/go.json","/languages/java.json","/languages/javascript.json","/languages/kotlin.json","/languages/php.json","/languages/python.json","/languages/ruby.json","/languages/typescript.json"]}}
curl -X DELETE https://xquik.com/api/v1/x/account-connection-links/xlink_AAAAAAAAAAAAAAAA \
  -H "x-api-key: $XQUIK_API_KEY" | jq
```

## Headers

| Header | Type | Required | Description |
| - | - | - | - |
| `x-api-key` | `string` | Or `Cookie` | A Full access API key. |
| `Cookie` | `string` | Or `x-api-key` | Your signed-in dashboard session cookie, `__Host-xquik_session`. |

## Path

| Path parameter | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The `id` the create response gave you. |

## Response

### 200 OK

`{ "success": true }`




### 400 Invalid input

`id` isn't a connect link ID. Use the `id` the create response gave you.

### 401 Unauthenticated

`{ "error": "unauthenticated", "message": "Missing or invalid API key" }`

### 403 Forbidden

The key isn't Full access. OAuth tokens and MCP tools get `403 session_required`, since a link works like a password.

### 404 Not found

The link doesn't exist, belongs to another account, already connected, or was already revoked.

### 429 Rate limited

`{ "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 1 }`

## Response examples

### 200 example

```json theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/bash.json","/languages/csharp.json","/languages/go.json","/languages/java.json","/languages/javascript.json","/languages/kotlin.json","/languages/php.json","/languages/python.json","/languages/ruby.json","/languages/typescript.json"]}}
{
  "success": true
}
```

* **400** `{ "error": "invalid_input", "message": "Invalid input. Check the request body." }`
* **401** `{ "error": "unauthenticated", "message": "Authentication required. Provide a valid API key or bearer token." }`
* **403** `{ "error": "api_key_paused", "message": "This API key is paused. Resume it at dashboard.xquik.com/api-keys to use it again." }`
* **404** `{ "error": "not_found", "message": "Resource not found." }`
* **429** `{ "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 60 }`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.