Generate a Twitter prediction URL for a single market
Generate a Twitter intent URL for a single market prediction. This enables you to build custom UIs that open Twitter with pre-filled prediction tweets.
{ "twitterUrl": "https://twitter.com/intent/tweet?text=%40kash_bot%20%2425%20on%20Yes%20https%3A%2F%2Ftwitter.com%2Fkash_bot%2Fstatus%2F123...", "tweetContent": "@kash_bot $25 on Yes https://twitter.com/kash_bot/status/123...", "market": { "id": "abc123", "question": "Will BTC hit $100k by end of 2025?", "sourceTweetUrl": "https://twitter.com/kash_bot/status/123..." }}
400 - Invalid Parameters
Copy
{ "error": "Invalid or missing side parameter", "message": "side must be 'yes' or 'no'", "code": "INVALID_SIDE"}
404 - Market Not Found
Copy
{ "error": "Market not found", "message": "No market found with id: xyz789", "code": "MARKET_NOT_FOUND"}