twitter.com/intent/tweet URL with the tweet already written: the outcome, the amount and the account to mention. A user who has connected their X account to the Kash web app can post it, and the Kash trading bot reads the tweet and submits the trade from the user’s own self-custodial wallet. Use it to build your own “Predict” buttons without an iframe.
Endpoint
Path parameters
string
required
Market UUID.
Query parameters
integer
required
The outcome you expect, from
0 to outcomeCount - 1.number
required
The trade amount in whole USDC, from 1 to 10,000.
string
The language of the tweet:
en, es, zh, pt or ru. Defaults to English.How the tweet is built
- Mention. The tweet mentions the X account that trades on this market (the market’s
marketBotHandle). If the market has none, it mentions the Kash trading bot. - Outcome text. Outcome
0is written asYes, outcome1asNo, and any other outcome asOutcome N, counting from 1. To use the market’s real outcome labels, callPOST /api/twitter-linksinstead. - Quote or link. If the market was announced on X, the announcement tweet’s URL is added to the text, which makes the post a quote tweet. Otherwise the intent URL carries a
urlparameter that points to the market page on app.kash.bot.
Response
string
The intent URL to open
string
The tweet text, including the quoted URL when there is one
object
{ id, question, sourceTweetUrl }Errors
Caching and rate limit
Market reads group, rate-limited per IP (see Rate limits). Responses may be served from a short-lived cache.Example request
Example response
200
400 (market closed)