X Accounts

Connect X account

Changed on

Starts an X account connection flow. Needs a dashboard session, so X credentials never pass through an API key.

post/x/accounts

Request

  • Base URL: https://xquik.com/api/v1
  • URL: https://xquik.com/api/v1/x/accounts
  • Auth: API key in cookie __Host-xquik_session

Request body

usernamestring required

X username of the account to connect, with or without @

emailstring required

Account email

passwordstring required

Account password

totp_secretstring required

Authenticator App TOTP secret required for durable login

Example request

{
  "username": "your_x_username",
  "email": "account@example.invalid",
  "password": "<ACCOUNT_PASSWORD>",
  "totp_secret": "<TOTP_SECRET>"
}

Response

X account connected after verification

idstring required
xUserIdstring required
xUsernamestring required
status'active' required
health'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue' required
createdAtstring date-time required

Example response

{
  "id": "42",
  "xUserId": "9876543210",
  "xUsername": "elonmusk",
  "status": "active",
  "health": "healthy",
  "createdAt": "2025-01-15T12:00:00Z"
}

Changes

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the / response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status

    • warning

      added the new x_video_too_large enum value to the // response property for the response status