ai

POST /v1/ai/recipes

Create an AI posting recipe.

Të gjitha pikat e skajshme ai

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen links.edit; një çelës pa të refuzohet me 403, jo 404.

Ku shkon id i organizatës suaj

Ky endpoint pranon org_id si fushë në trupin JSON.

ID-ja e organizatës suaj ndodhet në ekranin e çelësave API në panelin tuaj të kontrollit, pranë vetë çelësit. Është i njëjti ID në çdo thirrje që bëni.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

curl -X POST https://api.zinndigital.com/v1/ai/recipes \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string> }'

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

⛔ 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.

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
namestringPo
is_enabledbooleanJo
briefstringJo
tonestringJo
word_countintegerJo
languagestringJo
posts_per_runintegerJo
providerstringJo
model_idstringJo
model_familystringJo
anchorsAiAnchor[]Jo
anchor_policystring<none, every_post, rotate>Jo
link_set_idstringJoThe 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>Jo
cadence_hour_utcintegerJo
cadence_dowintegerJo
cadence_domintegerJo
target_kindstring<none, sites, site_group, cms_targets>Jo
target_sitesstring[]Jo
target_site_group_idobjectJo
target_cms_target_idsstring[]Jo
target_categorystringJo
requires_capabilitiesstring[]Jo
capability_policystring<refuse, degrade, ask>Jo
image_providerstringJo
image_modelstringJo
featured_imagebooleanJo
inline_image_countintegerJo
inline_placementstring<after_intro, between_sections, end>Jo
image_stylestringJo
publish_modestring<draft, schedule, publish>Jo
schedule_offset_hoursintegerJo
schedule_stagger_minutesintegerJo
org_idUuidJoUUIDv7 identifier — sortable by creation time (docs/02 §8).

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idUuidPoUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringPo
is_enabledbooleanPo
briefstringJo
tonestringJo
word_countintegerJo
languagestringJoBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerJo⛔ 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.
providerstringJoBlank = whatever the funding route resolves to.
model_idstringJoBlank = the newest verified model in the family.
model_familystringJo
anchorsAiAnchor[]Jo
anchor_policystring<none, every_post, rotate>Jo
link_set_idstringJoThe 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>Po
cadence_hour_utcintegerJo
cadence_dowintegerJo0 = Monday.
cadence_domintegerJo⛔ 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_atobjectJo
last_run_atobjectJo
target_kindstring<none, sites, site_group, cms_targets>Jo
target_sitesstring[]Jo
target_site_group_idobjectJo
target_cms_target_idsstring[]Jo
target_categorystringJo
requires_capabilitiesstring[]JoCapability 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>JoWhat 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_providerstringJo
image_modelstringJo
featured_imagebooleanJo
inline_image_countintegerJo
inline_placementstring<after_intro, between_sections, end>Jo
image_stylestringJo
publish_modestring<draft, schedule, publish>Po⚖️ 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_hoursintegerJo
schedule_stagger_minutesintegerJoMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]JoProviders 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_atstringPo
updated_atstringJo

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 422 · 429