How the Zernio schedule post API picks a mode

By Christophe Paka · Facts checked on 30 October 2026

You meant to schedule a post for 09:00 in New York. It went out at 04:00. Another post never went out at all, because Zernio saved it as a draft. Your users notice such bugs before you do.

The Zernio schedule post API makes this choice with two fields, checked in a fixed order. The figure below shows that check, top to bottom, so you can tell which mode a post will get before you send it.

Decision flow for POST /v1/posts: if scheduledFor is set the post is Scheduled; if not and publishNow is true it is Immediate; with neither it is a Draft. A queued post skips the first check, because the next free slot gives the time.
Figure 4.1 Zernio checks two fields on every new post: a time schedules it, publishNow sends it at once, and neither saves a draft.
Use this diagram on your site

Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.

How to read this figure

  1. Start at the one call. Every new post starts as one POST /v1/posts call with content and a platforms list. The fields you add decide its first status. Zernio checks them in a fixed order.

  2. First check: is there a time?. If the post carries scheduledFor, it is Scheduled. It publishes at that wall clock time, read in the timezone you send. This check comes first, so a time always wins.

  3. Second check: publish now?. With no time and publishNow: true, the post is Immediate. Its status runs publishing, then ends published, failed, or partial when some platforms fail and others work.

  4. Neither field: a draft. Send neither field and the post is a Draft. It is saved but inert. Nothing publishes until you promote it, so drafts double as a review stage for work an agent wrote.

  5. Read the note at the foot. A queued post skips the first question. With queuedFromProfile, the profile's next free slot gives the time. See how a queue fills its slots.

Key takeaways

  • Set a default timezone on every profile, so a post that forgets its zone still lands on time.
  • Let an agent save drafts, and have a named person release them.
  • To promote a draft, send isDraft false plus a time; the time alone leaves it a draft.

Worked example: the post that went out five hours early

You pick 09:00 in New York and send a plain time with no zone. Zernio reads scheduledFor by these rules, in this order:

  1. The time ends in Z or carries an offset such as -05:00: an exact moment, and zone settings are ignored.
  2. A plain time with a timezone on the post: read in that zone.
  3. A plain time with no timezone on the post: read in the profile's default timezone, if you set one.
  4. A plain time with no zone anywhere: read as UTC, the world reference clock.

Result: Your post falls to the last rule. It goes out at 09:00 UTC, which is 04:00 in New York in winter: five hours early. Send the timezone field, or set a default on the profile. Answers come back in UTC, so convert them before you show them.

Questions readers ask

How do I keep an unattended agent from posting garbage?

Have it save drafts, not publish. A post sent with neither a time nor publishNow is saved but inert, and nothing publishes until someone promotes it. For a named person's yes, turn on requiresApproval for anything a client must see or an agent wrote.

Why did my scheduled post go out at the wrong hour?

Most often, a plain time with no zone. Zernio reads it in the post's timezone, then the profile's default timezone, then UTC. So 09:00 picked in New York and sent with no zone posts at 09:00 UTC, five hours early in winter. Send the timezone field every time.

Why does my draft stay a draft after I set a time?

Promoting a draft needs two things in one update: isDraft: false and a time. Send the time alone and the answer is 200, but the post stays a draft. Send both, and the post moves to scheduled.

Sources: Create post (Zernio docs); Timezones and scheduling (Zernio docs); Post lifecycle (Zernio docs).

This figure is from Zernio Made Crystal Clear, chapter 4.

The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.

Get the book

All diagrams