For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Cloudflare
    • GETpayload example
    • POSThttps://social-media-posting-dev.deao.workers.dev/post
        • POSTCreate Post: https://api.x.com/2/tweets
        • POSTRefresh Token: https://api.x.com/2/oauth2/token
LogoLogo
CloudflareSocial Media PostingX

Create Post: https://api.x.com/2/tweets

||View as Markdown|
POST
/2/tweets
POST
/2/tweets
$curl -X POST https://graph.facebook.com/2/tweets \
> -H "Content-Type: application/json" \
> -d "{
> \"text\": \"images: https://musicca.st/blog/1/77\", //{message}/{asset_url}
> \"media\": {
> \"media_ids\": [
> \"2035550163079516160\"
> ]
> }
>}"
201Social Media Posting_X_Create Post: https://api.x.com/2/tweets_example
1{
2 "data": {
3 "id": "2035551554728570982",
4 "text": "images: https://t.co/QYpZhCPltW https://t.co/5Utmj0XTpj",
5 "edit_history_tweet_ids": [
6 "2035551554728570982"
7 ]
8 }
9}
Was this page helpful?
Previous

Direct Post Image: https://open.tiktokapis.com/v2/post/publish/content/init/

Next

Refresh Token: https://api.x.com/2/oauth2/token

Built with

Request

This endpoint expects a string.

Response headers

perfstring
CF-RAYstring
locationstring
api-versionstring
x-served-bystring
Cache-Controlstring
origin-cf-raystring
x-access-levelstring
cf-cache-statusstring
x-frame-optionsstring
x-response-timestring
x-transaction-idstring
x-xss-protectionstring
x-rate-limit-limitstring
x-rate-limit-resetstring
content-dispositionstring
x-content-type-optionsstring
x-rate-limit-remainingstring
strict-transport-securitystring

Response

Created
dataobject

Direct Post Image: https://open.tiktokapis.com/v2/post/publish/content/init/

Refresh Token: https://api.x.com/2/oauth2/token