Skip to main content

X thread maker API

Paste an article, a newsletter or a long idea and get a ready thread for X, Threads, Bluesky or Mastodon: split at paragraphs and sentences, numbered 1/n if you like, each post within the network's limit.

  • Endpoint: POST https://postboost.co/app/api/tools/x-thread-maker (operationId splitThread)
  • Web tool: postboost.co/tools/x-thread-maker
  • Token: optional (limits)
  • MCP: tool split-thread on https://postboost.co/mcp/tools

Request​

FieldTypeDefaultDescription
textstring""The long text, up to 10,000 characters. A line with only --- forces a new post.
networkstring: x, threads, bluesky, mastodon"x"
numberingbooleanfalseEnd each post with " k/n".

Call it​

curl -X POST https://postboost.co/app/api/tools/x-thread-maker \
-H 'Content-Type: application/json' \
-d '{"text":"Short one.\n\nShort two.\n---\nSecond post.","numbering":true}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"limit": 280,
"posts": [
{
"text": "Short one.\n\nShort two. 1/2",
"count": 26
},
{
"text": "Second post. 2/2",
"count": 16
}
]
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Split long text into a thread with the PostBoost split-thread tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.