Edit X post

Edit a recent post from a connected X account.

← All X / Twitter endpoints · Capability overview

POST/v1/x-twitter/posts/edit

https://api.vee3.io/v1/x-twitter/posts/edit

60 tokens

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_post
Parameters7 fields
user_idstringOptional

Numeric 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_namestringOptional

X 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_idstringRequired

Numeric id of the post to edit.

textstringOptional

Updated post text.

max length 25000

mediaarrayOptional

File names from meta-tools.list_uploaded_files to attach (up to 4). Upload with meta-tools.upload_file first.

min 1, max 4

paid_partnershipbooleanOptional

Whether the post is a paid partnership.

made_with_aibooleanOptional

Whether the post contains AI-generated media.

Response4 fields
post_idstring

Numeric id of the edited post returned by the X API.

textstring

Post text returned by the X API.

user_idstring

Numeric X user id of the connected account.

user_namestring

X 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