{
  "x402Version": 2,
  "id": 471,
  "slug": "471",
  "resource": "https://x402.twit.sh/tweets/mediaUpload",
  "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 image metadata.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x9dBA414637c611a16BEa6f0796BFcbcBdc410df8",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "6000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "api",
      "discoverable": true,
      "info": {
        "input": {
          "method": "POST",
          "queryParams": {},
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "expires_after_secs": 86400,
              "image": {
                "h": 683,
                "image_type": "image/jpeg",
                "w": 1024
              },
              "media_id": 2066778128366940200,
              "media_id_string": "2066778128366940160",
              "media_key": "3_2066778128366940160",
              "size": 22610
            }
          },
          "type": "json"
        }
      },
      "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"
      },
      "tags": [
        "twitter",
        "x",
        "social",
        "media",
        "upload",
        "image",
        "write",
        "agent",
        "x402"
      ]
    },
    "builder-code": {
      "info": {
        "a": "bc_qobj93ib"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "x402.twit.sh",
  "lastUpdated": "2026-09-02T21:33:55.921Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-02T21:33:55.505Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.twit.sh",
    "manifest_name": "x402.twit.sh",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}