ai

POST /v1/ai/recipes

Create an AI posting recipe.

جميع نقاط نهاية ai

المصادقة

أرسل مفتاح واجهة برمجة التطبيقات (API key) كرمز حامل (bearer token). يجب أن يحمل المفتاح إذن links.edit؛ والمفتاح الذي لا يملكه يُرفض بالرمز 403 وليس 404.

حيث يتم إدخال معرف مؤسستك

تقبل هذه نقطة النهاية org_id حقلًا في نص JSON.

معرف مؤسستك موجود على شاشة مفاتيح واجهة برمجة التطبيقات (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

التفاصيل

⛔ 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