Edit X post
Edit a recent post from a connected X account.
← All X / Twitter endpoints · Capability overview
/v1/x-twitter/posts/edithttps://api.vee3.io/v1/x-twitter/posts/edit
Edit a recent post from a connected X account.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
x-twitter.edit_postParameters7 fields
user_idstringOptionalNumeric X user id from x-twitter.connected_accounts. Pass user_id or user_name to target a specific account, not both. Omit both to use the default account.
user_namestringOptionalX handle from x-twitter.connected_accounts, with or without a leading @. Pass user_id or user_name to target a specific account, not both. Omit both to use the default account.
post_idstringRequiredNumeric id of the post to edit.
textstringOptionalUpdated post text.
max length 25000
mediaarrayOptionalFile names from meta-tools.list_uploaded_files to attach (up to 4). Upload with meta-tools.upload_file first.
min 1, max 4
paid_partnershipbooleanOptionalWhether the post is a paid partnership.
made_with_aibooleanOptionalWhether the post contains AI-generated media.
Response4 fields
post_idstringNumeric id of the edited post returned by the X API.
textstringPost text returned by the X API.
user_idstringNumeric X user id of the connected account.
user_namestringX handle of the connected account.
HTTP errors: unauthorized, validation_error, insufficient_tokens, payment_required, x_connection_required, x_connection_not_found, x_connection_refresh_failed, x_connection_scopes_insufficient, x_twitter_write_unauthorized, x_twitter_write_rate_limited, x_twitter_write_upstream_error, uploaded_file_not_found, uploaded_file_not_supported_for_x_media