Skip to main content
DELETE https://xquik.com/api/v1/x/accounts/{id}
Free. This endpoint does not consume credits.
This takes a dashboard session, or a key with the Connect X accounts permission. Turn it on at dashboard.xquik.com/api-keys. Full access doesn’t include it. A key without it gets 403 x_account_connect_permission_required. OAuth tokens and MCP tools get 403 session_required. Only a new sign-in restores the account. Account activity records it with the key’s ID.
Use this endpoint when a connected account should no longer be available. That covers write actions, DMs, media upload, and 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

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

Stops writes immediately

The dashboard Disconnect button uses the same endpoint. It warns that write actions stop immediately. After success, new write, DM, media upload, and profile actions need another connected account. The other way is to 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. Do not reuse the deleted ID.

Path parameters

Headers

Response

200 OK

400 Invalid ID

{ "error": "invalid_id", "message": "Invalid account ID format" } The provided account ID is not a valid format.

401 Unauthenticated

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

404 Not found

No account exists with this ID, or it belongs to a different Xquik account.

429 Rate limited

Wait for the Retry-After value before disconnecting another account.
Xquik disconnects the account and permanently deletes stored credentials. This does not affect your X account itself.
Related.

Response examples

  • 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 }