the402 endpoint detail

← All endpoints

x402.twit.sh tweets mediaUpload

https://x402.twit.sh/tweets/mediaUpload

payable

Uploads an image to Twitter/X for the authenticated user and returns a media_id to attach to a tweet. Send the file as multipart/form-data field "file" (e.g. -F "file=@photo.jpeg"); pass auth_token and ct0 as query params. Returns media_id, media_id_string, media_key, size, expires_after_secs, and image metadata.

We sent a real POST request to this endpoint and it answered 402 with payment requirements we could parse.
Price
$0.006
Network
base
Pay to
0x9dBA414637c611a16BEa6f0796BFcbcBdc410df8
Spec dialect
v2 (declares x402Version 2)
Transport
PAYMENT-REQUIRED header
HTTP method
POST
Response latency
370 ms
Payment options
1 usable of 1
Last checked
2026-08-10T09:09:31.957Z (5d ago)
Category
finance-crypto

Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2Fx402.twit.sh%2Ftweets%2FmediaUpload"