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
Query Parameters
Default prediction amount in USD for all markets (1-10000)
Response
Array of markets with Twitter links Original market tweet URL
Twitter URL for YES prediction
Twitter URL for NO prediction
Tweet content for YES prediction
Tweet content for NO prediction
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
{
"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
}
}