Free: write once, publish to 7 networks, on time. Start free

← All posts

Developers

Posting through an API reliably: drafts, retries and checking results

2 December 2026 · By the Yeetzo team · 6 min read

POST /poststimeout...GET /postsexists? noPOST /postsstatus: sent

Once posting becomes part of a script, a build pipeline or a no-code automation, a new kind of problem appears. A network is briefly unavailable. A request times out and you do not know whether it worked. A script runs twice. The result is a missed post, or worse, the same post twice. This guide covers practical habits for publishing through an API without those surprises.

The examples refer to the Yeetzo API, whose fields are listed in the posts reference, but the ideas apply to any publishing API.

Start with drafts

When you build a new integration, send posts as drafts first. The post's action field accepts draft, now or schedule. A draft appears in your workspace without going anywhere, so you can check the text, the channels and the media. Switch to scheduling or publishing only once you trust the output. The same habit saves you when an automation starts producing something unexpected.

Scheduling is safer than publishing now

If a post does not need to go out this second, schedule it a few minutes ahead with an at time that includes an offset, such as 2026-12-03T09:00:00+11:00. A scheduled post sits in your workspace where you can see it and fix it. A post sent now cannot be taken back by your script.

Read the whole result

A request that returns success does not always mean every channel received the post. A post object has a status that can be draft, pending, scheduled, sending, sent, partial or failed, and a results list with one entry per channel. Each entry says whether that channel succeeded and gives either the link or an error. A partial status means some channels worked and some did not. Your script should look at it, not only at the first success.

StatusWhat to do
sentLog the links and move on.
partialRead the errors per channel. Retry only the channels that failed.
failedRead the error. Fix the cause before trying again.
pendingThe post is waiting for approval. Do not resend it.
scheduledNothing yet. Check again after the time.

Retry with care

The danger in a retry is posting twice. If a request timed out, do not assume it failed. Before you send it again, look at your recent posts through the list endpoint and see whether the post is already there. If it is, do not resend. If it is not, send it once more. Keep a note in your own system of which items you have published, so a script that runs twice does not repeat itself.

Also avoid retrying fast in a loop. Wait a little longer each time, and stop after a few attempts. Persistent errors usually mean something is wrong that a retry will not fix.

Do not retry the wrong errors

Some failures are worth retrying: a temporary network problem, a busy server. Others are not: a rejected character count, a missing image, an expired connection to a channel. Retrying these only repeats the failure. Read the message, fix the cause, and then send.

Respect limits

Networks and APIs limit how fast and how much you can post. Look at the limits page before designing a high volume integration, and spread your posts out. Bursts of many posts at once are a quick way to get noticed by a network's spam checks.

Keep your key safe

An API key can publish as you. Store it in your platform's secret storage, not in a repository, a chat or a client side script. Give each integration its own key, so you can remove one without disturbing the others. If a key may have leaked, revoke it from your account and make a new one.

Add a human gate where it matters

For anything public and hard to undo, consider approval: a script or agent drafts, a person approves. If your workspace requires approval, API posts wait in the queue with the status pending, as described in the teams docs. This pairs well with the advice in letting an AI agent run your posting queue, safely.

Get told about outcomes

Rather than checking constantly, let Yeetzo tell your system. Webhooks send an event when a post is published, fails or waits for approval. Your system can then log the result, alert you on a failure, or notify the approver.

Log what you did

Keep a simple record of each attempt: what you sent, when, to which channels, and what came back. When something goes wrong a week later, a log is the difference between a ten-minute fix and an afternoon of guessing.

A checklist for any integration

  1. Develop against drafts.
  2. Schedule instead of publishing now when you can.
  3. Check the per-channel results.
  4. Before a retry, check whether the post already exists.
  5. Back off between attempts and give up after a few.
  6. Keep keys secret and separate.
  7. Use webhooks and logs to know what happened.

Reliable publishing is mostly careful bookkeeping. Treat every post as something that may have already happened, and your scripts will stop surprising you.

Questions people ask

Should I post directly from my build pipeline?

You can, and it is a popular use. Keep it simple: on a successful release, send a scheduled or draft post with the version and a link to the release notes. Let a person look at the draft before it goes out if the announcement matters.

What should my script do if the API is unreachable?

Fail loudly. Record the failure, alert someone, and avoid silently dropping the post. A missed announcement that nobody knows about is worse than an error that gets fixed in the afternoon.

How do I test without annoying my followers?

Use a separate workspace or a test channel, and send drafts. Check the text, links and media in the editor, then delete the test drafts. Never test on your main audience.

Can I post to only some channels?

Yes. The channels field takes the ids of the channels you want, so an integration can send release notes to one channel and a casual note to another. Per-channel versions let you adjust the wording for each.

Keep it boring

The best publishing scripts are dull. They do the same thing every time, record what they did, and ask for help when something looks strange. Dull is reliable.

Write it once. Post it everywhere.

Free account, no card.