Update
Update Profile
POST
/tw-v2/profile/updateDescription
Update the display profile fields for the authenticated Twitter/X account. Send at least one of name, bio, location, or website.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| authToken | string | required | Account authentication token (auth_token cookie value) |
| name | string | optional | Display name, up to 50 characters |
| bio | string | optional | Profile bio, up to 160 characters |
| location | string | optional | Profile location, up to 30 characters |
| website | string | optional | Profile website URL. Use an empty string to clear the website. |
| proxy | string | optional | Optional 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/updateSensitive 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