← Back to Blog
MindThread Team / / 5 min read

MindThread API v1 is Live — Let AI Agents Run Your Threads

apiai-agentautomationdeveloperupdate

MindThread API v1 is Live — Let AI Agents Auto-Post to Threads

We've been asking ourselves: If an AI Agent can generate content, schedule posts, and publish automatically — do you even need to open the dashboard?

Today, MindThread API v1 is officially live. This means you can integrate MindThread's core features through code, AI Agents, or any automation tool.


What Can This API Do?

1. AI Content Generation (POST /content/generate)

Give it a topic, AI writes your Threads post. 5 built-in high-engagement formulas:

| Formula | Strategy | Best For |
|---------|----------|----------|
| controversial_opinion | Counter-intuitive take | Sparking discussion |
| curiosity_hook | Curiosity gap | Driving clicks |
| binary_choice | A or B choice | Getting comments |
| personal_experience | Personal story | Building trust |
| list_format | Numbered list | Easy sharing |

Or choose auto and let the system pick the best formula based on your account data.

2. One-Click Generate + Schedule (POST /content/generate-and-schedule)

The endpoint Agents use most. One API call = AI generates content + schedules it.

``
POST /api/v1/content/generate-and-schedule
{
"account_id": "your_account_id",
"topic": "This week's AI trends",
"formula": "auto",
"publish_now": true
}
`

That's it. One call, done.

3. Schedule Management

- Schedule content (POST /content/schedule)
- View schedules (GET /schedules)
- Cancel schedule (DELETE /schedules/:id)

4. Analytics (GET /analytics/insights)

Get engagement data, best posting times, formula recommendations, and optimization suggestions.


Quick Start

Step 1: Get Your API Key

Login to MindThread → Settings → Scroll to bottom → API Keys → Click "Create"

You'll get a mt_live_ key. Copy it immediately — it's only shown once.

Step 2: Test the API

`bash

List available formulas


curl https://mindthread.tw/api/v1/formulas

Generate a post

curl -X POST https://mindthread.tw/api/v1/content/generate \ -H "Authorization: Bearer mt_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"topic": "The future of AI automation", "formula": "auto"}'
`

Step 3: Connect Your AI Agent

The API is designed for seamless AI Agent integration. Whether you use OpenClaw, GPT, Claude, or your own Agent — if it can make HTTP requests, it works.


Test Mode

Use mt_test_` keys to get mock responses without actually posting to Threads or consuming credits.


Security

- Tokens stored as SHA-256 hashes only
- Idempotency key support
- Per-token rate limiting
- Instant revocation from dashboard


Go to Settings and create your first API Key now.

Questions? Contact us: https://line.me/ti/p/Ba3SzAQUjx

Ready to automate your Threads?

7-day free trial, no credit card required

Start for Free →