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

# Test safely

> There's no sandbox yet. Test with drafts, a draft-only key and a test account, and know what can't be undone.

There's no sandbox, test mode or test key yet. Every key works on your real PostSyncer account, and so does the playground on the reference pages. These keep your tests away from your audience.

## Save drafts

`"schedule_type": "draft"` saves the post in PostSyncer and sends nothing to any network. You can read, update and delete a draft like any post. Drafts don't count toward the Free plan's 20 posts a month.

## Use a draft-only key

A key with `posts:create` but without `posts:schedule` and `posts:publish` can only save drafts. A `schedule` or `publish_now` request answers `403` and saves nothing:

```json 403 theme={null}
{
  "message": "This API key does not have the \"posts:schedule\" permission. Edit the key in PostSyncer under Settings → API to grant it."
}
```

In [Settings → API](https://app.postsyncer.com/settings/api), set **Posts** to **Drafts only** (`posts:read` and `posts:create`). This is also a good key for an AI agent: it writes drafts, and a person schedules them in PostSyncer.

If your tests edit drafts, add `posts:update`. The key still can't schedule or publish a post, but it can switch on two settings that act on a post once it's live:

* [Auto-plug](https://docs.postsyncer.com/api-reference/posts/auto-plug.md) posts a reply under the published post when it reaches the numbers you set. It works on every plan.
* [Comment moderation](https://docs.postsyncer.com/api-reference/posts/comment-moderation.md), on paid plans, removes comments that match its rules from the network and can answer comments with AI replies.

## Publish to a test account

To see a real post go out, connect an account that nobody follows, such as a private Telegram channel or a Bluesky or Mastodon test account, and post only to it. On Free, that account is one of your 2, and each post you schedule or publish counts toward the month's 20.

## Test webhooks

* [`POST /webhooks/{id}/test`](https://docs.postsyncer.com/api-reference/webhooks/test) sends one signed `webhook.test` event to that endpoint only. It needs `webhooks:update`.
* [`GET /webhooks/{id}/deliveries`](https://docs.postsyncer.com/api-reference/webhooks/deliveries) shows each delivery with the status and body your server answered. It needs `webhooks:read`.
* A webhook address must be public `https`. `localhost`, private and loopback addresses are refused. To receive events on a server running locally, expose it with a tunnel such as ngrok or Cloudflare Tunnel, or point the webhook at a request bin.

## What can't be undone

* `publish_now` sends the post right away. A scheduled post goes out at its time without asking again.
* A published post is live on the network. PostSyncer never edits the copy there.
* Deleting a post in PostSyncer is permanent. For each account it was published to, PostSyncer asks the network to delete the one post it saved for that account:

| Network | What PostSyncer asks the network to delete |
| - | - |
| X, Threads, Bluesky, Mastodon | The first post. The thread's other posts, and a first comment sent as a reply, stay up. |
| Telegram | The message. In an album, only the first photo or video. |
| Facebook, LinkedIn, YouTube, Pinterest, Google Business Profile | The post. |
| Instagram, TikTok | Nothing. Delete it on the network. |

* When the network doesn't delete it, the post can stay live:
  * If the account's sign-in has run out, nothing is sent. PostSyncer's copy is deleted and the post stays live.
  * On LinkedIn, Bluesky and Mastodon, a refused delete is only logged. PostSyncer's copy is deleted and the post stays live.
  * On the other networks, a refused delete fails the request with a `500` and the post stays in PostSyncer. Accounts handled before the refusal are already removed from the post.
* On Free, a post counts toward the month's 20 when it's first scheduled, published or sent for approval. Editing or retrying it doesn't count it again, and deleting it doesn't give it back.
* There's no idempotency key: a create sent twice makes two posts. After a timeout, check [`GET /posts`](https://docs.postsyncer.com/api-reference/posts/list) before you send it again.

## Related

> [card] [Quickstart](https://docs.postsyncer.com/quickstart.md)
>
> A draft, then a schedule for 2030. Nothing is published.

> [card] [Authentication](https://docs.postsyncer.com/essentials/authentication.md)
>
> Keys and permissions.


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