ai

POST /v1/ai/recipes

Create an AI posting recipe.

Svi ai krajnji točke

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu links.edit; ključ bez nje se odbija s kodom 403, a ne 404.

Gdje dolazi ID vaše organizacije

Ova krajnja točka prihvaća org_id kao polje u JSON tijelu.

ID vaše organizacije nalazi se na zaslonu API ključeva u vašoj nadzornoj ploči, pored samog ključa. To je isti ID u svakom pozivu koji uputite.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

⛔ 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.

Tijelo zahtjeva

NazivVrstaObaveznoŠto je to
namestringDa
is_enabledbooleanNe
briefstringNe
tonestringNe
word_countintegerNe
languagestringNe
posts_per_runintegerNe
providerstringNe
model_idstringNe
model_familystringNe
anchorsAiAnchor[]Ne
anchor_policystring<none, every_post, rotate>Ne
link_set_idstringNeThe 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>Ne
cadence_hour_utcintegerNe
cadence_dowintegerNe
cadence_domintegerNe
target_kindstring<none, sites, site_group, cms_targets>Ne
target_sitesstring[]Ne
target_site_group_idobjectNe
target_cms_target_idsstring[]Ne
target_categorystringNe
requires_capabilitiesstring[]Ne
capability_policystring<refuse, degrade, ask>Ne
image_providerstringNe
image_modelstringNe
featured_imagebooleanNe
inline_image_countintegerNe
inline_placementstring<after_intro, between_sections, end>Ne
image_stylestringNe
publish_modestring<draft, schedule, publish>Ne
schedule_offset_hoursintegerNe
schedule_stagger_minutesintegerNe
org_idUuidNeUUIDv7 identifier — sortable by creation time (docs/02 §8).

Odgovor

NazivVrstaObaveznoŠto je to
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringDa
is_enabledbooleanDa
briefstringNe
tonestringNe
word_countintegerNe
languagestringNeBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerNe⛔ 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.
providerstringNeBlank = whatever the funding route resolves to.
model_idstringNeBlank = the newest verified model in the family.
model_familystringNe
anchorsAiAnchor[]Ne
anchor_policystring<none, every_post, rotate>Ne
link_set_idstringNeThe 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>Da
cadence_hour_utcintegerNe
cadence_dowintegerNe0 = Monday.
cadence_domintegerNe⛔ 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_atobjectNe
last_run_atobjectNe
target_kindstring<none, sites, site_group, cms_targets>Ne
target_sitesstring[]Ne
target_site_group_idobjectNe
target_cms_target_idsstring[]Ne
target_categorystringNe
requires_capabilitiesstring[]NeCapability 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>NeWhat 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_providerstringNe
image_modelstringNe
featured_imagebooleanNe
inline_image_countintegerNe
inline_placementstring<after_intro, between_sections, end>Ne
image_stylestringNe
publish_modestring<draft, schedule, publish>Da⚖️ 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_hoursintegerNe
schedule_stagger_minutesintegerNeMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]NeProviders 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_atstringDa
updated_atstringNe

Pogreške koje ova krajnja točka može vratiti

401 · 403 · 422 · 429