ai

POST /v1/ai/recipes

Create an AI posting recipe.

จุดสิ้นสุด ai ทั้งหมด

การยืนยันตัวตน

ส่ง API key ในรูปแบบ bearer token คีย์ดังกล่าวต้องมีสิทธิ์ links.edit หากไม่มีสิทธิ์ ระบบจะปฏิเสธด้วยรหัส 403 แทนที่จะเป็น 404

ตำแหน่งสำหรับใส่รหัสองค์กรของคุณ

Endpoint นี้รับ org_id เป็นฟิลด์ใน JSON body

รหัสองค์กรของคุณจะแสดงอยู่บนหน้าคีย์ 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 ในแดชบอร์ดของคุณจะเติมรหัสองค์กรจริงและคีย์ของคุณเองโดยอัตโนมัติ และทำการส่งคำขอไปยัง 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