PubNio provides a social media scheduling API supporting both explicit ISO 8601 timestamps and per-account weekly slot queues with IANA timezone awareness. PubNio handles scheduled delivery even when your backend or AI agent is offline.
Choose exact timestamps for launch moments or let per-account weekly queues fill the next open cadence slot automatically.
Social Media Scheduling & Weekly Queues API specifications
Capability
PubNio contract
Explicit timestamp mode
Pass scheduledFor in ISO 8601 UTC; PubNio validates future windows and triggers delivery at the exact due time
Weekly queue mode
Configure recurring weekday and local-time slots per social account using any IANA timezone (DST-safe)
Conflict protection
Preflight catches queue_and_time_conflict and past timestamps before queuing work
Scheduled delivery
Background delivery with per-target isolation and automatic backoff for transient errors
Reschedule & cancel
Update drafts, move queued posts, or cancel pending targets cleanly before dispatch for $0
Delivery notifications
Signed HMAC-SHA256 webhooks fire as soon as each scheduled destination confirms live
Why teams replace DIY cron schedulers
Daylight Saving Time drift when mapping local brand calendars onto UTC cron jobs.
Missed runs or duplicate sends during server deploys, worker restarts, or queue consumer crashes.
Manually tracking which weekday slot is already occupied across dozens of client accounts.
Expiring OAuth tokens discovered only after a scheduled launch fails at 9:00 AM.
How PubNio queues stay predictable
Preflight validation runs at schedule time so broken media or expired tokens surface immediately.
Weekly queues compute the next open slot atomically per account without colliding with existing posts.
Cancelling or editing a scheduled post before it fires costs $0.
Agents can inspect upcoming queue calendars via MCP before adding new release posts.
Queue a draft into the next open slot.
Pass useQueue: true to assign the next available weekly slot, or supply an exact scheduledFor timestamp.
// 1. Configure a weekday morning cadence once per accountawait ws.queues.update(linkedinAccountId, {
timezone: "America/New_York",
slots: [
{ dayOfWeek: 2, time: "09:00" },
{ dayOfWeek: 4, time: "09:00" },
],
});
// 2. Assign a validated draft to the next open slotconst scheduled = await ws.posts.publish(draft.postId, {
useQueue: true,
idempotencyKey: "weekly-tip-42",
});
# Prompt inside your coding agent:"Check the next open weekly queue slot on our LinkedIn and Instagram accounts,
validate post pst_01j9k4, and schedule it into the next slot."
Can I mix exact timestamps and weekly queues in the same workspace?
Yes. Individual drafts can target an explicit ISO 8601 timestamp or use the account's weekly queue. Passing both on the same publish request returns the typed queue_and_time_conflict preflight error.
How does PubNio handle Daylight Saving Time?
Weekly queues store IANA timezone identifiers (such as America/New_York or Europe/London) and compute each upcoming UTC dispatch timestamp dynamically across DST transitions.
Do scheduled posts bill when queued or when published?
Scheduled posts only bill after the provider confirms live publication. Queuing, rescheduling, or cancelling before dispatch always costs $0.