Update

Update Profile

POST/tw-v2/profile/update

Description

Update the display profile fields for the authenticated Twitter/X account. Send at least one of name, bio, location, or website.

Request Body

ParameterTypeRequiredDescription
authTokenstringrequiredAccount authentication token (auth_token cookie value)
namestringoptionalDisplay name, up to 50 characters
biostringoptionalProfile bio, up to 160 characters
locationstringoptionalProfile location, up to 30 characters
websitestringoptionalProfile website URL. Use an empty string to clear the website.
proxystringoptionalOptional proxy in format 'hostname:port@username:password'

Code Examples

const body = {
  authToken: 'YOUR_AUTH_TOKEN',
  name: 'Sample User',
  bio: 'Building with TweetAPI',
  location: 'Bangkok',
  website: 'https://example.com'
};

const response = await fetch('https://api.tweetapi.com/tw-v2/profile/update', {
  method: 'POST',
  headers: {
    'X-API-Key': 'YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify(body)
});

const data = await response.json();
console.log(data);

Response

Success Response (200 OK)

200
{
  "data": {
    "id": "10017528",
    "username": "sample_user_96991",
    "name": "Sample User",
    "bio": "Building with TweetAPI",
    "location": "Bangkok",
    "website": "https://example.com",
    "avatar": "https://example.com/images/sample-avatar-96991.jpg",
    "banner": "https://example.com/images/sample-banner-96991.jpg",
    "verified": false,
    "isBlueVerified": true,
    "isProtected": false,
    "followerCount": 226995885,
    "followingCount": 1218,
    "tweetCount": 86745,
    "createdAt": "2009-06-02T20:12:29.000Z"
  }
}

API Playground

POST/tw-v2/profile/update

Sensitive Credentials Required

Requires your Twitter authToken. Use a test account.

Press ⌘ + Enter to execute

curl -X POST "https://api.tweetapi.com/tw-v2/profile/update" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

Click "Try It!" to see the response