Create and delete Posts on behalf of authenticated users with the Enterprise X API manage Posts endpoints. Includes request and response details.
The Manage Posts endpoints let you create and delete Posts on behalf of authenticated users. Build applications that post content, create threads, or manage user Posts.
Use the paid_partnership field when creating a Post to indicate it is a paid partnership (i.e., the author is disclosing that the Post contains paid promotion). When set to true, the Post will be labeled as a paid promotion.
curl -X POST "https://api.x.com/2/tweets" \ -H "Authorization: Bearer $USER_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "text": "Excited to partner with Acme on their latest launch!", "paid_partnership": true }'
To retrieve the value on existing Posts (including your own), request it via the tweet.fields parameter: