Hanzo AI
OpenapiMarketing

Publish calendar

Publishes a post NOW, synchronously, whatever its schedule.

POST /v1/marketing/calendar/{id}/publish

Addresshttps://api.hanzo.ai/v1/marketing/calendar/{id}/publish
MethodPOST
Operationpost_marketing_calendar_by_id_publish
AuthAuthorization: Bearer $HANZO_API_KEY

Publishes a post NOW, synchronously, whatever its schedule. No social connector is wired today, so every channel answers an honest 501 naming the client a real one would plug into, and the post is recorded failed with that exact reason — never a faked "published".

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the post id from the path, as returned by create.

Response

StatusBodyMeaning
200CalendarPostok

200 body — 10 fields.

FieldInTypeAlwaysDescription
bodybodystring—Body is the post text.
channelbodystring—Channel is the target network: x, facebook, instagram, linkedin, tiktok, youtube or threads.
createdAtbodyinteger—CreatedAt is unix seconds when the post was added, server-assigned and never rewritten.
errorbodystring—Error is the exact reason the last publish attempt failed — the honest record behind a "failed" status, never a faked success.
idbodystring—ID is the server-assigned post id ("cal_" + 128 random bits).
publishedAtbodyinteger—PublishedAt is when the publish succeeded; 0 until it does.
scheduledAtbodyinteger—ScheduledAt is the unix publish time; 0 leaves the post a draft, and any value makes it "scheduled" for the durable sweep to pick up.
statusbodystring—Status is draft, scheduled, published, failed or canceled.
titlebodystring—Title is the post's internal label, capped at 1024 bytes.
updatedAtbodyinteger—UpdatedAt is unix seconds of the last write, server-assigned.

Failure carries the platform error shape — see Errors.

Examples

hanzo marketing calendar publish <id>

Marketing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page