> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gethyvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Publishing

> Create, check, schedule, publish and fix posts, and read each channel's outcome.

## Create

`create_posts` saves up to 25 posts and, in the same call, keeps each as a draft, schedules it or publishes it.

```json create_posts theme={null}
{
  "posts": [
    { "accountIds": ["acc_li"], "text": "We shipped Hyvo Links.", "media": ["8c1f…"], "action": "schedule", "at": "2026-12-01 09:00" },
    { "groupId": "g_launch", "text": "Hyvo Links is live.", "variants": { "acc_x": "Hyvo Links is live → hyvo.link" }, "action": "publish" }
  ],
  "idempotencyKey": "links-launch-day"
}
```

| Field | |
| - | - |
| `accountIds` / `groupId` / `network` | Where it goes (ids from `list_accounts`) |
| `text`, `variants` | Shared text; a different text per account |
| `media` | Up to 4 media ids from [`create_image`, `create_video` or `upload_media`](https://docs.gethyvo.com/mcp/images) (fewer where a network takes fewer) |
| `title`, `tagIds`, `options` | Title (DEV, Lemmy, Tumblr), tags, per-network settings |
| `action` | `draft` (default), `schedule` + `at`, `queue` + `queueId`, `publish` |
| `requireApproval` | Send it to the person's approval queue first |
| `validateOnly` | Check only, save nothing |

Each post succeeds or fails on its own. Free plans take one post per call.

## Check

Every post is checked before it is saved or sent. `validate_post` runs the same checks without saving.

| Check | Effect |
| - | - |
| Network rules: length, media type and count, title, time | Blocks that channel, with the fix |
| Same text to the same account within 24 h | Blocks (`duplicate_post`); pass `allowDuplicate` only if the person asked |
| Brand words to avoid | Warns |
| Another post on the same account within 90 min | Warns |

## Schedule, publish, fix

| Tool | Does |
| - | - |
| `schedule_post` | Schedules a draft at `at`, moves a scheduled post, or adds it to a queue (`queueId`) |
| `publish_post` | Publishes a draft, scheduled or failed post now |
| `update_post` | Changes text, accounts, media or settings of a post that hasn't gone out |
| `unschedule_post` | Takes a scheduled post back to draft |
| `delete_post` | Removes a post from Hyvo. Needs `confirm: true`; ask the person first. A published post stays live on the network |
| `list_posts`, `get_post` | Read posts back, with each channel's outcome |

Times: ISO 8601 with an offset, or `YYYY-MM-DD HH:mm` in the workspace time zone (`get_workspace`). Returned times are UTC.

## Outcomes

| Outcome | Meaning |
| - | - |
| `published` | The network confirmed it; `url` is set |
| `failed` | Refused; `error`, `retryable` and `fix` say why |
| `unknown` | The network didn't confirm; it may be live. **Never publish it again**; check `get_post` |
| `partly_published` | Some channels went out, others failed |
| `awaiting_approval` | Waiting for a manager |

A scheduled post that fails is retried once on its own. If it fails again it goes back to the person's approval queue with the reason. Pass `idempotencyKey` on any call you might repeat: the same key returns the first answer with `replayed: true`, so nothing posts twice.

## Who can do what

`get_workspace` → `connection.delivery`:

| Mode | Meaning |
| - | - |
| `direct` | Schedules and publishes as asked |
| `approval` | The person's role (editor) sends posts for approval instead |
| `drafts_only` | The connection can only save drafts |

The owner can set a daily publishing limit per connection and revoke it in **Settings → API**. Live posts are edited or taken down in the Hyvo app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.