MindThread API Quickstart in 5 Minutes
Get Started with MindThread API in 5 Minutes
No dashboard needed. Just a few lines of code, and your AI agent can auto-generate content and publish to Threads.
Prerequisites
1. Sign up for MindThread (free)
2. Connect at least one Threads account
3. Create an API key in Settings
Step 1: Create an API Key
Go to Settings, scroll to the bottom, find "API Keys".
Enter a label (e.g., "My Agent"), click "Create".
You'll get a mt_live_... key — copy it immediately, it's shown only once.
Want to test first? Check "Test key" to get a mt_test_... key. All operations are simulated.
Step 2: Generate Your First Post
Python
``python
import requests
API_KEY = "mt_live_your_key"
BASE = "https://mindthread.tw/api/v1"
r = requests.post(f"{BASE}/content/generate",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"topic": "remote work productivity tips", "formula": "auto"}
)
data = r.json()
print(data["content"])
print(data["formula"])
`
JavaScript
`javascript`
const res = await fetch("https://mindthread.tw/api/v1/content/generate", {
method: "POST",
headers: {
"Authorization": "Bearer mt_live_your_key",
"Content-Type": "application/json"
},
body: JSON.stringify({ topic: "remote work tips", formula: "auto" })
});
console.log(await res.json());
Step 3: Generate + Publish Instantly
`python`
r = requests.post(f"{BASE}/content/generate-and-schedule",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"topic": "AI automation", "formula": "curiosity_hook", "publish_now": True}
)
print(r.json()["post_id"])
5 Built-in Formulas
| Formula | Strategy | Best For |
|---------|----------|---------|
| controversial_opinion | Counter-intuitive take | Sparking debate |curiosity_hook
| | Curiosity gap | Click-through |binary_choice
| | This or that | Boosting replies |personal_experience
| | Personal story | Building trust |list_format
| | Numbered list | Easy sharing |
Use "auto"` to let AI pick the best formula.
Rate Limits
| Plan | API Calls/Day |
|------|--------------|
| Free | 50 |
| Lite | 100 |
| Starter | 200 |
| Pro | 1,000 |
| Business | 5,000 |
5 minutes — your AI agent is now managing Threads for you.