การยืนยันตัวตน
ส่ง 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.
เนื้อหาคำขอ
| ชื่อ | ประเภท | จำเป็นต้องมี | ลักษณะของสิ่งนี้ |
|---|---|---|---|
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