Skip to main content
POST https://xquik.com/api/v1/x/account-connection-links
Free. This endpoint does not consume credits.
Treat url like a password until the person uses it. It appears only in this response. Send it only to the person connecting, and keep it out of your logs.
The person opens url and enters their X details on a page Xquik hosts. They need no Xquik signup. The account then belongs to your Xquik account. Open the link in a pop-up or a new tab. The page can’t load in a frame.

Headers

Body

Xquik never redirects by itself, and never adds the token to returnUrl.

Response

201 Created

The response holds every field Get connect link status returns, plus url.

400 Invalid input

{ "error": "invalid_input", "message": "Set returnUrl to a public https URL." }

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

accountId isn’t one of your X accounts.

429 Rate limited

{ "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 1 }
Related. Connect your users’ X accounts compares this with the direct API.

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": "account_not_found", "message": "X account not found." }
  • 429 { "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 60 }