ai

POST /v1/ai/recipes

Create an AI posting recipe.

Όλα τα τελικά σημεία ai

Πισtoποίηση

Στείλτε ένα κλειδί API ως διακριτικό φορέα (bearer token). Το κλειδί πρέπει να διαθέτει το δικαίωμα links.edit· ένα κλειδί που δεν το διαθέτει απορρίπτεται με 403, όχι 404.

Πού μπαίνει το αναγνωριστικό του οργανισμού σας

Αυτό το endpoint δέχεται το πεδίο org_id στο σώμα JSON.

Το αναγνωριστικό του οργανισμού σας βρίσκεται στην οθόνη των κλειδιών API στον πίνακα ελέγχου σας, δίπλα στο ίδιο το κλειδί. Είναι το ίδιο αναγνωριστικό σε κάθε κλήση που πραγματοποιείτε.

Δοκιμάστε το

Ατικatastήstε ό,τι βρίskεtai μέσα σe γώniaδeς μe τis δikές sas timές, kai to placeholder klεidioύ μe éna klεidi apó ton pinaka ελέgchou sas.

curl -X POST https://api.zinndigital.com/v1/ai/recipes \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string> }'

Συνδεθήκατε; Η κονσόλα API στον πίνακα ελέγχου σας συμπληρώνει το πραγματικό αναγνωριστικό του οργανισμού σας και το δικό σας κλειδί, και εκτελεί το αίτημα στο ζωντανό API, ώστε να μπορείτε να δείτε την πραγματική απόκριση. Ανοίξτε αυτό το τελικό σημείο στην κονσόλα API

Λεπτομέρειες

⛔ Bounds are enforced at **authoring** time, not at run time: more than five anchors or more than ten posts per run would be refused on every run, so a recipe saved with them would look fine, sit on a schedule, and fail silently every night. Requires `links.edit` — the same key as writing a post by hand, because that is what this is.

Σώμα αίτησης

ΌνομαΤύpοςΥποχρεωτικόΤι είναι
namestringΝαι
is_enabledbooleanΌχι
briefstringΌχι
tonestringΌχι
word_countintegerΌχι
languagestringΌχι
posts_per_runintegerΌχι
providerstringΌχι
model_idstringΌχι
model_familystringΌχι
anchorsAiAnchor[]Όχι
anchor_policystring<none, every_post, rotate>Όχι
link_set_idstringΌχιThe reusable link set this recipe draws its links from, or `null` to use the recipe's own `anchors`. When set it **replaces** `anchors` rather than adding to them — two sources…
cadencestring<manual, daily, weekly, monthly>Όχι
cadence_hour_utcintegerΌχι
cadence_dowintegerΌχι
cadence_domintegerΌχι
target_kindstring<none, sites, site_group, cms_targets>Όχι
target_sitesstring[]Όχι
target_site_group_idobjectΌχι
target_cms_target_idsstring[]Όχι
target_categorystringΌχι
requires_capabilitiesstring[]Όχι
capability_policystring<refuse, degrade, ask>Όχι
image_providerstringΌχι
image_modelstringΌχι
featured_imagebooleanΌχι
inline_image_countintegerΌχι
inline_placementstring<after_intro, between_sections, end>Όχι
image_stylestringΌχι
publish_modestring<draft, schedule, publish>Όχι
schedule_offset_hoursintegerΌχι
schedule_stagger_minutesintegerΌχι
org_idUuidΌχιUUIDv7 identifier — sortable by creation time (docs/02 §8).

Απάντηση

ΌνομαΤύpοςΥποχρεωτικόΤι είναι
idUuidΝαιUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringΝαι
is_enabledbooleanΝαι
briefstringΌχι
tonestringΌχι
word_countintegerΌχι
languagestringΌχιBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerΌχι⛔ Capped at 10. Two hundred articles from one brief are two hundred near-identical articles, which is a **footprint** — the exact thing the Footprint-Free line is sold to avoid.
providerstringΌχιBlank = whatever the funding route resolves to.
model_idstringΌχιBlank = the newest verified model in the family.
model_familystringΌχι
anchorsAiAnchor[]Όχι
anchor_policystring<none, every_post, rotate>Όχι
link_set_idstringΌχιThe reusable link set this recipe draws its links from, or `null` to use the recipe's own `anchors`. When set it **replaces** `anchors` rather than adding to them — two sources…
cadencestring<manual, daily, weekly, monthly>Ναι
cadence_hour_utcintegerΌχι
cadence_dowintegerΌχι0 = Monday.
cadence_domintegerΌχι⛔ Never 29-31: a monthly recipe set to the 31st would skip February silently, and a schedule that stops without an error is the failure this feature prevents.
next_run_atobjectΌχι
last_run_atobjectΌχι
target_kindstring<none, sites, site_group, cms_targets>Όχι
target_sitesstring[]Όχι
target_site_group_idobjectΌχι
target_cms_target_idsstring[]Όχι
target_categorystringΌχι
requires_capabilitiesstring[]ΌχιCapability ids the target must support, e.g. `cms_target:featured_image`. Enforced on every run: each site's capabilities are read from its CMS target and any shortfall is handl…
capability_policystring<refuse, degrade, ask>ΌχιWhat to do when a target cannot do something the recipe requires. Default `refuse` — silently dropping a requested field is the failure this exists to stop. `refuse` skips that…
image_providerstringΌχι
image_modelstringΌχι
featured_imagebooleanΌχι
inline_image_countintegerΌχι
inline_placementstring<after_intro, between_sections, end>Όχι
image_stylestringΌχι
publish_modestring<draft, schedule, publish>Ναι⚖️ Owner ruling 2026-08-20: a **per-recipe** switch defaulting to `draft`. `draft` writes into the library and schedules nothing; `schedule` queues placements the customer can s…
schedule_offset_hoursintegerΌχι
schedule_stagger_minutesintegerΌχιMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]ΌχιProviders this recipe needs a working key for and does not have. Empty means it can run now. ⚖️ A recipe naming no provider is never blocked — credits are the default route and…
created_atstringΝαι
updated_atstringΌχι

Σφάλματα που μπορεί να επιστρέψει αυτό το τελικό σημείο

401 · 403 · 422 · 429