{"slug":"x402-twit-sh-tweets-mediaupload-55d835","title":"Uploads an image to Twitter/X for the authenticated user and returns a media_id ","host":"x402.twit.sh","method":"POST","resource":"https://x402.twit.sh/tweets/mediaUpload","category":"image","description":"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 i","price_listed":0.006,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"POST","queryParams":{},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["POST"],"type":"string"},"queryParams":{"properties":{"auth_token":{"description":"Twitter auth_token cookie value (query param)","type":"string"},"ct0":{"description":"Twitter ct0 cookie value (query param)","type":"string"},"file":{"description":"Media file sent as multipart/form-data field \"file\"","format":"binary","type":"string"}},"required":["auth_token","ct0","file"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"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.","last_updated":"2026-09-02T21:33:55.921Z","schemes":["exact"]}