# twit.sh Post Long Tweet

> twit.sh Post Long Tweet is a paid API for AI agents from x402.twit.sh, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Posts a tweet to X/Twitter that can exceed the standard 280-character limit, optionally with media or as a reply/quote tweet, authenticated via user cookies.

## Facts

- Endpoint: POST https://x402.twit.sh/tweets/long
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twit-sh-post-long-tweet-86d4cddb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oeyp5qj2UA7a8P8I6xL8o

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability twit-sh-post-long-tweet-86d4cddb -d '<json body>'
```

Example prompt: Post this long tweet to my X account using my auth_token and ct0 cookies: 'Here is my extended take on the future of AI agents and micropayments — this goes well beyond 280 characters and I want the full text published as a single post without truncation.'

## When to prefer this

Use this endpoint when an AI agent needs to autonomously publish long-form content to X/Twitter on behalf of a user who provides their session cookies, especially when the content exceeds 280 characters. Prefer it over standard tweet endpoints when extended text length is required. It is ideal for agents automating social media workflows without needing a Twitter developer account or API keys — just pay per request in USDC on Base.

## Known failure modes

- Invalid or expired auth_token/ct0 cookies return an authentication error
- Tweet content flagged by Twitter's spam or policy systems may be rejected
- Invalid media IDs cause attachment failures
- Invalid quote_tweet_id or in_reply_to_tweet_id returns a not-found error
- Payment failure in USDC on Base results in a 402 response and no tweet is posted
- Rate limiting by Twitter's internal systems may cause temporary failures

## How this service works

Real-time Twitter/X data for AI agents. No sign-up, no API keys. Pay per request in USDC on Base via x402.

## Output

Returns a JSON object with the newly created tweet's numeric ID, full text content, and ISO 8601 creation timestamp under a `data` key.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text",
      "auth_token",
      "ct0"
     ],
     "properties": {
      "ct0": {
       "type": "string",
       "description": "Twitter ct0 cookie value"
      },
      "text": {
       "type": "string",
       "description": "Tweet content (can exceed 280 characters)"
      },
      "medias": {
       "type": "string",
       "description": "Comma-separated media IDs from /tweets/mediaUpload to attach (optional)"
      },
      "auth_token": {
       "type": "string",
       "description": "Twitter auth_token cookie value"
      },
      "quote_tweet_id": {
       "type": "string",
       "description": "Numeric tweet ID to quote (optional)"
      },
      "in_reply_to_tweet_id": {
       "type": "string",
       "description": "Numeric tweet ID to reply to (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "id": "1110302988",
   "text": "A long post...",
   "created_at": "2026-01-01T00:00:00.000Z"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-sh-post-long-tweet-86d4cddb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.twit.sh](https://www.zero.xyz/host/x402.twit.sh/llms.txt)
