ai

POST /v1/ai/recipes

Create an AI posting recipe.

Toate punctele finale ai

Autentificare

Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea links.edit; o cheie care nu o are va fi respinsă cu 403, nu 404.

Unde merge ID-ul organizației tale

Acest punct final preia org_id ca câmp în corpul JSON.

ID-ul organizației tale se află pe ecranul cheilor API din panoul de control, lângă cheia însăși. Este același ID în fiecare apel pe care îl faci.

Încearcă

Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.

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

Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API

Detalii

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

Corp cerere

NumeTipObligatoriuCe este
namestringDa
is_enabledbooleanNu
briefstringNu
tonestringNu
word_countintegerNu
languagestringNu
posts_per_runintegerNu
providerstringNu
model_idstringNu
model_familystringNu
anchorsAiAnchor[]Nu
anchor_policystring<none, every_post, rotate>Nu
link_set_idstringNuThe 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>Nu
cadence_hour_utcintegerNu
cadence_dowintegerNu
cadence_domintegerNu
target_kindstring<none, sites, site_group, cms_targets>Nu
target_sitesstring[]Nu
target_site_group_idobjectNu
target_cms_target_idsstring[]Nu
target_categorystringNu
requires_capabilitiesstring[]Nu
capability_policystring<refuse, degrade, ask>Nu
image_providerstringNu
image_modelstringNu
featured_imagebooleanNu
inline_image_countintegerNu
inline_placementstring<after_intro, between_sections, end>Nu
image_stylestringNu
publish_modestring<draft, schedule, publish>Nu
schedule_offset_hoursintegerNu
schedule_stagger_minutesintegerNu
org_idUuidNuUUIDv7 identifier — sortable by creation time (docs/02 §8).

Răspuns

NumeTipObligatoriuCe este
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringDa
is_enabledbooleanDa
briefstringNu
tonestringNu
word_countintegerNu
languagestringNuBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerNu⛔ 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.
providerstringNuBlank = whatever the funding route resolves to.
model_idstringNuBlank = the newest verified model in the family.
model_familystringNu
anchorsAiAnchor[]Nu
anchor_policystring<none, every_post, rotate>Nu
link_set_idstringNuThe 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>Da
cadence_hour_utcintegerNu
cadence_dowintegerNu0 = Monday.
cadence_domintegerNu⛔ 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_atobjectNu
last_run_atobjectNu
target_kindstring<none, sites, site_group, cms_targets>Nu
target_sitesstring[]Nu
target_site_group_idobjectNu
target_cms_target_idsstring[]Nu
target_categorystringNu
requires_capabilitiesstring[]NuCapability 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>NuWhat 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_providerstringNu
image_modelstringNu
featured_imagebooleanNu
inline_image_countintegerNu
inline_placementstring<after_intro, between_sections, end>Nu
image_stylestringNu
publish_modestring<draft, schedule, publish>Da⚖️ 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_hoursintegerNu
schedule_stagger_minutesintegerNuMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]NuProviders 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_atstringDa
updated_atstringNu

Erori pe care le poate returna acest punct final

401 · 403 · 422 · 429