Skip to main content
POST
/
x
/
account-connection-challenges
/
{id}
/
submit
Submit X account email code
curl --request POST \
  --url https://api.example.com/x/account-connection-challenges/{id}/submit \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "email_code": "<string>"
}
'

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.

Free - does not consume credits
Use this endpoint after Connect X Account returns 202 Email Code Required. Submit the code from the account email inbox before expiresAt.
curl -X POST https://xquik.com/api/v1/x/account-connection-challenges/xch_8vGd8Y9JvH6dV0xA/submit \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{ "email_code": "123456" }' | jq

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Path Parameters

id
string
required
Challenge ID returned by Connect X Account.

Body

email_code
string
required
Email verification code for the pending connection. Codes from 4 to 64 characters are accepted. Spaces are stripped before submission.

Response

id
string
Unique account ID.
xUsername
string
Connected X username.
xUserId
string
X user ID.
status
string
Account connection status (e.g. "active").
health
string
Derived login/cookie health. One of healthy, locked, needsReauth, recovering, suspended, temporaryIssue. See Account health for meanings.
createdAt
string
ISO 8601 timestamp of when the account was connected.
loginCountry
string
Optional ISO 3166-1 alpha-2 country code (for example "US"). Present only when the declared proxy region was unavailable and login used a one-time US region. Omitted on normal logins.
{
  "id": "3",
  "xUsername": "elonmusk",
  "xUserId": "44196397",
  "status": "active",
  "health": "healthy",
  "createdAt": "2026-02-20T08:15:00.000Z"
}
Related: Connect X Account starts the challenge, and List X Accounts verifies the account after connection.
Last modified on May 8, 2026