Hanzo
OpenapiMarketing

Adds a post to the content calendar.

Adds a post to the content calendar. Channel and body are required.

POST /v1/marketing/calendar

Addresshttps://api.hanzo.ai/v1/marketing/calendar
MethodPOST
Operationpost_marketing_calendar
AuthAuthorization: Bearer $HANZO_API_KEY

Adds a post to the content calendar. Channel and body are required. A scheduledAt in the future makes the post "scheduled" and the durable sweep publishes it when it comes due — claimed once, so a post publishes at most once; without one it stays a draft.

Request

10 fields, body application/json (required).

FieldInTypeRequiredDescription
bodybodystringBody is the post text.
channelbodystringChannel is the target network: x, facebook, instagram, linkedin, tiktok, youtube or threads.
createdAtbodyintegerCreatedAt is unix seconds when the post was added, server-assigned and never rewritten.
errorbodystringError is the exact reason the last publish attempt failed — the honest record behind a "failed" status, never a faked success.
idbodystringID is the server-assigned post id ("cal_" + 128 random bits).
publishedAtbodyintegerPublishedAt is when the publish succeeded; 0 until it does.
scheduledAtbodyintegerScheduledAt is the unix publish time; 0 leaves the post a draft, and any value makes it "scheduled" for the durable sweep to pick up.
statusbodystringStatus is draft, scheduled, published, failed or canceled.
titlebodystringTitle is the post's internal label, capped at 1024 bytes.
updatedAtbodyintegerUpdatedAt is unix seconds of the last write, server-assigned.

Response

StatusBodyMeaning
200CalendarPostok

200 body — 10 fields.

FieldInTypeAlwaysDescription
bodybodystringBody is the post text.
channelbodystringChannel is the target network: x, facebook, instagram, linkedin, tiktok, youtube or threads.
createdAtbodyintegerCreatedAt is unix seconds when the post was added, server-assigned and never rewritten.
errorbodystringError is the exact reason the last publish attempt failed — the honest record behind a "failed" status, never a faked success.
idbodystringID is the server-assigned post id ("cal_" + 128 random bits).
publishedAtbodyintegerPublishedAt is when the publish succeeded; 0 until it does.
scheduledAtbodyintegerScheduledAt is the unix publish time; 0 leaves the post a draft, and any value makes it "scheduled" for the durable sweep to pick up.
statusbodystringStatus is draft, scheduled, published, failed or canceled.
titlebodystringTitle is the post's internal label, capped at 1024 bytes.
updatedAtbodyintegerUpdatedAt is unix seconds of the last write, server-assigned.

Failure carries the platform error shape — see Errors.

Examples

hanzo marketing calendar create

Marketing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page