XreplyAIDevelopers
API ReferenceA I Generation

Generate a thread

Requires scope: `ai:generate` and a paid plan. Generates a connected thread of posts. Shares a 6/min rate-limit bucket with the batch and carousel generators.

POST
/posts/generate_thread
AuthorizationBearer <token>

A personal API key created in the dashboard (Starter, Pro, and Team plans).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/posts/generate_thread" \  -H "Content-Type: application/json" \  -d '{    "topic": "how to write a good cold email",    "tweet_count": 5,    "platform": "twitter"  }'
{  "tweets": [    "1/ Cold emails fail for one reason.",    "2/ You lead with yourself."  ]}