ai

POST /v1/ai/recipes

Create an AI posting recipe.

ټول ai پای ټکي

تصدیق‌هویت

یو 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.

د غوښتنې بدن

نومډولاړیندا څه شی دی
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