Users
Update Profile
Update Twitter profile fields (name, bio, location, URL, color, birthdate) programmatically via API. $0.001 per call. GetXAPI update profile endpoint.
POST
/twitter/user/update_profileThis endpoint costs $0.001 per API call.
Updates one or more profile fields for the user owning auth_token. Send only the fields you want to change.
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
auth_token | string | Yes | User's auth_token cookie |
name | string | No | Display name |
description | string | No | Bio text |
location | string | No | Location text |
url | string | No | Website URL shown on profile |
profile_link_color | string | No | Hex color (e.g. 1DA1F2) |
birthdate_year | number | No | Birthdate year |
birthdate_month | number | No | Birthdate month (1–12) |
birthdate_day | number | No | Birthdate day |
birthdate_visibility | string | No | self, mutualfollow, followers, following, or public |
Notes
- At least one field other than
auth_tokenmust be provided. - Only included fields are updated; omitted fields are left unchanged.
Response (200)
{
"status": "success",
"msg": "Profile updated successfully",
"data": {
"id": "1740174562631856128",
"screen_name": "example_user",
"name": "New Display Name",
"description": "Updated bio",
"location": "San Francisco",
"url": "https://example.com",
"profile_link_color": "1DA1F2"
}
}Error Responses
400 - No fields to update
{
"error": "At least one profile field must be provided"
}401 - Invalid auth_token
{
"error": "Invalid auth_token - could not extract userId"
}Example
curl --request POST \
--header "Authorization: Bearer API_KEY" \
--header "Content-Type: application/json" \
--url "https://api.getxapi.com/twitter/user/update_profile" \
--data '{
"auth_token": "<auth_token>",
"name": "New Display Name",
"description": "Updated bio",
"location": "San Francisco",
"url": "https://example.com"
}'Update BannerNew
Update a Twitter user's profile banner programmatically via API. $0.001 per call. GetXAPI update banner endpoint with image URL or base64 upload.
User LoginUpdated
Get fresh auth tokens for a Twitter account via API. Required for write endpoints like tweeting and DMs. GetXAPI login endpoint docs.