Posts
Send a post now, save a draft, or choose when it should go out.
On this page
Create a post
Send POST /api/v1/posts with the workspace account IDs in targets. Add a caption, media, or both, depending on each destination. mediaIds contains ordered media IDs from an upload, import, or the library.
{
"caption": "New studio photos",
"mediaIds": ["<first-photo-uuid>", "<second-photo-uuid>"],
"targets": [
{ "accountId": "<instagram-account-uuid>" },
{ "accountId": "<bluesky-account-uuid>", "overrides": {
"caption": "A look inside the studio",
"description": "Photos of the recording studio"
} }
]
}| Action | Fields to send |
|---|---|
| Publish now | Omit scheduledAt, addToQueue, and draft. scheduledAt: null also works. |
| Schedule | Set scheduledAt to a future ISO 8601 timestamp with an offset, such as 2027-01-15T09:00:00-05:00. |
| Book the next slot | Set addToQueue: true. The response has the booked scheduledAt and inQueue: true. |
| Save a draft | Set draft: true. Caption, media, and target arrays can be empty. |
Choose one timing mode. Each account and media ID can appear once. A post accepts up to 25 targets and 35 media IDs, subject to each platform's limits.
Use a saved group or preset
List your saved options with GET /api/v1/account-groups and GET /api/v1/posting-presets. Pass a groupId or presetId when creating, editing or bulk scheduling posts. The same IDs work in MCP.
Posthoop expands the group when it processes the request. A preset adds per-platform overrides and optional timing. An explicit time or queue choice takes precedence, and overrides on an individual target replace the matching fields from the preset.
Use the posting queue
GET /api/v1/scheduling/slots?count=5 previews open times up to 90 days ahead. It returns the schedule's timeZone and a list of UTC timestamps. A preview has no reservation. Use addToQueue: true to book the next slot.
GET /api/v1/scheduling/schedule reads the weekly schedule. A Publishing admin key can replace it with PUT. Weekday 0 is Sunday. Send an empty slots array to disable new queue bookings. Existing posts keep their times.
{
"timeZone": "America/Toronto",
"slots": [{ "weekday": 1, "time": "09:00" }]
}GET /api/v1/scheduling/queue lists upcoming queue posts. Send PATCH with postIds in the desired order to reuse the selected posts' existing times, or send {"shuffle": true} to shuffle the whole queue.
Edit, release a draft, or cancel
Use PATCH /api/v1/posts/{id} on a draft or a post whose targets have yet to start. Omit content fields you want to keep. Sending targets or mediaIds replaces that list. Edits also replace the target records, so use the target IDs from the latest response.
Send expectedRevision from the last GET with your changes. If the post changed or started publishing, the API returns 409. Edit a draft's content and targets before releasing it, or include those changes in the same PATCH.
| Draft action | Patch fields |
|---|---|
| Publish now | {"draft": false} |
| Publish at a specific time | {"scheduledAt": "2027-01-15T14:00:00Z"} |
| Book the next free time | {"addToQueue": true} |
POST /api/v1/posts/{id}/cancel cancels a draft or targets that have never started publishing. Read cancelledTargetIds and the returned post to check what happened. Targets that already started are left to complete.
Customize a target
Add fields under targets[].overrides. A caption override replaces the top-level caption for that target. For multiple Pinterest boards, send one target per board with the same account ID and a distinct boardId.
| Platform | Overrides beyond caption |
|---|---|
| For Reels, use shareToFeed (defaults to true), cover (public HTTPS URL), or thumbOffset (milliseconds, used when there is no cover). | |
| Reels use title and description. Photos use the caption. | |
| YouTube | title, description, privacy (private by default, unlisted, or public), madeForKids, and tags. |
| TikTok | privacy is required and must be available to the account. Videos use allowComments, allowDuet, allowStitch, and thumbOffset in milliseconds. Photos use allowComments, title, description, and photoCoverIndex (zero-based). Set tiktokMode to inbox to send a video draft to TikTok, where the creator finishes the post. This requires the video.upload scope. |
| Bluesky | description supplies alt text for the attached images. |
| title supplies the video title. | |
| boardId is required as a numeric string. Use title and description for the Pin, and a public HTTPS cover URL for a video Pin. | |
| Threads and X | Use the caption override. |
See first comments for the platforms that accept firstComment.
Threads, quotes and replies
On X, Threads and Bluesky, send up to 25 threadItems in the target overrides. Each item can reference its own post attachments. Use replyTo on the first item to reply to an existing post, or quotePost to quote one. X restricts who can reply and requires Enterprise access for quote posts.
Google Business Profile
Connect through Google and select a managed location. Use businessProfile overrides for updates, events and offers. Attach JPEG or PNG photos up to 5 MB each.
Mastodon
Enter your public Mastodon server domain and authorize Posthoop. Publish text, up to four photos, or one video. The server sets its own limits.
Telegram
Add your bot as a channel admin with permission to post. Connect it with the bot token and channel username or ID. Text posts allow 4,096 characters and media captions allow 1,024.
Discord
Connect a channel with its incoming webhook URL. Post text and up to 10 attachments of up to 10 MB each.
Slack
Authorize Slack and choose a channel. The app must have access to the chosen channel. Send a message with up to 10 files.
Tumblr
Authorize Tumblr and select one blog. Publish text, images, or MP4 video.
Build a carousel
Every target receives the same files in mediaIds order. Use the following compatibility rules when choosing destinations for a multi-file post.
| Platform | Multiple attachments |
|---|---|
| Up to 20 JPEG images and MP4 or MOV videos. You can mix photos and videos. | |
| Up to 10 JPEG or PNG photos. | |
| TikTok | Up to 35 JPEG or WebP photos. The instance needs TikTok photo publishing enabled with a verified HTTPS domain. |
| Threads | Up to 20 JPEG or PNG images and MP4 or MOV videos. You can mix photos and videos. |
| Bluesky | Up to four JPEG, PNG, or WebP images. |
| Up to 20 JPEG or PNG images. | |
| X | Up to four JPEG, PNG, or WebP images. |
| Up to five JPEG, PNG, or WebP images if the account can create carousel Pins. | |
| YouTube | One vertical Shorts video per post. |
Bluesky, Threads, LinkedIn, and X also accept caption-only posts. To send a different set of media to another account, create a separate post.
Add a first comment
Set targets[].overrides.firstComment on Instagram, Facebook, YouTube, Bluesky, Threads, LinkedIn, or X. Posthoop queues it after publication is confirmed, provided the platform returns a post ID. Read firstCommentStatus and firstCommentError on the target.
Reconnect Instagram, Facebook, and YouTube accounts that lack comment permissions. For YouTube, use a public or unlisted video with comments enabled and leave madeForKids off. X replies depend on the app's access and the post's reply settings. An unconfirmed comment stays unconfirmed without an automatic resend.
Validate without publishing
Add dryRun: true to the create body. A 200 response contains valid, issues, and target-specific issues. Malformed inputs can still return 400, and unknown media IDs can return 404.
To validate before uploading, send mediaFiles with the same metadata you would send to the upload endpoint, and omit mediaIds. This checks the declarations against target rules. Actual file contents and upload completion are checked separately.
A dry run checks whether the requested minute is reserved by the queue or whether a queue slot is available. It leaves the schedule untouched. If another post takes the slot before you submit, the live request can still return 409.
Schedule a batch
Use POST /api/v1/posts/bulk with 1 to 50 posts or a csv string. Supply a time for each post or set spacing.startAt and spacing.intervalMinutes to fill in missing times. Spacing uses elapsed minutes. An explicit row time takes precedence.
CSV headers are media url, caption, accounts, time, and per-platform overrides. Separate account IDs with semicolons and put a JSON object keyed by platform in the overrides column. Optional columns are duration seconds, width, and height.
Use dryRun: true to check the batch. CSV URLs are imported only during a live run. Dry-run rows with URLs have mediaVerified: false. If a later row fails to import or validate, earlier successful imports remain in the library. A 422 batch response includes row results and errors under error.details.
Read publishing status
GET /api/v1/posts lists newest posts first. Use status, limit, and offset to filter and page. GET /api/v1/posts/{id} returns a single post and its targets.
Every full post response includes postId, socialAccountId, handle, and platform on each target. Check the target's status, attempts, lastError, and retryAt. A failed target with a retry time can run again. processing means the platform is working on the post. unknown means Posthoop could not confirm the outcome and may still reconcile it.
A published target can include externalId, externalUrl, and publishedAt. For event-driven status updates, subscribe to webhooks.