Skip to main content
PUT
https://xquik.com/api/v1
/
account
/
x-identity
Set X Identity
curl --request PUT \
  --url https://xquik.com/api/v1/account/x-identity \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "username": "<string>"
}
'
This endpoint does not count against your monthly usage quota.
curl -X PUT https://xquik.com/api/v1/account/x-identity \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "elonmusk"
  }' | 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.

Body

username
string
required
Your X username without the @ prefix. 1-15 characters, alphanumeric and underscores only. Stored as lowercase.

Response

success
boolean
Always true on successful update.
xUsername
string
The linked X username, lowercased.
{
  "success": true,
  "xUsername": "elonmusk"
}
Your X identity is used for own-account detection in tweet style analysis. You can update it at any time by calling this endpoint again.
Related: Get Account to view your current account details, or Analyze Style to cache tweets for style analysis.