Profile (account action)

[AUTHENTICATED WRITE] Username

Change the username for the authenticated X account. The username must contain 5-15 ASCII letters, numbers, or underscores and must not include @. A successful response consumes one customer request. This operation has no idempotency guarantee. A 502 response can be transient, but if the outcome is unclear, check the account's current username before retrying. After a successful change, the old username becomes immediately available for another account to claim.

post/tw-v2/profile/username

Request

  • Base URL: https://api.tweetapi.com
  • URL: https://api.tweetapi.com/tw-v2/profile/username
  • Auth: API key in header X-API-Key

Request body

authTokenstring required

Caller-supplied auth_token cookie value. Treat it as a secret.

passwordstring required
usernamestring required
proxystring

Example request

{
  "authToken": "YOUR_AUTH_TOKEN",
  "password": "YOUR_PASSWORD",
  "username": "sample_user",
  "proxy": "proxy.example.com:8080@username:password"
}

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.