ai

POST /v1/ai/recipes

Create an AI posting recipe.

Бүх ai төгсгөлийн цэгүүд

Баталгаажуулалт

API түлхүүрийг bearer token хэлбэрээр илгөэнэ үү. Түлхүүр нь links.edit эрхтэй байх ёстой бөгөөд үүнгүйгээр 404 биш, харин 403 алдаа буцааж татгалзах болно.

Таны байгууллагын дугаар орох газар

Энэ төгсгөлийн цэг нь JSON бие хэсэгт org_id-ийг талбар болгон авдаг.

Танай байгууллагын ID нь таны хяналтын самбар дээрх API түлхүүрийн дэлгэцэнд, түлхүүр өөрөө хажууд байрладаг. Энэ нь таны хийх дуудлага бүрт ижил ID байна.

Туршиж үзэх

Өнцөг хаалтанд байгаа бүх зүйлийг өөрийн утгаар солиж, түлхүүр санамж байрлуулагчийг хяналтын самбарынхаа түлхүүрээр сольж оруулна уу.

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

Та нэвтэрсэн байна уу? Таны хяналтын самбар дахь API консол нь таны бодит байгууллагын ID болон өөрийн түлхүүрийг автоматаар бөглөж, шууд ажиллаж буй 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.

Хүсэлтийн бие

НэрТөрөлЗаавал шаардлагатайЭнэ юу вэ
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).

Хариу үйлдэл

НэрТөрөлЗаавал шаардлагатайЭнэ юу вэ
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