Skip to main content
Generate Twitter intent URLs for all active markets in a thread. Returns both YES and NO links for each market, making it easy to build custom thread UIs.

Endpoint

GET https://app.kash.bot/api/threads/{id}/twitter-links

Path Parameters

id
string
required
The thread ID

Query Parameters

amount
number
default:"10"
Default prediction amount in USD for all markets (1-10000)

Response

thread
object
Thread information
markets
array
Array of markets with Twitter links

Rate Limit

100 requests per minute per IP address

Example Request

curl "https://app.kash.bot/api/threads/thread123/twitter-links?amount=25"

Example Response

200 - Success
{
  "thread": {
    "id": "thread123",
    "title": "2024 Election Predictions",
    "description": "Markets for the 2024 US Presidential Election"
  },
  "markets": [
    {
      "marketId": "market-1",
      "question": "Will Biden win the nomination?",
      "sourceTweetUrl": "https://twitter.com/kash_bot/status/123...",
      "yesLink": "https://twitter.com/intent/tweet?text=...",
      "noLink": "https://twitter.com/intent/tweet?text=...",
      "yesTweetContent": "@kash_bot $25 on Yes https://twitter.com/...",
      "noTweetContent": "@kash_bot $25 on No https://twitter.com/..."
    },
    {
      "marketId": "market-2",
      "question": "Will Trump be the Republican nominee?",
      "sourceTweetUrl": "https://twitter.com/kash_bot/status/456...",
      "yesLink": "https://twitter.com/intent/tweet?text=...",
      "noLink": "https://twitter.com/intent/tweet?text=...",
      "yesTweetContent": "@kash_bot $25 on Yes https://twitter.com/...",
      "noTweetContent": "@kash_bot $25 on No https://twitter.com/..."
    }
  ],
  "_meta": {
    "requestedAt": "2025-01-15T12:00:00Z",
    "amount": 25,
    "totalMarkets": 2
  }
}