Api Endpoint

x402.twit.sh

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.

Open interactive test console

Offering

Provider
x402.twit.sh
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Social Intelligence
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.twit.sh/tweets/mediaUpload
MIME type
Not provided
First seen
2026-10-16T01:51:40.954Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.006 USDC
Atomic price: 6000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "6000",
    "payTo": "0x9dBA414637c611a16BEa6f0796BFcbcBdc410df8"
  }
]

Observed health

Status
Healthy
Latest latency
114 ms
Average latency
462 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "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 schema

{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}