Skip to main content
DELETE
/
x
/
accounts
/
{id}
Disconnect X account
curl --request DELETE \
  --url https://xquik.com/api/v1/x/accounts/{id} \
  --header 'x-api-key: <api-key>'
import requests

url = "https://xquik.com/api/v1/x/accounts/{id}"

headers = {"x-api-key": "<api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)
const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};

fetch('https://xquik.com/api/v1/x/accounts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://xquik.com/api/v1/x/accounts/{id}"

req, _ := http.NewRequest("DELETE", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
Free - does not consume credits
Use this endpoint when a connected account should no longer be available for write actions, DMs, media upload, or profile updates. It deletes only the stored Xquik connection for that account ID. It does not change the X account itself. After success, the old Xquik account ID returns 404; reconnect the account to get a new ID.

What disconnect does

Removes this connection

The stored connection row is removed from your Xquik account. Future GET /x/accounts/{id} calls for the same ID return 404.

Stops writes immediately

The dashboard Disconnect button uses the same endpoint and warns that write actions stop immediately. After success, new write, DM, media upload, and profile actions must choose another connected account or reconnect this X account.

Keeps monitors separate

Account and keyword monitors are independent. Disconnecting credentials for @username does not remove monitors that track that username. Delete those monitors separately when tracking should stop.

Reconnect with a new ID

To use the same X account again, call Connect X Account. Store the new account id from the connect response instead of reusing the deleted ID.
curl -X DELETE https://xquik.com/api/v1/x/accounts/3 \
  -H "x-api-key: xq_YOUR_KEY_HERE" | jq
const accountId = "3";
const response = await fetch(`https://xquik.com/api/v1/x/accounts/${accountId}`, {
  method: "DELETE",
  headers: {
    "x-api-key": "xq_YOUR_KEY_HERE",
  },
});
const data = await response.json();
import requests

account_id = "3"
response = requests.delete(
    f"https://xquik.com/api/v1/x/accounts/{account_id}",
    headers={"x-api-key": "xq_YOUR_KEY_HERE"},
)
data = response.json()
package main

import (
    "encoding/json"
    "fmt"
    "net/http"
)

func main() {
    accountID := "3"
    req, err := http.NewRequest("DELETE", "https://xquik.com/api/v1/x/accounts/"+accountID, nil)
    if err != nil {
        panic(err)
    }
    req.Header.Set("x-api-key", "xq_YOUR_KEY_HERE")

    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    var data map[string]interface{}
    if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
        panic(err)
    }
    fmt.Println(data)
}

Path parameters

id
string
required
The unique account ID.

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.

Response

success
boolean
Always true on successful disconnection.
{ "success": true }
The account is disconnected and stored credentials are permanently deleted. This does not affect your X account itself.
Related: List X Accounts to verify the account was removed, or Connect X Account to add a new one.
Last modified on May 23, 2026