---
title: "Schedule an X thread (2–25 tweets)"
method: POST
path: "/api/posts/schedule-thread"
tags: ["Posts"]
---

# Schedule an X thread (2–25 tweets)

`POST /api/posts/schedule-thread`

## Request

- Base URL: `https://api.dunsocial.com`
- URL: `https://api.dunsocial.com/api/posts/schedule-thread`
- Auth: HTTP bearer

## Headers

- `X-Workspace-Id` string, required

## Request body

- ScheduleThreadRequest
  - `socialAccountId` string, required
  - `tweets` ThreadTweet[], required
    - `content` string, required
    - `mediaUrls` string[]
  - `scheduledAt` string, date-time, required
  - `metadata` object

## Response `201`

Thread created

- SuccessEnvelope
  - `success` true, required
  - `data` unknown

## Other responses

- `400`: Validation or business rule failed
- `401`: Missing or invalid bearer token
- `402`: Workspace is not on a paid plan
- `403`: Wrong workspace, missing scope, or role

---

[API](https://skmtc.dev/dunsocial/apis/dunsocial-api.md) · [All operations](https://skmtc.dev/dunsocial/apis/dunsocial-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dunsocial/apis/dunsocial-api/revisions/3c586d59e76f?raw)
