تصدیقهویت
یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د links.edit اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.
چیرته چې ستاسو د سازمان آی ډي ځي
دا پای ټکی د JSON په متن کې د یوې ساحې په توګه org_id اخلي.
ستاسو د سازمان آی ډي ستاسو په ډشبورډ کې د API کېلي پر سکرین، خپله د کېلي څنګ ته شتون لري. دا په هره هغه غوښتنه کې چې تاسو یې کوئ، ورته آی ډي وي.
هڅه وکړئ
د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.
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 په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د 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.
د غوښتنې بدن
| نوم | ډول | اړین | دا څه شی دی |
|---|---|---|---|
name | string | هو | — |
is_enabled | boolean | نه | — |
brief | string | نه | — |
tone | string | نه | — |
word_count | integer | نه | — |
language | string | نه | — |
posts_per_run | integer | نه | — |
provider | string | نه | — |
model_id | string | نه | — |
model_family | string | نه | — |
anchors | AiAnchor[] | نه | — |
anchor_policy | string<none, every_post, rotate> | نه | — |
link_set_id | string | نه | 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… |
cadence | string<manual, daily, weekly, monthly> | نه | — |
cadence_hour_utc | integer | نه | — |
cadence_dow | integer | نه | — |
cadence_dom | integer | نه | — |
target_kind | string<none, sites, site_group, cms_targets> | نه | — |
target_sites | string[] | نه | — |
target_site_group_id | object | نه | — |
target_cms_target_ids | string[] | نه | — |
target_category | string | نه | — |
requires_capabilities | string[] | نه | — |
capability_policy | string<refuse, degrade, ask> | نه | — |
image_provider | string | نه | — |
image_model | string | نه | — |
featured_image | boolean | نه | — |
inline_image_count | integer | نه | — |
inline_placement | string<after_intro, between_sections, end> | نه | — |
image_style | string | نه | — |
publish_mode | string<draft, schedule, publish> | نه | — |
schedule_offset_hours | integer | نه | — |
schedule_stagger_minutes | integer | نه | — |
org_id | Uuid | نه | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
ځواب
| نوم | ډول | اړین | دا څه شی دی |
|---|---|---|---|
id | Uuid | هو | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | هو | — |
is_enabled | boolean | هو | — |
brief | string | نه | — |
tone | string | نه | — |
word_count | integer | نه | — |
language | string | نه | BCP-47, or empty for "the language the brief is written in". |
posts_per_run | integer | نه | ⛔ 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. |
provider | string | نه | Blank = whatever the funding route resolves to. |
model_id | string | نه | Blank = the newest verified model in the family. |
model_family | string | نه | — |
anchors | AiAnchor[] | نه | — |
anchor_policy | string<none, every_post, rotate> | نه | — |
link_set_id | string | نه | 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… |
cadence | string<manual, daily, weekly, monthly> | هو | — |
cadence_hour_utc | integer | نه | — |
cadence_dow | integer | نه | 0 = Monday. |
cadence_dom | integer | نه | ⛔ 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_at | object | نه | — |
last_run_at | object | نه | — |
target_kind | string<none, sites, site_group, cms_targets> | نه | — |
target_sites | string[] | نه | — |
target_site_group_id | object | نه | — |
target_cms_target_ids | string[] | نه | — |
target_category | string | نه | — |
requires_capabilities | string[] | نه | 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_policy | string<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_provider | string | نه | — |
image_model | string | نه | — |
featured_image | boolean | نه | — |
inline_image_count | integer | نه | — |
inline_placement | string<after_intro, between_sections, end> | نه | — |
image_style | string | نه | — |
publish_mode | string<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_hours | integer | نه | — |
schedule_stagger_minutes | integer | نه | Minutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint. |
blocking_providers | string[] | نه | 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_at | string | هو | — |
updated_at | string | نه | — |
تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي
401 · 403 · 422 · 429